Bird
0
0

Given a Kafka cluster with 3 brokers, a topic is created with 2 partitions and replication factor 2. How many total replicas exist for this topic?

medium📝 Predict Output Q4 of 15
Kafka - Cluster Architecture

Given a Kafka cluster with 3 brokers, a topic is created with 2 partitions and replication factor 2. How many total replicas exist for this topic?

A2
B3
C4
D6
Step-by-Step Solution
Solution:
  1. Step 1: Calculate replicas per partition

    Each partition has replication factor 2, so 2 replicas per partition.
  2. Step 2: Multiply by number of partitions

    2 partitions x 2 replicas each = 4 total replicas.
  3. Final Answer:

    4 -> Option C
  4. Quick Check:

    Total replicas = partitions x replication factor = 4 [OK]
Quick Trick: Total replicas = partitions x replication factor [OK]
Common Mistakes:
  • Confusing brokers with replicas
  • Multiplying brokers by replication factor
  • Ignoring number of partitions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes