nerdexam
Confluent

CCDAK · Question #166

You need to list the topics that are available in your Kafka cluster. Which command should you use?

The correct answer is A. bin/kafka-topics.sh --list --bootstrap-server <hostname:port>. The correct command to list topics in a Kafka cluster is bin/kafka-topics.sh --list --bootstrap-server <hostname:port>. This connects to the broker and retrieves the available topic list.

Deployment and Troubleshooting

Question

You need to list the topics that are available in your Kafka cluster. Which command should you use?

Options

  • Abin/kafka-topics.sh --list --bootstrap-server hostname:port
  • Bbin/kafka-topics.sh --list --bootstrap-server <hostname>
  • Cbin/kafka-topics.sh --list
  • Dbin/kafka-topics.sh --bootstrap-server hostname:port

How the community answered

(32 responses)
  • A
    88% (28)
  • B
    3% (1)
  • C
    6% (2)
  • D
    3% (1)

Explanation

The correct command to list topics in a Kafka cluster is bin/kafka-topics.sh --list --bootstrap-server hostname:port. This connects to the broker and retrieves the available topic list.

Topics

#kafka-topics#CLI commands#topic listing

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice