nerdexam
Confluent

CCDAK · Question #34

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 consume request is sent to broker?

The correct answer is A. Data will be returned from the remaining in-sync replica. With this configuration, a single in-sync replica is still readable, but not writeable if the producer

Developing Kafka Consumers

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 consume request is sent to broker?

Options

  • AData will be returned from the remaining in-sync replica
  • BAn empty message will be returned
  • CNotEnoughReplicasException will be returned
  • DA new leader for the partition will be elected

How the community answered

(26 responses)
  • A
    73% (19)
  • B
    15% (4)
  • C
    4% (1)
  • D
    8% (2)

Explanation

With this configuration, a single in-sync replica is still readable, but not writeable if the producer

Topics

#min.insync.replicas#replication factor#consumer read availability#replica failover

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice