SAP-C02 Exam QuestionsBrowse all questions from this exam

SAP-C02 Exam - Question 495


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?

Show Answer
Correct Answer: D

To address the issue effectively, increasing the health check grace period for the Auto Scaling group is the best approach. This allows the EC2 instances additional time to complete their startup tasks, including the download of a significant amount of new content from the S3 bucket, before the health checks are performed by the Application Load Balancer. This ensures that the instances are not terminated prematurely due to failing health checks, promoting stability and continuity in the deployment process without altering existing user data scripts.

Discussion

2 comments
Sign in to comment
ebbff63Option: D
Jun 27, 2024

D. Increase the health check grace period

AhmedSalemOption: D
Jul 3, 2024

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.