Kafka - Performance TuningWhy does Kafka not allow decreasing the partition count of a topic after creation?ABecause partition count is stored in Zookeeper and cannot be changedBBecause Kafka automatically merges partitions internallyCBecause decreasing partitions improves performance but is not supported yetDBecause decreasing partitions would cause data loss and disrupt message orderingCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand partition data storageEach partition stores messages independently; removing partitions risks data loss.Step 2: Impact on ordering and data integrityDecreasing partitions breaks ordering guarantees and causes message loss.Final Answer:Because decreasing partitions would cause data loss and disrupt message ordering -> Option DQuick Check:Partition decrease = data loss risk [OK]Quick Trick: Partition count decrease risks data loss and ordering [OK]Common Mistakes:MISTAKESThinking Kafka merges partitions automaticallyBelieving decreasing partitions improves performanceConfusing partition count storage location
Master "Performance Tuning" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Advanced Stream Processing - Custom SerDes - Quiz 10hard Event-Driven Architecture - Why event-driven scales applications - Quiz 9hard Event-Driven Architecture - Why event-driven scales applications - Quiz 1easy Kubernetes and Cloud Deployment - Kafka on Kubernetes (Strimzi) - Quiz 12easy Multi-Datacenter and Replication - Active-passive vs active-active - Quiz 6medium Multi-Datacenter and Replication - Active-passive vs active-active - Quiz 1easy Multi-Datacenter and Replication - Active-passive vs active-active - Quiz 9hard Multi-Datacenter and Replication - Disaster recovery planning - Quiz 9hard Performance Tuning - Consumer throughput optimization - Quiz 4medium Performance Tuning - Batch size and compression tuning - Quiz 13medium