Why this matters: replication here happens at partition granularity, not broker granularity — and that one choice is what makes every broker useful for both leading and following.
Key takeaway
The cluster manager oversees the brokers: it maintains the broker and topics registry, manages replication via leader-follower with three replicas per partition across different brokers, and handles authorization.
Three responsibilities
Responsibility
Detail
Broker and topics registry
Maintains the list of topics per broker
Manage replication
Uses a leader-follower approach. If a leader fails, the manager elects a new one. It ensures three replicas per partition exist across different brokers
Authorization
Controls access to brokers and topics, as well as message replication across clusters
Replication at partition granularity
Each partition has one leader and two replicas, and the replicas sit on different brokers from the leader.
Leader failure
If a leader fails, the manager elects a new one.
Authorization, including across clusters
Controls access to brokers and topics, as well as message replication across clusters.
Key takeaway
Leadership is per partition, so write load spreads across brokers and a failure costs one partition rather than one topic. Three replicas on different brokers survives one failure with a spare during repair. And a promoted leader must be prevented from serving data it lacks — otherwise failover silently drops acknowledged messages and can invalidate consumer offsets.
Interview signal by level
Level
What a strong answer sounds like
L4
"Partitions are replicated so we don't lose data if a broker dies."
L5
Gets the granularity right: "three replicas per partition on different brokers, leader-follower, and the cluster manager elects a new leader if one fails."
Staff+
Names why per-partition and what failover can break: "leadership is per partition, so write load spreads and losing a broker costs one partition's leadership rather than a whole topic. On failover, a promoted replica that's behind silently drops acked messages — and it can invalidate consumer offsets, so I'd only let consumers read up to a high-water mark replicated to all in-sync replicas. And I'd spread replicas across racks or zones, since three brokers in one rack share a failure domain."
Next: the component that tracks where every consumer is.
Enjoying the preview?
Create a free account to unlock the rest of this course, the in-browser judge, and live AI mock interviews.