A digital payment processing company operates a backend microservice on Amazon EC2 instances within an Auto Scaling Group (ASG) behind an Application Load Balancer (ALB). The instances retrieve tasks from an internal processing queue and verify external merchant accounts by calling external APIs. The instances are situated in private subnets across three Availability Zones (AZs), with all outbound internet traffic routed through a single NAT Gateway located in the first AZ. During a major promotional campaign, the application experiences a massive, instantaneous surge in requests. This causes a sudden latency spike on the ALB, leading to dropped connections. Simultaneously, the ASG attempts to scale out rapidly, but because instances run custom bootstrapping scripts to download updates that take 8 minutes to complete, the ASG repeatedly launches additional instances before the first batch is fully operational. Shortly after, a physical fiber outage disables the first AZ, which causes transaction processing to stall entirely for instances in the remaining two active AZs. Which set of actions will resolve the availability, scaling latency, and initialization issues?
- ARequest ALB pre-warming from AWS Support prior to the promotional campaign, keep outbound traffic routed through the existing single NAT Gateway to optimize resource costs, bake application dependencies into a golden Amazon Machine Image (AMI) to bypass runtime bootstrapping, and adjust the ASG's scaling policies to use a warm-up period that matches the new launch duration.
- BRequest ALB pre-warming from AWS Support prior to the promotional campaign, provision dedicated NAT gateways across all three active zones and update private subnet routing to use zone-specific gateways, and configure the ASG's scaling policies with a warm-up period that is shorter than the 8-minute bootstrapping time of the instances while continuing to run the scripts at startup.
- Request ALB pre-warming from AWS Support prior to the promotional campaign, provision dedicated NAT gateways across all three active zones and update private subnet routing to use zone-specific gateways, bake application dependencies into a golden Amazon Machine Image (AMI) to bypass runtime bootstrapping, and adjust the ASG's scaling policies to use a warm-up period that matches the new launch duration.Cevap
- DRely on the ALB's default scaling behavior to handle the promotional campaign traffic, provision dedicated NAT gateways across all three active zones and update private subnet routing to use zone-specific gateways, bake application dependencies into a golden Amazon Machine Image (AMI) to bypass runtime bootstrapping, and adjust the ASG's scaling policies to use a warm-up period that matches the new launch duration.