exam questions

Exam KCNA All Questions

View all questions & answers for the KCNA exam

Exam KCNA topic 1 question 37 discussion

Actual exam question from Linux Foundation's KCNA
Question #: 37
Topic #: 1
[All KCNA Questions]

Which Kubernetes feature would you use to guard against split brain scenarios with your distributed application?

  • A. Replication controllers
  • B. Consensus protocols
  • C. Rolling updates
  • D. StatefulSet
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
shahy0
1 week, 2 days ago
Selected Answer: D
A. Replication controllers: Manage the number of replicas of a pod but do not provide the stable network identities or ordered deployment required to prevent split-brain scenarios. B. Consensus protocols: While consensus protocols (like Raft or Paxos) are used within distributed systems to prevent split-brain, they are not a Kubernetes feature. They are implemented within the application itself. C. Rolling updates: Ensure that updates to applications are done gradually to avoid downtime, but they do not address the stable identities or ordered scaling needed to prevent split-brain scenarios. By using StatefulSets, you can effectively manage stateful applications and guard against split-brain scenarios in your distributed applications running on Kubernetes.
upvoted 1 times
...
2211094
1 month, 1 week ago
Selected Answer: B
The answer is B
upvoted 1 times
...
yoyo2424
1 month, 1 week ago
Selected Answer: B
B. Consensus protocols Explanation: Split brain scenarios occur when nodes or components of a distributed application lose communication with each other, leading to conflicting or inconsistent states. To guard against split brain, distributed systems rely on consensus protocols to ensure that a majority of nodes agree on a consistent state, even in the presence of network partitions or failures
upvoted 2 times
...
Jtrix88772
2 months, 2 weeks ago
Selected Answer: D
Question clearly asks "Which Kubernetes feature". I don't think "Consensus protocols" are part of Kubernetes.
upvoted 1 times
...
Andrei_Z
5 months, 2 weeks ago
Selected Answer: D
The question says: "with your distributed application" so it is D.
upvoted 1 times
...
EzBL
8 months, 2 weeks ago
Selected Answer: B
Consensus protocols, such as those provided by distributed systems like etcd or ZooKeeper, help prevent split-brain scenarios by ensuring that only one leader or primary instance is elected to make decisions or perform critical tasks within the distributed system at any given time. These protocols provide mechanisms for nodes to coordinate and agree on the state of the system, even in the presence of network partitions or failures, thereby mitigating the risk of conflicting or divergent states that could lead to split-brain scenarios. While Kubernetes itself does not provide consensus protocols directly, it often relies on external systems like etcd for managing cluster state and coordination.
upvoted 2 times
...
SeaH0rse66
9 months, 3 weeks ago
Selected Answer: D
D. StatefulSet While consensus protocols are generally used to prevent split brain scenarios in distributed systems, the provided information highlights that StatefulSets are specifically designed to ensure the stability and integrity of distributed and clustered applications. StatefulSets maintain "at most one" semantics, which helps prevent multiple instances of the same identity, reducing the risk of split brain scenarios and data loss in quorum-based systems. StatefulSets are well-suited for applications that require stable network identity and storage, providing mechanisms to manage pod identities, persistent storage, and ordered deployment and scaling. Therefore, StatefulSets are the most appropriate Kubernetes feature to mitigate the risk of split brain scenarios in this context.
upvoted 3 times
...
hovnival
10 months, 1 week ago
Selected Answer: B
guys, both copilot and ChatGPT says Consensus protocols.
upvoted 2 times
SeaH0rse66
9 months, 3 weeks ago
chatGPT is wrong...D. StatefulSet While consensus protocols are generally used to prevent split brain scenarios in distributed systems, the provided information highlights that StatefulSets are specifically designed to ensure the stability and integrity of distributed and clustered applications. StatefulSets maintain "at most one" semantics, which helps prevent multiple instances of the same identity, reducing the risk of split brain scenarios and data loss in quorum-based systems. StatefulSets are well-suited for applications that require stable network identity and storage, providing mechanisms to manage pod identities, persistent storage, and ordered deployment and scaling. Therefore, StatefulSets are the most appropriate Kubernetes feature to mitigate the risk of split brain scenarios in this context.
upvoted 1 times
...
...
phcunha
11 months, 3 weeks ago
Think of StatefulSet in Kubernetes as a traffic control system at an intersection with multiple lanes. Just as the traffic control system manages the flow of vehicles through the intersection, ensuring that only one lane can proceed at a time to prevent collisions or gridlock, StatefulSet manages the deployment of stateful applications, ensuring that only one instance can be active or "in charge" at any given time to prevent conflicts or inconsistencies in distributed systems.
upvoted 1 times
...
pulsefire
1 year ago
Selected Answer: D
https://kubernetes.io/docs/tasks/run-application/force-delete-stateful-set-pod/#:~:text=split%20brain%20scenario%20in%20quorum%2Dbased%20systems
upvoted 3 times
...
sad_schedule
1 year, 1 month ago
https://unofficial-kubernetes.readthedocs.io/en/latest/tasks/manage-stateful-set/upgrade-pet-set-to-stateful-set/#:~:text=StatefulSet%20guards%20against%20split%20brain,brain%20scenarios%20with%20distributed%20applications.
upvoted 1 times
...
sadsak
1 year, 2 months ago
Shouldn't this be Consensus protocols?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago