An enterprise telemetry analytics SaaS provider runs its data ingestion service on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The instances process high-velocity telemetry logs from client sites across three Availability Zones. The instances utilize a bootstrap script that downloads configuration files and initializes local caching, which takes approximately 8 minutes to complete before they can accept traffic. The provider recently suffered an outage during an unannounced marketing campaign by one of its enterprise clients, which caused an immediate, massive surge in HTTP traffic. During this surge, the ALB returned 503 Service Unavailable errors. The ASG scale-out policy triggered multiple times, but launched dozens of unnecessary instances that remained idle once the traffic surge subsided. Additionally, outbound database connection attempts from instances in two of the Availability Zones failed because the route tables pointed to a single NAT Gateway located in the third Availability Zone, which became resource-constrained and crashed. Which configuration should a solutions architect implement to resolve these issues?
- Establish a NAT Gateway within each Availability Zone and configure the route tables for each private subnet to route outbound traffic through its local gateway. Update the Auto Scaling group to use a target tracking scaling policy with the instance warmup time set to 540 seconds. Coordinate with clients to obtain advance notice of promotional events and request AWS Support to pre-warm the Application Load Balancer.Answer
- BRoute outbound traffic from all subnets through a single NAT Gateway residing in a centralized shared services VPC to control costs. Configure the Auto Scaling group to use simple scaling policies with a cooldown period of 300 seconds. Request AWS Support to pre-warm the Application Load Balancer before expected traffic surges.
- CEstablish a NAT Gateway within each Availability Zone and configure the route tables for each private subnet to route outbound traffic through its local gateway. Update the Auto Scaling group to use a target tracking scaling policy with the instance warmup time set to 300 seconds. Rely on the default automatic scaling capacity of the Application Load Balancer to absorb the sudden traffic surges.
- DDeploy a single NAT Gateway in one Availability Zone and implement a Gateway Load Balancer to route outbound traffic through a cluster of security appliances. Configure the Auto Scaling group to use a target tracking scaling policy with the instance warmup time set to 540 seconds. Rely on the default automatic scaling capacity of the Application Load Balancer to absorb the sudden traffic surges.