Complete the command to delete a Kafka topic named 'my-topic'.
kafka-topics.sh --delete --topic [1] --bootstrap-server localhost:9092
The correct topic name to delete is 'my-topic'.
Complete the command to list all topics after deletion to verify removal.
kafka-topics.sh --list --bootstrap-server [1]The bootstrap server port for Kafka is usually 9092.
Fix the error in the command to enable topic deletion in Kafka server properties.
delete.topic.enable=[1]Setting delete.topic.enable to true allows topic deletion.
Fill both blanks to create a cleanup policy that deletes old log segments automatically.
log.cleanup.policy=[1] log.retention.hours=[2]
Setting log.cleanup.policy to delete enables automatic deletion. log.retention.hours sets retention time in hours (168 = 7 days).
Fill all three blanks to create a command that deletes a topic and waits for cleanup to complete.
kafka-topics.sh --delete --topic [1] --bootstrap-server [2] && kafka-run-class kafka.tools.GetOffsetShell --broker-list [3] --topic [1]
The topic name is 'my-topic'. The bootstrap server and broker list use 'localhost:9092' for Kafka broker communication.