nerdexam
Confluent

CCDAK · Question #15

We would like to be in an at-most once consuming scenario. Which offset commit strategy would you recommend?

The correct answer is D. Commit the offsets in Kafka, before processing the data. Here, we must commit the offsets right after receiving a batch from a call to .poll()

Developing Kafka Consumers

Question

We would like to be in an at-most once consuming scenario. Which offset commit strategy would you recommend?

Options

  • ACommit the offsets on disk, after processing the data
  • BDo not commit any offsets and read from beginning
  • CCommit the offsets in Kafka, after processing the data
  • DCommit the offsets in Kafka, before processing the data

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    13% (3)
  • D
    78% (18)

Explanation

Here, we must commit the offsets right after receiving a batch from a call to .poll()

Topics

#at-most once#offset commit strategy#delivery semantics#pre-processing commit

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice