exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 714 discussion

Exam question from Amazon's AWS-SysOps
Question #: 714
Topic #: 1
[All AWS-SysOps Questions]

A SysOps Administrator is managing an AWS account where Developers are authorized to launch Amazon EC2 instances to test new code. To limit costs, the
Administrator must ensure that the EC2 instances in the account are terminated 24 hours after launch.
How should the Administrator meet these requirements?

  • A. Create an Amazon CloudWatch alarm based on the CPUUtilization metric. When the metric is 0% for 24 hours, trigger an action to terminate the EC2 instance when the alarm is triggered.
  • B. Create an AWS Lambda function to check all EC2 instances and terminate instances running more than 24 hours. Trigger the function with an Amazon CloudWatch Events event every 15 minutes.
  • C. Add an action to AWS Trusted Advisor to turn off EC2 instances based on the Low Utilization Amazon EC2 Instances check, terminating instances identified by Trusted Advisor as running for more than 24 hours.
  • D. Install the unified Amazon CloudWatch agent on every EC2 instance. Configure the agent to terminate instances after they have been running for 24 hours.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
awsnoob
Highly Voted 2 years, 7 months ago
Why not B?
upvoted 10 times
karmaah
2 years, 7 months ago
B is the right one.
upvoted 5 times
...
...
albert_kuo
Most Recent 9 months, 3 weeks ago
Selected Answer: B
The AWS Lambda function can be designed to periodically check the launch time of each EC2 instance in the account and compare it to the current time. If an instance has been running for more than 24 hours, the Lambda function can initiate the termination of that instance.
upvoted 1 times
...
gulu73
1 year, 2 months ago
Selected Answer: B
ill go with B
upvoted 1 times
...
RicardoD
2 years, 5 months ago
B is the answer
upvoted 1 times
...
abhishek_m_86
2 years, 5 months ago
B. Create an AWS Lambda function to check all EC2 instances and terminate instances running more than 24 hours. Trigger the function with an Amazon CloudWatch Events event every 15 minutes. Seem correct
upvoted 4 times
...
jackdryan
2 years, 6 months ago
I'll go with B
upvoted 1 times
...
waterzhong
2 years, 6 months ago
B is the right one.
upvoted 2 times
...
Golddust
2 years, 6 months ago
Hmm I am torn between different options and initially I thought C was incorrect but stumbled upon this link below. Now I am not sure. https://docs.aws.amazon.com/awssupport/latest/user/cloudwatch-metrics-ta.html It would be a clean way to do it. Also what happens if testing goes on longer than 24hours? Idle would work well.
upvoted 1 times
...
AWS_Noob
2 years, 6 months ago
I'm going with B. I had initially thought D. However a custom metric will need to be written if you go with D
upvoted 2 times
NitiATOS
2 years, 6 months ago
Agreed : Plus The D options says " Configure the agent to terminate instances " , But we do not configure the Agent, we configure CW Matrix to CW Event to do this.
upvoted 5 times
...
...
a_w_s
2 years, 6 months ago
C ; is the good answer but we need pay for unblock these features blocked by default ! And the "Low Utilization " parameter is done for it!!
upvoted 1 times
...
amo82
2 years, 6 months ago
running a lambda every 15 minutes will not limit the cost
upvoted 2 times
LuciEn
2 years, 6 months ago
i initially went with B but i think cost wise it's D: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingAlarmActions.html
upvoted 2 times
rewiga
2 years, 6 months ago
lamda isnt that expensive
upvoted 1 times
...
...
...
leowenlu
2 years, 6 months ago
As a sys admin, I will kick off B as my solution. So I go B.
upvoted 1 times
...
Ka
2 years, 7 months ago
it should be D. You can create an alarm that terminates an EC2 instance automatically when a certain threshold has been met (as long as termination protection is not enabled for the instance). For example, you might want to terminate an instance when it has completed its work, and you don't need the instance again. If you might want to use the instance later, you should stop the instance instead of terminating it. For information about enabling and disabling termination protection for an instance, see Enabling Termination Protection for an Instance in the Amazon EC2 User Guide for Linux Instances. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingAlarmActions.html
upvoted 2 times
Ka
2 years, 6 months ago
After further review B is the answer, For D you don't configure the agent, for D to work you need to set up a custom metric for uptime and sent over to cloudwatch and configure cloudwatch to terminate it
upvoted 3 times
...
...
white_shadow
2 years, 7 months ago
B is correct. as for C, Trusted advisor can't have automated tasks to be executed to resources, it is just monitoring system.
upvoted 2 times
...
awsnoob
2 years, 7 months ago
https://aws.amazon.com/premiumsupport/knowledge-center/start-stop-lambda-cloudwatch/
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago