DVA-C02 Question 390
Single answerYour application uses an Amazon RDS database to fetch frequently accessed, read-only data. The application is experiencing high latency due to repeated database queries, and you want to improve performance by integrating a caching layer. Which AWS service would be the most appropriate choice to implement this caching solution?
- A
Amazon ElastiCache
- B
AWS Lambda
- C
Amazon S3
- D
Amazon DynamoDB
Show answer and explanation
Correct answer: A
Explanation
Amazon ElastiCache is the best choice for implementing a caching solution in this scenario because it provides an in-memory data store, reducing the need to query the database repeatedly for the same data. This leads to improved application performance and reduced latency. Other options like AWS Lambda and Amazon S3 are not designed for caching, and Amazon DynamoDB is a database service, not a caching layer.
- A. Correct.
Amazon ElastiCache is specifically designed to provide an in-memory caching layer, which is ideal for reducing database query latency by storing frequently accessed data in memory.
- B. Incorrect.
AWS Lambda is a serverless compute service and is not designed for caching purposes. It is used for running code in response to events, not for reducing database query latency.
- C. Incorrect.
Amazon S3 is an object storage service, and while it can store data, it is not suitable for in-memory caching to address database query latency.
- D. Incorrect.
Amazon DynamoDB is a NoSQL database service, not specifically a caching solution. While it is fast, it is not designed to act as a caching layer for RDS databases.