You have a Kafka cluster and all the topics have a replication factor of 3. One intern at your company stopped a broker, and accidentally deleted all the data of that broker on the disk. What will happen if the broker is restarted?
- The broker will start, and other topics will also be deleted as the broker data on the disk got deleted
- The broker will start, and won't be online until all the data it needs to have is replicated from other leaders
- The broker will crash
- The broker will start, and won't have any data. If the broker comes leader, we have a data loss
Answer(s): B
Explanation:
Kafka replication mechanism makes it resilient to the scenarios where the broker lose data on disk, but can recover from replicating from other brokers. This makes Kafka amazing!
Reveal Solution Next Question