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
Design a capacity planning approach for stateful stream processing jobs that use RocksDB as the state backend. Include calculations for disk, memory, CPU, network, backup storage, checkpoint throughput, and how to forecast growth with business metrics (e.g., events per user). How would you detect and alert on state blowups?
EasyTechnical
33 practiced
Compare Kafka retention policies: time/size-based retention versus log compaction. Explain tombstone messages, compaction semantics, and use-cases for each. From an SRE perspective, how do retention and compaction settings affect disk usage, consumer behavior, and legal compliance (e.g., GDPR)?
EasyTechnical
45 practiced
Explain what checkpoints and savepoints are in stateful stream processing frameworks (for example, Apache Flink). Describe their roles in fault tolerance, differences between them, and how an SRE should operate and monitor them (frequency, retention, and storage backend choices such as S3 or HDFS).
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.
MediumTechnical
48 practiced
You need to increase partitions for a high-volume Kafka topic to scale consumers. Describe operational steps, how increasing partitions affects message ordering, consumer group rebalancing, and stateful processors. What precautions and compatibility checks should SREs perform before and after partition increases?

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.