InterviewStack.io LogoInterviewStack.io

Caching and Connection Management Questions

The layer between application and database: cache strategies (cache-aside, write-through, invalidation) for query results, connection pooling and lifecycle, and efficient application-to-database interaction. Covers reducing database load, avoiding pool exhaustion, and the consistency trade-offs caching introduces. Bridges application performance and database health.

HardSystem Design
86 practiced

Design a distributed LRU caching layer for a high-throughput, multi-region data ingestion pipeline. Discuss trade-offs between per-node LRU and global LRU, how consistent hashing can help scale caches, replication and eviction correctness, cache warm-up strategies, and failure modes when nodes are lost.

EasyTechnical
80 practiced

A scheduled ETL job suddenly fails with a database connection error. What are the first checks you would perform to determine whether the issue is credentials, network access, database availability, connection limits, or a client-side configuration problem?

HardTechnical
105 practiced

Design a high-throughput rate-limiting system for API requests that enforces per-user quotas (for example, 100 requests/minute) with low latency and the ability to handle millions of requests per second. Compare implementing counters in the primary relational database versus Redis (in-memory) and discuss token-bucket algorithms, Lua scripts for atomic operations, TTL-based sliding windows, and consistency/accuracy trade-offs in a distributed environment.

MediumSystem Design
95 practiced

Design a Redis-backed microservice to reduce DB hits for membership checks (50k QPS) and distinct counts (20k QPS). Specify which Redis data structures or modules you would use (e.g., PFADD/PFCOUNT, RedisBloom), how to size them, eviction and expiry strategies for time-windowed analytics, and consistency concerns (e.g., failover, replication lag).

That is every published Caching and Connection Management question for Data Engineer so far. Browse the other topics in this category, or practice this one interactively.