Bird
0
0

What must you do to support this change?

hard📝 Application Q8 of 15
Kafka - Cluster Architecture

You have a Kafka cluster with 5 brokers. You want to create a topic with 3 partitions and replication factor 3. Later, you want to increase the replication factor to 4. What must you do to support this change?

AIncrease replication factor directly without changes
BDelete the topic and recreate with replication factor 4
CReduce partitions to 2 before increasing replication factor
DAdd at least one more broker to the cluster before increasing replication factor
Step-by-Step Solution
Solution:
  1. Step 1: Check current cluster broker count

    There are 5 brokers, which is enough for replication factor 4.
  2. Step 2: Understand replication factor increase requirements

    Increasing replication factor to 4 requires at least 4 brokers. Since 5 brokers exist, it's possible.
  3. Step 3: Verify if any action needed

    To increase replication factor to 4, the cluster must have at least 4 brokers. Since it does, you can increase directly.
  4. Final Answer:

    Increase replication factor directly without changes -> Option A
  5. Quick Check:

    Replication factor increase possible if brokers >= new factor [OK]
Quick Trick: Increase RF directly if brokers suffice [OK]
Common Mistakes:
  • Deleting topic unnecessarily
  • Reducing partitions to change replication factor
  • Adding brokers when not needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes