CNCF CKA Practice Test 79
Question 780
A Kubernetes operations team observes the following: A temporary dynamically provisioned data volume should be removed with its claim. What is the MOST appropriate corrective action?
- Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
- Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
- Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
- Configure the intended default StorageClass annotation while checking existing defaults.
Explanation
Correct Answer
C:Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized. This correction targets the specific failure. Delete reclaim policy instructs supported provisioners to remove backing assets. A successful result is: Deleting the claim initiates removal of the associated provisioned storage.
Incorrect Answers
A:Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity. This procedure belongs to a different Kubernetes condition (A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi.). It does not directly resolve the observed failure. The targeted action is: Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
B:Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path. This procedure belongs to a different Kubernetes condition (A Pod is stuck ContainerCreating due to an attach timeout from a cloud block volume.). It does not directly resolve the observed failure. The targeted action is: Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
D:Configure the intended default StorageClass annotation while checking existing defaults. This procedure belongs to a different Kubernetes condition (New claims omit storageClassName and use an unintended slow storage provider.). It does not directly resolve the observed failure. The targeted action is: Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
Question 781
An administrator reviews several possible responses to this condition: A monitoring integration needs cluster-wide read-only node information. Which option creates an avoidable failure?
- Check applicable component version compatibility before upgrading.
- Record a rollback approach before high-impact control-plane changes.
- Create a Role in default and assume it covers every node.
- Test connectivity from the affected Pod before redesigning all Services.
Explanation
Correct Answer
C:Create a Role in default and assume it covers every node. Nodes are cluster-scoped API resources; a namespaced Role alone cannot grant access to them. A safer course is: Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
Incorrect Answers
A:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
B:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
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: Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
Question 782
A reviewer wants proof that this issue was corrected: New Pods remain Pending even with free node resources and kube-scheduler is unhealthy. Which observed result is the STRONGEST evidence?
- The static Pod reappears and the component starts successfully.
- Scheduling resumes and eligible Pods receive node assignments.
- Expected error lines appear in container output with time and container identity.
- Cross-node Pod-to-Pod packets succeed both directions.
Explanation
Correct Answer
B:Scheduling resumes and eligible Pods receive node assignments. This outcome shows the required behavior after correction. The corresponding action is: Inspect scheduler static Pod health, logs and leader election before targeted repair.
Incorrect Answers
A: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: Scheduling resumes and eligible Pods receive node assignments.
C:Expected error lines appear in container output with time and container identity. This is evidence for a separate case (An app writes errors to stderr but a team searches only a file in the container image.), not for the target problem. An appropriate validation would be: Scheduling resumes and eligible Pods receive node assignments.
D:Cross-node Pod-to-Pod packets succeed both directions. This is evidence for a separate case (Pod connections work on one node but fail only when destination Pods are on another worker.), not for the target problem. An appropriate validation would be: Scheduling resumes and eligible Pods receive node assignments.
Question 783
A CKA learner must investigate the following: An operator must update one named ConfigMap but must not edit every ConfigMap. Which command or check supplies the MOST direct diagnostic evidence?
- Use kubectl auth can-i list pods -n prod --as=developer and repeat against an unauthorized namespace.
- Inspect the Role rules and test a named resource through kubectl auth can-i update configmap target -n ops --as=operator.
- Run kubectl describe pod in kube-system and check kubelet or container logs as appropriate.
- Compare the discovery hash with the control-plane CA public-key hash before retrying join.
Explanation
Correct Answer
B:Inspect the Role rules and test a named resource through kubectl auth can-i update configmap target -n ops --as=operator. This diagnostic examines the relevant resource or subsystem. RBAC resourceNames can narrow certain resource requests to named objects. The validating result would be: Allowed updates to the named object succeed while edits to unrelated ConfigMaps are rejected.
Incorrect Answers
A:This check is appropriate to the separate problem (A namespace user can list Pods in dev but receives Forbidden in prod.), but it is not the direct diagnostic for the described failure. Inspect the Role rules and test a named resource through kubectl auth can-i update configmap target -n ops --as=operator.
C:This check is appropriate to the separate problem (A new control-plane component does not appear ready after a manifest update.), but it is not the direct diagnostic for the described failure. Inspect the Role rules and test a named resource through kubectl auth can-i update configmap target -n ops --as=operator.
D:This check is appropriate to the separate problem (A worker join fails with a discovery CA certificate hash mismatch.), but it is not the direct diagnostic for the described failure.
Question 784
During an operational review, this fact emerges: Two Pods on different nodes try to attach the same RWO block volume and one remains Pending. Which Kubernetes behavior MOST directly governs the result?
- ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod.
- Delayed binding coordinates placement between storage availability and Pod scheduling.
- Static PV-PVC binding considers class, capacity and access requirements.
- ReadWriteOncePod is more restrictive than node-level ReadWriteOnce.
Explanation
Correct Answer
A:ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod. This principle explains the targeted result. A concrete response is: Choose a suitable storage access pattern or keep the volume attached to an allowed node.
Incorrect Answers
B: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. ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod.
C:This principle is useful for another case (A manually created PV is available but a PVC specifying an unmatched StorageClass never binds.), but does not explain the most direct solution here. ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod.
D:This principle is useful for another case (A database requires exclusive access by exactly one Pod to a PVC.), but does not explain the most direct solution here.
Question 785
A reviewer wants proof that this issue was corrected: A worker transitions to MemoryPressure and several application Pods are evicted. Which observed result is the STRONGEST evidence?
- Expected error lines appear in container output with time and container identity.
- CoreDNS becomes Ready and service DNS lookups succeed.
- MemoryPressure clears and essential Pods remain Ready without repeated eviction.
- The team can reconstruct which failure came first and validate the repaired stage.
Explanation
Correct Answer
C:MemoryPressure clears and essential Pods remain Ready without repeated eviction. The corresponding action is: Identify memory consumers, verify requests and limits and relieve pressure with safe workload/capacity changes.
Incorrect Answers
A:Expected error lines appear in container output with time and container identity. This is evidence for a separate case (An app writes errors to stderr but a team searches only a file in the container image.), not for the target problem. An appropriate validation would be: MemoryPressure clears and essential Pods remain Ready without repeated eviction.
B:CoreDNS becomes Ready and service DNS lookups succeed. This is evidence for a separate case (Pods cannot resolve cluster Service names and CoreDNS Pods are CrashLoopBackOff.), not for the target problem. An appropriate validation would be: MemoryPressure clears and essential Pods remain Ready without repeated eviction.
D:The team can reconstruct which failure came first and validate the repaired stage. This is evidence for a separate case (An incident responder sees Pod recreation, image pull and readiness failures and needs the order of events.), not for the target problem. An appropriate validation would be: MemoryPressure clears and essential Pods remain Ready without repeated eviction.
Question 786
In a Kubernetes cluster, the following condition is observed: Pods on two different workers cannot reach one another but Pod traffic works within a node. Which remediation MOST directly addresses it?
- Correct Ingress paths and pathType mapping to the proper Service backends.
- Use the Service's namespace-qualified name such as api.catalog.svc.cluster.local.
- Use a ClusterIP Service selecting the backend Pods.
- Investigate CNI routing, Pod CIDR allocation and inter-node network reachability.
Explanation
Correct Answer
D:Investigate CNI routing, Pod CIDR allocation and inter-node network reachability. This correction targets the specific failure. Cluster networking requires a functioning CNI path between Pod address ranges. A successful result is: Cross-node Pod-to-Pod communication succeeds without using host network mode.
Incorrect Answers
A:Correct Ingress paths and pathType mapping to the proper Service backends. This procedure belongs to a different Kubernetes condition (Traffic to /api is routed to the frontend Service rather than the API backend.). It does not directly resolve the observed failure. The targeted action is: Investigate CNI routing, Pod CIDR allocation and inter-node network reachability.
B:This procedure belongs to a different Kubernetes condition (A Pod in payments namespace cannot resolve the short name api for a Service in catalog namespace.).
C:Use a ClusterIP Service selecting the backend Pods. This procedure belongs to a different Kubernetes condition (An internal backend should only be reachable from inside the cluster through one stable address.). It does not directly resolve the observed failure. The targeted action is: Investigate CNI routing, Pod CIDR allocation and inter-node network reachability.
Question 787
A review finds this Kubernetes issue: The control plane is upgraded but one worker still runs an older supported kubelet. Which suggestion would make troubleshooting or security worse?
- Apply scoped access rather than granting universal administration.
- Review controller logs and resource status to understand reconciliation failures.
- Force downgrade the API server to match an older kubelet.
- Validate a change with a repeatable positive and negative test.
Explanation
Correct Answer
C:Force downgrade the API server to match an older kubelet. Worker component upgrades follow control-plane upgrades and require deliberate node handling. A safer course is: Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation.
Incorrect Answers
A:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation.
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: Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation.
D: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: Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation.
Question 788
The team is reviewing this failure mode: An operator wants temporary access to an internal Pod without publishing a public Service. Which statement explains WHY the recommended control works?
- Unqualified Service names resolve relative to the client's namespace search path.
- StatefulSet DNS identities require appropriate Service and Pod hostname relationships.
- Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
- Cluster networking requires a functioning CNI path between Pod address ranges.
Explanation
Correct Answer
C:Port forwarding is a debugging tunnel, not an internet-facing production endpoint. This principle explains the targeted result. A concrete response is: Use kubectl port-forward to an appropriate Pod or Service for authorized short-lived access.
Incorrect Answers
A:This principle is useful for another case (A Pod in payments namespace cannot resolve the short name api for a Service in catalog namespace.), but does not explain the most direct solution here. Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
B:This principle is useful for another case (A StatefulSet member cannot resolve its ordinal hostname after the governing Service changed.), but does not explain the most direct solution here. Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
D:This principle is useful for another case (Pods on two different workers cannot reach one another but Pod traffic works within a node.), but does not explain the most direct solution here. Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
Question 789
The team is reviewing this failure mode: A Gateway API team wants to send 10 percent traffic to canary and 90 percent to stable. Which statement explains WHY the recommended control works?
- Service port and targetPort express different ends of routing.
- Unqualified Service names resolve relative to the client's namespace search path.
- Service external traffic policy affects forwarding paths and source address handling.
- Weighted HTTPRoute backends can express proportional request routing when supported.
Explanation
Correct Answer
D:Weighted HTTPRoute backends can express proportional request routing when supported. This principle explains the targeted result. A concrete response is: Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
Incorrect Answers
A:This principle is useful for another case (A Service listens on port 80 but the container listens on 8080 and requests fail.), but does not explain the most direct solution here. Weighted HTTPRoute backends can express proportional request routing when supported.
B:This principle is useful for another case (A Pod in payments namespace cannot resolve the short name api for a Service in catalog namespace.), but does not explain the most direct solution here. Weighted HTTPRoute backends can express proportional request routing when supported.
C:This principle is useful for another case (A team needs clients' original source IP preserved for a LoadBalancer Service.), but does not explain the most direct solution here. Weighted HTTPRoute backends can express proportional request routing when supported.
Question 790
An administrator reviews several possible responses to this condition: A Pod is stuck ContainerCreating due to an attach timeout from a cloud block volume. Which option creates an avoidable failure?
- Review controller logs and resource status to understand reconciliation failures.
- Restart CoreDNS to fix a CSI controller attachment failure.
- Choose a storage access mode backed by real CSI capabilities.
- Apply scoped access rather than granting universal administration.
Explanation
Correct Answer
B:Restart CoreDNS to fix a CSI controller attachment failure. CSI attachment and mounting rely on healthy controller and node components. A safer course is: Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
Incorrect Answers
A: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: Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
C: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: Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
D:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.