Q27 — AWS DVA-C02 Ch.3
Question 27 of 100 | ← Chapter 3
A developer has built an e-commerce application that stores product pricing data in Amazon DynamoDB and uses Amazon ElastiCache in front of it. Product prices change frequently. Sellers have started complaining that after updating a product price, the updated price does not appear in the product listing.
- A. The cache is not invalidated when item prices are changed. ✓
- B. Retrieving item prices through a write-through ElastiCache cluster.
- C. The DynamoDB table's read capacity quota is insufficient.
- D. The DynamoDB table's write capacity quota is insufficient.
Correct Answer: A. The cache is not invalidated when item prices are changed.
Explanation
The issue is likely caused by the cache not being invalidated when item prices change. ElastiCache is a caching service that stores previously retrieved data. If product prices are updated in DynamoDB but the cached data is not updated or invalidated in a timely manner, sellers will continue to see stale prices from the cache in the product listing. Solutions may include updating the cache synchronously with DynamoDB writes or implementing cache expiration policies to ensure timely refreshes. 【Lantern Certification provided by: swufelp1999】