🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Caching and CDNs: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. In cache-aside, what happens on a cache MISS?
  2. Q2. What does a TTL do?
  3. Q3. Which eviction policy removes the item that hasn't been used for the longest time?
  4. Q4. What is a CDN mainly used for?
  5. Q5. Which write strategy is fastest but risks losing data if the cache crashes?
  6. Q6. If 90% of reads hit the cache, how much read load reaches the database compared with no cache?
  7. Q7. What does this print? (code)
  8. Q8. A course title changes in the database. What is a simple way to stop users seeing the old title from the cache?
  9. Q9. What is a cache stampede?
  10. Q10. Which data should NOT be served from a cache that may be a few minutes stale?