Bird
0
0

Why does Kafka not allow decreasing the partition count of a topic after creation?

hard📝 Conceptual Q10 of 15
Kafka - Performance Tuning
Why does Kafka not allow decreasing the partition count of a topic after creation?
ABecause partition count is stored in Zookeeper and cannot be changed
BBecause Kafka automatically merges partitions internally
CBecause decreasing partitions improves performance but is not supported yet
DBecause decreasing partitions would cause data loss and disrupt message ordering
Step-by-Step Solution
Solution:
  1. Step 1: Understand partition data storage

    Each partition stores messages independently; removing partitions risks data loss.
  2. Step 2: Impact on ordering and data integrity

    Decreasing partitions breaks ordering guarantees and causes message loss.
  3. Final Answer:

    Because decreasing partitions would cause data loss and disrupt message ordering -> Option D
  4. Quick Check:

    Partition decrease = data loss risk [OK]
Quick Trick: Partition count decrease risks data loss and ordering [OK]
Common Mistakes:
MISTAKES
  • Thinking Kafka merges partitions automatically
  • Believing decreasing partitions improves performance
  • Confusing partition count storage location

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes