Bird
Raised Fist0

You have nested Avro schemas registered in Schema Registry. How can you ensure consumers correctly deserialize nested records?

hard🚀 Application Q9 of Q15
Kafka - Schema Registry
You have nested Avro schemas registered in Schema Registry. How can you ensure consumers correctly deserialize nested records?
AFlatten nested schemas into a single schema before registering
BOnly register the top-level schema; nested schemas are ignored
CDisable schema validation to allow nested records
DRegister all nested schemas separately and reference them by name
Step-by-Step Solution
Solution:
  1. Step 1: Understand nested schema handling

    Nested Avro schemas must be registered separately and referenced by name to ensure proper deserialization.
  2. Step 2: Evaluate other options

    Ignoring nested schemas or flattening can cause errors; disabling validation is unsafe.
  3. Final Answer:

    Register all nested schemas separately and reference them by name -> Option D
  4. Quick Check:

    Nested schema deserialization = Register nested schemas separately [OK]
Quick Trick: Always register nested schemas separately for correct deserialization [OK]
Common Mistakes:
MISTAKES
  • Registering only top-level schema ignoring nested ones
  • Flattening schemas losing structure
  • Disabling validation causing runtime errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes