nerdexam
Confluent

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.

Managing Brokers and Clusters

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)
  • A
    78% (18)
  • B
    4% (1)
  • C
    4% (1)
  • D
    13% (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

#KRaft mode#Raft quorum#controller election#leader election

Community Discussion

No community discussion yet for this question.

Full CCAAK Practice