Bird
Raised Fist0

Given this sink connector config snippet, what will be the destination system?

medium📝 Predict Output Q13 of Q15
Kafka - Connect

Given this sink connector config snippet, what will be the destination system?

{
  "name": "file-sink-connector",
  "config": {
    "connector.class": "FileStreamSink",
    "topics": "logs",
    "file": "/tmp/output.log"
  }
}
AA Kafka topic named 'logs'
BA file located at /tmp/output.log
CA database table named 'logs'
DA remote HTTP endpoint
Step-by-Step Solution
Solution:
  1. Step 1: Identify the connector class

    The connector class is "FileStreamSink", which writes data to a file.
  2. Step 2: Check the "file" config field

    The "file" field specifies the destination file path "/tmp/output.log".
  3. Final Answer:

    A file located at /tmp/output.log -> Option B
  4. Quick Check:

    FileStreamSink writes to file path [OK]
Quick Trick: FileStreamSink writes Kafka data to a file path [OK]
Common Mistakes:
MISTAKES
  • Assuming data goes back to Kafka topic
  • Confusing sink with source connectors
  • Thinking it writes to a database or HTTP

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes