Redis / Cache Stampede Interview Questions 2026
Published July 22, 2026 · Updated July 22, 2026
17 Redis / Cache Stampede interview questions from Amazon, TCS, General, PhonePe, Uber, Grab and more. Real questions from Technical, System Design, and HR rounds.
17 questions
Companies: Amazon, TCS, General, PhonePe…
All Redis / Cache Stampede Questions
Amazon
Medium
Screening round
3-7 years
Explain Redis pub/sub vs Redis Streams. When would you use each?
↑ 53 upvotes · 41 engineers asked this · SDE2
General
Hard
Scenario round
3-7 years
Your Redis sorted set is used for a leaderboard with 10 million players. ZRANGEBYSCORE queries are slow. How do you optimize?
↑ 52 upvotes · 40 engineers asked this · SDE2
Amazon
Medium
Screening round
3-6 years
What is Redis pipelining and how does it differ from transactions? When should you use each?
↑ 51 upvotes · 39 engineers asked this · SDE2
Amazon
Hard
Technical round
3-6 years
Redis is using 80% of available memory. Your application isn't caching more data than before. What could cause Redis memory growth?
↑ 50 upvotes · 38 engineers asked this · SDE2
General
Medium
Technical round
2-5 years
You store user sessions in Redis with 2-hour TTL. Users complain they're logged out after 30 minutes of browsing. What's likely wrong?
↑ 49 upvotes · 37 engineers asked this · SDE2
Amazon
Hard
Technical round
4-8 years
Implement a distributed lock using Redis. What can go wrong with a naive SETNX approach?
↑ 48 upvotes · 36 engineers asked this · SDE2
TCS
Hard
Technical round
2-5 years
Your application uses Redis KEYS * command in production to list all cache keys. The application hangs for several seconds periodically. Why?
↑ 47 upvotes · 35 engineers asked this · SDE2
Amazon
Medium
Screening round
3-6 years
Explain Redis persistence options: RDB vs AOF. Your service can tolerate losing at most 1 second of data. Which do you configure?
↑ 46 upvotes · 34 engineers asked this · SDE2
Amazon
Hard
Scenario round
4-7 years
You're using Redis as a session store. A Redis failover takes 30 seconds. During this time, all users are logged out. How do you make sessions resilient to Redis failures?
↑ 45 upvotes · 33 engineers asked this · SDE2
Amazon
Hard
Scenario round
3-7 years
Your Redis cache stores 100,000 keys. At midnight, all keys expire simultaneously (same TTL set when deployed). This causes a thundering herd that crashes your database. How do you prevent this?
↑ 44 upvotes · 32 engineers asked this · SDE2
Amazon
Medium
Screening round
3-6 years
What is Redis Pub/Sub and how does it differ from using Redis as a message queue with Lists?
↑ 26 upvotes · 4 engineers asked this · SDE2
Amazon
Medium
Screening round
3-6 years
How does Redis handle persistence? What are the trade-offs between RDB and AOF?
↑ 25 upvotes · 3 engineers asked this · SDE2
Amazon
Hard
System Design round
3-6 years
Your Redis cluster goes down. How do you design your application so it degrades gracefully?
↑ 24 upvotes · 52 engineers asked this · SDE2
Amazon
Medium
Screening round
2-5 years
Explain Redis data structures and give a use case for each: String, Hash, List, Set, Sorted Set.
↑ 23 upvotes · 51 engineers asked this · SDE2
Uber
Medium
Technical round
2-5 yearsRedis
You need to track the top 10 most active drivers by trip count, updated in real time. Which Redis data structure fits this, and why not just a plain hash with manual sorting?
↑ 19 upvotes · 11 engineers asked this · SDE2
PhonePe
Medium
Technical round
2-5 yearsRedis
You use Redis to cache OTPs with a 5-minute TTL. How does Redis actually expire keys internally — does it scan the whole keyspace on a timer?
↑ 18 upvotes · 10 engineers asked this · SDE2
Grab
Medium
Technical round
2-5 yearsRedis
How does Redis's GEO command family (GEOADD, GEORADIUS) let you find nearby drivers efficiently, and what data structure underlies it?
↑ 18 upvotes · 9 engineers asked this · SDE2
Practice these questions with AI feedback
Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.
Build my study plan →
Same topic at specific companies
Related topics
Frequently asked questions
Explain Redis pub/sub vs Redis Streams. When would you use each?
Explain Redis pub/sub vs Redis Streams. When would you use each?
Your Redis sorted set is used for a leaderboard with 10 million players. ZRANGEBYSCORE queries are slow. How do you optimize?
Your Redis sorted set is used for a leaderboard with 10 million players. ZRANGEBYSCORE queries are slow. How do you optimize?
What is Redis pipelining and how does it differ from transactions? When should you use each?
What is Redis pipelining and how does it differ from transactions? When should you use each?
Redis is using 80% of available memory. Your application isn't caching more data than before. What could cause Redis memory growth?
Redis is using 80% of available memory. Your application isn't caching more data than before. What could cause Redis memory growth?
You store user sessions in Redis with 2-hour TTL. Users complain they're logged out after 30 minutes of browsing. What's likely wrong?
You store user sessions in Redis with 2-hour TTL. Users complain they're logged out after 30 minutes of browsing. What's likely wrong?