Bird
0
0

Which of the following is true about the value in a Kafka message?

easy📝 Conceptual Q2 of 15
Kafka - Producers
Which of the following is true about the value in a Kafka message?
AIt is used to encrypt the key
BIt is optional and can be null
CIt determines the partition of the message
DIt must always be a string
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka message value role

    The value is the actual data payload and can be null if the message is a tombstone (used for deletes).
  2. Step 2: Evaluate options

    Value can be any data type, not just string; it does not affect partitioning or encryption.
  3. Final Answer:

    It is optional and can be null -> Option B
  4. Quick Check:

    Message value = Payload, can be null [OK]
Quick Trick: Value holds data and can be empty for deletes [OK]
Common Mistakes:
  • Assuming value must be string
  • Thinking value controls partition
  • Confusing value with encryption key

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes