Stream Processing and Event Streaming Questions

Building on event-streaming platforms: Kafka and message queues, event sourcing, partitioning, consumer groups, exactly-once vs at-least-once delivery, and windowing. Covers handling late and out-of-order events, watermarks, and stateful stream operators. The core skill for real-time data engineering.

HardSystem Design
33 practiced

Design a streaming pipeline that computes a rolling metric (for example daily or weekly active users, or a per-minute revenue total) over a high-volume event stream, where a meaningful share of events arrive late. Cover ingestion, windowing, watermark strategy, exactly-once handling, and how you'd reconcile a late-arriving correction into an already-served result.

HardSystem Design
42 practiced

Design the state-management strategy for a stateful stream-processing job holding very large per-key state (hundreds of millions of keys, terabytes total): state backend and storage choice, point-in-time restore for compliance, how you'd detect and alert on runaway state growth, and how cross-partition global aggregation (for example a global top-100) fits given each partition only sees its own keys.

MediumTechnical
35 practiced

What factors should drive partition-key selection for a topic (cardinality, hot-key avoidance, the ordering a downstream aggregation actually needs)? Walk through the trade-offs for a concrete topic with a natural user or entity ID.

HardTechnical
42 practiced

Explain how to achieve end-to-end exactly-once semantics for a pipeline that reads from Kafka, processes in a stream processor such as Flink, and writes to an external sink that does not natively support Kafka's transactions (for example a relational database or object store). Cover Kafka producer idempotence and transactions, the processor's checkpointing and two-phase-commit sink support, and idempotent writes at the sink.

MediumTechnical
63 practiced

What does producer idempotence mean in a streaming platform, and how does an idempotent producer (using a producer ID and sequence numbers) prevent duplicate writes from retries at the broker level, without requiring transactions?

Unlock Full Question Bank

Get access to all 31 Stream Processing and Event Streaming interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.