Replication & In-Sync Replicas (ISR) — Concept Check
Questions on Replication & In-Sync Replicas (ISR). Each partition has a configurable replication factor; the ISR list tracks replicas that are fully caught up — only ISR replicas can be elected leader on failover.
Questions in this quiz
8 questions on Replication & In-Sync Replicas (ISR) — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A Kafka partition has a replication factor of 3. If broker 3 falls behind, what happens to the ISR for partition 0?
- AThe ISR becomes 1,2
- BThe ISR becomes 1,3
- CThe ISR remains 1,2,3
- DThe ISR becomes 2,3
2.A topic is configured with acks=all and min.insync.replicas=2. What happens if only one replica is in sync?
- AThe leader is changed to an in-sync replica
- BThe write is delayed until replicas sync
- CThe write succeeds with reduced durability
- DThe producer gets a NotEnoughReplicasException
3.If unclean.leader.election.enable is set to true, what risk does this pose?
- AData loss due to out-of-sync leader election
- BISR list becomes static and unchangeable
- CHigher resource usage on brokers
- DIncreased latency due to frequent leader changes
4.What is the role of ISR in Kafka?
- AStores all messages for a partition
- BTracks replicas caught up with the leader
- CManages the replication factor
- DDetermines the partition leader
5.A partition's ISR is smaller than its replication factor. What does this indicate?
- AAll replicas are in sync
- BThe leader is not functioning
- CThe partition is over-replicated
- DThe partition is under-replicated
6.A Kafka cluster has acks=1 and min.insync.replicas=1. What is a potential risk?
- AIncreased resource usage on brokers
- BData duplication across replicas
- CMessage loss on leader crash
- DHigh latency due to waiting for replicas
7.In Kafka, what happens if a follower's log end offset (LEO) falls behind the leader's beyond the lag threshold?
- AThe follower becomes the leader
- BThe follower is removed from the ISR
- CThe replication factor is reduced
- DThe partition becomes unavailable
8.What does the Kafka setting 'acks=all' ensure?
- AAll ISR replicas acknowledge the write
- BOnly the leader acknowledges the write
- CNo replicas need to acknowledge the write
- DThe write is acknowledged immediately