Recall & Review
beginner
What is an In-sync Replica (ISR) in Kafka?
An In-sync Replica (ISR) is a Kafka broker that has fully caught up with the leader's data for a partition. It means the replica has all the latest messages and is ready to take over if the leader fails.
Click to reveal answer
beginner
Why is ISR important in Kafka?
ISR ensures data durability and availability. Only replicas in the ISR can be elected as leaders, which guarantees that no data is lost during failover because these replicas have the latest data.
Click to reveal answer
intermediate
How does a replica join or leave the ISR?
A replica joins the ISR when it catches up with the leader's data within a configured time. It leaves the ISR if it falls behind or becomes unresponsive for too long.
Click to reveal answer
intermediate
What happens if all replicas leave the ISR except the leader?
If all replicas leave the ISR except the leader, Kafka cannot guarantee data durability. The leader continues serving data but the risk of data loss increases if it fails before replicas catch up.
Click to reveal answer
advanced
How does Kafka use ISR to maintain consistency?
Kafka only commits messages when all replicas in the ISR have acknowledged them. This ensures that committed data is safely stored on all in-sync replicas, maintaining consistency.
Click to reveal answer
What does ISR stand for in Kafka?
✗ Incorrect
ISR stands for In-sync Replicas, which are replicas fully caught up with the leader.
When does a replica leave the ISR?
✗ Incorrect
A replica leaves the ISR if it falls behind the leader or becomes unresponsive for too long.
Why does Kafka commit messages only after ISR replicas acknowledge them?
✗ Incorrect
Committing messages after ISR replicas acknowledge ensures data is safely stored and consistent.
What risk increases if only the leader remains in the ISR?
✗ Incorrect
If only the leader is in ISR, data loss risk increases if the leader fails before replicas catch up.
Which Kafka component decides the ISR membership?
✗ Incorrect
The Kafka Broker Leader (partition leader) manages ISR membership by tracking replica states.
Explain what In-sync Replicas (ISR) are and why they matter in Kafka.
Think about how Kafka keeps data safe and available.
You got /3 concepts.
Describe the process of how a replica joins or leaves the ISR in Kafka.
Consider what makes a replica 'in-sync' or not.
You got /3 concepts.