A media streaming provider operates an on-demand video transcoding platform. The media processing API runs on Amazon EC2 instances inside an Auto Scaling Group (ASG) behind an Application Load Balancer (ALB). The instances are deployed across two Availability Zones (AZ-A and AZ-B) in private subnets. The application instances require a bootstrapping script that takes approximately minutes to pull Docker images and initialize transcoding engines.
During a highly advertised live sporting event, a sudden influx of transcoding requests caused:
1. The ALB to drop connection requests with HTTP and errors during the first minutes of the surge.
2. The ASG to over-provision by launching hundreds of unnecessary instances because the CPU utilization metric remained elevated while the initial batch of instances was still bootstrapping.
3. Complete failure of outbound API callbacks to external payment gateways when AZ-A suffered a localized power disruption, as both private subnets routed internet-bound traffic through a single NAT Gateway in AZ-A.
Which combination of architectural improvements should the Solutions Architect implement to resolve these issues?
- AConfigure the ALB with an Elastic IP address to handle the sudden capacity increase. Set the ASG target tracking policy's estimated instance warmup to seconds. Deploy a NAT Gateway in the public subnet of each Availability Zone, and configure the private route tables to route all outbound traffic through the primary NAT Gateway in AZ-A unless it becomes unavailable.
- Request AWS Support to pre-warm the ALB to the expected capacity prior to the event. Configure target tracking scaling policies on the ASG with the estimated instance warmup set to seconds. Deploy a NAT Gateway in the public subnet of each Availability Zone, and update the route tables of the private subnets to direct outbound traffic to the local NAT Gateway in their respective zones.Cevap
- CRequest AWS Support to pre-warm the ALB to the expected capacity prior to the event. Configure target tracking scaling policies on the ASG with the estimated instance warmup set to seconds. Deploy a single NAT Gateway in the public subnet of AZ-A, and configure the route tables of both private subnets to route outbound traffic through this single gateway.
- DRely on the ALB's automatic scaling mechanism to adapt to the traffic surge. Configure target tracking scaling policies on the ASG with the estimated instance warmup set to seconds. Deploy a single NAT Gateway in the public subnet of AZ-B, and configure the route tables of both private subnets to route outbound traffic through this single gateway.