nerdexam
Confluent

CCDAK · Question #139

When is the onCompletion() method called? private class ProducerCallback implements Callback { @Override public void onCompletion(RecordMetadata recordMetadata, Exception e) { if (e != null) {

Sign in or unlock CCDAK to reveal the answer and full explanation for question #139. The question stem and answer options stay visible for context.

Developing Kafka Producers

Question

When is the onCompletion() method called? private class ProducerCallback implements Callback { @Override public void onCompletion(RecordMetadata recordMetadata, Exception e) { if (e != null) {

Options

  • AWhen the message is partitioned and batched successfully
  • BWhen message is serialized successfully
  • CWhen the broker response is received
  • DWhen send() method is called

Unlock CCDAK to see the answer

You've previewed enough free CCDAK questions. Unlock CCDAK for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#producer callback#onCompletion#async send#broker acknowledgment
Full CCDAK Practice