A media streaming company runs a metadata caching service on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The instances require a complex initialization sequence to download and cache local reference datasets, which takes approximately 8 minutes to complete. The company observes that during sudden traffic surges, the ASG launches new instances, but the CPU utilization on existing instances remains high. As a result, the ASG continuously launches more instances until the maximum group size is reached, leading to excessive costs and overall service instability. Which configuration change will prevent the ASG from launching unnecessary instances while ensuring the system can eventually scale to meet the demand?
- ADecrease the default cooldown period of the Auto Scaling group to 60 seconds to allow the system to respond faster to traffic surges.
- BSubmit a support case to AWS to request pre-warming of the Application Load Balancer to handle the sudden capacity increase.
- Configure a target tracking scaling policy with the instance warmup set to 540 seconds to prevent the group from launching additional instances before the new instances complete initialization.Cevap
- DDeploy a NAT Gateway in each Availability Zone used by the Auto Scaling group to ensure high availability of outbound connections during scaling events.