CCDAK · Question #92
By default, which replica will be elected as a partition leader? (select two)
The correct answer is B. Any of the replicas D. An in-sync replica. Preferred leader is a broker that was leader when topic was created. It is preferred because when partitions are first created, the leaders are balanced between brokers. Otherwise, any of the in- sync replicas (ISR) will be elected leader, as long as…
Question
By default, which replica will be elected as a partition leader? (select two)
Options
- APreferred leader broker if it is in-sync and auto.leader.rebalance.enable=true
- BAny of the replicas
- CPreferred leader broker if it is in-sync and auto.leader.rebalance.enable=false
- DAn in-sync replica
How the community answered
(36 responses)- A17% (6)
- B75% (27)
- C8% (3)
Explanation
Preferred leader is a broker that was leader when topic was created. It is preferred because when partitions are first created, the leaders are balanced between brokers. Otherwise, any of the in- sync replicas (ISR) will be elected leader, as long as unclean.leader.election=false (by default)
Topics
Community Discussion
No community discussion yet for this question.