Bird
Raised Fist0

Given this Avro schema evolution scenario:

medium📝 Predict Output Q13 of Q15
Kafka - Schema Registry
Given this Avro schema evolution scenario:
Old schema: {"name": "id", "type": "int"}
New schema: {"name": "id", "type": "int"}, {"name": "name", "type": "string", "default": "unknown"}

What compatibility type does this change support?
ABackward compatible only
BForward compatible only
CNot compatible
DFull compatible
Step-by-Step Solution
Solution:
  1. Step 1: Analyze schema change

    A new field "name" with a default value "unknown" is added to the schema.
  2. Step 2: Determine compatibility

    Adding a field with a default supports both backward and forward compatibility, so it is full compatible.
  3. Final Answer:

    Full compatible -> Option D
  4. Quick Check:

    Adding field with default = full compatibility [OK]
Quick Trick: Adding defaulted fields means full compatibility [OK]
Common Mistakes:
MISTAKES
  • Thinking adding fields breaks backward compatibility
  • Ignoring default values
  • Confusing forward and backward compatibility

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes