Q. In Kafka, what is the purpose of the 'key' in a message?

  • (A) Encrypts the message
  • (B) Determines the partition
  • (C) Assigns a consumer
  • (D) Stores the timestamp
πŸ’¬ Discuss
βœ… Correct Answer: (B) Determines the partition
Explanation: The message key is used by Kafka to determine which partition a message goes to.
Explanation by: Mr. Dubey
The message key is used by Kafka to determine which partition a message goes to.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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