Kafka - ConnectWhich of the following is the correct JSON field to specify the connector class in a Kafka source connector configuration?A"sourceConnector"B"source.class"C"connectorType"D"connector.class"Check Answer
Step-by-Step SolutionSolution:Step 1: Recall Kafka Connect configuration syntaxThe key to specify the connector implementation class is always "connector.class" in the JSON config.Step 2: Eliminate incorrect optionsOther options like "source.class", "connectorType", or "sourceConnector" are not valid Kafka Connect configuration keys.Final Answer:"connector.class" -> Option DQuick Check:Connector class key = "connector.class" [OK]Quick Trick: Use "connector.class" to specify connector type [OK]Common Mistakes:MISTAKESUsing incorrect or made-up JSON keysConfusing source connector config keys with sink connector keysOmitting quotes around JSON keys
Master "Connect" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Kafka with Java/Python - Error handling in clients - Quiz 13medium Kafka with Java/Python - Configuration best practices - Quiz 5medium Kafka with Java/Python - Configuration best practices - Quiz 14medium Kafka with Java/Python - Error handling in clients - Quiz 8hard Kafka with Java/Python - Error handling in clients - Quiz 12easy Message Delivery Semantics - Transactional producer - Quiz 9hard Monitoring and Operations - Why monitoring prevents outages - Quiz 14medium Monitoring and Operations - Consumer lag monitoring - Quiz 5medium Schema Registry - Why schema management prevents data issues - Quiz 13medium Schema Registry - JSON Schema and Protobuf support - Quiz 7medium