AWS Certified DevOps Engineer – Professional — Question 69

A production account has a requirement that any Amazon EC2 instance that has been logged into manually must be terminated within 24 hours. All applications in the production account are using Auto Scaling groups with Amazon CloudWatch Logs agent configured.

How can this process be automated?

Answer options

Correct answer: D

Explanation

The correct answer is D because it directly utilizes an AWS Lambda function that processes the login events and tags the instances for termination. Options A and C involve additional complexity and do not directly address the requirement, while option B relies on manual intervention from the operations team, which does not automate the process.