A financial analytics company hosts a batch processing application on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer. The application instances require a complex initialization script that takes approximately minutes to download external libraries and establish database connection pools before they can accept traffic. The ASG uses a step scaling policy based on CPU utilization to scale out. During a rapid increase in traffic, the ASG continuously launches multiple new instances before the previously launched instances finish bootstrapping, leading to massive over-provisioning and increased costs. Which of the following configurations should a Solutions Architect implement to prevent this over-provisioning issue?
- Configure the estimated instance warmup time for the step scaling policy to be greater than minutes ( seconds) to ensure that the ASG does not launch additional instances while the new instances are still bootstrapping.Cevap
- BDecrease the default cooldown period of the Auto Scaling group to seconds to allow the ASG to quickly evaluate the CPU utilization metrics and terminate redundant instances.
- CSubmit a request to AWS Support to pre-warm the Application Load Balancer to ensure it has sufficient capacity to handle and distribute the traffic spikes before scaling triggers are activated.
- DConsolidate the architecture to use a single NAT Gateway in a single Availability Zone for all backend subnets to reduce routing overhead and decrease the bootstrapping time.