InterviewStack.io LogoInterviewStack.io

Stream Processing and Event Streaming Questions

Designing and operating systems that ingest, process, and serve continuous event streams with low latency and high throughput. Core areas include architecture patterns for stream native and event driven systems, trade offs between batch and streaming models, and event sourcing concepts. Candidates should demonstrate knowledge of messaging and ingestion layers, message brokers and commit log systems, partitioning and consumer group patterns, partition key selection, ordering guarantees, retention and compaction strategies, and deduplication techniques. Processing concerns include stream processing engines, state stores, stateful processing, checkpointing and fault recovery, processing guarantees such as at least once and exactly once semantics, idempotence, and time semantics including event time versus processing time, watermarks, windowing strategies, late and out of order event handling, and stream to stream and stream to table joins and aggregations over windows. Performance and operational topics cover partitioning and scaling strategies, backpressure and flow control, latency versus throughput trade offs, resource isolation, monitoring and alerting, testing strategies for streaming pipelines, schema evolution and compatibility, idempotent sinks, persistent storage choices for state and checkpoints, and operational metrics such as stream lag. Familiarity with concrete technologies and frameworks is expected when discussing designs and trade offs, for example Apache Kafka, Kafka Streams, Apache Flink, Spark Structured Streaming, Amazon Kinesis, and common serialization formats such as Avro, Protocol Buffers, and JSON.

MediumTechnical
0 practiced
Explain best practices for schema evolution in streaming systems using Avro or Protobuf with a schema registry. How would you handle an incompatible change that must be deployed (for example renaming a required field), and what migration patterns can prevent consumer breakage in production?
EasyTechnical
0 practiced
Explain watermarks and allowed-lateness in stream processing. Describe one pragmatic strategy for handling late-arriving events when computing session-based or tumbling-window features for an online model that must balance freshness with correctness and explain how you'd propagate corrections to downstream consumers.
MediumTechnical
0 practiced
As a data scientist designing real-time scoring, compare embedding the ML model inside the stream processing job (for example as a Flink operator) versus calling an external model server (REST/gRPC). Discuss trade-offs in latency, model size and dependency management, ease of experimentation, consistency of features, and operational complexity.
MediumTechnical
0 practiced
How would you detect concept drift in a streaming prediction pipeline? Propose concrete metrics to compute (for example prediction distribution shifts, population stability index, calibration error), aggregation windows and thresholds, and an alerting strategy. Also explain strategies to obtain labels when ground-truth is delayed.
MediumTechnical
0 practiced
You observe increasing consumer lag in Kafka which is causing a 5-minute end-to-end delay for streaming features. Outline a step-by-step troubleshooting plan: which metrics to inspect across brokers and consumers (throughput, I/O, network, GC), quick mitigations to reduce lag, and long-term architectural fixes to prevent recurrence.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.