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.

HardTechnical
79 practiced
Describe how to achieve 'effectively-once' semantics when writing from Flink to Kafka and to an RDBMS that does not support distributed transactions. Discuss use of write-ahead logs, outbox pattern, idempotent upserts, and coordination with Flink checkpoints to ensure consistency and recoverability.
MediumTechnical
74 practiced
Sketch an architecture to provide end-to-end exactly-once processing for the pipeline: Kafka source -> Flink processing -> S3 Parquet sink. Account for Flink checkpointing, Kafka transactional consumption, and atomic file commits to S3. Explain assumptions, limitations, and how you would validate correctness.
HardSystem Design
82 practiced
Design an append-only, replayable event store for compliance audits that must retain immutable events for 7 years, support efficient replay by time range and partition, and allow redaction when legally required. Discuss storage formats, partitioning/indexing strategies, immutability guarantees, encryption-at-rest, and replay performance.
MediumTechnical
84 practiced
Using a streaming SQL engine (Flink SQL or ksqlDB), write a query to compute user sessions given a streaming events table with schema: events(user_id STRING, event_time TIMESTAMP, event_type STRING). Define sessions by inactivity gaps of 30 minutes; output session_id, user_id, session_start, session_end, and event_count. Include watermark usage in your query.
EasyTechnical
119 practiced
Describe tumbling, sliding, and session windows in stream processing. For each window type give one concrete analytics example (e.g., per-minute counts, moving averages, user sessions), and explain how window boundaries and late arrivals are handled differently.

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.