Confluent
CCAAK · Question #11
Why does Kafka use ZooKeeper? (Choose two.)
The correct answer is A. To access information about the leaders and partitions D. For controller election. ZooKeeper stores metadata such as partition leadership and ISR (in-sync replicas), which brokers use to coordinate. Kafka uses ZooKeeper to perform leader election for the Controller broker, which manages cluster metadata and leadership changes.
Fundamentals of Kafka and Confluent Platform
Question
Why does Kafka use ZooKeeper? (Choose two.)
Options
- ATo access information about the leaders and partitions
- BTo scale the number of brokers in the cluster
- CTo prevent replication between clusters
- DFor controller election
How the community answered
(24 responses)- A75% (18)
- B17% (4)
- C8% (2)
Explanation
ZooKeeper stores metadata such as partition leadership and ISR (in-sync replicas), which brokers use to coordinate. Kafka uses ZooKeeper to perform leader election for the Controller broker, which manages cluster metadata and leadership changes.
Topics
#ZooKeeper#controller election#partition metadata
Community Discussion
No community discussion yet for this question.