Resilient Cloud Solutions

An EC2 Auto Scaling group uses Application Load Balancer health checks and repeatedly replaces new instances before their 3-minute application initialization finishes. Its health check grace period is 30 seconds, and default instance warmup is 300 seconds; which change BEST resolves the replacement loop while retaining application health checks?

Show the answer

Correct answerD. Increase the health check grace period to 240 seconds.

AWhy not this: Instance warmup affects scaling calculations but does not extend protection from load balancer health-check failures.

BWhy not this: EC2-only checks remove application-level health detection, violating the requirement to retain it.

CWhy not this: Deregistration delay allows existing requests to drain when a target is removed; it does not protect initializing instances.

DWhy this is right: A 240-second grace period allows the 3-minute initialization to finish before Auto Scaling acts on unhealthy status.

The health check grace period prevents Auto Scaling from replacing initializing instances because of load balancer health failures. Default instance warmup governs scaling calculations, not protection from these health-based replacements.