Bird
0
0

If a Kafka topic has min.insync.replicas=2 and replication factor 3, what happens if only one replica is in sync during a produce request with acks=all?

medium📝 Predict Output Q5 of 15
Kafka - Topics and Partitions
If a Kafka topic has min.insync.replicas=2 and replication factor 3, what happens if only one replica is in sync during a produce request with acks=all?
AThe produce request fails because minimum in-sync replicas are not met
BThe produce request succeeds with reduced durability
CKafka automatically increases replicas to meet the minimum
DThe produce request is queued until replicas catch up
Step-by-Step Solution
Solution:
  1. Step 1: Understand min.insync.replicas meaning

    This setting defines the minimum number of replicas that must acknowledge a write for it to succeed when acks=all.
  2. Step 2: Analyze the scenario

    With only one replica in sync but minimum required is two, the produce request will fail to ensure durability.
  3. Final Answer:

    The produce request fails because minimum in-sync replicas are not met -> Option A
  4. Quick Check:

    min.insync.replicas enforces durability with acks=all [OK]
Quick Trick: acks=all + min.insync.replicas ensures durability [OK]
Common Mistakes:
  • Assuming produce succeeds with fewer replicas
  • Thinking Kafka auto-increases replicas
  • Believing produce is queued instead of failing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes