All Questions
Kafka hard

A Topic has `ReplicationFactor=3` and `min.insync.replicas=2`. A Producer uses `acks=all`. If two out of the three brokers in the cluster fail simultaneously, what will be the response for new Produce requests?

  1. A The cluster will automatically downgrade the request to `acks=1` to maintain availability.
  2. B The broker will return a `NotEnoughReplicasException`. Since only 1 replica remains (which is < the required 2 for the ISR gate), the write is rejected to prevent consistency risk.
  3. C The write will succeed but with a warning that data is 'fragile'.
  4. D The message will be redirected to an internal 'Purgatory' topic until the other nodes reboot.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions