Bird
Raised Fist0

Which configuration property is essential to specify the Kafka topic where data will be published?

hard🚀 Application Q15 of Q15
Kafka - Connect
You want to configure a Kafka Connect source connector to read from a database table and write to a Kafka topic. Which configuration property is essential to specify the Kafka topic where data will be published?
A"topic"
B"topics"
C"topics.regex"
D"kafka.topic"
Step-by-Step Solution
Solution:
  1. Step 1: Understand topic properties in connectors

    Source connectors typically use "topic" (singular) to specify the Kafka topic to publish data to.
  2. Step 2: Differentiate from other keys

    "topics" is common for sink connectors; "topics.regex" is for pattern matching; "kafka.topic" is not standard.
  3. Final Answer:

    "topic" -> Option A
  4. Quick Check:

    Use "topic" to specify Kafka topic for sources [OK]
Quick Trick: Use "topic" for source connector Kafka topic [OK]
Common Mistakes:
MISTAKES
  • Using plural "topics" instead of "topic"
  • Confusing "topics.regex" with direct topic specification
  • Inventing non-standard keys like "kafka.topic"

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes