CNCF CKA Practice Test 33
Question 320
An engineer needs to justify a change for this issue: Pods on one worker fail while the node reports DiskPressure. Which technical reason is MOST relevant?
- Context misselection can masquerade as a cluster outage.
- Image and ephemeral filesystem consumption can trigger node disk pressure and evictions.
- Autoscaling requires available metrics and valid target configuration.
- Service routing depends on node dataplane health distinct from Pod connectivity.
Explanation
Correct Answer
B:Image and ephemeral filesystem consumption can trigger node disk pressure and evictions. This principle explains the targeted result. A concrete response is: Inspect image, container log and ephemeral-storage usage and reclaim space safely.
Incorrect Answers
A:Context misselection can masquerade as a cluster outage. This principle is useful for another case (kubectl suddenly reports connection refused after the team changed contexts.), but does not explain the most direct solution here. The governing consideration is: Image and ephemeral filesystem consumption can trigger node disk pressure and evictions.
C:Autoscaling requires available metrics and valid target configuration. This principle is useful for another case (HPA displays <unknown> target metrics while replicas never scale.), but does not explain the most direct solution here. The governing consideration is: Image and ephemeral filesystem consumption can trigger node disk pressure and evictions.
D:This principle is useful for another case (Service ClusterIP connections fail on one node even though direct Pod IP connections work.), but does not explain the most direct solution here. Image and ephemeral filesystem consumption can trigger node disk pressure and evictions.
Question 321
An administrator reviews several possible responses to this condition: A recent Deployment image change causes requests to fail and the previous revision worked. Which option creates an avoidable failure?
- Choose a storage access mode backed by real CSI capabilities.
- Patch running Pods directly and leave the Deployment unchanged.
- Record a rollback approach before high-impact control-plane changes.
- Use a staged rollout and observe readiness before full deployment.
Explanation
Correct Answer
B:Patch running Pods directly and leave the Deployment unchanged. Deployment rollout history can support a controlled rollback without rebuilding manifests. A safer course is: Roll back the Deployment to a known healthy revision using rollout undo.
Incorrect Answers
A: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: Roll back the Deployment to a known healthy revision using rollout undo.
C:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Roll back the Deployment to a known healthy revision using rollout undo.
D: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: Roll back the Deployment to a known healthy revision using rollout undo.
Question 322
During remediation, this failure appears: A Pod is Pending with a message about unbound immediate PersistentVolumeClaims. Which action is the LEAST defensible?
- Verify the target cluster and namespace before mutating resources.
- Increase container CPU limits as the sole response to an unbound PVC.
- Review controller logs and resource status to understand reconciliation failures.
- Choose a storage access mode backed by real CSI capabilities.
Explanation
Correct Answer
B:Increase container CPU limits as the sole response to an unbound PVC. Persistent storage binding can be a prerequisite for Pod placement. A safer course is: Resolve PVC provisioning or binding before expecting the scheduler to place the Pod.
Incorrect Answers
A:Verify the target cluster and namespace before mutating resources. Explicit target context avoids changing the wrong environment. For the stated case, a focused correction is: Resolve PVC provisioning or binding before expecting the scheduler to place the Pod.
C: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: Resolve PVC provisioning or binding before expecting the scheduler to place the Pod.
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: Resolve PVC provisioning or binding before expecting the scheduler to place the Pod.
Question 323
Following this Kubernetes scenario, an operator validates remediation: A control-plane certificate replacement causes clients to reject the API server. Which measurable outcome shows success?
- ClusterIP routing recovers without changing application code or Pod IPs.
- Clients verify and connect to the legitimate API server after certificate correction.
- etcd accepts writes after storage alarms are correctly cleared.
- The preceding crash output reveals the failing command or config path.
Explanation
Correct Answer
B:Clients verify and connect to the legitimate API server after certificate correction. The corresponding action is: Validate the serving certificate SANs, trusted CA and configured server endpoint.
Incorrect Answers
A:ClusterIP routing recovers without changing application code or Pod IPs. This is evidence for a separate case (Service ClusterIP connections fail on one node even though direct Pod IP connections work.), not for the target problem. An appropriate validation would be: Clients verify and connect to the legitimate API server after certificate correction.
C:Etcd accepts writes after storage alarms are correctly cleared. This is evidence for a separate case (etcd returns a no-space alarm after excessive database growth.), not for the target problem. An appropriate validation would be: Clients verify and connect to the legitimate API server after certificate correction.
D:The preceding crash output reveals the failing command or config path. This is evidence for a separate case (An app container restarts so quickly that current kubectl logs show only its latest attempt.), not for the target problem. An appropriate validation would be: Clients verify and connect to the legitimate API server after certificate correction.
Question 324
An administrator is investigating this situation: A Deployment is using image v1 but needs a controlled update to image v2. Which action BEST resolves the underlying issue?
- Update the image on the Deployment and observe its rolling rollout.
- Use a StatefulSet with stable network identity and volumeClaimTemplates as appropriate.
- Create a CronJob with schedule and concurrencyPolicy Forbid if overlap is unsafe.
- Adjust realistic resource requests or add capacity before scheduling.
Explanation
Correct Answer
A:Update the image on the Deployment and observe its rolling rollout. This correction targets the specific failure. Deployment controllers reconcile ReplicaSets to achieve a declared desired state. A successful result is: All desired replicas use image v2 and rollout status completes successfully.
Incorrect Answers
B:This procedure belongs to a different Kubernetes condition (Database replicas require stable identities and persistent storage across rescheduling.). Use a StatefulSet with stable network identity and volumeClaimTemplates as appropriate.
C:Create a CronJob with schedule and concurrencyPolicy Forbid if overlap is unsafe. This procedure belongs to a different Kubernetes condition (A cleanup should run nightly but prevent overlapping executions.). It does not directly resolve the observed failure. The targeted action is: Update the image on the Deployment and observe its rolling rollout.
D:Adjust realistic resource requests or add capacity before scheduling. This procedure belongs to a different Kubernetes condition (A Pod is Pending because requested memory exceeds all node allocatable resources.). It does not directly resolve the observed failure. The targeted action is: Update the image on the Deployment and observe its rolling rollout.
Question 325
During remediation, this failure appears: An intended kubeadm worker reports kubelet swap-related startup failures. Which action is the LEAST defensible?
- Use a staged rollout and observe readiness before full deployment.
- Test connectivity from the affected Pod before redesigning all Services.
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Change unrelated Deployment replicas until the kubelet starts.
Explanation
Correct Answer
D:Change unrelated Deployment replicas until the kubelet starts. Host prerequisites and kubelet configuration determine whether nodes can participate. A safer course is: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
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: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
B: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: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
C:Confirm actual node conditions and allocatable resources before scheduling changes. Scheduler behavior must be assessed against real node constraints. For the stated case, a focused correction is: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
Question 326
An administrator is investigating this situation: A team mistakes the container network interface for the container runtime interface. Which action BEST resolves the underlying issue?
- Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
- Select a compatible CNI for Pod networking and separately verify CRI runtime integration.
- Install or correct the matching CRD, then verify the API discovery before applying the custom object.
- Inspect available kubeconfig contexts and explicitly select or specify the intended context.
Explanation
Correct Answer
B:Select a compatible CNI for Pod networking and separately verify CRI runtime integration. This correction targets the specific failure. CNI, CRI and CSI solve different cluster extension problems. A successful result is: Network add-on handles Pod routes while the runtime handles container lifecycle.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A stacked-etcd cluster has lost quorum after too many control-plane failures.). Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
C:This procedure belongs to a different Kubernetes condition (A custom resource cannot be created because the API server does not recognize its kind.).
D:Inspect available kubeconfig contexts and explicitly select or specify the intended context.
Question 327
A platform engineer receives this incident: The control plane is upgraded but one worker still runs an older supported kubelet. Which change should be made first after validating the facts?
- Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
- Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation.
- Install and configure a CNI compatible with the cluster Pod CIDR.
- Assign a dedicated ServiceAccount and disable token automount if API access is unnecessary.
Explanation
Correct Answer
B:Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation. This correction targets the specific failure. Worker component upgrades follow control-plane upgrades and require deliberate node handling. A successful result is: The worker rejoins Ready with the approved kubelet version and scheduled workloads recover.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A stacked-etcd control plane needs a recoverable snapshot before upgrade.). Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
C:This procedure belongs to a different Kubernetes condition (Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.). Install and configure a CNI compatible with the cluster Pod CIDR.
D:This procedure belongs to a different Kubernetes condition (A Pod in test is unintentionally accessing the API with its default ServiceAccount.).
Question 328
In a Kubernetes cluster, the following condition is observed: kubeadm reports multiple CRI sockets and cannot select the runtime. Which remediation MOST directly addresses it?
- Plan the ordered control-plane upgrade using kubeadm upgrade plan and supported version skew guidance.
- Align the node advertise address and stable control-plane endpoint with reachable network interfaces.
- Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
- Specify the intended working CRI socket in kubeadm configuration and verify runtime health.
Explanation
Correct Answer
D:Specify the intended working CRI socket in kubeadm configuration and verify runtime health. This correction targets the specific failure. Kubelet communicates with a CRI-compatible runtime at a valid socket. A successful result is: kubeadm uses the correct runtime endpoint and container creation succeeds.
Incorrect Answers
A:Plan the ordered control-plane upgrade using kubeadm upgrade plan and supported version skew guidance. This procedure belongs to a different Kubernetes condition (A kubeadm managed cluster must move one supported minor release forward.). It does not directly resolve the observed failure. The targeted action is: Specify the intended working CRI socket in kubeadm configuration and verify runtime health.
B:This procedure belongs to a different Kubernetes condition (A kubeadm init uses an advertise address unreachable from joining nodes.). Align the node advertise address and stable control-plane endpoint with reachable network interfaces.
C:Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
Question 329
During cluster maintenance, an engineer finds this problem: A Pod remains ContainerCreating with MountVolume.SetUp failed errors. Which next action is technically justified?
- Apply an approved toleration or choose an eligible untainted node.
- Inspect image, container log and ephemeral-storage usage and reclaim space safely.
- Measure node and Pod CPU usage and correlate resource requests with workload demand before adjusting capacity.
- Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
Explanation
Correct Answer
D:Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path. This correction targets the specific failure. Storage mount errors can occur after successful scheduling and PVC binding. A successful result is: The filesystem mounts and the Pod transitions to Running.
Incorrect Answers
A:Apply an approved toleration or choose an eligible untainted node. This procedure belongs to a different Kubernetes condition (A Pod is Pending with an untolerated NoSchedule taint despite free CPU.). It does not directly resolve the observed failure. The targeted action is: Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
B:This procedure belongs to a different Kubernetes condition (Pods on one worker fail while the node reports DiskPressure.). Inspect image, container log and ephemeral-storage usage and reclaim space safely.
C:Measure node and Pod CPU usage and correlate resource requests with workload demand before adjusting capacity. This procedure belongs to a different Kubernetes condition (A node reports high CPU use and latency spikes while the scheduler keeps assigning Pods.). It does not directly resolve the observed failure. The targeted action is: Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
Question 330
A Kubernetes operator wants to verify this condition: Pods on one worker fail while the node reports DiskPressure. Which investigation step is BEST suited to the case?
- Inspect kubelet logs and kubeconfig certificate dates and CA references.
- Inspect kubectl describe pod image pull events and verify image name and pull Secret.
- Use kubectl logs -n app deployment/web --all-containers=true --timestamps.
- Inspect kubectl describe node and node filesystem usage with df -h and crictl images.
Explanation
Correct Answer
D:Inspect kubectl describe node and node filesystem usage with df -h and crictl images. This diagnostic examines the relevant resource or subsystem. Image and ephemeral filesystem consumption can trigger node disk pressure and evictions. The validating result would be: The node clears DiskPressure and Pods can start with sufficient ephemeral storage.
Incorrect Answers
A:This check is appropriate to the separate problem (Kubelet logs show TLS certificate errors after a node credential rotation.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe node and node filesystem usage with df -h and crictl images.
B:This check is appropriate to the separate problem (Pods stay ImagePullBackOff after a private registry migration.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe node and node filesystem usage with df -h and crictl images.
C:This check is appropriate to the separate problem (An app writes errors to stderr but a team searches only a file in the container image.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe node and node filesystem usage with df -h and crictl images.