SAP-C02 Study Assistant

SAP-C02 Question 496

S3 EC2 Auto Scaling

Question

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?

Options

A. Increase the size of the EC2 instances.

B. Increase the health check timeout for the ALB.

C. Change the health check path for the ALB.

D. Increase the health check grace period for the Auto Scaling group.

Answer

D

Explanation

Correct answer: D Explanation: The best answer is D. Correct option: D. Increase the health check grace period for the Auto Scaling group. Why this is correct: This option most directly satisfies the hard requirements in...

Log in to view the full explanation