Bird
0
0

A Kafka consumer connected to Amazon MSK is not receiving messages even though the producer is sending them. Which of the following is a likely cause?

medium📝 Debug Q7 of 15
Kafka - Kubernetes and Cloud Deployment
A Kafka consumer connected to Amazon MSK is not receiving messages even though the producer is sending them. Which of the following is a likely cause?
AConsumer is subscribed to a different topic
BConsumer group ID is not set
CProducer key serializer is incorrect
DBootstrap servers are unreachable
Step-by-Step Solution
Solution:
  1. Step 1: Analyze consumer not receiving messages

    If the consumer subscribes to a different topic than the producer sends to, it won't receive messages.
  2. Step 2: Evaluate other options

    Missing group ID causes errors, incorrect producer serializer affects sending, unreachable bootstrap prevents connection; only topic mismatch explains no messages received.
  3. Final Answer:

    Consumer is subscribed to a different topic -> Option A
  4. Quick Check:

    Topic mismatch = no messages received [OK]
Quick Trick: Consumer must subscribe to correct topic [OK]
Common Mistakes:
  • Ignoring topic subscription
  • Confusing producer serializer with consumer issue
  • Assuming unreachable bootstrap without error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes