CNCF CKA Practice Test 58
Question 570
During cluster maintenance, an engineer finds this problem: A new storage integration must provision volumes without modifying kubelet core code. Which next action is technically justified?
- Use drain when eviction is needed; cordon alone only prevents new scheduling.
- Correct the kubelet CRI endpoint and verify runtime socket availability.
- Inspect release history and roll back to the last healthy chart revision.
- Install a supported CSI driver and associated controller/node components.
Explanation
Correct Answer
D:Install a supported CSI driver and associated controller/node components. This correction targets the specific failure. CSI decouples storage provider implementation from Kubernetes core. A successful result is: CSI objects and drivers become registered and claims can be provisioned.
Incorrect Answers
A:Use drain when eviction is needed; cordon alone only prevents new scheduling.
B:Correct the kubelet CRI endpoint and verify runtime socket availability. This procedure belongs to a different Kubernetes condition (A node image update changes the runtime socket and kubelet can no longer create containers.). It does not directly resolve the observed failure. The targeted action is: Install a supported CSI driver and associated controller/node components.
C:Inspect release history and roll back to the last healthy chart revision. This procedure belongs to a different Kubernetes condition (A Helm upgrade caused a regression in a cluster add-on.). It does not directly resolve the observed failure. The targeted action is: Install a supported CSI driver and associated controller/node components.
Question 571
An operations team tests its response to this finding: HPA reports unknown CPU utilization although Pods are running. Which outcome most clearly establishes that the fix worked?
- HPA displays utilization rather than unknown and computes a recommendation.
- Main application containers start only after initContainers complete successfully.
- Each replica retains stable ordinal identity and corresponding persistent claim.
- Replica count rises under load within min/max settings and scales down when demand drops.
Explanation
Correct Answer
A:HPA displays utilization rather than unknown and computes a recommendation. The corresponding action is: Ensure relevant CPU requests are defined and the resource metrics pipeline is working.
Incorrect Answers
B:Main application containers start only after initContainers complete successfully. This is evidence for a separate case (An application fails because its database initialization must happen before the main process.), not for the target problem. An appropriate validation would be: HPA displays utilization rather than unknown and computes a recommendation.
C:Each replica retains stable ordinal identity and corresponding persistent claim. This is evidence for a separate case (Database replicas require stable identities and persistent storage across rescheduling.), not for the target problem. An appropriate validation would be: HPA displays utilization rather than unknown and computes a recommendation.
D:Replica count rises under load within min/max settings and scales down when demand drops. This is evidence for a separate case (A CPU-bound deployment needs to grow replica count during sustained load.), not for the target problem. An appropriate validation would be: HPA displays utilization rather than unknown and computes a recommendation.
Question 572
A reviewer wants proof that this issue was corrected: A proposed upgrade would run kubelet newer than kube-apiserver. Which observed result is the STRONGEST evidence?
- Control-plane and node versions remain within supported relationships after rollout.
- The running Pod lacks an automatically mounted API token when no Kubernetes API access is needed.
- The controller can get its intended ConfigMaps but cannot modify Secrets or read other namespaces.
- Evictable workloads reschedule, disruption budgets are respected, and the node is safely maintained.
Explanation
Correct Answer
A:Control-plane and node versions remain within supported relationships after rollout. The corresponding action is: Reject the unsupported skew and follow the documented Kubernetes component version-skew policy.
Incorrect Answers
B:The running Pod lacks an automatically mounted API token when no Kubernetes API access is needed. This is evidence for a separate case (A Pod in test is unintentionally accessing the API with its default ServiceAccount.), not for the target problem. An appropriate validation would be: Control-plane and node versions remain within supported relationships after rollout.
C:The controller can get its intended ConfigMaps but cannot modify Secrets or read other namespaces. This is evidence for a separate case (A controller ServiceAccount needs to read ConfigMaps only in team-a.), not for the target problem. An appropriate validation would be: Control-plane and node versions remain within supported relationships after rollout.
D:Evictable workloads reschedule, disruption budgets are respected, and the node is safely maintained. This is evidence for a separate case (A worker requires OS maintenance while running replicated customer Pods.), not for the target problem. An appropriate validation would be: Control-plane and node versions remain within supported relationships after rollout.
Question 573
Following this Kubernetes scenario, an operator validates remediation: A StatefulSet is decommissioned but its underlying audit volume must remain for investigation. Which measurable outcome shows success?
- PVC and filesystem capacity increase to the requested size once reconciliation completes.
- Scheduling and attachment respect the volume's supported ReadWriteOnce topology.
- Deleting the PVC does not automatically delete the underlying retained storage.
- The PVC becomes Bound to a compatible volume and its Pod can mount it.
Explanation
Correct Answer
C:Deleting the PVC does not automatically delete the underlying retained storage. The corresponding action is: Set reclaimPolicy Retain and manage retained PV and backend data under approved procedure.
Incorrect Answers
A:PVC and filesystem capacity increase to the requested size once reconciliation completes. This is evidence for a separate case (A PVC is nearly full and its backing CSI driver supports growth.), not for the target problem. An appropriate validation would be: Deleting the PVC does not automatically delete the underlying retained storage.
B:Scheduling and attachment respect the volume's supported ReadWriteOnce topology. This is evidence for a separate case (Two Pods on different nodes try to attach the same RWO block volume and one remains Pending.), not for the target problem. An appropriate validation would be: Deleting the PVC does not automatically delete the underlying retained storage.
D:The PVC becomes Bound to a compatible volume and its Pod can mount it. This is evidence for a separate case (A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi.), not for the target problem. An appropriate validation would be: Deleting the PVC does not automatically delete the underlying retained storage.
Question 574
An administrator reviews several possible responses to this condition: kubectl top nodes fails with Metrics API not available. Which option creates an avoidable failure?
- Keep backups or change history for potentially destructive maintenance.
- Install a new Service named top in default namespace.
- Check applicable component version compatibility before upgrading.
- Choose a storage access mode backed by real CSI capabilities.
Explanation
Correct Answer
B:Install a new Service named top in default namespace. Resource metrics API availability depends on healthy metrics-server integration. A safer course is: Recover the supported metrics-server installation and its APIService registration.
Incorrect Answers
A:Keep backups or change history for potentially destructive maintenance. Recovery planning reduces the impact of a faulty change. For the stated case, a focused correction is: Recover the supported metrics-server installation and its APIService registration.
C:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Recover the supported metrics-server installation and its APIService registration.
D:Choose a storage access mode backed by real CSI capabilities. Requested volume semantics still depend on the storage implementation. For the stated case, a focused correction is: Recover the supported metrics-server installation and its APIService registration.
Question 575
A platform engineer receives this incident: A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills. Which change should be made first after validating the facts?
- Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
- Check egress route and SNAT or gateway configuration for the cluster network.
- Recover the controller-manager static Pod and verify its health and API permissions.
- Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
Explanation
Correct Answer
D:Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement. This correction targets the specific failure. Pod address exhaustion can block container networking despite healthy kubelet. A successful result is: New Pods obtain unique Pod IPs without collision after capacity remediation.
Incorrect Answers
A:Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path. This procedure belongs to a different Kubernetes condition (A Pod remains ContainerCreating with MountVolume.SetUp failed errors.). It does not directly resolve the observed failure. The targeted action is: Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
B:Check egress route and SNAT or gateway configuration for the cluster network. This procedure belongs to a different Kubernetes condition (Pods reach cluster Services but cannot contact external APIs from private node networks.). It does not directly resolve the observed failure. The targeted action is: Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
C:Recover the controller-manager static Pod and verify its health and API permissions. This procedure belongs to a different Kubernetes condition (ReplicaSets stop creating replacement Pods after kube-controller-manager crashes.). It does not directly resolve the observed failure. The targeted action is: Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
Question 576
An engineer needs to justify a change for this issue: A new worker never registers though kubeadm join exited with an error. Which technical reason is MOST relevant?
- DNS, network path and application listener failures require different diagnostics.
- Invalid static Pod manifests prevent kubelet from reconciling critical control-plane components.
- Service existence does not guarantee a healthy backend endpoint.
- Node bootstrap failures must be distinguished from post-registration scheduling faults.
Explanation
Correct Answer
D:Node bootstrap failures must be distinguished from post-registration scheduling faults. This principle explains the targeted result. A concrete response is: Inspect kubeadm join output, API endpoint, token and discovery CA trust before retrying.
Incorrect Answers
A:This principle is useful for another case (An app cannot reach a database and the error is a TCP timeout, not DNS NXDOMAIN.), but does not explain the most direct solution here. Node bootstrap failures must be distinguished from post-registration scheduling faults.
B:Invalid static Pod manifests prevent kubelet from reconciling critical control-plane components. This principle is useful for another case (After a malformed YAML edit, kubelet stops running kube-controller-manager.), but does not explain the most direct solution here. The governing consideration is: Node bootstrap failures must be distinguished from post-registration scheduling faults.
C:This principle is useful for another case (A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints.), but does not explain the most direct solution here.
Question 577
For this Kubernetes issue, select TWO statements that correctly pair a response with the evidence it should produce: An internal backend should only be reachable from inside the cluster through one stable address.
- Remediation: Use a public LoadBalancer for a backend required to be private.
- Validation: Expected per-Pod DNS records resolve for stable StatefulSet member names.
- Validation: In-cluster clients reach the Service while no direct external listener is created.
- Remediation: Inspect Service routing implementation, kube-proxy or equivalent dataplane, and endpoint health.
- Remediation: Use a ClusterIP Service selecting the backend Pods.
Explanation
Correct Answers
C:Validation: In-cluster clients reach the Service while no direct external listener is created. This result verifies the behavior the remediation is supposed to restore.
E:Remediation: Use a ClusterIP Service selecting the backend Pods. The remedy targets the reported failure rather than a different subsystem. ClusterIP is the basic internal Service exposure model.
Incorrect Answers
A:Remediation: Use a public LoadBalancer for a backend required to be private. This is the unsafe shortcut for the case, not an acceptable intervention. ClusterIP is the basic internal Service exposure model.
B:Validation: Expected per-Pod DNS records resolve for stable StatefulSet member names. This evidence applies to a different condition (A StatefulSet member cannot resolve its ordinal hostname after the governing Service changed.), and would not verify this target fix: An internal backend should only be reachable from inside the cluster through one stable address.
D:Remediation: Inspect Service routing implementation, kube-proxy or equivalent dataplane, and endpoint health. This action targets a different condition (A Service virtual IP fails although direct Pod IP connectivity works.), not this reported failure: An internal backend should only be reachable from inside the cluster through one stable address.
Question 578
A cluster team is handling this situation: A new control-plane component does not appear ready after a manifest update. Which proposed shortcut should be REJECTED?
- Delete unrelated namespaces to force reconciliation.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Inspect Pod and component events before changing unrelated resources.
- Test connectivity from the affected Pod before redesigning all Services.
Explanation
Correct Answer
A:Delete unrelated namespaces to force reconciliation. Cluster change diagnosis needs observed component evidence, not guesswork. A safer course is: Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
Incorrect Answers
B:Inspect the exact Secret or ConfigMap reference without exposing credentials. Configuration errors can be diagnosed without leaking sensitive data. For the stated case, a focused correction is: Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
C:Inspect Pod and component events before changing unrelated resources. Observed events help locate the failing subsystem before a change. For the stated case, a focused correction is: Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
D:Test connectivity from the affected Pod before redesigning all Services. Layered checks separate DNS, network and application failures. For the stated case, a focused correction is: Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
Question 579
An administrator reviews several possible responses to this condition: Three replicas should avoid sharing one host to improve failure tolerance. Which option creates an avoidable failure?
- Use a staged rollout and observe readiness before full deployment.
- Review controller logs and resource status to understand reconciliation failures.
- Record a rollback approach before high-impact control-plane changes.
- Set all replicas to a single explicit nodeName and call them redundant.
Explanation
Correct Answer
D:Set all replicas to a single explicit nodeName and call them redundant. Pod anti-affinity can spread replicas according to matching Pod labels. A safer course is: Configure pod anti-affinity using appropriate topologyKey and workload labels.
Incorrect Answers
A:Use a staged rollout and observe readiness before full deployment. Staged changes reduce simultaneous loss of healthy replicas. For the stated case, a focused correction is: Configure pod anti-affinity using appropriate topologyKey and workload labels.
B:Review controller logs and resource status to understand reconciliation failures. Controller evidence can distinguish desired state from observed failure. For the stated case, a focused correction is: Configure pod anti-affinity using appropriate topologyKey and workload labels.
C:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Configure pod anti-affinity using appropriate topologyKey and workload labels.
Question 580
A reviewer wants proof that this issue was corrected: A new storage integration must provision volumes without modifying kubelet core code. Which observed result is the STRONGEST evidence?
- CSI objects and drivers become registered and claims can be provisioned.
- Nodes transition to Ready and cross-node Pod connectivity becomes available.
- The additional control-plane node becomes Ready and control-plane static Pods are healthy.
- Kubelet connects successfully to the runtime and new Pods start.
Explanation
Correct Answer
A:CSI objects and drivers become registered and claims can be provisioned. The corresponding action is: Install a supported CSI driver and associated controller/node components.
Incorrect Answers
B:Nodes transition to Ready and cross-node Pod connectivity becomes available. This is evidence for a separate case (Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.), not for the target problem. An appropriate validation would be: CSI objects and drivers become registered and claims can be provisioned.
C:The additional control-plane node becomes Ready and control-plane static Pods are healthy. This is evidence for a separate case (A high-availability control plane needs another control-plane node joined securely.), not for the target problem. An appropriate validation would be: CSI objects and drivers become registered and claims can be provisioned.
D:Kubelet connects successfully to the runtime and new Pods start. This is evidence for a separate case (A node image update changes the runtime socket and kubelet can no longer create containers.), not for the target problem. An appropriate validation would be: CSI objects and drivers become registered and claims can be provisioned.