Q. What happens if a Kafka topic does not exist when a producer tries to send data?

  • (A) Producer shuts down
  • (B) Kafka throws an exception
  • (C) Kafka auto-creates the topic (if configured)
  • (D) Message is sent to a default topic
πŸ’¬ Discuss
βœ… Correct Answer: (C) Kafka auto-creates the topic (if configured)
Explanation: If auto topic creation is enabled, Kafka will create the topic automatically.
Explanation by: Mr. Dubey
If auto topic creation is enabled, Kafka will create the topic automatically.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
107
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate