Bird
Raised Fist0

What will happen if a Kafka source connector's 'tasks.max' is set to 3 but the connector only supports a single task?

medium📝 Predict Output Q5 of Q15
Kafka - Connect
What will happen if a Kafka source connector's 'tasks.max' is set to 3 but the connector only supports a single task?
AOnly one task will run despite 'tasks.max' being 3
BThree tasks will run concurrently
CConnector will fail to start
DKafka will ignore the connector
Step-by-Step Solution
Solution:
  1. Step 1: Understand 'tasks.max' meaning

    'tasks.max' is the maximum tasks allowed, but actual tasks depend on connector capability.
  2. Step 2: Check connector task support

    If connector supports only one task, only one will run regardless of 'tasks.max'.
  3. Final Answer:

    Only one task will run despite 'tasks.max' being 3 -> Option A
  4. Quick Check:

    tasks.max limits max, actual tasks depend on connector [OK]
Quick Trick: 'tasks.max' is max, not guaranteed tasks [OK]
Common Mistakes:
MISTAKES
  • Assuming tasks.max forces that many tasks
  • Expecting connector failure due to mismatch
  • Thinking Kafka ignores connector

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes