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.

HardTechnical
46 practiced
You notice that increasing Kafka producer batch.size reduces throughput variability but increases tail latency. Explain tuning knobs across Kafka producer (batch.size, linger.ms, acks), network and OS layers, and processing engine (parallelism, checkpointing) to optimize for low 99th percentile end-to-end latency while preserving required throughput. Provide a prioritized tuning plan.
EasyTechnical
36 practiced
Explain at-least-once, at-most-once, and exactly-once processing semantics in streaming systems. For each, give a concrete example of a pipeline (producer, broker, processing engine, sink) and describe how duplicates or data loss can occur or be prevented.
EasyTechnical
46 practiced
Explain how Kafka consumer groups and partition assignment work. Describe rebalance triggers, the difference between cooperative and eager rebalancing, how offsets are committed (auto vs manual), and practical techniques to minimize disruption from frequent rebalances in a high-throughput streaming application.
MediumTechnical
49 practiced
Outline a CI/CD pipeline for continuous delivery of streaming jobs. Include unit tests, integration tests with embedded brokers or test clusters, performance tests to detect regressions, and safe deployment strategies (canary, blue-green, rolling). Mention practical tools and gating criteria for production deployment.
HardSystem Design
42 practiced
Design a real-time pricing engine using event sourcing and CQRS. Price changes are events that must produce materialized views for fast reads, support auditability, and allow replay. Choose an event store, explain compaction and snapshot strategies, how to build projections, and how to handle schema changes and projection rebuilds.

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.