Recall & Review
beginner
What is static group membership in Kafka consumer groups?
Static group membership allows Kafka consumers to keep their group identity across restarts, avoiding unnecessary rebalances and improving stability.
Click to reveal answer
beginner
How do you enable static group membership in Kafka consumers?
You set a
group.instance.id property with a unique identifier for each consumer instance. This ID stays the same across restarts.Click to reveal answer
intermediate
What problem does static group membership solve in Kafka consumer groups?
It prevents frequent rebalances caused by consumer restarts, which can cause delays and duplicate processing.
Click to reveal answer
intermediate
What happens if two consumers in the same group have the same
group.instance.id?Kafka treats them as the same static member, causing one to be kicked out or rejected to avoid conflicts.
Click to reveal answer
advanced
Can static group membership be used with all Kafka consumer group protocols?
Static group membership works with the default Kafka consumer group protocol but may not be supported by custom protocols.
Click to reveal answer
What property must be set to enable static group membership in Kafka consumers?
✗ Incorrect
The property
group.instance.id uniquely identifies a static member in the consumer group.What is the main benefit of static group membership?
✗ Incorrect
Static group membership avoids unnecessary rebalances on consumer restarts, speeding up recovery.
If two consumers share the same
group.instance.id, what happens?✗ Incorrect
Kafka enforces unique
group.instance.id values; duplicates cause one consumer to be kicked out.Static group membership is most useful when:
✗ Incorrect
It helps avoid rebalances caused by frequent consumer restarts.
Which Kafka feature is directly reduced by using static group membership?
✗ Incorrect
Static group membership reduces the number of group rebalances.
Explain how static group membership improves Kafka consumer group stability.
Think about what happens when a consumer restarts without static membership.
You got /3 concepts.
Describe the risks of having duplicate group.instance.id values in a Kafka consumer group.
Consider what Kafka expects for unique static member IDs.
You got /3 concepts.