AWS Certified Developer – Associate — Question 33

A developer has built a market application that stores pricing data in Amazon DynamoDB with Amazon ElastiCache in front. The prices of items in the market change frequently. Sellers have begun complaining that, after they update the price of an item, the price does not actually change in the product listing.
What could be causing this issue?

Answer options

Correct answer: A

Explanation

The correct answer is A because if the cache is not invalidated after an item price update, the old price will continue to be served from ElastiCache, leading to discrepancies in the product listing. Option B is incorrect since write-through caching would not retain outdated prices. Options C and D are irrelevant to the cache issue, focusing instead on read or write capacity, which does not address the immediate problem of stale data being displayed.