AWS Certified Developer – Associate (DVA-C02) — Question 469
A developer is working on an ecommerce application that stores data in an Amazon RDS for MySQL cluster. The developer needs to implement a caching layer for the application to retrieve information about the most viewed products.
Which solution will meet these requirements?
Answer options
- A. Edit the RDS for MySQL cluster by adding a cache node. Configure the cache endpoint instead of the cluster endpoint in the application.
- B. Create an Amazon ElastiCache for Redis cluster. Update the application code to use the ElastiCache for Redis cluster endpoint.
- C. Create an Amazon DynamoDB Accelerator (DAX) cluster in front of the RDS for MySQL cluster. Configure the application to connect to the DAX endpoint instead of the RDS endpoint.
- D. Configure the RDS for MySQL cluster to add a standby instance in a different Availability Zone. Configure the application to read the data from the standby instance.
Correct answer: B
Explanation
Amazon ElastiCache for Redis is a fully managed in-memory data store designed to provide high-performance caching for databases like Amazon RDS for MySQL. Amazon DynamoDB Accelerator (DAX) is a cache designed specifically for DynamoDB and cannot be used in front of RDS. A standby RDS instance is used for high availability and disaster recovery, not for serving read traffic or caching.