A corporate payroll provider is launching a self-service year-end tax document portal. On the day tax forms are released, the portal expects an immediate traffic spike from requests per second to requests per second. The application consists of a read-heavy reporting dashboard hosted on an Auto Scaling Group of Amazon EC2 instances behind an Application Load Balancer (ALB). The dashboard queries an Amazon RDS for PostgreSQL database in a Multi-AZ deployment. Which two actions should the solutions architect recommend to optimize performance and scalability during this spike?
- Contact AWS Support to pre-warm the Application Load Balancer to the expected traffic rate of requests per second.Answer
- Create Amazon RDS read replicas and configure the application to send read-heavy dashboard queries to the read replica endpoints.Answer
- CDirect reporting dashboard queries to the standby DB instance endpoint in the secondary Availability Zone of the RDS Multi-AZ deployment.
- DRely on the default automatic scaling of the Application Load Balancer to handle the spike and configure target tracking scaling policies.
- EConfigure the EC2 Auto Scaling Group with a -second cooldown period to trigger rapid scale-out events as traffic begins to spike.
Answer
Contact AWS Support to pre-warm the Application Load Balancer to the expected traffic rate, and create Amazon RDS read replicas to handle the read-heavy dashboard queries.
To handle a sudden, massive traffic spike (from to requests per second), the Application Load Balancer must be pre-warmed by AWS Support because its automatic scaling cannot react instantly. To handle the read-heavy load on the database layer, RDS read replicas must be used since the secondary standby DB instance in a Multi-AZ deployment is passive and cannot serve read traffic.
Step-by-Step Solution
Key Concept
Handling sudden flash traffic spikes requires pre-warming the load balancing layer and utilizing read replicas to scale read-heavy database workloads.
Estimated Time:2m 0s