A sink connector is a component in Kafka Connect that reads data from Kafka topics and writes it to an external system like a database, file system, or search index.
Click to reveal answer
beginner
Name two common external systems where sink connectors send data.
Common external systems include relational databases (like MySQL, PostgreSQL) and search engines (like Elasticsearch).
Click to reveal answer
beginner
How does a sink connector know which Kafka topic to read from?
The sink connector configuration specifies the Kafka topic(s) it should read data from using the 'topics' property.
Click to reveal answer
intermediate
What is the role of the 'tasks.max' setting in sink connectors?
'tasks.max' defines the maximum number of tasks (parallel workers) the sink connector can use to write data to the external system, improving throughput.
Click to reveal answer
intermediate
Why is it important to handle data format compatibility in sink connectors?
Sink connectors must convert Kafka record formats (like Avro, JSON) into the format expected by the external system to avoid errors and data loss.
Click to reveal answer
What does a Kafka sink connector do?
AReads data from Kafka and writes it to an external system
BReads data from an external system and writes it to Kafka
CManages Kafka cluster configuration
DMonitors Kafka topic partitions
✗ Incorrect
A sink connector reads data from Kafka topics and writes it to external systems.
Which configuration property specifies the Kafka topics a sink connector reads from?
Aconnect.topics
Bsource.topics
Ctopics
Dsink.topics
✗ Incorrect
The 'topics' property lists the Kafka topics the sink connector consumes.
What does the 'tasks.max' setting control in a sink connector?
AMaximum retries on failure
BMaximum Kafka topic partitions
CMaximum message size
DMaximum number of parallel tasks for writing data
✗ Incorrect
'tasks.max' controls how many parallel tasks the connector can run to improve throughput.
Which of these is NOT a typical sink connector destination?
ARelational databases
BKafka topics
CFile systems
DSearch indexes
✗ Incorrect
Kafka topics are source for sink connectors, not a destination.
Why must sink connectors handle data format conversion?
ATo match the external system's expected data format
BTo encrypt data before sending
CTo compress data for faster transfer
DTo change Kafka topic names
✗ Incorrect
Data format conversion ensures compatibility with the external system receiving the data.
Explain what a sink connector is and how it works in Kafka Connect.
Think about how data flows from Kafka to other systems.
You got /3 concepts.
Describe why data format compatibility is important for sink connectors and how it affects data transfer.
Consider what happens if the external system expects a different format.
You got /3 concepts.
Practice
(1/5)
1.
What is the main purpose of a Kafka sink connector?
easy
A. To create new Kafka topics dynamically
B. To move data from external systems into Kafka topics
C. To monitor Kafka cluster health
D. To move data from Kafka topics to external systems automatically
Solution
Step 1: Understand the role of sink connectors
Sink connectors are designed to export data from Kafka topics to other systems.
Step 2: Differentiate from source connectors
Source connectors import data into Kafka, while sink connectors export data out.
Final Answer:
To move data from Kafka topics to external systems automatically -> Option D
Quick Check:
Sink connector = export data from Kafka [OK]
Hint: Sink connectors export data out of Kafka topics [OK]
Common Mistakes:
Confusing sink with source connectors
Thinking sink connectors create topics
Assuming sink connectors monitor Kafka health
2.
Which of the following is a correct JSON field to specify the Kafka topic for a sink connector configuration?