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?
- AEdit the RDS for MySQL cluster by adding a cache node. Configure the cache endpoint instead of the cluster endpoint in the application.
- BCreate an Amazon ElastiCache for Redis cluster. Update the application code to use the ElastiCache for Redis cluster endpoint. (correct answer)
- CCreate 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.
- DConfigure 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.
Reveal answer & explanationHide answer
The correct answer is B. Option B: Create an Amazon ElastiCache for Redis cluster. Update the application code to use the ElastiCache for Redis cluster endpoint.
Explanation
Amazon ElastiCache provides in-memory caching (Redis/Memcached) to reduce latency and offload the database.