A smart home IoT provider runs an ingestion service on Amazon EC2 instances in an Auto Scaling group (ASG) behind a Network Load Balancer (NLB) across two Availability Zones. The EC2 instances reside in private subnets and must access the internet to verify device firmware signatures. Outbound internet traffic is routed through a single NAT Gateway in one of the public subnets. During scheduled device update windows, traffic increases instantly by . The ASG fails to launch new instances quickly enough to handle the sudden load, causing connection timeouts. Additionally, any outage in the Availability Zone hosting the NAT Gateway halts firmware verification for all instances. Which two actions should a solutions architect take to resolve these issues?
- Deploy a NAT Gateway in each Availability Zone and update the route tables of the private subnets to route outbound traffic through the NAT Gateway in their respective Availability Zone.Answer
- Configure an Auto Scaling group warm pool with instances in the Stopped state to quickly scale out and handle the traffic spikes during updates.Answer
- CDeploy a secondary NAT Gateway in the second Availability Zone and configure a custom script to dynamically update route tables if the primary NAT Gateway fails.
- DConfigure target tracking scaling policies on the Auto Scaling group and set the instance warmup period to 15 seconds to ensure the group continuously adds new instances during the spike.
- ESubmit a support ticket to AWS to pre-warm the Network Load Balancer (NLB) prior to the scheduled device update windows to prevent dropped requests.