Question 320
A monolithic EC2 web application requires elastic horizontal capacity. The team confirms that an Auto Scaling group keeps launching instances that fail its load-balancer health checks. What is the best design response for this workload?
Explanation
Correct Answer
The scenario identifies this requirement: An Auto Scaling group keeps launching instances that fail its load-balancer health checks. Select Enable and correctly configure ELB health checks and grace periods as the specified technical mechanism. Health evaluation determines whether instances are replaced. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Place stateless app instances in an EC2 Auto Scaling group behind an ALB addresses a separate condition: traffic bursts overwhelm one oversized instance while other capacity is unused. Horizontal scaling distributes requests across instances. The actual requirement is an Auto Scaling group keeps launching instances that fail its load-balancer health checks. Recommended corrective action: Enable and correctly configure ELB health checks and grace periods. Health evaluation determines whether instances are replaced.
Externalize session state to DynamoDB or ElastiCache as appropriate would help if user sessions disappear when an application instance is replaced. Stateless instances can be safely replaced if session state is external. That is not the symptom described here: an Auto Scaling group keeps launching instances that fail its load-balancer health checks. The matching response is Enable and correctly configure ELB health checks and grace periods, because health evaluation determines whether instances are replaced.
For the alternative failure request rate spikes unpredictably during sales, the control Use target tracking scaling on supported ALB request or utilization metrics is relevant: target tracking adjusts group size from measured load. Here the evidence instead is an Auto Scaling group keeps launching instances that fail its load-balancer health checks. The selected technical mechanism is Enable and correctly configure ELB health checks and grace periods: health evaluation determines whether instances are replaced.