SAP-C02 Question 15
Select 2A company is hosting a multi-tier application on AWS using an Auto Scaling group for the application servers and an RDS database instance for the backend. The company has been experiencing high latency during traffic spikes, especially during product launches. As a solutions architect, you need to recommend a cost-effective solution to reduce latency and handle traffic spikes efficiently. Which of the following solutions should you implement?
- A
Add an Amazon ElastiCache cluster in front of the RDS database to cache frequently queried data.
- B
Enable read replicas for the RDS database to distribute read traffic during spikes.
- C
Increase the instance size of the RDS database to handle more concurrent connections.
- D
Implement AWS Global Accelerator to optimize network performance for application users.
- E
Configure a Pre-Warmed AWS Lambda function to process application requests during traffic spikes.
Show answer and explanation
Correct answers: A, B
Explanation
To handle traffic spikes efficiently and reduce latency, the combination of Amazon ElastiCache for caching frequently accessed data and read replicas for distributing read traffic is a cost-effective and scalable solution. These approaches reduce the load on the RDS database and improve overall application performance without requiring costly vertical scaling. Other options, such as increasing the instance size or using AWS Global Accelerator, are either less effective or irrelevant to the specific problem described in the scenario.
- A. Correct.
Adding an Amazon ElastiCache cluster reduces latency for frequently accessed data by caching it, thus reducing the load on the RDS database and improving application performance during traffic spikes.
- B. Correct.
Enabling read replicas offloads read traffic from the primary RDS database, allowing it to handle more write operations and significantly reducing latency during high traffic periods.
- C. Incorrect.
Increasing the instance size of the RDS database can temporarily help with handling more connections, but it is not the most cost-effective or scalable solution to handle traffic spikes.
- D. Incorrect.
While AWS Global Accelerator improves network performance by routing traffic to the nearest AWS region, it does not directly address latency issues caused by database or application server load during traffic spikes.
- E. Incorrect.
Pre-Warming AWS Lambda functions is unrelated to the architecture described in the scenario and would not help in reducing latency for this application.