AWS Certified Developer – Associate (DVA-C02) — Question 100
A developer is integrating Amazon ElastiCache in an application. The cache will store data from a database. The cached data must populate real-time dashboards.
Which caching strategy will meet these requirements?
Answer options
- A. A read-through cache
- B. A write-behind cache
- C. A lazy-loading cache
- D. A write-through cache
Correct answer: D
Explanation
The write-through cache strategy ensures that any updates to the data are written to both the cache and the database simultaneously, which supports real-time data availability for dashboards. The other options, such as write-behind and lazy-loading caches, do not guarantee immediate data consistency in the cache, which is essential for real-time updates.