Replicating a topic in Kafka means storing multiple identical copies of each of its partitions across different brokers, so the topic's data survives the loss of any single broker.
A topic created with a replication factor of 3 stores three copies of each partition on three different brokers, so losing any one broker still leaves two healthy copies of every partition available to serve traffic.
kafka-topics.sh --bootstrap-server localhost:9092 \
--create --topic payments --partitions 3 --replication-factor 3 \
--config min.insync.replicas=2
kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic payments
Topic: payments Partition: 0 Leader: 1 Replicas: 1,2,3 Isr: 1,2,3
Topic: payments Partition: 1 Leader: 2 Replicas: 2,3,1 Isr: 2,3,1
Topic: payments Partition: 2 Leader: 3 Replicas: 3,1,2 Isr: 3,1,2
# If broker 1 goes down, partition 0 gets a new leader from its ISR:
Topic: payments Partition: 0 Leader: 2 Replicas: 1,2,3 Isr: 2,3A concise interview answer is
When a topic is replicated, each of its partitions gets extra copies stored on different brokers, so if the broker leading a partition fails, one of the in-sync replicas takes over as leader automatically, keeping the topic available without data loss, at the cost of the extra storage the replication factor requires.
Last updated: 1 November 2026
Previous question: How are Kafka topics partitioned, and why does it matter?
Next question: What is the role of ZooKeeper in Kafka?