You added a cache in front of the database for product cards, and users started complaining that they see outdated prices. How should you set up caching to avoid this?
~4 min by voice
How to approach it
They're checking whether the candidate understands how a cache drifts from the source of truth: caching strategies, invalidation, races between concurrent reads and writes, and whether they can tie the technical solution to the business requirement for data freshness.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.