Complete the code to register a schema using Schema Registry client.
schema_registry_client.register([1], schema)The correct method to register a schema is register.
Complete the code to retrieve a schema by its ID from Schema Registry.
schema = schema_registry_client.get_schema([1])You retrieve a schema by its unique schema_id.
Fix the error in the code to check if a schema is compatible with the latest version.
is_compatible = schema_registry_client.test_compatibility([1], schema)The test_compatibility method requires the subject name, not schema ID or version.
Fill both blanks to create a dictionary comprehension that maps subject names to their latest schema versions.
latest_versions = {subject: schema_registry_client.get_latest_version([1]) for subject in subjects if schema_registry_client.get_latest_version(subject) [2] 0}The comprehension uses subject as the key and filters subjects with latest version greater than 0.
Fill all three blanks to create a dictionary comprehension that maps subject names to their schema IDs for schemas with version greater than 1.
schema_ids = { [1] : schema_registry_client.get_schema_id([2], [3]) for [1] in subjects if schema_registry_client.get_version([2], [1]) > 1 }The comprehension uses subject as the key and argument, and version as the version number.