Bird
Raised Fist0

If a Kafka source connector is configured with "tasks.max" set to 2 but only one task runs, what is the most likely reason?

medium📝 Debug Q7 of Q15
Kafka - Connect
If a Kafka source connector is configured with "tasks.max" set to 2 but only one task runs, what is the most likely reason?
AThe Kafka broker is down, preventing task creation.
BThe connector's implementation only supports a single task regardless of configuration.
CThe connector class is incorrectly specified in the configuration.
DThe 'topics' property is missing from the configuration.
Step-by-Step Solution
Solution:
  1. Step 1: Understand 'tasks.max'

    This property sets the maximum number of tasks but does not guarantee multiple tasks will run.
  2. Step 2: Check connector capabilities

    Some connectors only support a single task due to their design.
  3. Step 3: Rule out other causes

    Broker status or config errors would cause failures, not just fewer tasks.
  4. Final Answer:

    The connector's implementation only supports a single task regardless of configuration. -> Option B
  5. Quick Check:

    Connector may limit tasks despite 'tasks.max' [OK]
Quick Trick: Connector implementation may limit tasks to one [OK]
Common Mistakes:
MISTAKES
  • Assuming 'tasks.max' always creates that many tasks
  • Blaming Kafka broker status for task count
  • Ignoring connector-specific task limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes