Cache Consistency & Invalidation Quiz

Q1. EASY: Which statement accurately describes eventual consistency in a distributed cache?




Q2. EASY: What is a primary benefit of using a TTL (time-to-live) for cache entries?




Q3. EASY: Which of the following is an example of active cache invalidation?




Q4. EASY: What is a common strategy to prevent a cache stampede (thundering herd) when a popular item expires?




Q5. EASY: In a write-through caching strategy, what happens when an application updates a cached data item?




Q6. MEDIUM: Which metric specifically measures the delay between an update to the source data and the cache reflecting that update?




Q7. MEDIUM: What is a likely consequence of setting an extremely short TTL (time-to-live) for cache entries?




Q8. MEDIUM: What is an advantage of active cache invalidation (e.g., via pub/sub) compared to relying solely on TTL expiration?




Q9. MEDIUM: How does a 'stale-while-revalidate' strategy help in a caching system?




Q10. MEDIUM: Which of the following is a risk associated with using a write-back (write-behind) cache under concurrent write conditions?




Q11. MEDIUM: What is a common approach to validate that a cached entry is still fresh using versioning?




Q12. HARD: In a distributed cache invalidation system using a message bus, which failure scenario can lead to caches serving stale data?




Q13. HARD: In a write-back caching scenario with multiple clients updating the same data concurrently, what potential consistency issue can occur?




Q14. HARD: What is a trade-off when using strong consistency for distributed caches across multiple nodes?




Q15. HARD: If a caching system reports a fresh-hit ratio of 50%, what does this imply?




system-design