An enterprise runs a data processing application on Amazon EC2 instances within an Auto Scaling Group (ASG) deployed across three Availability Zones (AZs) behind an Application Load Balancer. The application instances take approximately 8 minutes to download a large proprietary dataset, bootstrap services, and pass load balancer health checks. During sudden workload spikes, the ASG scales out based on a target tracking policy, but it consistently launches far more EC2 instances than necessary, leading to underutilized resources and high costs. Additionally, all outbound internet traffic from the private subnets in all three AZs is routed through a single NAT Gateway located in the first AZ.
Which combination of changes should a Solutions Architect implement to optimize the auto-scaling behavior and ensure high availability for outbound traffic?
- Configure the instance warmup time in the target tracking scaling policy to 600 seconds. Deploy a NAT Gateway in each of the three Availability Zones, and update the private subnet route tables to direct outbound traffic to the local NAT Gateway in its respective Availability Zone.Answer
- BConfigure the instance warmup time in the target tracking scaling policy to 180 seconds. Deploy a NAT Gateway in each of the three Availability Zones, and update the private subnet route tables to direct outbound traffic to the local NAT Gateway in its respective Availability Zone.
- CConfigure the instance warmup time in the target tracking scaling policy to 600 seconds. Keep the single NAT Gateway in the first Availability Zone, and add a secondary Elastic IP address to it to handle the traffic load from all three Availability Zones.
- DSubmit a request to AWS Support to pre-warm the Application Load Balancer to handle the traffic spikes. Keep the single NAT Gateway in the first Availability Zone, and configure cross-zone load balancing to distribute outbound traffic equally.