Caching Strategies and In Memory Storage Questions
Understanding caching mechanisms (HTTP caching, application-level caching with Redis/Memcached). Cache invalidation strategies, TTL, and when to cache. Performance implications.
MediumTechnical
0 practiced
Describe reliable testing strategies for cache behavior: how to write unit tests, integration tests against a real Redis instance, deterministic TTL/time control in tests, mocking approaches, and how to avoid flakiness caused by eviction, background persistence, or network variability in CI pipelines.
MediumTechnical
0 practiced
You have a workload where 90% of traffic targets a small set of hot keys and many cold keys. How would you configure Redis eviction and memory policies to improve overall hit rate while preventing OOM and protecting origin? Discuss maxmemory-policy choices and practical techniques to isolate or shield hot keys.
HardTechnical
0 practiced
Design a low-latency in-memory cache for fraud detection rules with requirements: read latency <2ms, updates must propagate and take effect globally within 500ms, and emergency rule revokes must be immediate. Explain architecture for distribution, propagation, ordering, atomicity of updates, and how to handle rollbacks/consistency.
MediumTechnical
0 practiced
Show how to efficiently fetch 1000 keys from Redis using Python (redis-py) while minimizing network round trips and controlling memory usage. Provide example code patterns using pipeline and mget, explain when to use each, and discuss pitfalls such as blocking commands and timeouts.
EasyTechnical
0 practiced
Explain what a cache stampede (thundering herd) is, why it can overwhelm origin services, and list common mitigations such as mutex locks for recomputation, request coalescing (singleflight), randomized TTLs, early recompute, and pre-warming. Provide a short example of when randomized TTLs reduce stampedes.
Unlock Full Question Bank
Get access to hundreds of Caching Strategies and In Memory Storage interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.