Kafka - Schema RegistryYou 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 registeringBOnly register the top-level schema; nested schemas are ignoredCDisable schema validation to allow nested recordsDRegister all nested schemas separately and reference them by nameCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand nested schema handlingNested Avro schemas must be registered separately and referenced by name to ensure proper deserialization.Step 2: Evaluate other optionsIgnoring nested schemas or flattening can cause errors; disabling validation is unsafe.Final Answer:Register all nested schemas separately and reference them by name -> Option DQuick Check:Nested schema deserialization = Register nested schemas separately [OK]Quick Trick: Always register nested schemas separately for correct deserialization [OK]Common Mistakes:MISTAKESRegistering only top-level schema ignoring nested onesFlattening schemas losing structureDisabling validation causing runtime errors
Master "Schema Registry" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Kafka Connect - Sink connectors - Quiz 10hard Kafka Connect - Why connectors integrate external systems - Quiz 13medium Kafka Streams - KStream and KTable concepts - Quiz 6medium Kafka with Java/Python - Configuration best practices - Quiz 9hard Kafka with Java/Python - Python consumer - Quiz 15hard Message Delivery Semantics - Exactly-once semantics (EOS) - Quiz 2easy Message Delivery Semantics - Why delivery guarantees affect correctness - Quiz 11easy Message Delivery Semantics - At-least-once delivery - Quiz 1easy Monitoring and Operations - Kafka Manager/UI tools - Quiz 12easy Monitoring and Operations - Prometheus and Grafana integration - Quiz 10hard