CCAAK · Question #112
Per customer business requirements, a system's high availability is more important than message reliability. Which of the following should be set?
The correct answer is A. Unclean leader election should be enabled. Enabling unclean leader election allows Kafka to elect a non-in-sync replica as leader if all in- sync replicas are unavailable. This sacrifices message reliability (possible data loss) in favor of high availability, aligning with the requirement.
Question
Per customer business requirements, a system’s high availability is more important than message reliability. Which of the following should be set?
Options
- AUnclean leader election should be enabled.
- BThe number of brokers in the cluster should be always odd (3, 5. 7 and so on).
- CThe linger.ms should be set to '0'.
- DMessage retention.ms should be set to -1.
How the community answered
(51 responses)- A82% (42)
- B4% (2)
- C4% (2)
- D10% (5)
Explanation
Enabling unclean leader election allows Kafka to elect a non-in-sync replica as leader if all in- sync replicas are unavailable. This sacrifices message reliability (possible data loss) in favor of high availability, aligning with the requirement.
Topics
Community Discussion
No community discussion yet for this question.