SOA-C02 Question 63
Single answerYour team is working on an e-commerce application hosted on AWS. The application experiences high read latency on frequently accessed product data stored in an Amazon RDS database. To reduce the latency and offload the database, you decide to implement caching. Which of the following is the MOST effective solution?
- A
Use Amazon ElastiCache with Redis to cache frequent queries and reduce the load on the RDS database.
- B
Increase the instance size of the Amazon RDS database to handle more read requests efficiently.
- C
Enable Amazon RDS Read Replicas to distribute read traffic across multiple instances.
- D
Use Amazon S3 to store static product data and query it instead of the RDS database.
Show answer and explanation
Correct answer: A
Explanation
Caching frequently accessed data using Amazon ElastiCache with Redis is the most effective solution for reducing read latency and offloading the database. It allows storing the results of frequent queries in memory, enabling faster access and reducing the load on the primary database. Other options either do not effectively address the problem or are not cost-efficient.
- A. Correct.
This is the correct answer. Amazon ElastiCache with Redis is a managed caching solution that can be used to cache frequent database queries, significantly reducing database read latency and offloading the RDS instance.
- B. Incorrect.
While increasing the RDS instance size might temporarily improve performance, it does not address the root issue of high read latency due to repeated queries. Additionally, this approach is less cost-efficient than caching.
- C. Incorrect.
RDS Read Replicas can help distribute read traffic but are not as efficient in reducing latency for frequently accessed data compared to a caching solution like ElastiCache.
- D. Incorrect.
Amazon S3 is suitable for storing static assets such as images or files, not dynamic product data that depends on database queries. This option does not address the scenario's requirements.