Bird
0
0

A developer tries to send messages with a custom partitioner but notices messages are not routed as expected. What could be a common mistake?

medium📝 Debug Q7 of 15
Kafka - Topics and Partitions
A developer tries to send messages with a custom partitioner but notices messages are not routed as expected. What could be a common mistake?
ANot overriding the partition method correctly
BUsing a key that is always unique
CSetting the topic name incorrectly
DSending messages without a value
Step-by-Step Solution
Solution:
  1. Step 1: Understand custom partitioner requirements

    The partition method must be overridden properly to control routing.
  2. Step 2: Identify common mistake

    If the method is not overridden or implemented incorrectly, routing will not behave as expected.
  3. Final Answer:

    Not overriding the partition method correctly -> Option A
  4. Quick Check:

    Custom partitioner requires correct partition method override [OK]
Quick Trick: Override partition method properly in custom partitioner [OK]
Common Mistakes:
  • Ignoring partition method override
  • Using unique keys but expecting same partition
  • Incorrect topic name causing routing issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes