100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 150
During a remediation drill, the team evaluates the safe next steps and their consequences. A kubeadm control-plane API-server static Pod disappears after its manifest file is accidentally moved out of `/etc/kubernetes/manifests` Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose THREE statements.
- Create a HorizontalPodAutoscaler to recreate control-plane manifests.
- Inspect kubelet logs when the static Pod fails to return.
- Verify the API server is healthy after the manifest has been restored.
- Use `kubectl scale deployment kube-apiserver` in the default namespace.
- Restore a valid static Pod manifest at the kubelet manifest path.
- Change a Service port to recreate the deleted file.
Explanation
Correct Answers
B:The kubelet owns the static-Pod lifecycle independently of a Deployment controller. 'Use `kubectl scale deployment kube-apiserver` in the default namespace' would not achieve the required recovery because Kubeadm API-server static Pods are not managed by a Deployment.
C:File restoration is not complete until the local kubelet starts the control-plane container. 'Use `kubectl scale deployment kube-apiserver` in the default namespace' would not achieve the required recovery because Kubeadm API-server static Pods are not managed by a Deployment.
E:Kubelet watches that directory and creates/manages static Pods from its files. 'Use `kubectl scale deployment kube-apiserver` in the default namespace' would not achieve the required recovery because Kubeadm API-server static Pods are not managed by a Deployment.
Incorrect Answers
A:An HPA scales eligible workload targets; it cannot recreate a missing static manifest. Instead, 'Restore a valid static Pod manifest at the kubelet manifest path' addresses the failure directly: Kubelet watches that directory and creates/manages static Pods from its files.
D:Kubeadm API-server static Pods are not managed by a Deployment. Instead, 'Restore a valid static Pod manifest at the kubelet manifest path' addresses the failure directly: Kubelet watches that directory and creates/manages static Pods from its files.
F:Service ports do not manage files on a host filesystem. Instead, 'Inspect kubelet logs when the static Pod fails to return' addresses the failure directly: The kubelet owns the static-Pod lifecycle independently of a Deployment controller.
Question 151
A Pod needs to run on either zone east or west and its requiredDuringSchedulingIgnoredDuringExecution node affinity has two nodeSelectorTerms: one for east and one for west. Which statements describe eligible scheduling? Choose ONE answer.
- A node matching either term satisfies the required node affinity.
- Both nodeSelectorTerms must match the same node.
- The soft preferredDuringScheduling field is required for this hard filter.
- A matching term guarantees the Pod will run there.
Explanation
Correct Answer
A:Alternative nodeSelectorTerms are ORed.
Incorrect Answers
B:Different required nodeSelectorTerms are OR alternatives.
C:Required node affinity is independently enforced.
D:Node resource and taint checks can still prevent scheduling.
Question 152
A Pod requires disk=ssd through nodeSelector and a second required nodeAffinity rule selects zone=east. worker1 is disk=ssd but zone=west; worker2 satisfies both. What is the scheduling outcome? Choose ONE answer.
- worker2 satisfies both label constraints.
- worker1 is eligible because nodeSelector overrides affinity.
- Either hard constraint may be ignored when the other matches.
- The Pod becomes eligible on both nodes if an irrelevant preferred affinity is added.
Explanation
Correct Answer
A:NodeSelector and required node affinity must both match.
Incorrect Answers
B:Both hard constraints apply concurrently.
C:The scheduler evaluates an AND of nodeSelector and required affinity.
D:Preferences do not relax existing hard requirements.
Question 153
A Pod has `nodeSelector: {disk: ssd}` and required node affinity `zone In [west]`. Node A has disk=ssd,zone=east; node B has disk=hdd,zone=west; node C has disk=ssd,zone=west. All have free resources. Where may it schedule? Choose ONE answer.
- Node A only.
- On any of the three nodes.
- Node C only.
- Node B only.
Explanation
Correct Answer
C:Node C satisfies both independent hard filters: disk=ssd and zone=west.
Incorrect Answers
A:Node A fails required zone=west despite meeting the nodeSelector.
B:Kubernetes does not treat hard selectors and required affinity as optional alternatives.
D:Node B fails the disk=ssd nodeSelector despite meeting the zone affinity.
Question 154
A Pod has a toleration for dedicated=batch:NoSchedule. Its preferred node has taints dedicated=batch:NoSchedule and maintenance=true:NoSchedule. Which claims hold? Choose ONE answer.
- A matching toleration guarantees node placement.
- One matching toleration exempts the Pod from all taints.
- Both taints affect only already-running Pods.
- The maintenance taint still blocks the Pod without a matching toleration.
Explanation
Correct Answer
D:Every remaining intolerated NoSchedule taint prevents placement.
Incorrect Answers
A:Other scheduler predicates can still fail.
B:Tolerations match individual taints, not the whole node.
C:NoSchedule targets new placements; NoExecute controls evictions.
Question 155
A Pod has required node affinity containing two `nodeSelectorTerms`: the first matches zone=east AND disk=ssd; the second matches zone=west AND disk=hdd. One healthy node has west/hdd. Is it eligible? Choose ONE answer.
- No, it must match both terms.
- Yes, it matches the second complete term.
- No, hard affinity never matches label values.
- Only after enabling preferred affinity.
Explanation
Correct Answer
B:NodeSelectorTerms are combined with OR; the node satisfies both expressions within the west/hdd term.
Incorrect Answers
A:Separate nodeSelectorTerms are OR alternatives, not an AND across terms.
C:Required affinity uses node labels, and west/hdd is a valid matching pair.
D:Preferred affinity is unrelated to this required-affinity evaluation.
Question 156
A new Pod has a required podAntiAffinity rule that prevents it from sharing a hostname with a Pod labeled app=database. Two nodes exist; one hosts such a database Pod and the other does not. Which statements are true? Choose ONE answer.
- Anti-affinity is a preference even though requiredDuringScheduling is used.
- The policy deletes the existing database Pod.
- The node without a matching database Pod can satisfy the anti-affinity requirement.
- Adding CPU to the database node bypasses hard anti-affinity.
Explanation
Correct Answer
C:The topology match checks existing Pods with the chosen label.
Incorrect Answers
A:RequiredDuringSchedulingIgnoredDuringExecution is a hard predicate.
B:Scheduling anti-affinity influences placement, not deletion.
D:Resource headroom does not override anti-affinity.
Question 157
A workload uses topologySpreadConstraints with maxSkew: 1, topologyKey: topology.kubernetes.io/zone, whenUnsatisfiable: DoNotSchedule. One zone already holds five matching Pods and another holds one. Which statements are defensible? Choose ONE answer.
- The scheduler can redistribute existing Pods instantly to balance zones.
- maxSkew: 1 means unlimited skew for preferred zone placement.
- DoNotSchedule makes the spread constraint a hard placement limit.
- The crowded zone is always preferred because it contains more matching Pods.
Explanation
Correct Answer
C:A candidate that violates maxSkew is filtered rather than merely deprioritized.
Incorrect Answers
A:Topology spread controls admission placement, not an automatic migration.
B:A hard maxSkew must be respected.
D:Hard spread constraints favor reducing skew, not increasing it.
Question 158
A Pod prefers nodes labeled accelerator=true but has no hard selector. All accelerator nodes are full; a general node has sufficient CPU and memory. Which scheduling outcome is possible? Choose ONE answer.
- The Pod will be evicted from the general node.
- The Pod can schedule on the general node.
- The Pod must remain Pending.
- The Pod must first remove the affinity block.
Explanation
Correct Answer
B:A preferred affinity contributes to node scoring but does not filter otherwise feasible nodes.
Incorrect Answers
A:Scheduling preferences do not themselves cause post-placement eviction.
C:A preferred affinity is not a mandatory placement filter.
D:The scheduler can use eligible nonpreferred nodes without mutating the Pod.
Question 159
A data processing Pod has hard zone=west affinity and a preference for disk=nvme. Nodes west/hdd and east/nvme have ample resources. Choose TWO correct statements. Choose TWO answers.
- The west/hdd node is forbidden due to disk.
- Preferred affinity automatically relabels the west node.
- The west/hdd node is eligible.
- The east/nvme node is ineligible.
- The east/nvme node must win by preference.
Explanation
Correct Answers
C:Hard zone=west is satisfied there even though the NVMe preference is not.
D:The hard zone constraint excludes it despite its preferred disk.
Incorrect Answers
A:A soft preference does not filter otherwise eligible nodes.
B:Scheduler preferences do not mutate Node label metadata.
E:Preferred disk cannot override mandatory zone affinity.
Question 160
A Pod requires disk=ssd and requests 500m CPU. Node A has disk=ssd and 800m free with no taint; node B has disk=hdd and 900m free; node C has disk=ssd and 250m free. Choose THREE true statements. Choose THREE answers.
- Node B is feasible because it has more CPU.
- Node A is feasible on these stated criteria.
- Node B fails the hard disk label check.
- The scheduler splits the Pod between A and C.
- Node C fails the CPU request check.
- Node C is feasible because disk=ssd matches.
Explanation
Correct Answers
B:Its disk label and CPU headroom satisfy both filters.
C:It has the wrong disk label regardless of its large CPU headroom.
E:Only 250m is free while the Pod requests 500m.
Incorrect Answers
A:Resource capacity cannot compensate for a failed hard label rule.
D:One Pod is bound to a single Node rather than distributed across machines.
F:Labels cannot compensate for insufficient requested CPU.
Certified Kubernetes Administrator (CKA) Practice Tests