Bird
Raised Fist0

Which of the following is the correct JSON field to specify the connector class in a Kafka source connector configuration?

easy📝 Syntax Q12 of Q15
Kafka - Connect
Which of the following is the correct JSON field to specify the connector class in a Kafka source connector configuration?
A"sourceConnector"
B"source.class"
C"connectorType"
D"connector.class"
Step-by-Step Solution
Solution:
  1. Step 1: Recall Kafka Connect configuration syntax

    The key to specify the connector implementation class is always "connector.class" in the JSON config.
  2. Step 2: Eliminate incorrect options

    Other options like "source.class", "connectorType", or "sourceConnector" are not valid Kafka Connect configuration keys.
  3. Final Answer:

    "connector.class" -> Option D
  4. Quick Check:

    Connector class key = "connector.class" [OK]
Quick Trick: Use "connector.class" to specify connector type [OK]
Common Mistakes:
MISTAKES
  • Using incorrect or made-up JSON keys
  • Confusing source connector config keys with sink connector keys
  • Omitting quotes around JSON keys

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes