← Back to Home

Kafka Interview Questions — What Senior Engineers Need to Know

Apache Kafka has become the backbone of event-driven architectures at most large companies. Interview questions about Kafka go beyond “what is a topic” — interviewers want to understand how you reason about partitioning strategies, consumer group rebalancing, and the guarantees Kafka actually provides.

These 11 questions cover what senior engineers need to know: how Kafka achieves high throughput, what exactly-once semantics really means, how replication works under the hood, and the operational trade-offs of different configurations. Essential knowledge for anyone building or maintaining event-driven systems.

All 11 Questions

Kafka — acks=0/1/allSenior
What do acks=0, acks=1, and acks=all mean in Kafka?

Kafka's `acks` producer configuration controls how many broker acknowledgements the producer requires before considering a write successful. It is the primary knob for trading off durability against throughput and latency.

Read full answer →
Kafka — Why Is It FastSenior
Why is Kafka fast?

Kafka achieves high throughput—millions of messages per second on commodity hardware—through several design decisions that align with how operating systems and hardware actually work, rather than fighting them.

Read full answer →
Kafka — Consumer LagSenior
What is Kafka consumer lag and how do you monitor it?

Kafka consumer lag is the difference between the latest offset produced to a partition (log-end offset, LEO) and the last offset committed by the consumer group for that partition. It measures how far behind the consumer is from the producer—how many unconsumed messages are waiting.

Read full answer →
Kafka — ISRSenior
What is the ISR (In-Sync Replicas) in Kafka?

The In-Sync Replicas (ISR) list is a dynamic set maintained per partition by the Kafka broker acting as partition leader. A replica is considered "in-sync" if it has fetched all messages from the leader within the window defined by `replica.lag.time.max.ms` (default 30s). If a follower falls behi…

Read full answer →
Kafka — Consumer GroupMid
How do Kafka consumer groups work?

A Kafka consumer group is a set of consumers that collaboratively consume messages from one or more topics. The core rule is that each partition in a topic is assigned to exactly one consumer within a group at any given time. This means a group achieves parallelism up to the number of partitions …

Read full answer →
Kafka — RebalanceSenior
What is a Kafka consumer group rebalance?

A consumer group rebalance is the process by which Kafka redistributes partition ownership among the members of a consumer group. It is triggered by membership changes (a consumer joining or leaving, a crash, or a heartbeat timeout), changes in the number of partitions for a subscribed topic, or …

Read full answer →
Kafka — min.insync.replicasSenior
What does min.insync.replicas control in Kafka?

`min.insync.replicas` (commonly abbreviated `min.isr`) is a broker/topic-level configuration that specifies the minimum number of replicas that must be in the ISR for a produce request with `acks=all` to be accepted. If the current ISR falls below this threshold, the broker rejects produce reques…

Read full answer →
Kafka — auto.offset.resetMid
What does auto.offset.reset do in Kafka?

`auto.offset.reset` is a consumer configuration that determines where Kafka begins reading messages when a consumer group has no committed offset for a partition — or when the committed offset is out of range (e.g., it was deleted due to log retention). The two primary values are `earliest` and `…

Read full answer →
Kafka — enable.auto.commit DangersSenior
What are the dangers of enable.auto.commit in Kafka?

`enable.auto.commit=true` (the default) instructs the Kafka consumer to automatically commit the current offset to the broker on a fixed interval controlled by `auto.commit.interval.ms` (default 5 seconds). While convenient, this creates two distinct failure modes that are both correctness proble…

Read full answer →
Kafka — Idempotent ProducerSenior
What is a Kafka idempotent producer and why does it matter?

A Kafka idempotent producer is a producer configured with `enable.idempotence=true` that guarantees exactly-once delivery to a single partition within a single producer session. Without idempotence, when a producer retries a failed send (due to a timeout or transient network error), the broker ma…

Read full answer →
Kafka — Topic, Partition, OffsetEntry
Explain Kafka topics, partitions, and offsets.

A Kafka topic is a named, durable, append-only log that producers write to and consumers read from. Topics are the primary organizational unit — you create a topic for each logical stream of data (e.g., `user-events`, `order-updates`).

Read full answer →

How to Prepare

Focus on understanding concepts deeply enough to explain them in your own words. For each topic, practice articulating the trade-offs and real-world applications — interviewers care about practical judgment, not textbook definitions.

Related Topics

  • Distributed Systems Interview Questions
  • System Design Interview Questions
  • Infrastructure Interview Questions

Test Your Knowledge

Take a free AI-graded assessment across multiple domains. No signup required.

Start Free Assessment
GrindQuestionsAITechnical interview assessment
TermsPrivacyAbout