Soru

Zorluk: OrtaImplementing Auto Scaling and Fault Tolerance

A digital ticketing platform's reservation service runs on Amazon EC2 instances within an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The instances are deployed in private subnets and require 6 minutes to retrieve static configuration assets and initialize the application server. During unannounced concert announcements, the platform experiences sudden flash traffic spikes, leading to HTTP 503 Service Unavailable errors on the ALB before new instances are fully operational. Furthermore, outbound API calls to third-party payment gateways fail during an outage of a single Availability Zone because all private subnets route outbound traffic through a single NAT Gateway. Which combination of actions should a solutions architect take to improve the scalability and fault tolerance of the platform? (Select TWO.)

  1. Deploy a NAT Gateway in each Availability Zone used by the Auto Scaling group and update the private subnet route tables to route outbound traffic through the NAT Gateway in the same Availability Zone.Cevap
  2. Configure an Auto Scaling group warm pool with instances in a Stopped state to maintain pre-initialized instances that can quickly transition to active service.Cevap
  3. C
    Reduce the default cooldown period of the Auto Scaling group to 60 seconds to allow the group to quickly launch subsequent instances during sudden traffic spikes.
  4. D
    Deploy a single NAT Gateway in a shared public subnet across the primary Availability Zone and configure all private subnets to route outbound traffic to it to simplify network administration.
  5. E
    Request AWS Support to pre-warm the Application Load Balancer before every anticipated flash traffic spike to ensure it scales instantly without dropping requests.

Cevap

Deploy a NAT Gateway in each Availability Zone used by the Auto Scaling group and update the route tables, and configure an Auto Scaling group warm pool with instances in a Stopped state.
Deploying a NAT Gateway in each Availability Zone ensures that outbound traffic routes locally and eliminates cross-AZ single points of failure, preserving fault tolerance. Configuring an Auto Scaling group warm pool with stopped instances maintains pre-initialized instances that bypass the 6-minute application bootstrap time during a scaling event, resolving the Application Load Balancer HTTP 503 errors during flash traffic spikes.

Adım Adım Çözüm

1
Analyze the scaling issue caused by the 6-minute bootstrapping delay.
Identify that a warm pool with pre-initialized instances in a Stopped state allows instances to bootstrap ahead of time and scale out in a fraction of the time, preventing HTTP 503 errors.
Resolves the long startup time of the custom initialization script during flash traffic spikes.
2
Analyze the fault tolerance issue with outbound traffic.
Deploy a NAT Gateway in each Availability Zone and associate them with the respective private subnet route tables.
Eliminates the single point of failure of a single NAT Gateway and ensures that an outage in one Availability Zone does not impact outbound API calls from other zones.

Anahtar Kavram

Auto Scaling Warm Pools and Multi-AZ NAT Gateway Redundancy
Bu soruyu puanla