HomeInterview QuestionsI set up a Kafka cluster with three brokers. What …

I set up a Kafka cluster with three brokers. What else do I need to configure so that if one broker goes down, the cluster can still serve data from the other brokers?

🟡 Medium Conceptual Mid level
1Times asked
Aug 2026Last seen
Aug 2026First seen

💡 Model Answer

To achieve high availability in a three‑broker Kafka cluster, you need to: 1) Set the topic replication factor to at least 2 (or 3 for stronger durability). 2) Configure default.replication.factor=2 so new topics are replicated automatically. 3) Enable auto.leader.rebalance.enable=true so that if a broker fails, leaders are reassigned. 4) Set min.insync.replicas to a value less than the replication factor to allow writes when one replica is down, but still protect against data loss. 5) Ensure ZooKeeper is highly available (use a separate ensemble). 6) Tune unclean.leader.election.enable=false to prevent leader election to an out‑of‑sync replica. 7) Monitor broker health with JMX or Kafka Manager and set up alerts. With these settings, if one broker fails, the remaining brokers will continue to serve data and the cluster will automatically elect new leaders for the affected partitions.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.

Get Assisting AI — Starts at ₹500