Exam CCDAK Topic 1 Question 133 Discussion

Actual exam question for Confluent's CCDAK exam
Question #: 133
Topic #: 1
You have a consumer group of 12 consumers and when a consumer gets killed by the process management system, rather abruptly, it does not trigger a graceful shutdown of your consumer. Therefore, it takes up to 10 seconds for a rebalance to happen. The business would like to have a 3 seconds rebalance time. What should you do? (select two)

Suggested Answer: B,E Vote an answer

session.timeout.ms must be decreased to 3 seconds to allow for a faster rebalance, and the heartbeat thread must be quicker, so we also need to decrease heartbeat.interval.ms

by iamkpr at Jul 27, 2024, 02:11 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
iamkpr
2024-07-27 14:11:17
Correct Answer: B, F
B. Decrease session.timeout.ms

Explanation: The session.timeout.ms setting defines the maximum amount of time a consumer can go without sending a heartbeat to the Kafka broker before the broker considers the consumer dead and triggers a rebalance. By decreasing this value, Kafka can detect consumer failures more quickly and start the rebalancing process sooner. However, setting this too low can cause frequent rebalances if the network or consumer processing is occasionally slow.
F. Decrease heartbeat.interval.ms

Explanation: The heartbeat.interval.ms setting determines how often the consumer sends heartbeats to the broker to indicate it is still alive. A lower heartbeat interval ensures that the broker gets timely updates on the consumer's status, which can help detect failures faster. However, setting this too low increases the overhead due to more frequent heartbeats.
upvoted 1 times
...
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10