Bird
0
0

You have a Kafka topic with 2 partitions but your consumer only reads from partition 0. What is the likely problem?

medium📝 Debug Q14 of 15
Kafka - Topics and Partitions
You have a Kafka topic with 2 partitions but your consumer only reads from partition 0. What is the likely problem?
AKafka does not support multiple partitions
BThe topic only has one partition
CThe producer is sending messages only to partition 1
DThe consumer is not configured to subscribe to all partitions
Step-by-Step Solution
Solution:
  1. Step 1: Analyze consumer subscription behavior

    If a consumer reads only from partition 0, it likely subscribed only to that partition explicitly.
  2. Step 2: Check topic partition count and producer behavior

    The topic has 2 partitions, so consumer should subscribe to both to read all messages.
  3. Final Answer:

    The consumer is not configured to subscribe to all partitions -> Option D
  4. Quick Check:

    Consumer subscription controls partitions read = C [OK]
Quick Trick: Consumer must subscribe to all partitions to read all messages [OK]
Common Mistakes:
  • Assuming topic has only one partition
  • Believing Kafka does not support multiple partitions
  • Thinking producer controls consumer reading partitions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes