A high-throughput API ingestion service runs on Amazon EC2 instances inside an Auto Scaling group (ASG) deployed across Availability Zones (, , and ). The instances reside in private subnets, and the ASG is placed behind an Application Load Balancer (ALB). The application instances require custom configuration scripts during launch, resulting in a total initialization and bootstrapping time of seconds before they can register as healthy targets. The platform experiences two major operational issues: first, every day at exactly UTC, a scheduled partner integration triggers a massive, instantaneous influx of API requests, causing immediate HTTP (Service Unavailable) errors on the ALB for the first minutes; second, during scaling activities, the ASG frequently launches more instances than required, leading to unnecessary costs. Furthermore, a recent outage in prevented instances in and from making outbound licensing API calls, which are routed through a single NAT Gateway located in . Which combination of actions should a Solutions Architect implement to address these scaling, reliability, and cost issues?
- ADeploy a secondary NAT Gateway in and update the route tables of the private subnets in and to use the new NAT Gateway. Configure a scheduled scaling action to scale out the Auto Scaling group minutes before UTC, and request AWS Support to pre-warm the Application Load Balancer for the anticipated daily spike. Set the default cooldown and instance warmup periods on the Auto Scaling group to seconds.
- Deploy a NAT Gateway in each Availability Zone and update the route tables of each private subnet to direct outbound internet traffic to the NAT Gateway in its own zone. Configure a scheduled scaling action to scale out the Auto Scaling group minutes before UTC, and request AWS Support to pre-warm the Application Load Balancer for the anticipated daily spike. Set the default cooldown and instance warmup periods on the Auto Scaling group to seconds.Cevap
- CDeploy a NAT Gateway in each Availability Zone and update the route tables of each private subnet to direct outbound internet traffic to the NAT Gateway in its own zone. Configure a scheduled scaling action to scale out the Auto Scaling group minutes before UTC, and request AWS Support to pre-warm the Application Load Balancer for the anticipated daily spike. Set the default cooldown and instance warmup periods on the Auto Scaling group to seconds.
- DDeploy a NAT Gateway in each Availability Zone and update the route tables of each private subnet to direct outbound internet traffic to the NAT Gateway in its own zone. Configure a target tracking scaling policy based on the average CPU utilization metric with a target value of , and set the instance warmup time to seconds. Set the default cooldown period to seconds.