CCAAK · Question #46
You are managing a Kafka cluster with five brokers (broker id '0', '1','2','3','4') and three ZooKeepers. There are 100 topics, five partitions for each topic, and replication factor three on the…
The correct answer is A. Kafka uses ZooKeeper's ephemeral node feature to elect a controller. B. The Controller is responsible for electing Leaders among the partitions and replicas. C. The Controller uses the epoch number to prevent a split brain scenario. Kafka relies on ZooKeeper's ephemeral nodes to detect if a broker (controller) goes down and to elect a new controller. The controller manages partition leadership assignments and handles leader election when a The epoch number ensures coordination and avoids outdated…
Question
You are managing a Kafka cluster with five brokers (broker id '0', '1','2','3','4') and three ZooKeepers. There are 100 topics, five partitions for each topic, and replication factor three on the cluster. Broker id ‘0’ is currently the Controller, and this broker suddenly fails. Which statements are correct? (Choose three.)
Options
- AKafka uses ZooKeeper's ephemeral node feature to elect a controller.
- BThe Controller is responsible for electing Leaders among the partitions and replicas.
- CThe Controller uses the epoch number to prevent a split brain scenario.
- DThe broker id is used as the epoch number to prevent a split brain scenario.
- EThe number of Controllers should always be equal to the number of brokers alive in the cluster.
- FThe Controller is responsible for reassigning partitions to the consumers in a Consumer Group.
How the community answered
(23 responses)- A74% (17)
- D9% (2)
- E4% (1)
- F13% (3)
Explanation
Kafka relies on ZooKeeper's ephemeral nodes to detect if a broker (controller) goes down and to elect a new controller. The controller manages partition leadership assignments and handles leader election when a The epoch number ensures coordination and avoids outdated controllers acting on stale data.
Topics
Community Discussion
No community discussion yet for this question.