Bird
0
0

Given a Kafka cluster with 3 brokers (IDs 0, 1, 2), if a topic has 6 partitions with replication factor 2, how many broker nodes will hold replicas for each partition?

medium📝 Predict Output Q4 of 15
Kafka - Cluster Architecture

Given a Kafka cluster with 3 brokers (IDs 0, 1, 2), if a topic has 6 partitions with replication factor 2, how many broker nodes will hold replicas for each partition?

A2 brokers per partition
B3 brokers per partition
C1 broker per partition
D6 brokers per partition
Step-by-Step Solution
Solution:
  1. Step 1: Understand replication factor meaning

    Replication factor 2 means each partition is stored on 2 different brokers.
  2. Step 2: Apply to partitions

    Each of the 6 partitions will have replicas on 2 brokers, regardless of total brokers.
  3. Final Answer:

    2 brokers per partition -> Option A
  4. Quick Check:

    Replication factor = brokers per partition = 2 [OK]
Quick Trick: Replication factor equals brokers holding each partition replica [OK]
Common Mistakes:
  • Confusing total brokers with replicas per partition
  • Assuming replication factor equals total partitions
  • Thinking each partition is on all brokers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes