An administrator manages an Amazon EC2 Auto Scaling group (ASG) configured with a target tracking scaling policy based on Average CPU Utilization. The application hosted on the instances requires seconds to fully bootstrap, configure services, and begin processing requests. During a sudden spike in traffic, the ASG launches a new instance. However, before that instance is fully initialized, the ASG launches another instance because the aggregate CPU utilization remains elevated. Which configuration adjustment will prevent the ASG from launching unnecessary instances while the newly launched instances are bootstrapping?
- Increase the estimated instance warmup time in the target tracking scaling policy to seconds.Answer
- BIncrease the default cooldown period of the Auto Scaling group to seconds.
- CEnable detailed monitoring in the launch template used by the Auto Scaling group to transition metrics to -minute intervals.
- DCreate an Amazon EventBridge rule that triggers an AWS Systems Manager Automation runbook to temporarily suspend the AlarmNotification scaling process during scale-out.
Answer
Increase the estimated instance warmup time in the target tracking scaling policy to seconds.
Increasing the estimated instance warmup time to seconds is the correct solution. For target tracking scaling policies, the estimated instance warmup parameter defines how long it takes for a newly launched instance to warm up. While an instance is warming up, its metrics are not included in the aggregate metric calculation for the group, and the Auto Scaling group will not trigger another scale-out action due to the elevated metrics.
Step-by-Step Solution
Key Concept
Configuring estimated instance warmup for target tracking scaling policies to handle application initialization latency.
Estimated Time:1m 30s