It is a set of settings that tell Kafka Connect how to connect to a data source or sink, what data to move, and how to handle it.
Click to reveal answer
beginner
Name two essential properties in a Kafka Connector configuration.
1. "connector.class": specifies the connector plugin to use. 2. "tasks.max": defines the maximum number of tasks to run in parallel.
Click to reveal answer
beginner
What does the topics property specify in a source connector configuration?
It lists the Kafka topics where the connector will write the data it reads from the source system.
Click to reveal answer
intermediate
How do you specify the connection details to a database in a JDBC source connector configuration?
You use properties like connection.url, connection.user, and connection.password to provide the database URL, username, and password.
Click to reveal answer
intermediate
Why is the tasks.max property important in connector configuration?
It controls how many parallel tasks the connector can run, which affects throughput and resource use. Setting it too low limits speed; too high may overload the system.
Click to reveal answer
Which property defines the connector plugin to use in Kafka Connect?
Aconnector.class
Btasks.max
Ctopics
Dconnection.url
✗ Incorrect
The property 'connector.class' tells Kafka Connect which connector plugin to load.
What does the 'tasks.max' property control?
AKafka topic name
BDatabase connection timeout
CConnector plugin version
DMaximum number of parallel tasks
✗ Incorrect
'tasks.max' sets how many tasks can run at the same time for the connector.
In a source connector, the 'topics' property specifies:
AMaximum tasks
BWhere to write data in Kafka
CConnector class name
DWhere to read data from Kafka
✗ Incorrect
'topics' lists the Kafka topics where the connector writes data it reads from the source.
Which property is NOT typically part of a JDBC source connector configuration?
Atopics.max
Bconnection.user
Cconnection.password
Dconnection.url
✗ Incorrect
'topics.max' is not a valid property; the correct property is 'tasks.max'.
Why should you carefully set 'tasks.max'?
ATo specify the connector class
BTo set the Kafka topic name
CTo balance throughput and resource use
DTo define the database URL
✗ Incorrect
'tasks.max' affects how many tasks run in parallel, impacting speed and system load.
Explain the role of the 'connector.class' and 'tasks.max' properties in Kafka Connector configuration.
Think about what tells Kafka Connect what to do and how many workers to use.
You got /3 concepts.
Describe how you would configure a JDBC source connector to connect to a database and write data to Kafka topics.
Focus on connection details and where data goes.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of a connector configuration in Kafka Connect?
easy
A. To specify how data moves between Kafka and external systems
B. To define the Kafka broker's internal settings
C. To configure Kafka topic partitions
D. To set the Kafka consumer group ID
Solution
Step 1: Understand Kafka Connect role
Kafka Connect uses connectors to move data between Kafka and other systems.
Step 2: Identify configuration purpose
The connector configuration tells Kafka Connect how to perform this data movement.
Final Answer:
To specify how data moves between Kafka and external systems -> Option A
Quick Check:
Connector configuration = data movement setup [OK]
Hint: Connector config defines data flow direction [OK]
Common Mistakes:
Confusing connector config with Kafka broker settings
Thinking it configures Kafka topic partitions
Mixing up consumer group ID with connector config
2. Which of the following is the correct way to specify the connector class in a Kafka Connect configuration JSON?
easy
A. "connectorClassName": "org.apache.kafka.connect.file.FileStreamSourceConnector"
B. "connector.class": "org.apache.kafka.connect.file.FileStreamSourceConnector"
C. "connectorClass": "org.apache.kafka.connect.file.FileStreamSourceConnector"
D. "connector-class": "org.apache.kafka.connect.file.FileStreamSourceConnector"
Solution
Step 1: Recall Kafka Connect JSON key format
Kafka Connect uses keys with dot notation, e.g., "connector.class".
Step 2: Match correct key name
Only "connector.class": "org.apache.kafka.connect.file.FileStreamSourceConnector" uses the correct key "connector.class" with quotes and colon.
Final Answer:
"connector.class": "org.apache.kafka.connect.file.FileStreamSourceConnector" -> Option B
Quick Check:
Correct key is "connector.class" [OK]
Hint: Use dot notation keys like "connector.class" [OK]
Hint: FileStreamSinkConnector needs "file" path set [OK]
Common Mistakes:
Assuming "tasks.max" must be string
Confusing "topic" and "topics" keys
Changing connector.class unnecessarily
5. 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?
hard
A. "topic"
B. "topics"
C. "topics.regex"
D. "kafka.topic"
Solution
Step 1: Understand topic properties in connectors
Source connectors typically use "topic" (singular) to specify the Kafka topic to publish data to.
Step 2: Differentiate from other keys
"topics" is common for sink connectors; "topics.regex" is for pattern matching; "kafka.topic" is not standard.
Final Answer:
"topic" -> Option A
Quick Check:
Use "topic" to specify Kafka topic for sources [OK]
Hint: Use "topic" for source connector Kafka topic [OK]
Common Mistakes:
Using plural "topics" instead of "topic"
Confusing "topics.regex" with direct topic specification
Inventing non-standard keys like "kafka.topic"
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.