Confluent
CCDAK · Question #200
What is accomplished by producing data to a topic with a message key?
The correct answer is A. Messages with the same key are routed to a deterministically selected partition, enabling order. Producing data to a topic with a message key ensures that all messages with the same key are routed to the same partition, preserving their order within that partition.
Developing Kafka Producers
Question
What is accomplished by producing data to a topic with a message key?
Options
- AMessages with the same key are routed to a deterministically selected partition, enabling order
- BKafka brokers allow you to add more partitions to a given topic, without impacting the data flow for
- CIf provides a mechanism for encrypting messages at the partition level to ensure secure data
- DConsumers can filter messages in real time based on the message key without processing
How the community answered
(42 responses)- A90% (38)
- B5% (2)
- C2% (1)
- D2% (1)
Explanation
Producing data to a topic with a message key ensures that all messages with the same key are routed to the same partition, preserving their order within that partition.
Topics
#message key#partition routing#ordering guarantee#deterministic partitioning
Community Discussion
No community discussion yet for this question.