A gaming company hosts a multiplayer matchmaking service on AWS. The application's compute tier is deployed in private subnets across three Availability Zones (, , and ) within an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). Outbound requests to external third-party game servers are routed through a single NAT Gateway located in .
During a daily scheduled global tournament, player traffic surges instantaneously. The following issues are observed:
1. Outbound traffic to the external game servers fails completely if there is an outage in , disabling matchmaking for players in and .
2. The ASG scale-out policy (based on CPU utilization) triggers immediately during the traffic surge. However, because new instances require minutes ( seconds) to download configuration files, install dependencies, and bootstrap the application, the ASG continues to launch unnecessary additional instances every few minutes before the previously launched instances can start processing traffic. This behavior leads to significant over-provisioning and high compute costs.
Which two actions should the solutions architect take to resolve these issues while maintaining high availability and minimizing cost?
- Deploy a NAT Gateway in the public subnet of each Availability Zone, and update the route tables of the private subnets to route outbound traffic through the NAT Gateway located in their respective Availability Zone.Cevap
- Configure the step scaling policy's warmup period and the Auto Scaling group's default cooldown period to at least 500 seconds, ensuring that no new scaling activities are triggered before the running instances complete their bootstrapping.Cevap
- CDeploy a secondary NAT Gateway in the public subnet of , and configure a Route 53 active-passive failover policy to dynamically update the VPC route tables if the primary NAT Gateway in fails.
- DModify the scaling policy to use target tracking on CPU utilization with the instance warm-up set to 120 seconds, allowing the Auto Scaling group to aggressively launch instances to absorb the flash traffic.
- ERequest AWS Support to pre-warm the Application Load Balancer, and configure the target group deregistration delay to 480 seconds to allow the instances to receive traffic during their bootstrapping phase.