A producer is sending messages with null key to a topic with 6 partitions using the DefaultPartitioner. Where will the messages be stored?
Suggested Answer: A
Get Premium CCDAK Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
Message with no keys will be stored with round-robin strategy among partitions.
12 comments · newest first
JE
Jeannetta
2 months ago
I agree with Emile. Null keys go to random partitions.
BE
Bev
2 months ago
I feel like it could be D. Partition 0.
EM
Emile
2 months ago
I think it's B. Any of the topic partitions.
HI
Hildred
2 months ago
Null key means random partition, right?
AL
Alva
2 months ago
I thought it would go to a specific one.
GL
Glenna
2 months ago
Wait, are you sure it’s not always Partition 0?
DE
Denny
3 months ago
Definitely B, that's how DefaultPartitioner works!
CL
Clemencia
3 months ago
Messages go to any partition.
LA
Lavina
3 months ago
I thought the DefaultPartitioner would send null keys to a specific partition, but now I'm confused about whether it's actually random or not.
LA
Lajuana
3 months ago
I practiced a similar question, and I feel like it might default to Partition 0, but I can't recall the exact reasoning behind it.
JU
Justine
3 months ago
I think when the key is null, it might just go to one of the partitions randomly, like any of the topic partitions?
CL
Clorinda
4 months ago
I remember something about how the DefaultPartitioner handles null keys, but I'm not entirely sure if it always goes to a specific partition.