You want to send a message of size 3 MB to a topic with default message size configuration. How does KafkaProducer handle large messages?
Suggested Answer: C
Get Premium CCDAK Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
MessageSizeTooLarge is not a retryable exception.
13 comments · newest first
DW
Dwight
11 months ago
The max.request.size is just for requests, not message size, right?
JU
Jutta
12 months ago
Wait, are you sure about that? I thought it would try again!
CH
Cheryl
12 months ago
Definitely goes with option C. No retries for large messages.
ME
Meghan
12 months ago
I thought it would split them up, but I guess not!
CA
Carrol
1 year ago
KafkaProducer can't handle messages over the limit.
OL
Olen
1 year ago
I feel like the right answer might be that it retries until the limit is reached, but I can't remember the specifics of the exception handling.
NO
Noble
1 year ago
I think the KafkaProducer would throw a MessageSizeTooLarge exception if the message exceeds the limit, but I can't recall if it retries or not.
AV
Avery
1 year ago
I remember that Kafka has a default message size limit, but I'm not sure if it's based on max.request.size or message.max.bytes.
MA
Malcom
1 year ago
I practiced a similar question where the producer had to handle large messages, and I think it was about dividing them based on message.max.bytes.
JA
Javier
1 year ago
I'm fairly confident that the cluster autoscaler is the way to go here. It's designed for autoscaling Linux containers and should help minimize provisioning time.
AL
Alverta
1 year ago
Hmm, I'm not sure about this one. I'll need to think it through carefully.
LE
Leonida
1 year ago
Preventing internet access at school might work, but that doesn't really address the root problem. We need to educate students on responsible online behavior.
MA
Madelyn
1 year ago
I think the correct answer is Value at Risk because it tells us the potential loss in a set timeframe with a certain confidence level.