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
28 comments · newest first
MA
Martina
11 days ago
Overall, A seems the most straightforward to me.
MA
Margo
16 days ago
I’m leaning towards D, it gives time for more messages to accumulate.
KI
Kimberlie
21 days ago
Yeah, but it doesn't guarantee batching like A does.
IR
Irma
26 days ago
But C) Increase the number of producer threads could help too.
TO
Toi
1 month ago
I feel A is the best choice. It directly affects batch size.
AL
Alberta
1 month ago
True, that could help too. More time to gather messages.
HE
Helene
1 month ago
What about D) Increase linger.ms?
ST
Stephaine
2 months ago
I agree, bigger batches mean more messages together.
CA
Carlee
2 months ago
I think it's A) Increase batch.size.
TE
Teri
2 months ago
So, D is the clear winner here!
RO
Roslyn
2 months ago
Exactly, not really about batching efficiency.
SH
Sheron
2 months ago
B) Increase message.max.bytes is more about message size.
TO
Toi
2 months ago
Right, it doesn't directly affect batching.
VE
Verona
3 months ago
C) Increase the number of producer threads seems less relevant.
MI
Michal
3 months ago
Yes, it can lead to larger batches before sending.
LE
Lera
3 months ago
But isn't D more effective for batching?
JA
Jamal
3 months ago
A) Increase batch.size could work too.
DE
Devorah
3 months ago
I agree, it allows more time to gather messages.
SH
Sherita
3 months ago
I think D) Increase linger.ms is the best choice.
MA
Marvel
4 months ago
Surprised that linger.ms can make such a difference!
JA
Jackie
4 months ago
Wait, I thought more threads would help with batching?
KI
Kina
4 months ago
B) Increase message.max.bytes doesn't really affect batching, right?
DI
Dick
4 months ago
I think D) Increase linger.ms is also a good option.
DE
Devon
4 months ago
Definitely A) Increase batch.size!
FR
Franklyn
4 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
5 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
5 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
5 months ago
I think increasing linger.ms might help with batching since it allows more time for messages to accumulate before sending.