SOA-C02 · Question #356
An application runs on Amazon EC2 instances in an Auto Scaling group. Following the deployment of a new feature on the EC2 instances, some instances were marked as unhealthy and then replaced by the…
The correct answer is C. Add a lifecycle hook to the Auto Scaling group to invoke the Lambda function through Amazon. https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html
Question
An application runs on Amazon EC2 instances in an Auto Scaling group. Following the deployment of a new feature on the EC2 instances, some instances were marked as unhealthy and then replaced by the Auto Scaling group. The EC2 instances terminated before a SysOps administrator could determine the cause of the health status changes. To troubleshoot this issue, the SysOps administrator wants to ensure that an AWS Lambda function is invoked in this situation. How should the SysOps administrator meet these requirements?
Options
- AActivate the instance scale-in protection setting for the Auto Scaling group.
- BActivate the instance scale-in protection setting for the Auto Scaling group.
- CAdd a lifecycle hook to the Auto Scaling group to invoke the Lambda function through Amazon
- DAdd a lifecycle hook to the Auto Scaling group to invoke the Lambda function through Amazon
How the community answered
(49 responses)- A14% (7)
- B4% (2)
- C76% (37)
- D6% (3)
Explanation
https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html
Topics
Community Discussion
No community discussion yet for this question.