Bird
Raised Fist0

What will happen if you omit the "connector.class" property in a Kafka connector configuration?

medium📝 Predict Output Q5 of Q15
Kafka - Connect
What will happen if you omit the "connector.class" property in a Kafka connector configuration?
AKafka Connect will fail to start the connector with an error.
BThe connector will run but with limited functionality.
CThe connector will use a default connector class.
DKafka Connect will automatically detect the connector class.
Step-by-Step Solution
Solution:
  1. Step 1: Understand mandatory properties in connector config

    "connector.class" is required to tell Kafka Connect which connector to run.
  2. Step 2: Consequence of missing "connector.class"

    Without it, Kafka Connect cannot instantiate the connector and throws an error.
  3. Final Answer:

    Kafka Connect will fail to start the connector with an error. -> Option A
  4. Quick Check:

    Missing connector.class causes startup error [OK]
Quick Trick: Always specify connector.class; it's mandatory [OK]
Common Mistakes:
MISTAKES
  • Assuming a default connector is used
  • Thinking Kafka Connect guesses the class
  • Believing connector runs with partial config

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes