All quizzes
Free quiz · 20 questions in the bank

Caching Strategies quiz

Test your Caching Strategies knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is "stale-while-revalidate" as a caching strategy?

Questions in this quiz
  1. What is "stale-while-revalidate" as a caching strategy?
  2. What does it mean for a caching strategy to trade "consistency" for "availability/performance," in the context of the wider distributed-systems consistency-vs-latency tradeoff?
  3. What is the general tradeoff between cache TTL length and data staleness vs. cache effectiveness?
  4. What is the difference between caching at the HTTP/CDN layer (e.g. `Cache-Control` headers) versus an in-memory application-level cache (e.g. Redis, Memcached)?
  5. What is a Content Delivery Network (CDN) cache, and why does it reduce latency for geographically distant users?
  6. What is an LRU (Least Recently Used) eviction policy?
  7. What is the general performance benefit that most caching strategies are ultimately trying to achieve?
  8. What is the "cache-aside" (lazy-loading) pattern?
  9. Why is choosing a good cache key important, and what commonly goes wrong with poorly-designed cache keys?
  10. What is a Time-To-Live (TTL) in caching?
  11. What is the difference between "write-through" and "write-back" (write-behind) caching strategies?
  12. What is memoization, and how does it relate to general caching strategies?
Gaps to close?
Read the curated Caching Strategies notes — core concepts, patterns, interview prep.
Caching Strategies notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web