Kafka Streaming interview questions
100 Data Engineering practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise Kafka Streaming questionsBeginner
- A broker went down
- Adding a field to an event schema
- Adding more consumers didn't help
- Batch vs stream processing
- Brokers and replication
- Brokers running out of disk
- Choosing Kinesis or MSK for a new AWS project
- Committing offsets
- Consumer crashing on a bad message
- Consumer groups
- Consumer lag
- Consumer lag keeps growing
- Creating a topic for order events
- Customer events processed out of order
- Delivery semantics
- Duplicate records in the database sink
- Event time vs processing time
- Frequent consumer rebalances
- How producers choose partitions
- Kafka Connect
- KRaft vs ZooKeeper
- Landing Kafka data in S3
- Managed Kafka and alternatives
- New service needs to read a topic
- Producer acks setting
- Producer losing messages during broker restarts
- Real-time sales dashboard
- Reprocessing last week's events after a bug
- Retention in Kafka
- Schema Registry and serialization formats
- Streaming database changes to Kafka
- Topics, partitions and offsets
- What is Apache Kafka
- Windowing in stream processing
Intermediate
- Adding a large table to an existing CDC pipeline
- Apache Flink for stream processing
- Applying CDC events to a warehouse table
- Building user sessions from clickstream
- Change data capture with Debezium
- Choosing the number of partitions
- Consumer group rebalancing
- Dead letter queues in streaming
- Deduplicating events in a streaming job
- Enriching events with customer data
- Handling large messages in Kafka
- Hourly aggregates missing late events
- Idempotent producers
- Increasing partitions on a busy keyed topic
- Kafka Connect sink task keeps failing
- Kafka Streams
- Kafka transactions and exactly-once processing
- Kafka vs Amazon Kinesis
- Log compaction
- min.insync.replicas and unclean leader election
- New consumer group skipping existing data
- One partition much busier than others
- Producer can't keep up with event volume
- Real-time fraud detection pipeline
- Securing Kafka
- Setting up monitoring for a Kafka platform
- Spark streaming job restarted from the wrong place
- Spark Structured Streaming with Kafka
- Stateful stream processing
- Streaming Kafka data into Snowflake
- Tiered storage in Kafka
- Upgrading an old Kafka cluster to 4.x
- Watermarks in stream processing engines
Experienced
- A producer made a breaking schema change
- Adopting the new consumer group protocol
- Backpressure and scaling in streaming systems
- CDC events breaking cross-table consistency
- Choosing Spark Structured Streaming or Flink
- Data contracts and governance for streams
- Designing a company-wide event streaming platform
- End-to-end exactly-once in practice
- Event-driven architecture and event design
- Exactly-once processing for payments
- Flink job with huge state struggling
- Ingesting millions of IoT events per second
- Kafka disaster recovery across regions
- Kafka share groups (queues for Kafka)
- Lambda vs Kappa for streaming platforms
- Measuring end-to-end latency in a streaming pipeline
- Moving a batch pipeline to streaming
- Multi-region Kafka and replication
- Noisy tenant affecting a shared Kafka cluster
- Operating Kafka at scale
- Ordering guarantees and their limits
- Proving a streaming pipeline is correct
- Real-time analytics stores
- Real-time features for ML models
- Right to be forgotten in Kafka
- Stream joins
- Streaming into lakehouse tables
- Streaming platform costs too high
- Streaming SQL
- Streaming writes creating millions of small files
- Testing and reprocessing streaming pipelines
- The transactional outbox pattern
- Tuning Kafka producer and consumer performance