Published:
Last updated:

Caching and Redis

Authors
Time yourself:
Your progress:

00:30:00

0%

Filter by difficulty

30 of 30 questions shown

Caching Fundamentals and Patterns

1. When should you add a cache to a system?

Junior
Flag important question
Mark as complete

2. How does the cache-aside pattern work, and where can it fail?

Mid-level
Flag important question
Mark as complete

3. How do cache-aside, read-through, write-through, and write-behind differ?

Mid-level
Flag important question
Mark as complete

Freshness, Memory, and Failure Modes

4. How should you choose TTLs and an invalidation strategy?

Mid-level
Flag important question
Mark as complete

5. How do Redis eviction policies differ, and how do you choose one?

Mid-level
Flag important question
Mark as complete

Free preview complete

You’ve reached the end of the free preview

Get every remaining question and complete answer, plus progress tracking across the full Interview Question Library.

  • 25 more questions and complete answers in this topic
  • Full access to every interview topic
  • Progress tracking and question flags
  • New questions and improvements during your subscription

Full access from

$12/month

No long-term commitment. Cancel whenever you want.

6. How do you prevent a cache stampede?

Mid-levelPaid Question

7. How do you handle negative caching, cache penetration, and hot keys?

SeniorPaid Question

Redis Data Modeling and Use Cases

8. Which Redis data structure should you choose for a given use case?

Mid-levelPaid Question

9. How would you store user sessions in Redis?

Mid-levelPaid Question

10. How would you implement rate limiting with Redis?

SeniorPaid Question

Coordination and Correctness

11. How should a Redis-backed distributed lock be implemented?

SeniorPaid Question

12. What are the differences between atomic commands, transactions, Lua scripts, and pipelining?

Mid-levelPaid Question

Persistence, High Availability, and Scaling

13. When should you use RDB, AOF, both, or no Redis persistence?

Mid-levelPaid Question

14. How do Redis replication, Sentinel, and Redis Cluster differ?

Mid-levelPaid Question

15. What consistency and failure tradeoffs should you expect from Redis?

SeniorPaid Question

Practical Cache Operations

16. What are cache hits, cache misses, and hit ratios?

JuniorPaid Question

17. How do cache expiration and eviction differ?

JuniorPaid Question

18. When would you use a local cache instead of a distributed cache?

JuniorPaid Question

19. What makes a good Redis key?

JuniorPaid Question

20. What should you consider when serializing cached values?

JuniorPaid Question

21. When should you use a Redis string versus a hash?

JuniorPaid Question

22. What is cache warming, and when is it useful?

JuniorPaid Question

23. How would you design a two-level cache?

Mid-levelPaid Question

24. How should Redis clients manage connections, timeouts, and retries?

Mid-levelPaid Question

25. How do you find and fix big or slow Redis keys?

Mid-levelPaid Question

26. How do you measure whether a cache is actually helping?

Mid-levelPaid Question

27. How would you isolate multiple tenants in a shared cache?

SeniorPaid Question

28. How would you design Redis usage across multiple regions?

SeniorPaid Question

29. How do you capacity-plan a Redis deployment?

SeniorPaid Question

30. How do you migrate a Redis key schema without downtime?

SeniorPaid Question