Cache Integration Patterns Quiz

Q1. EASY: Which of the following is a drawback of using only client-side (local) caches compared to a distributed cache?




Q2. EASY: In the cache-aside (lazy loading) pattern, what happens when an application encounters a cache miss?




Q3. EASY: How does a read-through cache handle data retrieval on a cache miss?




Q4. EASY: In a write-through caching strategy, what is a key effect on write operations?




Q5. EASY: What is the primary difference between lazy loading (cache-aside) and eager loading (cache warming) in caching strategies?




Q6. MEDIUM: Which of the following is a common pitfall when using the cache-aside pattern?




Q7. MEDIUM: What is a potential drawback of the write-around caching pattern?




Q8. MEDIUM: TTL-based cache invalidation vs. event-driven invalidation – which statement correctly contrasts them?




Q9. MEDIUM: A Content Delivery Network (CDN) that fetches content from the origin on a cache miss is an example of which caching strategy?




Q10. MEDIUM: Amazon DynamoDB Accelerator (DAX) is an example of which type of caching integration pattern for database queries?




Q11. MEDIUM: What is a recommended approach to mitigate a cache stampede (dog-pile effect) when many clients request the same item that just expired?




Q12. HARD: In a write-behind caching scenario, what is a key risk and how can it be addressed?




Q13. HARD: Netflix's EVCache (built on Memcached and used across AWS regions) primarily replicates cached data across multiple zones for what benefit?




Q14. HARD: Which metric would be most useful for monitoring a write-behind cache's health in terms of pending writes to the database?




Q15. HARD: What does a high stale-hit ratio indicate in a caching system's metrics?




system-design