Which of the following setting increases the chance of batching for a Kafka Producer?
Suggested Answer: D
Get Premium CCDAK Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
linger.ms forces the producer to wait to send messages, hence increasing the chance of creating batches
21 comments · newest first
ST
Stephaine
2 days ago
I agree, bigger batches mean more messages together.
CA
Carlee
7 days ago
I think it's A) Increase batch.size.
TE
Teri
12 days ago
So, D is the clear winner here!
RO
Roslyn
17 days ago
Exactly, not really about batching efficiency.
SH
Sheron
22 days ago
B) Increase message.max.bytes is more about message size.
TO
Toi
28 days ago
Right, it doesn't directly affect batching.
VE
Verona
1 month ago
C) Increase the number of producer threads seems less relevant.
MI
Michal
1 month ago
Yes, it can lead to larger batches before sending.
LE
Lera
1 month ago
But isn't D more effective for batching?
JA
Jamal
2 months ago
A) Increase batch.size could work too.
DE
Devorah
2 months ago
I agree, it allows more time to gather messages.
SH
Sherita
2 months ago
I think D) Increase linger.ms is the best choice.
MA
Marvel
2 months ago
Surprised that linger.ms can make such a difference!
JA
Jackie
2 months ago
Wait, I thought more threads would help with batching?
KI
Kina
2 months ago
B) Increase message.max.bytes doesn't really affect batching, right?
DI
Dick
3 months ago
I think D) Increase linger.ms is also a good option.
DE
Devon
3 months ago
Definitely A) Increase batch.size!
FR
Franklyn
3 months ago
I practiced a question similar to this, and I think increasing linger.ms is definitely the right choice for improving batching.
RE
Reid
3 months ago
I feel like increasing the number of producer threads could actually lead to more messages being sent at once, but I'm not confident about that.
GW
Gwenn
3 months ago
I'm not entirely sure, but I remember something about batch.size being important for how many messages can be sent together.
LI
Lili
4 months ago
I think increasing linger.ms might help with batching since it allows more time for messages to accumulate before sending.