Cache hit rate looks good, but users are seeing stale or repetitive answers. How would you respond?

Instruction: Explain how you would debug a cache that looks efficient but degrades experience. At 09:00 cache key K stores policy v2: limit=10. At 09:05 v3 becomes authoritative: limit=5. K's TTL expires at 10:00, and the 09:06 answer still says 10. Specify containment, invalidation and the regression assertion.

Context: Tests how the candidate diagnoses the problem, chooses the safest next step, and reasons through recovery. Explain how you would debug a cache that looks efficient but degrades experience.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

I would treat the stale answers as a correctness incident and disable or bypass the affected cache layer while I investigate. I would preserve enough scoped metadata to identify which key and source version produced each bad response...

Your preparation path

Work through these questions in order. Read the answer aloud, then explain it in your own words.

Related Questions