Topic 1 Question 76
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?
Activate the instance scale-in protection setting for the Auto Scaling group. Invoke the Lambda function through Amazon EventBridge (Amazon CloudWatch Events).
Activate the instance scale-in protection setting for the Auto Scaling group. Invoke the Lambda function through Amazon Route 53.
Add a lifecycle hook to the Auto Scaling group to invoke the Lambda function through Amazon EventBridge (Amazon CloudWatch Events).
Add a lifecycle hook to the Auto Scaling group to invoke the Lambda function through Amazon Route 53.
ユーザの投票
コメント(7)
- 正解だと思う選択肢: C
OK its C. check this doc https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html
👍 4kati2k22cz2022/09/03 - 正解だと思う選択肢: C
Answer is C
👍 3bakjeeone2022/10/01 - 正解だと思う選択肢: C
A is Wrong because Instance scale-in protection does not protect Auto Scaling instances from the following: Health check replacement if the instance fails health checks
C is the Correct Answers -- When a scale-in event occurs, a lifecycle hook pauses the instance before it is terminated and sends you a notification using Amazon EventBridge. While the instance is in the wait state, you can invoke an AWS Lambda function or connect to the instance to download logs or other data before the instance is fully terminated.
https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html
👍 3Atown2022/11/12
シャッフルモード