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.

MediumSystem Design
74 practiced
You operate a streaming feature store that must meet a 500ms freshness SLA for online predictions. Describe an end-to-end architecture including ingestion, materialized feature computation (stateless and stateful), storage choices for low-latency reads, caching strategies, and how you'd ensure correctness and operational scalability under spikes.
HardTechnical
83 practiced
You need to deliver 1M inference requests/day at minimum cost with 99.9% uptime. Compare serverless (e.g., Lambda), container-based provisioned clusters, and batched GPU inference options. Propose a cost-optimized architecture that meets latency SLOs, including autoscaling rules, cold-start mitigation, and model compression/quantization options.
MediumTechnical
84 practiced
Explain checkpoints and savepoints in streaming frameworks (e.g., Apache Flink). How do they enable fault tolerance and replayability for model retraining? Discuss trade-offs between checkpoint frequency, state size, storage backend, and recovery time.
MediumSystem Design
65 practiced
Design an Apache Flink job that computes per-user aggregates (e.g., clicks per 5-minute tumbling window) when events can be up to 2 minutes late. Describe partitioning strategy, watermark generation, allowed-lateness, state backend choice, checkpointing cadence, and how you'd scale the job to handle increasing traffic.
EasyTechnical
77 practiced
Define event time versus processing time in a stream processing system. Give an example where using processing time instead of event time leads to incorrect ML feature computation (e.g., rolling counts, sessionization). Explain the correction strategy (watermarks, event-time windows, and handling clock skew).

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.