AWS Certified SysOps Administrator – Associate (legacy) — Question 142
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?
Answer options
- 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.
Correct answer: C
Explanation
Option C is correct because AWS Trusted Advisor can automatically identify and suggest actions for low utilization instances, ensuring that instances running for more than 24 hours are terminated. Option A is not suitable as it relies on CPU utilization, which might not effectively indicate the age of the instance. Option B requires a manual function setup which is more complex than needed. Option D involves additional configuration with the CloudWatch agent, which is unnecessary for this simple task.