A retail company operates a mobile shopping application. The application's backend is hosted on Amazon EC2 instances in an Auto Scaling group (ASG) across three Availability Zones. Outbound API calls to external payment gateways are routed from private subnets through a single NAT Gateway located in one public subnet. During a simulated flash sale, traffic increases from to requests per minute in less than minutes. During testing, the Availability Zone containing the NAT Gateway experienced a simulated outage, which disrupted all external payment processing. Additionally, the EC2 instances require minutes to complete bootstrapping and application initialization, but the ASG's cooldown period is set to seconds, causing the ASG to launch redundant instances before the previously launched instances can begin serving traffic and reduce metric load. Which combination of actions should the solutions architect take to resolve these scaling and reliability issues with the lowest operational overhead?
- Provision a NAT Gateway in each of the three Availability Zones and update the route tables for each private subnet to point to the local NAT Gateway. Increase the Auto Scaling group scaling cooldown period to seconds to exceed the instance initialization time. Request AWS Support to pre-warm the Application Load Balancer prior to the scheduled flash sale.Cevap
- BProvision a NAT Gateway in each of the three Availability Zones and update the route tables for each private subnet to point to the local NAT Gateway. Retain the Auto Scaling group scaling cooldown period at seconds, but switch the scaling policy to target tracking based on average CPU utilization. Request AWS Support to pre-warm the Application Load Balancer prior to the scheduled flash sale.
- CMaintain a single NAT Gateway in one public subnet but configure a Route 53 active-passive DNS failover record pointing to a secondary NAT Gateway in another Availability Zone. Increase the Auto Scaling group scaling cooldown period to seconds. Request AWS Support to pre-warm the Application Load Balancer prior to the scheduled flash sale.
- DProvision a NAT Gateway in each of the three Availability Zones and update the route tables for each private subnet to point to the local NAT Gateway. Increase the Auto Scaling group scaling cooldown period to seconds. Rely on the Application Load Balancer's native automatic scaling to handle the instant flash sale traffic spike without requesting pre-warming.