Leaders & Followers — Concept Check
Questions on Leaders & Followers. Every partition has one leader that handles all reads and writes; followers replicate from the leader and can be promoted to leader if the leader fails.
Questions in this quiz
8 questions on Leaders & Followers — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A Kafka partition's leader fails. What happens next if unclean.leader.election.enable=false?
- AThe partition becomes unavailable until the leader recovers
- BA new leader is elected from any broker
- CThe first ISR member is promoted to leader
- DAny replica can become the new leader
2.A Kafka partition has a replication factor of 3 and min.insync.replicas set to 2. If only one ISR member remains, what happens to write operations?
- AWrite operations fail with NotEnoughReplicasException
- BWrites continue but with reduced durability
- CThe leader is automatically changed
- DWrites succeed but are delayed
3.Your Kafka cluster shows a high rate of ISR shrinkage. What could this indicate?
- AThe replication factor is too high
- BFollowers are consistently lagging behind the leader
- CThe cluster is over-provisioned
- DThe leader is frequently changing
4.A service in a multi-AZ deployment experiences high latency. How can Kafka help reduce this?
- AReduce the number of partitions
- BIncrease replica.lag.time.max.ms
- CEnable follower reads to fetch from the nearest replica
- DIncrease the replication factor
5.What is the role of a follower in a Kafka partition?
- ATo replicate data from the leader for redundancy
- BTo handle all consumer reads
- CTo balance the load by acting as a secondary leader
- DTo manage leader elections
6.A broker in your Kafka cluster is slow, causing ISR shrinkage. What is a potential consequence?
- AImproved data consistency across replicas
- BAutomatic leader election for better performance
- CIncreased risk of data loss if the leader fails
- DReduced replication factor for affected partitions
7.Which setting ensures a Kafka producer waits for all ISR members to confirm a write?
- Amin.insync.replicas=1
- Backs=1
- Cacks=0
- Dacks=all
8.Why might someone incorrectly assume any replica can become a leader if the current leader fails?
- AThey believe all replicas are always in-sync
- BThey assume replication factor determines leadership
- CThey think leader election is random
- DThey misunderstand the role of ISR