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.

EasyTechnical
35 practiced
You're designing partition keys for a topic that stores user events and telemetry. Describe factors an SRE should consider when choosing a partition key (e.g., cardinality, skew, ordering requirements, hot partitions, re-sharding implications). Propose key selection strategies for low-latency per-user ordering vs high-throughput aggregated processing.
HardSystem Design
67 practiced
You must provide disaster recovery for a mission-critical Kafka-based event bus spanning two regions with RPO < 1 minute and minimal failover time. Compare active-passive (MirrorMaker2) versus active-active replication approaches, discuss network partition behavior, metadata synchronization, consumer group handling, and testing. Outline the SRE runbook for failover and failback.
EasyTechnical
43 practiced
Compare serialization formats for streaming events (Avro, Protocol Buffers, JSON). From both an SRE and data-platform perspective, discuss schema registry usage, compatibility checks, binary versus text formats, performance, and how serialization choices affect wire size, message evolution, and operational debuggability.
HardTechnical
37 practiced
After deploying a new version of a consumer, the consumer group shows persistent increased lag. Provide a detailed incident response plan to diagnose the root cause (commands, metrics, logs to check), immediate mitigation options to reduce lag, and steps to safely roll back or hotfix the consumer.
HardSystem Design
47 practiced
You discovered a bug in a processing job that affects computed aggregates for the past 3 days. Design a reprocessing architecture that allows you to recompute historical results and backfill dashboards without disrupting ongoing processing. Cover data replay strategies, idempotent sinks, versioned outputs, and safety controls.

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.