InterviewStack.io LogoInterviewStack.io

Batch and Stream Processing Questions

Covers design and implementation of data processing using batch, stream, or hybrid approaches. Candidates should be able to explain when to choose batch versus streaming based on latency, throughput, cost, data volume, and business requirements, and compare architectural patterns such as lambda and kappa. Core stream concepts include event time versus processing time, windowing strategies such as tumbling sliding and session windows, watermarks and late arrivals, event ordering and out of order data handling, stateful versus stateless processing, state management and checkpointing, and delivery semantics including exactly once and at least once. Also includes knowledge of streaming and batch engines and runtimes, connector patterns for sources and sinks, partitioning and scaling strategies, backpressure and flow control, idempotency and deduplication techniques, testing and replayability, monitoring and alerting, and integration with storage layers such as data lakes and data warehouses. Interview focus is on reasoning about correctness latency cost and operational complexity and on concrete architecture and tooling choices.

HardSystem Design
74 practiced
Design a multi-tenant streaming platform that enforces tenant isolation, per-tenant quotas (throughput and storage), and fair scheduling while minimizing cost. Discuss namespace design, resource quotas, logical vs physical isolation, and billing implications.
HardSystem Design
80 practiced
A client requires GDPR 'right to be forgotten' across streaming ingestion and historical storage. Design pipeline changes to support deletion requests end-to-end: include tombstones, compaction, propagation to downstream systems, and auditing for compliance. Discuss trade-offs and limitations.
EasyTechnical
84 practiced
Explain Change Data Capture (CDC): what it is, common uses (e.g., streaming OLTP changes to analytic stores), and pros/cons of CDC vs batch extracts. What properties of the source DB affect CDC design?
MediumSystem Design
81 practiced
Design a pipeline for a client who needs hourly aggregated metrics stored in a data warehouse and also a near-real-time dashboard with sub-30s latency. Outline components, whether you'd use lambda or kappa, sources, stream engine, storage, and why. Include trade-offs in cost and operations.
EasyTechnical
73 practiced
Define event time and processing time in streaming systems. Provide an example where event time and processing time differ (e.g., mobile client offline then reconnects), explain the practical consequences for aggregation and joins, and how you would design to use event time correctly.

Unlock Full Question Bank

Get access to hundreds of Batch and Stream Processing interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.