Confluent Certified Developer for Apache Kafka (CCDAK) — Question 1
You need to consume messages from Kafka using the command-line interface (CLI).
Which command should you use?
Answer options
- A. kafka-console-consumer
- B. kafka-consumer
- C. kafka-get-message
- D. kafka- consume
Correct answer: A
Explanation
The correct command to consume messages from Kafka using the CLI is kafka-console-consumer, as it is specifically designed for this purpose. The other options, such as kafka-consumer, kafka-get-message, and kafka-consume, do not exist as valid commands in the Kafka toolkit.