AWS Certified Developer – Associate (DVA-C02) — Question 312
A company has a social media application that receives large amounts of traffic. User posts and interactions are continuously updated in an Amazon RDS database. The data changes frequently, and the data types can be complex. The application must serve read requests with minimal latency.
The application's current architecture struggles to deliver these rapid data updates efficiently. The company needs a solution to improve the application's performance.
Which solution will meet these requirements?
Answer options
- A. Use Amazon DynamoDB Accelerator (DAX) in front of the RDS database to provide a caching layer for the high volume of rapidly changing data.
- B. Set up Amazon S3 Transfer Acceleration on the RDS database to enhance the speed of data transfer from the databases to the application.
- C. Add an Amazon CloudFront distribution in front of the RDS database to provide a caching layer for the high volume of rapidly changing data.
- D. Create an Amazon ElastiCache for Redis cluster. Update the application code to use a write-through caching strategy and read the data from Redis.
Correct answer: D
Explanation
Amazon ElastiCache for Redis is an in-memory data store that supports complex data structures and is ideal for low-latency read operations on rapidly changing data. A write-through caching strategy ensures that cache data is kept up-to-date with the underlying RDS database, resolving the performance bottleneck. Other options are incorrect because DAX is exclusively for Amazon DynamoDB, S3 Transfer Acceleration is used for fast file transfers to S3, and CloudFront is not suited for caching dynamic, highly transactional RDS database queries.