Interview practice question
Testing caching behaviour
Backend Engineering · Testing · Intermediate
You added a cache in front of a slow product service. How would you test it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Hit: second call doesn't reach backend.
- Miss and population.
- Invalidation on update.
- TTL expiry with controllable clock.
- Behaviour when cache unavailable.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.