KCNA practice question 12 of 25
What happens with a regular Pod running in Kubernetes when a node fails?
Full set: 240 questionsIn Kubernetes, standalone Pods are not rescheduled upon node failure. However, a "regular" Pod in a production context is almost always managed by a higher-level controller like a Deployment or ReplicaSet. When a node fails, the controller manager detects that the Pod is gone. To maintain the desired state (i.e., the specified number of replicas), the controller's logic creates a new Pod based on the same template. This new Pod is a near-identical replacement but is a distinct object with a new, unique UID and name, and the scheduler places it on a healthy node.
A. A new Pod is always assigned a new, unique UID. The UID is an immutable identifier for the lifetime of an object.
C. The purpose of orchestration is to maintain availability; scheduling a replacement Pod on a failed node would be counterproductive and is not the default behavior.
D. This rescheduling behavior is the default, core function of controllers like Deployments and ReplicaSets; no explicit configuration is needed for this high-availability feature.
1. Kubernetes Authors. (n.d.). Pods - Pod Lifecycle. Kubernetes Documentation. Retrieved from https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/. This page explains that "Pods do not, by themselves, self-heal... If a Pod is scheduled to a Node that then fails... the Pod is deleted... For a Pod to be automatically replaced, you should use a workload resource that includes a controller."
2. Kubernetes Authors. (n.d.). ReplicaSet. Kubernetes Documentation. Retrieved from https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/. This document states, "A ReplicaSet's purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the availability of a specified number of identical Pods."
3. The Linux Foundation. (2023). Kubernetes and Cloud Native Associate (KCNA) Curriculum v1.2. Section 2.3, Workloads. This section covers controllers like Deployments and their role in maintaining the desired state, which includes replacing Pods after a node failure.
Keep practicing
Take the free KCNA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other KCNA practice questions
- Question 1Which of these commands is used to retrieve the documentation and field definitions for a…
- Question 2Kubernetes Secrets are specifically intended to hold confidential dat a. Which API object…
- Question 3What is the practice of bringing financial accountability to the variable spend model of …
- Question 6In Kubernetes, which command is the most efficient way to check the progress of a Deploym…
- Question 7What Kubernetes component handles network communications inside and outside of a cluster,…
- Question 8Kubernetes supports multiple virtual clusters backed by the same physical cluster. These …
