How can you combine cooperative rebalancing with static membership to improve Kafka consumer group stability?
hard📝 Application Q9 of 15
Kafka - Consumer Groups
How can you combine cooperative rebalancing with static membership to improve Kafka consumer group stability?
AUse static membership to reduce unnecessary rebalances and cooperative rebalancing to minimize partition revokes.
BUse static membership to disable rebalancing and cooperative rebalancing to assign partitions eagerly.
CUse static membership to increase session timeout and cooperative rebalancing to commit offsets automatically.
DUse static membership to assign partitions manually and cooperative rebalancing to disable heartbeats.
Step-by-Step Solution
Solution:
Step 1: Understand static membership benefits
Static membership reduces unnecessary rebalances by identifying consumers uniquely.
Step 2: Combine with cooperative rebalancing
Cooperative rebalancing minimizes partition revokes during rebalances, improving stability.
Step 3: Eliminate incorrect options
Static membership does not disable rebalancing or assign partitions manually; cooperative rebalancing does not disable heartbeats or control offset commits.
Final Answer:
Use static membership to reduce unnecessary rebalances and cooperative rebalancing to minimize partition revokes. -> Option A