0
0
Kafkadevops~5 mins

In-sync replicas (ISR) in Kafka - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AInternal Sync Resource
BInstant Sync Replication
CIn-sync Replicas
DIndependent Sync Replica
When does a replica leave the ISR?
AWhen it falls behind or is unresponsive
BWhen it receives new data
CWhen it becomes the leader
DWhen it catches up with the leader
Why does Kafka commit messages only after ISR replicas acknowledge them?
ATo ensure data durability and consistency
BTo reduce network traffic
CTo improve performance
DTo allow replicas to lag
What risk increases if only the leader remains in the ISR?
AFaster data replication
BData loss if leader fails
CMore replicas joining ISR
DAutomatic leader election
Which Kafka component decides the ISR membership?
AKafka Producer
BKafka Controller
CKafka Consumer
DKafka Broker Leader
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.