Bird
0
0

A developer tries to decrease partitions from 3 to 2 on a Kafka topic. What is the expected result?

medium📝 Debug Q7 of 15
Kafka - Performance Tuning
A developer tries to decrease partitions from 3 to 2 on a Kafka topic. What is the expected result?
AKafka will reduce partitions to 2 successfully
BKafka will ignore the request and keep 3 partitions
CKafka will throw an error because partition count cannot decrease
DKafka will merge partitions 2 and 3 into one
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka partition count rules

    Kafka allows increasing partitions but not decreasing them.
  2. Step 2: Effect of decreasing partition count

    Attempting to reduce partitions causes an error.
  3. Final Answer:

    Kafka will throw an error because partition count cannot decrease -> Option C
  4. Quick Check:

    Partition count can only increase [OK]
Quick Trick: Partition count can only increase, not decrease [OK]
Common Mistakes:
  • Thinking partitions can be decreased
  • Assuming Kafka merges partitions automatically
  • Believing Kafka ignores invalid requests

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes