A company is planning to launch a promotion that will cause an immediate, massive traffic spike (by a factor of 100) to its web application. The application's architecture consists of an Application Load Balancer (ALB), an Auto Scaling group of EC2 instances, and an Amazon RDS for MySQL Multi-AZ DB instance. Which two actions should a solutions architect recommend to optimize performance and ensure the application scales effectively to meet this demand?
- Contact AWS Support to pre-warm the Application Load Balancer (ALB) before the event.Answer
- BConfigure the application to route read queries to the standby instance of the RDS Multi-AZ DB instance.
- Deploy Amazon RDS Read Replicas and modify the application to direct read traffic to the read replicas.Answer
- DRely on the Application Load Balancer's default scaling behavior to handle the traffic spike dynamically.
- EConfigure the Auto Scaling group cooldown period to be shorter than the EC2 instance boot time to accelerate scaling.
Answer
Contacting AWS Support to pre-warm the Application Load Balancer (ALB) and deploying Amazon RDS Read Replicas to offload read traffic are the correct actions to optimize performance and scalability.
Pre-warming the Application Load Balancer ensures it is configured with enough capacity to handle the sudden surge without dropped connections. Creating Amazon RDS Read Replicas allows the database to offload read queries from the primary instance, scaling the database tier horizontally.
Step-by-Step Solution
Key Concept
Scaling database reads using Read Replicas and managing sudden load balancer traffic spikes via pre-warming.