nerdexam
Confluent

CCDAK · Question #81

A topic has three replicas and you set min.insync.replicas to 2. If two out of three replicas are not available, what happens when a produce request with acks=all is sent to broker?

The correct answer is A. NotEnoughReplicasException will be returned. With this configuration, a single in-sync replica becomes read-only. Produce request will receive NotEnoughReplicasException.

Developing Kafka Producers

Question

A topic has three replicas and you set min.insync.replicas to 2. If two out of three replicas are not available, what happens when a produce request with acks=all is sent to broker?

Options

  • ANotEnoughReplicasException will be returned
  • BProduce request is honored with single in-sync replica
  • CProduce request will block till one of the two unavailable partition is available again.

How the community answered

(19 responses)
  • A
    84% (16)
  • B
    5% (1)
  • C
    11% (2)

Explanation

With this configuration, a single in-sync replica becomes read-only. Produce request will receive NotEnoughReplicasException.

Topics

#min.insync.replicas#acks=all#NotEnoughReplicasException#replication

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice