A company hosts a critical web application on AWS using Amazon EC2 instances in an Auto Scaling Group (ASG) behind an Application Load Balancer (ALB). The instances are deployed across Availability Zones and require outbound internet access to communicate with a third-party payment gateway. The company experiences two recurring issues during flash sale events: first, during the first few minutes of a traffic surge, users experience HTTP errors. Second, the ASG launches excess instances because new instances take minutes to bootstrap, and the ASG initiates subsequent scale-out actions before the initial batch of instances completes bootstrapping. Currently, outbound internet traffic is routed via a single NAT gateway in one Availability Zone. Which TWO actions should a Solutions Architect recommend to resolve these scaling and reliability issues?
- Deploy a NAT gateway in each Availability Zone, update the route tables to route outbound traffic through the local NAT gateway, and contact AWS Support to pre-warm the Application Load Balancer before scheduled flash sale events.Cevap
- Transition the Auto Scaling group to use target tracking scaling policies, and configure the instance warmup time to be greater than the -minute instance bootstrapping duration.Cevap
- CMaintain the single NAT gateway to minimize running costs, and configure the Auto Scaling group to use step scaling policies with a scaling cooldown period of seconds.
- DDecrease the default cooldown period of the Auto Scaling group to seconds to accelerate scaling actions, and rely on the Application Load Balancer's automatic scaling to absorb the initial traffic spikes without pre-warming.
- EConfigure simple scaling policies with a cooldown period that is shorter than the bootstrapping time to ensure the Auto Scaling group remains highly responsive during traffic surges.