Bird
Raised Fist0

A new schema changes a field type from int to string without default. What is the compatibility status?

medium📝 Debug Q7 of Q15
Kafka - Schema Registry
A new schema changes a field type from int to string without default. What is the compatibility status?
AFull compatible
BForward compatible
CNot compatible
DBackward compatible
Step-by-Step Solution
Solution:
  1. Step 1: Analyze type change impact

    Changing field type from int to string breaks both backward and forward compatibility.
  2. Step 2: Confirm no default value

    Without default, old data can't be read by new schema and vice versa.
  3. Final Answer:

    Not compatible -> Option C
  4. Quick Check:

    Type change without default breaks all compatibility [OK]
Quick Trick: Type changes without default break compatibility [OK]
Common Mistakes:
MISTAKES
  • Assuming backward compatibility
  • Ignoring type changes
  • Thinking default is optional here

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes