exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 42 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 42
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A company has multiple development teams sharing one AWS account. The development team's manager wants to be able to automatically stop Amazon EC2 instances and receive notifications if resources are idle and not tagged as production resources.
Which solution will meet these requirements?

  • A. Use a scheduled Amazon CloudWatch Events rule to filter for Amazon EC2 instance status checks and identify idle EC2 instances. Use the CloudWatch Events rule to target an AWS Lambda function to stop non-production instances and send notifications.
  • B. Use a scheduled Amazon CloudWatch Events rule to filter AWS Systems Manager events and identify idle EC2 instances and resources. Use the CloudWatch Events rule to target an AWS Lambda function to stop non-production instances and send notifications.
  • C. Use a scheduled Amazon CloudWatch Events rule to target a custom AWS Lambda function that runs AWS Trusted Advisor checks. Create a second CloudWatch Events rule to filter events from Trusted Advisor to trigger a Lambda function to stop idle non-production instances and send notifications.
  • D. Use a scheduled Amazon CloudWatch Events rule to target Amazon Inspector events for idle EC2 instances. Use the CloudWatch Events rule to target the AWS Lambda function to stop non-production instances and send notifications.
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
WhyIronMan
Highly Voted 3 years, 7 months ago
I'll go with C References: https://docs.aws.am azon.com/awssupport/latest/user/cloudwatch-ta.html https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#trusted-advisor-event-types https://aws.amazon.com/premiumsupport/technology/trusted-advisor/
upvoted 24 times
JohnnieWalker
3 years, 7 months ago
I will go with C too. https://gist.github.com/sudharsans/af23ee7e8919947af83ceb269a40d8db https://docs.aws.amazon.com/awssupport/latest/user/cloudwatch-events-ta.html
upvoted 2 times
...
...
saggy4
Highly Voted 2 years, 6 months ago
Selected Answer: C
A - No such cloudwatch event which identifies idle EC2 instances B - No such AWS System Manager Event that lets you know the idle resources C - Correct Answer. Trusted Advisor Checks lets you know idle EC2 instances D - Amazon Inspector is for managing vulnerabilities
upvoted 6 times
...
DucSiu
Most Recent 1 year, 6 months ago
C because Trusted Advisor have check Low CPU.
upvoted 1 times
...
Piccaso
2 years, 4 months ago
Selected Answer: A
D is eliminated, Amazon Inspector is used to scan vulnerabilities. C is eliminated, AWS Trusted Advisor checks accounts. B is eliminated, AWS Systems Manager manages resource on AWS and on-premises.
upvoted 3 times
Piccaso
2 years, 4 months ago
The links offered by JohnnieWalker changed my mind from A to C
upvoted 1 times
...
...
Bulti
2 years, 5 months ago
C is the correct answer. Trusted Advisor is used to diagnose issues with your infrastructure including idle EC2 instances.
upvoted 2 times
...
saeidp
2 years, 5 months ago
C for sure
upvoted 2 times
...
rscloud
3 years, 7 months ago
A - CW event for ec2 state and lambda to stop ec2
upvoted 2 times
WhyIronMan
3 years, 7 months ago
This makes A wrong: CloudWatch Events rule to filter for Amazon EC2 >>>INSTANCE STATUS CHECKS AND IDENTIFY IDLE<<< EC2 instances ???? There are two types of status checks: system status checks and instance status checks, AND NONE of them has the "Idle" status https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html#types-of-instance-status-checks
upvoted 4 times
[Removed]
2 years, 5 months ago
CloudWatch does not have a built-in event that specifically identifies the idle status of EC2 instances, agreed. However, you can create a custom event using CloudWatch Events and a Lambda function to identify idle instances by monitoring for specific conditions that indicate an idle status, such as low CPU/network usage
upvoted 1 times
Piccaso
2 years, 4 months ago
I agree. However, the option C is doing what you suggested, but using Trust Advisor instead of CloudWatch. A did not say that it will use CloudWatch Event + Lambda function
upvoted 1 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 ...