Challenge - 5 Problems
Kafka ISR Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of the ISR status check command?
Given a Kafka topic with 3 partitions and replication factor 3, you run the command to describe the topic and check the ISR for partition 0. What output will you see if all replicas are in sync?
Kafka
kafka-topics.sh --describe --topic my-topic --bootstrap-server localhost:9092Attempts:
2 left
💡 Hint
ISR includes all replicas that are fully caught up with the leader.
✗ Incorrect
When all replicas are caught up, the ISR list includes all replicas. The leader is also part of the ISR.
🧠 Conceptual
intermediate1:30remaining
What happens when a replica falls out of the ISR?
In Kafka, if a follower replica falls behind the leader and cannot keep up, what is the expected behavior regarding the ISR?
Attempts:
2 left
💡 Hint
ISR only contains replicas fully caught up with the leader.
✗ Incorrect
Kafka removes replicas from the ISR if they lag behind, ensuring only in-sync replicas are counted.
🔧 Debug
advanced2:00remaining
Why does the ISR not include a replica after network partition?
You notice that after a network partition, one replica is no longer listed in the ISR for a partition. Which of the following is the most likely cause?
Attempts:
2 left
💡 Hint
ISR updates dynamically based on replica sync status.
✗ Incorrect
A network partition can cause a replica to lag behind, so Kafka removes it from the ISR until it catches up.
📝 Syntax
advanced1:30remaining
Which command correctly lists the ISR for a Kafka topic?
Select the correct Kafka CLI command to describe a topic and show the ISR for all partitions.
Attempts:
2 left
💡 Hint
The topic description command shows ISR info.
✗ Incorrect
The kafka-topics.sh describe command lists partitions, leaders, replicas, and ISR.
🚀 Application
expert2:30remaining
How many replicas are in the ISR after this scenario?
A Kafka topic has replication factor 4. Initially, all replicas are in the ISR: [1,2,3,4]. Replica 3 falls behind due to slow disk and replica 2 loses network connectivity temporarily. After some time, replica 3 catches up but replica 2 is still disconnected. What is the current ISR?
Attempts:
2 left
💡 Hint
ISR only includes replicas currently caught up and connected.
✗ Incorrect
Replica 2 is disconnected and out of sync, so it is removed. Replica 3 caught up and rejoins ISR.