CNCF CKA Practice Test 15
Question 140
The team is reviewing this failure mode: A PVC requests storageClassName fast but no PV is created after several minutes. Which statement explains WHY the recommended control works?
- Volume mode differentiates raw block devices from filesystem mounts.
- PVC binding requires matching capacity, access mode and other volume constraints.
- Dynamic provisioning depends on a working provisioner and an appropriate StorageClass.
- Delayed binding coordinates placement between storage availability and Pod scheduling.
Explanation
Correct Answer
C:Dynamic provisioning depends on a working provisioner and an appropriate StorageClass. This principle explains the targeted result. A concrete response is: Verify the fast StorageClass provisioner and associated CSI controller health.
Incorrect Answers
A:This principle is useful for another case (A storage consumer expects a raw block device but the PVC is provisioned with volumeMode Filesystem.), but does not explain the most direct solution here. Dynamic provisioning depends on a working provisioner and an appropriate StorageClass.
B:This principle is useful for another case (A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi.), but does not explain the most direct solution here. Dynamic provisioning depends on a working provisioner and an appropriate StorageClass.
D:This principle is useful for another case (A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules.), but does not explain the most direct solution here. Dynamic provisioning depends on a working provisioner and an appropriate StorageClass.
Question 141
During an operational review, this fact emerges: etcd returns a no-space alarm after excessive database growth. Which Kubernetes behavior MOST directly governs the result?
- etcd storage quota alarms require careful backend maintenance and sufficient disk.
- Troubleshooting should establish an evidence-based sequence before changes.
- TLS validation requires matching server identity and trusted certificate chain.
- HA control-plane components coordinate active leadership through leases.
Explanation
Correct Answer
A:Etcd storage quota alarms require careful backend maintenance and sufficient disk. This principle explains the targeted result. A concrete response is: Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity.
Incorrect Answers
B:This principle is useful for another case (An incident responder sees Pod recreation, image pull and readiness failures and needs the order of events.), but does not explain the most direct solution here. Etcd storage quota alarms require careful backend maintenance and sufficient disk.
C:This principle is useful for another case (A control-plane certificate replacement causes clients to reject the API server.), but does not explain the most direct solution here. Etcd storage quota alarms require careful backend maintenance and sufficient disk.
D:HA control-plane components coordinate active leadership through leases. This principle is useful for another case (Multiple scheduler Pods run but none can acquire the leader lease.), but does not explain the most direct solution here. The governing consideration is: etcd storage quota alarms require careful backend maintenance and sufficient disk.
Question 142
An administrator is investigating this situation: A control-plane certificate replacement causes clients to reject the API server. Which action BEST resolves the underlying issue?
- Diagnose metrics-server, metrics API availability and resource requests.
- Validate the serving certificate SANs, trusted CA and configured server endpoint.
- Check kubelet status, node heartbeats and API server reachability from that worker.
- Recover the controller-manager static Pod and verify its health and API permissions.
Explanation
Correct Answer
B:Validate the serving certificate SANs, trusted CA and configured server endpoint. This correction targets the specific failure. TLS validation requires matching server identity and trusted certificate chain. A successful result is: Clients verify and connect to the legitimate API server after certificate correction.
Incorrect Answers
A:Diagnose metrics-server, metrics API availability and resource requests. This procedure belongs to a different Kubernetes condition (HPA displays <unknown> target metrics while replicas never scale.). It does not directly resolve the observed failure. The targeted action is: Validate the serving certificate SANs, trusted CA and configured server endpoint.
C:This procedure belongs to a different Kubernetes condition (A worker unexpectedly becomes NotReady following a network maintenance event.). Check kubelet status, node heartbeats and API server reachability from that worker.
D:Recover the controller-manager static Pod and verify its health and API permissions.
Question 143
In a Kubernetes cluster, the following condition is observed: New claims omit storageClassName and use an unintended slow storage provider. Which remediation MOST directly addresses it?
- Enable supported volume expansion and increase PVC requested storage safely.
- Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
- Choose a suitable storage access pattern or keep the volume attached to an allowed node.
- Configure the intended default StorageClass annotation while checking existing defaults.
Explanation
Correct Answer
D:Configure the intended default StorageClass annotation while checking existing defaults. This correction targets the specific failure. Default StorageClasses influence requests that do not explicitly select a class. A successful result is: New eligible PVCs select the intended default class.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A PVC is nearly full and its backing CSI driver supports growth.). Enable supported volume expansion and increase PVC requested storage safely.
B:Use StatefulSet volumeClaimTemplates for per-replica persistent storage. This procedure belongs to a different Kubernetes condition (Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other.). It does not directly resolve the observed failure. The targeted action is: Configure the intended default StorageClass annotation while checking existing defaults.
C:Choose a suitable storage access pattern or keep the volume attached to an allowed node.
Question 144
An engineer reports that this problem was fixed: kubectl suddenly reports connection refused after the team changed contexts. What specific result should an independent reviewer expect?
- Kubelet resumes node reporting and reconciles static and managed Pods.
- kubectl reaches the intended API endpoint without changing workloads.
- The static Pod reappears and the component starts successfully.
- The Service has ready endpoints and traffic reaches them.
Explanation
Correct Answer
B:Kubectl reaches the intended API endpoint without changing workloads. The corresponding action is: Inspect current context and configured cluster server address, then choose the correct target.
Incorrect Answers
A:Kubelet resumes node reporting and reconciles static and managed Pods. This is evidence for a separate case (All Pods on one node disappear from monitoring after kubelet service stops.), not for the target problem. An appropriate validation would be: kubectl reaches the intended API endpoint without changing workloads.
C:The static Pod reappears and the component starts successfully. This is evidence for a separate case (After a malformed YAML edit, kubelet stops running kube-controller-manager.), not for the target problem. An appropriate validation would be: kubectl reaches the intended API endpoint without changing workloads.
D:The Service has ready endpoints and traffic reaches them. This is evidence for a separate case (A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints.), not for the target problem. An appropriate validation would be: kubectl reaches the intended API endpoint without changing workloads.
Question 145
An operations team tests its response to this finding: A Helm upgrade caused a regression in a cluster add-on. Which outcome most clearly establishes that the fix worked?
- Resources return to known-good configuration with preserved change history.
- kubectl commands target the authorized cluster and expected namespace.
- Nodes transition to Ready and cross-node Pod connectivity becomes available.
- kubeadm uses the correct runtime endpoint and container creation succeeds.
Explanation
Correct Answer
A:Resources return to known-good configuration with preserved change history. The corresponding action is: Inspect release history and roll back to the last healthy chart revision.
Incorrect Answers
B:Kubectl commands target the authorized cluster and expected namespace. This is evidence for a separate case (A kubectl command is applying objects in the wrong environment after a context switch.), not for the target problem. An appropriate validation would be: Resources return to known-good configuration with preserved change history.
C: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: Resources return to known-good configuration with preserved change history.
D:Kubeadm uses the correct runtime endpoint and container creation succeeds. This is evidence for a separate case (kubeadm reports multiple CRI sockets and cannot select the runtime.), not for the target problem. An appropriate validation would be: Resources return to known-good configuration with preserved change history.
Question 146
An administrator is investigating this situation: An administrator cordoned a node but existing Pods are still running on it. Which action BEST resolves the underlying issue?
- Install a supported CSI driver and associated controller/node components.
- Inspect the operator Deployment, permissions, watched namespace and reconciliation events.
- Use drain when eviction is needed; cordon alone only prevents new scheduling.
- Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
Explanation
Correct Answer
C:Cordon changes scheduling eligibility but does not terminate current Pods. Use drain when eviction is needed; cordon alone only prevents new scheduling.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A new storage integration must provision volumes without modifying kubelet core code.). Install a supported CSI driver and associated controller/node components.
B:This procedure belongs to a different Kubernetes condition (A custom resource exists but a controller is not reconciling its desired state.). Inspect the operator Deployment, permissions, watched namespace and reconciliation events.
D:Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
Question 147
During remediation, this failure appears: An HTTPS Ingress serves the wrong certificate for app.example.org. Which action is the LEAST defensible?
- Validate a change with a repeatable positive and negative test.
- Review controller logs and resource status to understand reconciliation failures.
- Put a plaintext password in an annotation instead of fixing TLS Secret configuration.
- Keep backups or change history for potentially destructive maintenance.
Explanation
Correct Answer
C:Put a plaintext password in an annotation instead of fixing TLS Secret configuration. Ingress TLS termination depends on the controller and properly referenced certificate material. A safer course is: Configure the correct TLS Secret reference, namespace and host mapping in the Ingress.
Incorrect Answers
A: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: Configure the correct TLS Secret reference, namespace and host mapping in the Ingress.
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 the correct TLS Secret reference, namespace and host mapping in the Ingress.
D: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: Configure the correct TLS Secret reference, namespace and host mapping in the Ingress.
Question 148
Consider the following Kubernetes administration case: All Pods lose service-name resolution after the CoreDNS Deployment becomes unavailable. Which principle BEST explains the intended solution?
- Ingress TLS termination depends on the controller and properly referenced certificate material.
- Per-Pod DNS policy and dnsConfig can override resolver behavior.
- Weighted HTTPRoute backends can express proportional request routing when supported.
- Kubernetes Service DNS depends on a functioning DNS service and its configuration.
Explanation
Correct Answer
D:Kubernetes Service DNS depends on a functioning DNS service and its configuration. This principle explains the targeted result. A concrete response is: Restore healthy CoreDNS replicas and verify their upstream and service plugin configuration.
Incorrect Answers
A:This principle is useful for another case (An HTTPS Ingress serves the wrong certificate for app.example.org.), but does not explain the most direct solution here. Kubernetes Service DNS depends on a functioning DNS service and its configuration.
B:This principle is useful for another case (A Pod must resolve a private test hostname using a custom resolver without changing cluster-wide DNS.), but does not explain the most direct solution here.
C:This principle is useful for another case (A Gateway API team wants to send 10 percent traffic to canary and 90 percent to stable.), but does not explain the most direct solution here. Kubernetes Service DNS depends on a functioning DNS service and its configuration.
Question 149
A Kubernetes operator wants to verify this condition: An admin changed RoleBindings and wants proof the operator cannot create deployments. Which investigation step is BEST suited to the case?
- Review kubeadm join --control-plane configuration and verify new control-plane and etcd members.
- Run kubeadm certs check-expiration and inspect relevant component logs.
- Compare kubectl get pods -o wide before and after kubectl cordon and kubectl drain.
- Run kubectl auth can-i create deployments -n finance --as=team-user and inspect all relevant bindings.
Explanation
Correct Answer
D:The validating result would be: An impersonated create deployment request is denied in the target namespace.
Incorrect Answers
A:This check is appropriate to the separate problem (A high-availability control plane needs another control-plane node joined securely.), but it is not the direct diagnostic for the described failure.
B:This check is appropriate to the separate problem (An API client certificate is about to expire on a kubeadm managed control plane.), but it is not the direct diagnostic for the described failure. Run kubectl auth can-i create deployments -n finance --as=team-user and inspect all relevant bindings.
C:This check is appropriate to the separate problem (An administrator cordoned a node but existing Pods are still running on it.), but it is not the direct diagnostic for the described failure. Run kubectl auth can-i create deployments -n finance --as=team-user and inspect all relevant bindings.
Question 150
An administrator reviews several possible responses to this condition: NetworkPolicy objects are accepted but all supposedly blocked traffic is still allowed. Which option creates an avoidable failure?
- Assume API acceptance proves packet filtering is active.
- Validate a change with a repeatable positive and negative test.
- Review controller logs and resource status to understand reconciliation failures.
- Apply scoped access rather than granting universal administration.
Explanation
Correct Answer
A:Assume API acceptance proves packet filtering is active. The NetworkPolicy API requires a network plugin that enforces policies. A safer course is: Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
Incorrect Answers
B: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: Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
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: Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
D:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.