nerdexam
Confluent

CCDAK · Question #51

A producer just sent a message to the leader broker for a topic partition. The producer used acks=1 and therefore the data has not yet been replicated to followers. Under which conditions will the…

The correct answer is D. When the high watermark has advanced. The high watermark is an advanced Kafka concept, and is advanced once all the ISR replicates the latest offsets. A consumer can only read up to the value of the High Watermark (which can be less than the highest offset, in the case of acks=1).

Developing Kafka Consumers

Question

A producer just sent a message to the leader broker for a topic partition. The producer used acks=1 and therefore the data has not yet been replicated to followers. Under which conditions will the consumer see the message?

Options

  • ARight away
  • BWhen the message has been fully replicated to all replicas
  • CNever, the produce request will fail
  • DWhen the high watermark has advanced

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    12% (5)
  • C
    29% (12)
  • D
    55% (23)

Explanation

The high watermark is an advanced Kafka concept, and is advanced once all the ISR replicates the latest offsets. A consumer can only read up to the value of the High Watermark (which can be less than the highest offset, in the case of acks=1).

Topics

#high watermark#acks#replication#consumer visibility

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice