Question 300
A new field becomes mandatory but old consumers still deserialize the prior schema. Which TWO validations should the service apply? (SELECT TWO)
Explanation
Correct Answers
Making a new schema field mandatory changes the contract consumed by deployed readers. Versioning and a compatibility migration let old applications continue decoding while new producers and consumers coordinate. By contrast, old deserializers may fail on the new required field. The new producer could emit a field older deserializers reject or misinterpret. Fabrication undermines provenance and business semantics. Default text masquerades as an observed value when the new field has no source.
Making a new schema field mandatory changes the contract consumed by deployed readers. Versioning and a compatibility migration let old applications continue decoding while new producers and consumers coordinate. By contrast, fabrication undermines provenance and business semantics. Default text masquerades as an observed value when the new field has no source. Consumers cannot know which contract applies. A union of undocumented old and new shapes leaves consumers unable to apply the right validation.
Incorrect Answers
Consumers cannot know which contract applies. A union of undocumented old and new shapes leaves consumers unable to apply the right validation. A new field becomes mandatory but old consumers still deserialize the prior schema. Instead, publish a versioned schema contract and provide a compatible migration path to consumers. Making a new schema field mandatory changes the contract consumed by deployed readers.
Old deserializers may fail on the new required field. The new producer could emit a field older deserializers reject or misinterpret. A new field becomes mandatory but old consumers still deserialize the prior schema. Instead, publish a versioned schema contract and provide a compatible migration path to consumers. Versioning and a compatibility migration let old applications continue decoding while new producers and consumers coordinate.
Fabrication undermines provenance and business semantics. Default text masquerades as an observed value when the new field has no source. Versioning and a compatibility migration let old applications continue decoding while new producers and consumers coordinate. A new field becomes mandatory but old consumers still deserialize the prior schema.