InterviewStack.io LogoInterviewStack.io

Advanced Caching and Data Pipeline Design Questions

Distributed caching, cache coherency, specialized stores (search engines, column stores, time-series databases). Data pipeline architecture: batch processing, stream processing, ETL design. Understanding Lambda and Kappa architectures.

EasyTechnical
36 practiced
A product team asks whether to use Elasticsearch or relational DB indexes for a new text-search feature with high update rates. Describe the engineering trade-offs, indexing latency, query expressiveness, and caching interactions you would evaluate to make a recommendation for fast search across millions of documents.
EasyTechnical
48 practiced
You observe stale reads from a cache after updates to the primary database (e.g., product price updates). List practical approaches to avoid stale data in caches and discuss pros/cons: cache invalidation (synchronous/asynchronous), time-based TTLs, versioned keys, write-through/write-back, and read-your-writes guarantees.
MediumSystem Design
46 practiced
Design a streaming pipeline that uses Kafka for ingestion and Apache Flink (or equivalent) for sessionization and aggregations, then writes results to ClickHouse for analytics queries. Specify how to achieve fault tolerance, windowing/session semantics, and state management; discuss delivery semantics (at-least-once vs exactly-once) and their impact on downstream storage.
HardTechnical
48 practiced
Discuss cache coherence models for distributed caches: invalidation-based, update-based, lease-based, and version-vector approaches. For each model, analyze scaling behavior, network overhead, stale-read windows, and suitability for read-heavy vs write-heavy systems.
HardSystem Design
58 practiced
Design a globally distributed cache that provides low read latency for users worldwide and eventual consistency. The system should support 100M keys, 100k writes/sec, and prefer read-local semantics. Describe partitioning, replication between regions, conflict resolution, cache warming, and acceptable consistency models.

Unlock Full Question Bank

Get access to hundreds of Advanced Caching and Data Pipeline Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.