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.
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 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 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 →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 →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 →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 →`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 →`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 →`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 →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 →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 →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.
Take a free AI-graded assessment across multiple domains. No signup required.
Start Free Assessment