An enterprise hosts a legacy document processing application on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The instances reside in private subnets across two Availability Zones, AZ-A and AZ-B. Outbound internet traffic from both private subnets is routed through a single NAT Gateway located in the public subnet of AZ-A to allow instances to download critical libraries during startup.
The application instances require approximately seconds to complete bootstrapping, start services, and pass ALB health checks. The ASG is currently configured with a simple scaling policy based on CPU utilization and has a default cooldown of seconds.
During sudden traffic surges, the ASG launches excessive redundant instances, resulting in database connection exhaustion. Additionally, a recent outage in AZ-A caused the instances launching in AZ-B to fail bootstrapping, resulting in application downtime.
Which combination of actions should a solutions architect take to resolve the scaling and fault tolerance issues?
- Configure a target tracking scaling policy with an estimated instance warmup of seconds. Deploy a second NAT Gateway in the public subnet of AZ-B, and update the route table for the private subnets in AZ-B to route outbound internet traffic through the new NAT Gateway.Cevap
- BConfigure a simple scaling policy with a decreased default cooldown period of seconds. Deploy a second NAT Gateway in the public subnet of AZ-B, and update the route table for the private subnets in AZ-B to route outbound internet traffic through the new NAT Gateway.
- CConfigure a target tracking scaling policy with an estimated instance warmup of seconds. Maintain the single NAT Gateway in AZ-A to minimize operational costs, and increase the Application Load Balancer health check grace period to seconds.
- DSubmit a request to AWS Support to pre-warm the Application Load Balancer to absorb the traffic surges. Retain the simple scaling policy with the -second default cooldown, and enable cross-zone load balancing on the Application Load Balancer to route traffic to AZ-B without deploying an additional NAT Gateway.