Bird
Raised Fist0

A Kafka producer with schema validation enabled is failing to send messages. The schema registry URL is correct. What else should you check?

medium📝 Debug Q7 of Q15
Kafka - Schema Registry
A Kafka producer with schema validation enabled is failing to send messages. The schema registry URL is correct. What else should you check?
AVerify that the message schema matches the latest registered schema version
BIncrease the producer's batch size
CChange the key.serializer to StringSerializer
DDisable schema validation in the producer
Step-by-Step Solution
Solution:
  1. Step 1: Confirm schema compatibility

    Even with correct URL, messages must match the latest schema version to serialize.
  2. Step 2: Evaluate other options

    Batch size and key.serializer unrelated to schema validation; disabling validation avoids the problem but is not a fix.
  3. Final Answer:

    Verify that the message schema matches the latest registered schema version -> Option A
  4. Quick Check:

    Schema match with latest version is required [OK]
Quick Trick: Match message schema to latest registered schema version [OK]
Common Mistakes:
MISTAKES
  • Changing unrelated serializers
  • Disabling validation instead of fixing schema
  • Adjusting batch size to fix schema errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes