A digital ticketing company hosts its high-demand event registration application on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The instances run in private subnets across Availability Zones. The application requires outbound internet access to interact with external payment processors. Outbound traffic is currently routed through a single NAT Gateway in the first Availability Zone to minimize cost.
During major ticket release events, traffic surges from a baseline of requests per minute to over requests per minute in less than minutes. During these spikes, users encounter frequent and errors. System logs show the ALB is dropping connections because backend EC2 instances are overwhelmed, and new instances take minutes to bootstrap and become healthy. Additionally, a recent localized outage in the first Availability Zone disrupted payment processing for all healthy instances in the remaining zones.
Which combination of actions will address the scaling delays and the outbound network single point of failure while minimizing compute expenses during idle periods?
- AMaintain the single NAT Gateway in the first Availability Zone to control costs and enable load balancer cross-zone routing. Configure an Auto Scaling group warm pool with instances in the Stopped state, and request that AWS Support pre-warm the Application Load Balancer before scheduled events.
- BProvision a dedicated NAT Gateway in each Availability Zone and update the private subnet route tables. Configure an Auto Scaling group warm pool with instances in the Running state, and implement a target tracking policy based on the load balancer request count per target to scale dynamically.
- Provision a dedicated NAT Gateway in each Availability Zone and update the private subnet route tables. Configure an Auto Scaling group warm pool with instances in the Stopped state, and request that AWS Support pre-warm the Application Load Balancer before scheduled events.Cevap
- DProvision a dedicated NAT Gateway in each Availability Zone and update the private subnet route tables. Configure the Auto Scaling group cooldown and warmup periods to seconds to force rapid instance creation, and increase the Application Load Balancer idle timeout value.