Cache Fundamentals & Design Goals Quiz

Q1. EASY: Which of the following best describes temporal locality in the context of caching?




Q2. EASY: Which of the following is NOT a recognized category of cache miss?




Q3. EASY: In caching, what does the acronym LRU stand for?




Q4. EASY: Memcached and Redis are primarily used as:




Q5. EASY: A cache hit ratio of 90% means that:




Q6. MEDIUM: Which cache write strategy ensures that data is written to main memory at the same time it is written to the cache?




Q7. MEDIUM: What is the primary benefit of using a CDN (Content Delivery Network) for caching web content?




Q8. MEDIUM: A certain cache has a 95% hit rate, a 1 ns hit latency, and a 50 ns miss penalty. Approximately what is the average memory access time (AMAT)?




Q9. MEDIUM: Which cache eviction algorithm uses multiple lists to track both recency and frequency of access, adapting its behavior to the workload?




Q10. MEDIUM: What is an effective way to mitigate a cache stampede (thundering herd) when a highly requested cached item expires?




Q11. MEDIUM: What is a potential drawback of storing cache entries in a compressed form?




Q12. HARD: If a single cache key becomes extremely hot (receiving a huge fraction of traffic) in a distributed cache, what is one way to avoid overloading the cache node responsible for that key?




Q13. HARD: In a multi-CPU system with each core having its own cache, what problem can arise with a write-back cache if one core updates a data item in its cache?




Q14. HARD: A consistently high number of evictions per second in a cache is likely a sign of what?




Q15. HARD: Why do cache performance metrics often include latency percentiles (e.g., p99) instead of just average latency?




system-design