SAA-C03 Question 107
Single answerA company is running a high-traffic e-commerce website and notices that their application is experiencing latency issues when retrieving frequently accessed product details from an Amazon RDS database. The company wants to implement a caching solution to improve performance and offload read requests from the database. Which caching strategy would be the most appropriate in this scenario?
- A
Implement Amazon ElastiCache using Memcached to cache frequently accessed product details.
- B
Enable Amazon RDS Read Replicas to serve read traffic for frequently accessed data.
- C
Use Amazon S3 for storing and caching product details to reduce database load.
- D
Implement Amazon CloudFront to cache database queries closer to the users.
Show answer and explanation
Correct answer: A
Explanation
The best caching strategy for reducing latency and offloading read requests from a database is to use an in-memory caching solution like Amazon ElastiCache. Memcached is particularly effective for use cases that require simple, key-value data storage and high-speed retrieval, such as caching product details. Other options, like RDS Read Replicas or CloudFront, are not designed for this specific use case, while S3 is a storage solution and not a caching service.
- A. Correct.
This is the correct option. Amazon ElastiCache using Memcached is a high-performance, in-memory caching service that is ideal for reducing database load by caching frequently accessed data, such as product details in this case.
- B. Incorrect.
While RDS Read Replicas can help with scaling read traffic, they are not specifically designed for caching. This would still require database queries and does not provide the same performance improvements as an in-memory caching solution.
- C. Incorrect.
Amazon S3 is a storage service and is not designed for dynamic in-memory caching of frequently accessed database data. It is not suitable for this use case.
- D. Incorrect.
Amazon CloudFront is a content delivery network (CDN) and is used to cache static content like images or videos closer to users, but it cannot be used to cache database queries or dynamic product details.