Challenge - 5 Problems
Kafka Connector Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Purpose of Kafka Connectors
Why do Kafka connectors integrate external systems with Kafka?
Attempts:
2 left
💡 Hint
Think about how connectors help move data easily.
✗ Incorrect
Kafka connectors are designed to connect Kafka with external systems to move data in and out without writing custom code.
🧠 Conceptual
intermediate2:00remaining
Role of Source Connectors
What is the main role of a Kafka source connector?
Attempts:
2 left
💡 Hint
Source means where data comes from.
✗ Incorrect
Source connectors pull data from external systems and write it into Kafka topics.
❓ Predict Output
advanced2:30remaining
Output of Kafka Connect Configuration
Given this Kafka Connect configuration snippet, what is the expected behavior?
Kafka
name=jdbc-source-connector connector.class=io.confluent.connect.jdbc.JdbcSourceConnector topic.prefix=jdbc_ connection.url=jdbc:postgresql://localhost:5432/mydb mode=incrementing incrementing.column.name=id
Attempts:
2 left
💡 Hint
Look at the connector class and mode.
✗ Incorrect
This configuration sets up a source connector that reads new rows incrementally from PostgreSQL and writes them to Kafka topics with prefix 'jdbc_'.
❓ Predict Output
advanced2:30remaining
Result of Sink Connector Behavior
What happens when a Kafka sink connector is configured to write to an external system?
Kafka
name=s3-sink-connector connector.class=io.confluent.connect.s3.S3SinkConnector topics=my_topic s3.bucket.name=my-bucket flush.size=1000
Attempts:
2 left
💡 Hint
Sink connectors write data out of Kafka.
✗ Incorrect
The S3 sink connector batches messages from the Kafka topic and writes them to the specified S3 bucket after reaching the flush size.
🧠 Conceptual
expert3:00remaining
Why Use Kafka Connect Instead of Custom Code?
What is the main advantage of using Kafka Connect to integrate external systems instead of writing custom integration code?
Attempts:
2 left
💡 Hint
Think about maintenance and scalability benefits.
✗ Incorrect
Kafka Connect offers a ready-made framework that handles scaling, fault tolerance, and common integration patterns, saving time and effort.