nerdexam
Confluent

CCDAK · Question #33

A producer is sending messages with null key to a topic with 6 partitions using the DefaultPartitioner. Where will the messages be stored?

The correct answer is A. Partition 5. Message with no keys will be stored with round-robin strategy among partitions.

Developing Kafka Producers

Question

A producer is sending messages with null key to a topic with 6 partitions using the DefaultPartitioner. Where will the messages be stored?

Options

  • APartition 5
  • BAny of the topic partitions
  • CThe partition for the null key
  • DPartition 0

How the community answered

(26 responses)
  • A
    77% (20)
  • B
    15% (4)
  • C
    4% (1)
  • D
    4% (1)

Explanation

Message with no keys will be stored with round-robin strategy among partitions.

Topics

#DefaultPartitioner#null key#sticky partitioner#partition assignment

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice