Bird
Raised Fist0

Why does Schema Registry use schema IDs instead of storing full schemas with every Kafka message?

hard🧠 Conceptual Q10 of Q15
Kafka - Schema Registry
Why does Schema Registry use schema IDs instead of storing full schemas with every Kafka message?
ATo reduce message size and improve performance by referencing schemas
BBecause Kafka cannot handle JSON data directly
CTo encrypt schemas for security reasons
DTo allow multiple schemas per message
Step-by-Step Solution
Solution:
  1. Step 1: Understand schema ID usage

    Schema Registry assigns unique IDs to schemas so messages only carry the ID, not the full schema, reducing message size.
  2. Step 2: Evaluate other options

    Kafka can handle JSON; encryption is separate; multiple schemas per message is not supported.
  3. Final Answer:

    To reduce message size and improve performance by referencing schemas -> Option A
  4. Quick Check:

    Schema IDs reduce message size and boost performance [OK]
Quick Trick: Schema IDs keep messages small and fast [OK]
Common Mistakes:
MISTAKES
  • Thinking Kafka can't handle JSON
  • Confusing schema IDs with encryption
  • Believing multiple schemas per message are allowed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes