An application runs on Amazon EC2 instances behind an Application Load Balancer (ALB) inside an Auto Scaling group. The custom AMI used for the instances requires approximately minutes to complete bootstrapping and start serving requests. The current Auto Scaling group cooldown is configured for seconds. During sudden traffic surges, the Auto Scaling group launches a large number of unnecessary instances, resulting in high resource waste. Additionally, instances in private subnets cannot reliably communicate with third-party APIs because all outbound internet traffic is currently routed through a single NAT Gateway located in a single Availability Zone. Which two changes should the solutions architect implement to address these scaling and fault tolerance issues?
- Increase the Auto Scaling group cooldown period to seconds.Cevap
- Deploy a NAT Gateway in each Availability Zone and update the route tables to direct outbound traffic from the private subnets to their respective local NAT Gateway.Cevap
- CDecrease the Auto Scaling group cooldown period to seconds to allow the group to add instances more rapidly.
- DConfigure a single NAT Gateway in a public subnet and route outbound traffic from all private subnets across all Availability Zones to it.
- ERequest that AWS Support pre-warm the Application Load Balancer to handle the instance bootstrapping delay.