Which configuration allows more time for the consumer poll to process records?
A.
session.timeout.ms
B.
heartbeat.interval.ms
C.
max.poll.interval.ms
D.
fetch.max.wait.ms
The Answer Is:
C
This question includes an explanation.
Explanation:
max.poll.interval.ms defines the maximum delay between invocations of poll() before the consumer is considered failed. It essentially gives consumers more time to process records before needing to poll again.
From Kafka Consumer Configuration Reference:
“max.poll.interval.ms: The maximum delay between invocations of poll() when using consumer group management. If poll() is not called before expiration, the consumer is considered failed.”
session.timeout.ms and heartbeat.interval.ms relate to group coordination and heartbeats.
fetch.max.wait.ms affects how long the broker waits to accumulate data before sending a fetch response.