Complete the code to set the schema compatibility to backward.
schema_registry_client.update_compatibility(subject_name, '[1]')
Setting compatibility to BACKWARD allows new schemas to read data produced with the last schema.
Complete the code to check if a new schema is compatible with the existing one.
is_compatible = schema_registry_client.test_compatibility([1], new_schema)The subject_name identifies the schema subject to check compatibility against.
Fix the error in the code to set compatibility to FULL_TRANSITIVE.
schema_registry_client.update_compatibility(subject_name, '[1]')
FULL_TRANSITIVE ensures compatibility with all previous schema versions, not just the last one.
Fill both blanks to create a schema compatibility check that ensures the new schema is backward compatible with the latest version.
result = schema_registry_client.test_compatibility([2], [1])
The new_schema is checked against the subject_name to ensure backward compatibility with the latest schema version.
Fill all three blanks to define a compatibility rule that sets the compatibility level to FORWARD and verifies it.
schema_registry_client.update_compatibility(subject_name, [1]) current_level = schema_registry_client.get_compatibility(subject_name) assert current_level == [2] and current_level == [3]
Setting compatibility to FORWARD and verifying ensures previous schemas can read data produced by new schemas.