Menu

How to use this page

This page collects 15 Apache Kafka interview questions answered in depth (13 medium and 2 hard), ordered from the basics to the harder design and troubleshooting questions. They include “Consumer lag keeps growing. How do you diagnose and fix it”, “Explain Kafka partitions and consumer groups”, “How do acks, replication factor and min.insync.replicas decide Kafka durability” and “How do you choose retention and size disk for a Kafka topic”.

Each answer opens with a short version you could say out loud in an interview, then explains why it works, shows a worked example, and lists the mistakes and follow-up questions interviewers use. For breadth first, read Top 50 Apache Kafka Interview Questions and Answers, then come back here to go deep on the questions you are most likely to be asked. If a topic is new to you, learn it in the Apache Kafka course first. Tick each question off as you practise; your progress is saved in this browser.

Question bank

Start with the question bank · 50 questions with answersTop 50 Apache Kafka Interview Questions and Answers

All Apache Kafka questions

Showing 15 of 15 questions · 0 done

Apache Kafka interview questions
#QuestionDifficultyTypeDone
1Consumer lag keeps growing. How do you diagnose and fix it?Mediumdebugging, scenario
2Explain Kafka partitions and consumer groups.Mediumconceptual, architecture
3How do acks, replication factor and min.insync.replicas decide Kafka durability?Mediumconceptual, scenario
4How do you choose retention and size disk for a Kafka topic?Mediumarchitecture, scenario
5How do you choose the number of partitions for a Kafka topic?Mediumarchitecture, scenario
6How do you evolve Kafka message schemas safely with a Schema Registry?Mediumconceptual, scenario
7How do you handle poison messages and dead-letter topics in Kafka?Mediumscenario, debugging
8How does Kafka guarantee message ordering, and where can ordering break?Mediumconceptual, scenario
9Kafka vs Kinesis vs a message queue: how do you choose?Mediumarchitecture, conceptual
10What causes consumer group rebalances, and how do you reduce their impact?Mediumdebugging, conceptual
11What is at-least-once delivery and what problems can it create?Mediumconceptual, scenario
12What is Kafka log compaction, and when would you use it?Mediumconceptual, scenario
13What is KRaft, and why did Kafka 4.0 remove ZooKeeper?Mediumconceptual, architecture
14How would you stream database changes into Kafka with Debezium?Hardarchitecture, scenario
15What does exactly-once mean in Kafka, and how is it achieved?Hardconceptual, architecture

Ticks are saved in this browser only. No account needed.

Concept review

Continue preparing

Search
Filter by type