CNCF CKA Practice Test 59
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.
Question 581
During remediation, this failure appears: Egress-isolated Pods cannot resolve DNS even though their app traffic policy is correct. Which action is the LEAST defensible?
- Preserve relevant logs when diagnosing a repeating container crash.
- Remove all egress restrictions just to restore name resolution.
- Validate a change with a repeatable positive and negative test.
- Choose a storage access mode backed by real CSI capabilities.
Explanation
Correct Answer
B:Remove all egress restrictions just to restore name resolution. Egress policies must allow necessary dependency traffic such as DNS. A safer course is: Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
Incorrect Answers
A:Preserve relevant logs when diagnosing a repeating container crash. Prior process output often identifies the immediate cause. For the stated case, a focused correction is: Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
C:Validate a change with a repeatable positive and negative test. A testable outcome provides stronger evidence than intent alone. For the stated case, a focused correction is: Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
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: Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
Question 582
In a Kubernetes cluster, the following condition is observed: kubectl suddenly reports connection refused after the team changed contexts. Which remediation MOST directly addresses it?
- Inspect current context and configured cluster server address, then choose the correct target.
- Correct the invalid backend Service reference or required cross-namespace ReferenceGrant.
- Check egress route and SNAT or gateway configuration for the cluster network.
- Investigate memory consumption and set appropriate requests, limits or fix the application's memory use.
Explanation
Correct Answer
A:Inspect current context and configured cluster server address, then choose the correct target. This correction targets the specific failure. Context misselection can masquerade as a cluster outage. A successful result is: kubectl reaches the intended API endpoint without changing workloads.
Incorrect Answers
B:This procedure belongs to a different Kubernetes condition (An HTTPRoute is not serving traffic and its status reports ResolvedRefs False.).
C: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 current context and configured cluster server address, then choose the correct target.
D:Investigate memory consumption and set appropriate requests, limits or fix the application's memory use. This procedure belongs to a different Kubernetes condition (A container enters CrashLoopBackOff and lastState terminated reason is OOMKilled.). It does not directly resolve the observed failure. The targeted action is: Inspect current context and configured cluster server address, then choose the correct target.
Question 583
A reviewer wants proof that this issue was corrected: Kubelet logs show TLS certificate errors after a node credential rotation. Which observed result is the STRONGEST evidence?
- Scheduling resumes and eligible Pods receive node assignments.
- The Pod schedules on an appropriate node that satisfies required affinity.
- Kubelet authenticates to the API and node status updates normally.
- The identified workload and node saturation explain latency and a targeted capacity change restores headroom.
Explanation
Correct Answer
C:Kubelet authenticates to the API and node status updates normally. The corresponding action is: Diagnose valid kubelet client/server certificates and repair credential rotation through supported mechanisms.
Incorrect Answers
A:Scheduling resumes and eligible Pods receive node assignments. This is evidence for a separate case (New Pods remain Pending even with free node resources and kube-scheduler is unhealthy.), not for the target problem. An appropriate validation would be: Kubelet authenticates to the API and node status updates normally.
B:The Pod schedules on an appropriate node that satisfies required affinity. This is evidence for a separate case (A Pod requests a non-existent node label through required node affinity.), not for the target problem. An appropriate validation would be: Kubelet authenticates to the API and node status updates normally.
D:The identified workload and node saturation explain latency and a targeted capacity change restores headroom. This is evidence for a separate case (A node reports high CPU use and latency spikes while the scheduler keeps assigning Pods.), not for the target problem. An appropriate validation would be: Kubelet authenticates to the API and node status updates normally.
Question 584
For this Kubernetes issue, select TWO statements that correctly pair a response with the evidence it should produce: A custom resource cannot be created because the API server does not recognize its kind.
- Remediation: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
- Remediation: Apply the same invalid custom object repeatedly without installing its CRD.
- Remediation: Install or correct the matching CRD, then verify the API discovery before applying the custom object.
- Validation: kubectl recognizes the new kind and the custom resource can be admitted.
- Validation: kubectl commands target the authorized cluster and expected namespace.
Explanation
Correct Answers
C:Remediation: Install or correct the matching CRD, then verify the API discovery before applying the custom object. The remedy targets the reported failure rather than a different subsystem. CRDs extend Kubernetes API schemas before custom instances can be created.
D:Validation: kubectl recognizes the new kind and the custom resource can be admitted. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Remediation: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash. This action targets a different condition (A worker join fails with a discovery CA certificate hash mismatch.), not this reported failure: A custom resource cannot be created because the API server does not recognize its kind.
B:Remediation: Apply the same invalid custom object repeatedly without installing its CRD. This is the unsafe shortcut for the case, not an acceptable intervention. CRDs extend Kubernetes API schemas before custom instances can be created.
E:Validation: kubectl commands target the authorized cluster and expected namespace. This evidence applies to a different condition (A kubectl command is applying objects in the wrong environment after a context switch.), and would not verify this target fix: A custom resource cannot be created because the API server does not recognize its kind.
Question 585
Consider the following Kubernetes administration case: A team stores a critical database file in an emptyDir volume and loses it after Pod replacement. Which principle BEST explains the intended solution?
- Access modes describe requested mounting capabilities but need backend support.
- emptyDir is tied to a Pod lifetime and is not durable storage.
- Default StorageClasses influence requests that do not explicitly select a class.
- Delete reclaim policy instructs supported provisioners to remove backing assets.
Explanation
Correct Answer
B:EmptyDir is tied to a Pod lifetime and is not durable storage. This principle explains the targeted result. A concrete response is: Use persistent storage backed by a PVC for data that must survive Pod deletion.
Incorrect Answers
A:This principle is useful for another case (A shared file workload requires concurrent writes from multiple nodes.), but does not explain the most direct solution here.
C:This principle is useful for another case (New claims omit storageClassName and use an unintended slow storage provider.), but does not explain the most direct solution here. EmptyDir is tied to a Pod lifetime and is not durable storage.
D:This principle is useful for another case (A temporary dynamically provisioned data volume should be removed with its claim.), but does not explain the most direct solution here. EmptyDir is tied to a Pod lifetime and is not durable storage.
Question 586
During remediation, this failure appears: A custom resource cannot be created because the API server does not recognize its kind. Which action is the LEAST defensible?
- Record a rollback approach before high-impact control-plane changes.
- Apply the same invalid custom object repeatedly without installing its CRD.
- Validate a change with a repeatable positive and negative test.
- Verify the target cluster and namespace before mutating resources.
Explanation
Correct Answer
B:Apply the same invalid custom object repeatedly without installing its CRD. CRDs extend Kubernetes API schemas before custom instances can be created. A safer course is: Install or correct the matching CRD, then verify the API discovery before applying the custom object.
Incorrect Answers
A:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Install or correct the matching CRD, then verify the API discovery before applying the custom object.
C:Validate a change with a repeatable positive and negative test. A testable outcome provides stronger evidence than intent alone. For the stated case, a focused correction is: Install or correct the matching CRD, then verify the API discovery before applying the custom object.
D: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: Install or correct the matching CRD, then verify the API discovery before applying the custom object.
Question 587
Consider the following Kubernetes administration case: kubeadm reports multiple CRI sockets and cannot select the runtime. Which principle BEST explains the intended solution?
- kubectl uses current-context, user and cluster mappings that must be validated.
- Kubelet communicates with a CRI-compatible runtime at a valid socket.
- ServiceAccount token exposure should match a workload's API access requirements.
- RBAC resourceNames can narrow certain resource requests to named objects.
Explanation
Correct Answer
B:Kubelet communicates with a CRI-compatible runtime at a valid socket. This principle explains the targeted result. A concrete response is: Specify the intended working CRI socket in kubeadm configuration and verify runtime health.
Incorrect Answers
A:This principle is useful for another case (A kubectl command is applying objects in the wrong environment after a context switch.), but does not explain the most direct solution here. Kubelet communicates with a CRI-compatible runtime at a valid socket.
C:This principle is useful for another case (A Pod in test is unintentionally accessing the API with its default ServiceAccount.), but does not explain the most direct solution here. Kubelet communicates with a CRI-compatible runtime at a valid socket.
D:This principle is useful for another case (An operator must update one named ConfigMap but must not edit every ConfigMap.), but does not explain the most direct solution here. Kubelet communicates with a CRI-compatible runtime at a valid socket.
Question 588
An operations team tests its response to this finding: A maintenance drain would evict too many healthy replicas of a critical application. Which outcome most clearly establishes that the fix worked?
- The scheduler favors the intended zone when feasible but still permits alternatives.
- The Pod lands only on nodes with the confirmed GPU label and hardware.
- HPA displays utilization rather than unknown and computes a recommendation.
- Voluntary eviction respects the budget and drain waits or fails rather than violating it.
Explanation
Correct Answer
D:Voluntary eviction respects the budget and drain waits or fails rather than violating it. This outcome shows the required behavior after correction. The corresponding action is: Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
Incorrect Answers
A:The scheduler favors the intended zone when feasible but still permits alternatives. This is evidence for a separate case (A workload prefers zone-b for latency but can operate in other zones.), not for the target problem. An appropriate validation would be: Voluntary eviction respects the budget and drain waits or fails rather than violating it.
B:The Pod lands only on nodes with the confirmed GPU label and hardware. This is evidence for a separate case (A GPU workload was scheduled on a node without GPU hardware.), not for the target problem. An appropriate validation would be: Voluntary eviction respects the budget and drain waits or fails rather than violating it.
C:HPA displays utilization rather than unknown and computes a recommendation. This is evidence for a separate case (HPA reports unknown CPU utilization although Pods are running.), not for the target problem. An appropriate validation would be: Voluntary eviction respects the budget and drain waits or fails rather than violating it.
Question 589
A reviewer wants proof that this issue was corrected: A workload requires a nonsecret configuration file that varies per namespace. Which observed result is the STRONGEST evidence?
- The Pod schedules onto a node with sufficient available allocatable resources.
- The application reads the intended namespace configuration and the Pod references the ConfigMap.
- The Pod is excluded from Service endpoints until it becomes ready.
- Voluntary eviction respects the budget and drain waits or fails rather than violating it.
Explanation
Correct Answer
B:The application reads the intended namespace configuration and the Pod references the ConfigMap. The corresponding action is: Mount a ConfigMap as a volume or use its keys in environment configuration as appropriate.
Incorrect Answers
A:The Pod schedules onto a node with sufficient available allocatable resources. This is evidence for a separate case (A Pod is Pending because requested memory exceeds all node allocatable resources.), not for the target problem. An appropriate validation would be: The application reads the intended namespace configuration and the Pod references the ConfigMap.
C:The Pod is excluded from Service endpoints until it becomes ready. This is evidence for a separate case (A container is running but cannot serve requests until a cache is primed.), not for the target problem. An appropriate validation would be: The application reads the intended namespace configuration and the Pod references the ConfigMap.
D:Voluntary eviction respects the budget and drain waits or fails rather than violating it. This is evidence for a separate case (A maintenance drain would evict too many healthy replicas of a critical application.), not for the target problem. An appropriate validation would be: The application reads the intended namespace configuration and the Pod references the ConfigMap.
Question 590
In a Kubernetes cluster, the following condition is observed: All kubectl API calls fail following an edit to kube-apiserver static Pod YAML. Which remediation MOST directly addresses it?
- Test name resolution, then TCP reachability, policies and listening port stepwise.
- Inspect scheduler static Pod health, logs and leader election before targeted repair.
- Validate the serving certificate SANs, trusted CA and configured server endpoint.
- Inspect and correct the control-plane static Pod manifest and kubelet runtime logs.
Explanation
Correct Answer
D:Inspect and correct the control-plane static Pod manifest and kubelet runtime logs. This correction targets the specific failure. Kubelet manages the kubeadm control-plane static Pod from a local manifest. A successful result is: The API server static Pod starts and kubectl connectivity returns.
Incorrect Answers
A:Test name resolution, then TCP reachability, policies and listening port stepwise. This procedure belongs to a different Kubernetes condition (An app cannot reach a database and the error is a TCP timeout, not DNS NXDOMAIN.). It does not directly resolve the observed failure. The targeted action is: Inspect and correct the control-plane static Pod manifest and kubelet runtime logs.
B:This procedure belongs to a different Kubernetes condition (New Pods remain Pending even with free node resources and kube-scheduler is unhealthy.).
C:Validate the serving certificate SANs, trusted CA and configured server endpoint. This procedure belongs to a different Kubernetes condition (A control-plane certificate replacement causes clients to reject the API server.). It does not directly resolve the observed failure. The targeted action is: Inspect and correct the control-plane static Pod manifest and kubelet runtime logs.