Topic 1 Question 496
A company hosts an application that uses several Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). During the initial startup of the EC2 instances, the EC2 instances run user data scripts to download critical content for the application from an Amazon S3 bucket.
The EC2 instances are launching correctly. However, after a period of time, the EC2 instances are terminated with the following error message: “An instance was taken out of service in response to an ELB system health check failure.” EC2 instances continue to launch and be terminated because of Auto Scaling events in an endless loop.
The only recent change to the deployment is that the company added a large amount of critical content to the S3 bucket. The company does not want to alter the user data scripts in production.
What should a solutions architect do so that the production environment can deploy successfully?
Increase the size of the EC2 instances.
Increase the health check timeout for the ALB.
Change the health check path for the ALB.
Increase the health check grace period for the Auto Scaling group.
ユーザの投票
コメント(6)
- 正解だと思う選択肢: D
D. Increase the health check grace period
👍 9ebbff632024/06/27 - 正解だと思う選択肢: D
Answer D. Extending the grace period allows the instances more time to complete their startup tasks, including downloading the additional content from S3, before health checks start. This solution does not require altering the user data scripts in production, which aligns with the company’s requirements.
👍 7AhmedSalem2024/07/03 - 正解だと思う選択肢: B
I prefer B over D: The problem is that EC2 instances need to download content from S3 during the startup process, which may take some time. If ALB's health check is performed during this period and the EC2 instance is unable to respond to the health check request due to incomplete downloads, ALB may consider the instance unhealthy and remove it from the service. This may trigger the auto scaling group to start new instances, creating an endless loop.
👍 2liuliangzhou2024/09/15
シャッフルモード