CCAAK · Question #32
For a Kafka cluster running in KRaft mode, how is a new controller leader elected after an existing controller leader dies?
The correct answer is A. A new controller leader is elected via a quorum. In KRaft mode, controller leadership is managed through a Raft-based quorum. When the current controller leader fails, the remaining controller nodes participate in a quorum election to select a new leader, ensuring consistent and fault-tolerant metadata management.
Question
For a Kafka cluster running in KRaft mode, how is a new controller leader elected after an existing controller leader dies?
Options
- AA new controller leader is elected via a quorum.
- BA new controller leader is chosen based in the kraft.controller.priority value.
- CA new controller leader is elected from the in-sync replica set.
- DA new controller leader is chosen using the Paxos consensus algorithm.
How the community answered
(23 responses)- A78% (18)
- B4% (1)
- C4% (1)
- D13% (3)
Explanation
In KRaft mode, controller leadership is managed through a Raft-based quorum. When the current controller leader fails, the remaining controller nodes participate in a quorum election to select a new leader, ensuring consistent and fault-tolerant metadata management.
Topics
Community Discussion
No community discussion yet for this question.