nerdexam
Confluent

CCAAK · Question #57

You have an existing topic t1 that you want to delete because there are no more producers writing to it or consumers reading from it. What is the recommended way to delete the topic?

The correct answer is A. If topic deletion is enabled on the brokers, delete the topic using Kafka command line tools. The recommended and safe method to delete a topic is to use the Kafka CLI tool kafka-topics.sh --delete command, provided that delete.topic.enable=true is set on the brokers.

Managing Topics, Partitions, and Replicas

Question

You have an existing topic t1 that you want to delete because there are no more producers writing to it or consumers reading from it. What is the recommended way to delete the topic?

Options

  • AIf topic deletion is enabled on the brokers, delete the topic using Kafka command line tools.
  • BThe consumer should send a message with a 'null' key.
  • CDelete the log files and their corresponding index files from the leader broker.
  • DDelete the offsets for that topic from the consumer offsets topic.

How the community answered

(19 responses)
  • A
    79% (15)
  • B
    5% (1)
  • C
    11% (2)
  • D
    5% (1)

Explanation

The recommended and safe method to delete a topic is to use the Kafka CLI tool kafka-topics.sh --delete command, provided that delete.topic.enable=true is set on the brokers.

Topics

#topic deletion#Kafka CLI#topic management#delete.topic.enable

Community Discussion

No community discussion yet for this question.

Full CCAAK Practice