Bird
0
0

Given a Kafka cluster with brokers 1, 2, and 3, if broker 1 is down, which broker will become leader for partition 0 if broker 2 has the highest ISR (in-sync replica)?

medium📝 Predict Output Q4 of 15
Kafka - Cluster Architecture
Given a Kafka cluster with brokers 1, 2, and 3, if broker 1 is down, which broker will become leader for partition 0 if broker 2 has the highest ISR (in-sync replica)?
ABroker 3
BBroker 1
CBroker 2
DNo leader will be elected
Step-by-Step Solution
Solution:
  1. Step 1: Understand leader election with broker down

    If current leader (broker 1) is down, Kafka selects a new leader from ISR.
  2. Step 2: Identify broker with highest ISR

    Broker 2 has highest ISR, so it becomes new leader.
  3. Final Answer:

    Broker 2 -> Option C
  4. Quick Check:

    New leader = highest ISR broker [OK]
Quick Trick: Leader chosen from highest ISR when current leader fails [OK]
Common Mistakes:
  • Choosing offline broker as leader
  • Assuming no leader if original is down
  • Ignoring ISR status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes