AWS Certified Database – Specialty — Question 197
A media company hosts a highly available news website on AWS but needs to improve its page load time, especially during very popular news releases. Once a news page is published, it is very unlikely to change unless an error is identified. The company has decided to use Amazon ElastiCache.
What is the recommended strategy for this use case?
Answer options
- A. Use ElastiCache for Memcached with write-through and long time to live (TTL)
- B. Use ElastiCache for Redis with lazy loading and short time to live (TTL)
- C. Use ElastiCache for Memcached with lazy loading and short time to live (TTL)
- D. Use ElastiCache for Redis with write-through and long time to live (TTL)
Correct answer: D
Explanation
The correct answer is D, as using ElastiCache for Redis with write-through and a long TTL is optimal for a news website where articles are seldom updated after publication. This approach ensures that the cache is kept up to date while reducing load times. Options A and C utilize Memcached, which lacks persistence features, making them less suitable for this scenario, and option B's use of lazy loading with a short TTL may lead to outdated content being served during high traffic periods.