A data processing workload is hosted on a fleet of Amazon EC2 instances managed by an Auto Scaling group. The launch template uses a user data bootstrap script to pull dependencies and configure the application, taking minutes before the instance is ready to accept tasks. The Auto Scaling group scales out using a step scaling policy with a cooldown set to seconds. During traffic bursts, the Auto Scaling group launches multiple waves of redundant instances before the initial new instances can begin processing tasks, resulting in resource over-provisioning. Which configuration change will prevent this redundant instance creation?
- Increase the Auto Scaling group's default cooldown and instance warm-up periods to at least seconds.Answer
- BDecrease the Auto Scaling group's default cooldown period to seconds to force more frequent policy evaluations.
- CRequest an Application Load Balancer pre-warming from AWS Support to absorb the incoming burst traffic.
- DConsolidate all egress traffic through a single NAT Gateway to speed up the download of bootstrap files.
Answer
Increase the Auto Scaling group's default cooldown and instance warm-up periods to at least seconds.
The correct answer is to increase the Auto Scaling group's default cooldown and instance warm-up periods to at least seconds. This aligns the scaling policy evaluation timing with the actual duration needed for a new instance to become healthy, preventing premature launch of extra instances.
Step-by-Step Solution
Key Concept
Auto Scaling Cooldown and Warm-up Alignment