Bird
0
0

You have a Kafka topic with 5 partitions and want to increase parallel processing. Which is the best strategy?

hard📝 Application Q15 of 15
Kafka - Performance Tuning
You have a Kafka topic with 5 partitions and want to increase parallel processing. Which is the best strategy?
ADelete the topic and create a new one with 1 partition
BDecrease the partition count to 3 to reduce complexity
CKeep partition count at 5 and add more consumers than partitions
DIncrease the partition count to 10 and rebalance consumers
Step-by-Step Solution
Solution:
  1. Step 1: Understand effect of partition count on parallelism

    More partitions allow more consumers to read in parallel, increasing throughput.
  2. Step 2: Evaluate options for increasing parallel processing

    Increasing partitions to 10 allows better parallelism; rebalance consumers to use new partitions.
  3. Final Answer:

    Increase the partition count to 10 and rebalance consumers -> Option D
  4. Quick Check:

    More partitions = better parallel processing [OK]
Quick Trick: More partitions mean more parallel consumers [OK]
Common Mistakes:
  • Reducing partitions thinking it improves speed
  • Adding more consumers than partitions without increasing partitions
  • Deleting topic unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes