QuizzesConsumer Rebalancing — Concept Check
intermediate
kafka

Consumer Rebalancing — Concept Check

Questions on Consumer Rebalancing. When a consumer joins or leaves a group, the broker-coordinated rebalance reassigns partitions; use Cooperative Sticky Assignor (incremental rebalance) to minimise disruption.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Consumer Rebalancing — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A consumer group experiences frequent rebalances, causing processing delays. Logs show 'Attempt to heartbeat failed since group is rebalancing'. What could be a potential cause?

    • AConsumers are using Cooperative Sticky Assignor
    • BMax poll interval is set to a very low value
    • CHeartbeat interval is too high compared to session timeout
    • DConsumers are processing messages too quickly
  2. 2.During a rebalance, a consumer fails to commit offsets before partitions are revoked. What is a likely consequence?

    • AMessages may be reprocessed from the last committed offset
    • BPartitions will not be reassigned to any consumer
    • CThe consumer will automatically commit offsets after rebalance
    • DThe rebalance will be cancelled
  3. 3.A new consumer joins a group using the Cooperative Sticky Assignor. What happens to the existing consumers?

    • AConsumption pauses for all consumers
    • BExisting consumers are unaffected
    • CAll consumers revoke all partitions
    • DOnly necessary partitions are reassigned
  4. 4.After switching to Cooperative Sticky Assignor, a team notices fewer consumer lag spikes. Why might this be?

    • ARebalances occur less frequently
    • BIncremental rebalances reduce processing gaps
    • CAll partitions are revoked less frequently
    • DConsumers process messages faster
  5. 5.A service using Kafka shows regular consumer lag spikes. Which configuration might be incorrectly set?

    • AHeartbeat interval is too frequent
    • BMax poll interval is too low
    • CUsing Cooperative Sticky Assignor
    • DSession timeout is too short
  6. 6.What is the primary advantage of using Cooperative Sticky Assignor over Eager Assignor?

    • AOnly necessary partitions are revoked
    • BIt simplifies consumer group management
    • CAll partitions are revoked simultaneously
    • DIt works in all Kafka versions
  7. 7.A consumer's `poll()` loop exceeds `max.poll.interval.ms`. What is the immediate effect?

    • AThe consumer's offsets are automatically committed
    • BThe consumer continues processing without issue
    • CThe consumer is considered dead and triggers a rebalance
    • DThe consumer's partitions are permanently revoked
  8. 8.In a Kafka setup, a consumer frequently reprocesses duplicate messages. What might be the reason?

    • AConsumers are not using Cooperative Sticky Assignor
    • BSession timeout is too long
    • CHeartbeat interval is too low
    • DOffsets are not committed before partitions are revoked