AWS Certified SysOps Administrator – Associate (legacy) — Question 860
An application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances run in an Auto Scaling group that terminates unhealthy instances. The Auto Scaling group is configured to determine the health status of EC2 instances using both EC2 status checks and ALB health checks. The
Development team wants to analyze the unhealthy instances before termination.
What should the SysOps Administrator do to accomplish this?
Answer options
- A. Configure the ALB health check to restart instances instead of terminating them.
- B. Configure an AWS Lambda function to take a snapshot of all instances before they are terminated.
- C. Implement Amazon CloudWatch Events to capture lifecycle events and trigger an AWS Lambda function for remediation.
- D. Use an Amazon EC2 Auto Scaling lifecycle hook to pause instance termination after the instance has been removed from service.
Correct answer: D
Explanation
Using an Amazon EC2 Auto Scaling lifecycle hook allows you to pause the termination of an instance (putting it into a Terminating:Wait state) so that the development team can connect to and inspect it before it is deleted. Option A is incorrect because ALB health checks cannot be configured to reboot instances. Options B and C do not pause the instance termination state to allow for active, live analysis of the unhealthy instance itself.