Bird
Raised Fist0

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

easy📝 Syntax Q12 of Q15
Kafka - Schema Registry
Which of the following is the correct way to set schema compatibility to FULL using Kafka Schema Registry REST API?
APOST /config -d '{"compatibilityLevel": "FULL"}'
BPUT /config -d '{"compatibilityLevel": "FULL"}'
CPUT /config -d '{"compatibility": "FULL"}'
DGET /config -d '{"compatibility": "FULL"}'
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct HTTP method and endpoint

    Setting compatibility uses PUT on /config endpoint.
  2. Step 2: Check correct JSON field name

    The field is "compatibilityLevel", not "compatibility".
  3. Final Answer:

    PUT /config -d '{"compatibilityLevel": "FULL"}' -> Option B
  4. Quick Check:

    PUT + compatibilityLevel = FULL [OK]
Quick Trick: Use PUT and compatibilityLevel field [OK]
Common Mistakes:
MISTAKES
  • Using POST instead of PUT
  • Using wrong JSON field name
  • Using GET method to set config

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes