Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 37 of 85
Free Preview · 85 of 282 · questions 1–85 of 282 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The question asks about the K8s feature and not what the application should implement. Hence the answer is D. For the application to prevent split brain it should use Consensus protocol. However, it would use the stateful set feature of K8s. That's why I believe it's D.
Split brain occurs when multiple replicas of a distributed application (like a database or consensus system) believe they are the leader due to network partitions or miscoordination. • Kubernetes StatefulSets are designed for stateful, distributed applications that require: • Stable network identities (each pod gets a consistent DNS name). • Ordered, graceful deployment and scaling (pods come up one at a time, in sequence). • Persistent storage association (each pod keeps its own volume). • These guarantees help distributed systems maintain quorum and avoid multiple leaders, reducing the risk of split brain
A. Replication controllers: Ensure a specified number of pod replicas are running, but don’t handle split-brain or consensus. C. Rolling updates: Manage application updates with zero downtime, but unrelated to split-brain prevention. D. StatefulSet: Useful for managing stateful applications and preserving identity across restarts, but it doesn’t prevent split-brain conditions. So, B. Consensus protocols is the correct and most relevant answer.