Bird
Raised Fist0

Which of the following is the correct syntax to set schema compatibility to BACKWARD using Kafka Schema Registry REST API?

easy📝 Syntax Q3 of Q15
Kafka - Schema Registry
Which of the following is the correct syntax to set schema compatibility to BACKWARD using Kafka Schema Registry REST API?
APUT /config {"compatibility": "BACKWARD"}
BPOST /config {"compatibilityLevel": "BACKWARD"}
CPUT /config {"compatibilityLevel": "BACKWARD"}
DGET /config {"compatibility": "BACKWARD"}
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct HTTP method and payload key

    Setting compatibility uses PUT method with JSON key "compatibilityLevel".
  2. Step 2: Match option with correct method and key

    PUT /config {"compatibilityLevel": "BACKWARD"} uses PUT and "compatibilityLevel" with value "BACKWARD", which is correct syntax.
  3. Final Answer:

    PUT /config {"compatibilityLevel": "BACKWARD"} -> Option C
  4. Quick Check:

    Correct REST API syntax = PUT + compatibilityLevel key [OK]
Quick Trick: Use PUT and 'compatibilityLevel' key to set compatibility [OK]
Common Mistakes:
MISTAKES
  • Using POST instead of PUT
  • Using wrong JSON key like 'compatibility'
  • Using GET method to set configuration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes