CNCF CKA Practice Test 71
Question 700
A cluster issue is reported: An app writes errors to stderr but a team searches only a file in the container image. What practical check most directly confirms the suspected cause?
- Compare kubectl get svc -o yaml selector to kubectl get pods --show-labels.
- Inspect kubelet journal for manifest parsing errors and validate YAML locally.
- Use kubectl logs -n app deployment/web --all-containers=true --timestamps.
- Inspect kubectl describe pod and initContainerStatuses for pull errors.
Explanation
Correct Answer
C:Use kubectl logs -n app deployment/web --all-containers=true --timestamps. This diagnostic examines the relevant resource or subsystem. Kubernetes container log viewing relies on container output streams, not arbitrary files. The validating result would be: Expected error lines appear in container output with time and container identity.
Incorrect Answers
A:This check is appropriate to the separate problem (A newly deployed Service selector uses app=front while Pods are labeled app=frontend.), but it is not the direct diagnostic for the described failure. Compare kubectl get svc -o yaml selector to kubectl get pods --show-labels.
B:Inspect kubelet journal for manifest parsing errors and validate YAML locally. This check is appropriate to the separate problem (After a malformed YAML edit, kubelet stops running kube-controller-manager.), but it is not the direct diagnostic for the described failure. The relevant check is: Use kubectl logs -n app deployment/web --all-containers=true --timestamps.
D:Inspect kubectl describe pod and initContainerStatuses for pull errors. This check is appropriate to the separate problem (The main app never starts because an initContainer image is inaccessible.), but it is not the direct diagnostic for the described failure. The relevant check is: Use kubectl logs -n app deployment/web --all-containers=true --timestamps.
Question 701
A cluster team is handling this situation: A Pod is Pending because requested memory exceeds all node allocatable resources. Which proposed shortcut should be REJECTED?
- Test connectivity from the affected Pod before redesigning all Services.
- Use a staged rollout and observe readiness before full deployment.
- Increase a container memory limit only and assume that reduces its request.
- Inspect Pod and component events before changing unrelated resources.
Explanation
Correct Answer
C:Increase a container memory limit only and assume that reduces its request. Scheduling uses requests and allocatable capacity, not current free RAM alone. A safer course is: Adjust realistic resource requests or add capacity before scheduling.
Incorrect Answers
A: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: Adjust realistic resource requests or add capacity before scheduling.
B: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: Adjust realistic resource requests or add capacity before scheduling.
D: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: Adjust realistic resource requests or add capacity before scheduling.
Question 702
A review finds this Kubernetes issue: A stacked-etcd cluster has lost quorum after too many control-plane failures. Which suggestion would make troubleshooting or security worse?
- Apply scoped access rather than granting universal administration.
- Test connectivity from the affected Pod before redesigning all Services.
- Keep backups or change history for potentially destructive maintenance.
- Delete surviving etcd members to force a new leader without preserving recovery evidence.
Explanation
Correct Answer
D:Delete surviving etcd members to force a new leader without preserving recovery evidence. Consensus systems require quorum; uncontrolled member recreation risks state loss. A safer course is: Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
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: Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
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: Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
C: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 quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
Question 703
An engineer reports that this problem was fixed: An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it. What specific result should an independent reviewer expect?
- A representative request sample approximates the intended distribution between healthy backends.
- Gateway and route conditions show Accepted and Programmed as appropriate.
- Disallowed outbound connections fail while approved egress stays functional.
- Both internal Services and intended external domains resolve from Pods.
Explanation
Correct Answer
B:Gateway and route conditions show Accepted and Programmed as appropriate. The corresponding action is: Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
Incorrect Answers
A:A representative request sample approximates the intended distribution between healthy backends. This is evidence for a separate case (A Gateway API team wants to send 10 percent traffic to canary and 90 percent to stable.), not for the target problem. An appropriate validation would be: Gateway and route conditions show Accepted and Programmed as appropriate.
C:Disallowed outbound connections fail while approved egress stays functional. This is evidence for a separate case (A team thinks applying an ingress-only policy prevents Pods from sending outbound traffic.), not for the target problem. An appropriate validation would be: Gateway and route conditions show Accepted and Programmed as appropriate.
D:Both internal Services and intended external domains resolve from Pods. This is evidence for a separate case (Internal Service names resolve but Pods cannot resolve public domains through CoreDNS.), not for the target problem. An appropriate validation would be: Gateway and route conditions show Accepted and Programmed as appropriate.
Question 704
A reviewer wants proof that this issue was corrected: A custom resource cannot be created because the API server does not recognize its kind. Which observed result is the STRONGEST evidence?
- etcd regains a healthy majority and API writes succeed without divergent state.
- kubectl recognizes the new kind and the custom resource can be admitted.
- Kubelet connects successfully to the runtime and new Pods start.
- A permitted node read succeeds and a node mutation is forbidden.
Explanation
Correct Answer
B:Kubectl recognizes the new kind and the custom resource can be admitted. The corresponding action is: Install or correct the matching CRD, then verify the API discovery before applying the custom object.
Incorrect Answers
A:Etcd regains a healthy majority and API writes succeed without divergent state. This is evidence for a separate case (A stacked-etcd cluster has lost quorum after too many control-plane failures.), not for the target problem. An appropriate validation would be: kubectl recognizes the new kind and the custom resource can be admitted.
C: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: kubectl recognizes the new kind and the custom resource can be admitted.
D:A permitted node read succeeds and a node mutation is forbidden. This is evidence for a separate case (A monitoring integration needs cluster-wide read-only node information.), not for the target problem. An appropriate validation would be: kubectl recognizes the new kind and the custom resource can be admitted.
Question 705
In a Kubernetes cluster, the following condition is observed: Service ClusterIP connections fail on one node even though direct Pod IP connections work. Which remediation MOST directly addresses it?
- Inspect kube-proxy or the installed replacement dataplane on the affected node.
- Add a specific policy allowing the expected source and destination labels and port.
- Inspect and correct the control-plane static Pod manifest and kubelet runtime logs.
- Check lease access, API connectivity and component identity for leader election.
Explanation
Correct Answer
A:Inspect kube-proxy or the installed replacement dataplane on the affected node. This correction targets the specific failure. Service routing depends on node dataplane health distinct from Pod connectivity. A successful result is: ClusterIP routing recovers without changing application code or Pod IPs.
Incorrect Answers
B:Add a specific policy allowing the expected source and destination labels and port.
C:Inspect and correct the control-plane static Pod manifest and kubelet runtime logs.
D:Check lease access, API connectivity and component identity for leader election. This procedure belongs to a different Kubernetes condition (Multiple scheduler Pods run but none can acquire the leader lease.). It does not directly resolve the observed failure. The targeted action is: Inspect kube-proxy or the installed replacement dataplane on the affected node.
Question 706
The team is reviewing this failure mode: kubectl reports x509 certificate expired after months of successful access. Which statement explains WHY the recommended control works?
- Required node affinity is a hard placement constraint.
- NetworkPolicy egress isolation can block DNS dependencies.
- Kubernetes container log viewing relies on container output streams, not arbitrary files.
- Expired credentials can interrupt API clients while the server remains healthy.
Explanation
Correct Answer
D:Expired credentials can interrupt API clients while the server remains healthy. This principle explains the targeted result. A concrete response is: Inspect kubeconfig client credentials and renew valid certificates through the approved procedure.
Incorrect Answers
A:Required node affinity is a hard placement constraint. This principle is useful for another case (A Pod requests a non-existent node label through required node affinity.), but does not explain the most direct solution here. The governing consideration is: Expired credentials can interrupt API clients while the server remains healthy.
B:This principle is useful for another case (Only Pods selected by a new egress policy fail DNS while other Pods resolve normally.), but does not explain the most direct solution here.
C:This principle is useful for another case (An app writes errors to stderr but a team searches only a file in the container image.), but does not explain the most direct solution here. Expired credentials can interrupt API clients while the server remains healthy.
Question 707
A review finds this Kubernetes issue: A StatefulSet is decommissioned but its underlying audit volume must remain for investigation. Which suggestion would make troubleshooting or security worse?
- Choose a storage access mode backed by real CSI capabilities.
- Test connectivity from the affected Pod before redesigning all Services.
- Review controller logs and resource status to understand reconciliation failures.
- Use Delete reclaim policy and assume data persists by default.
Explanation
Correct Answer
D:Use Delete reclaim policy and assume data persists by default. Retain preserves data resources for explicit lifecycle handling after claim deletion. A safer course is: Set reclaimPolicy Retain and manage retained PV and backend data under approved procedure.
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: Set reclaimPolicy Retain and manage retained PV and backend data under approved procedure.
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: Set reclaimPolicy Retain and manage retained PV and backend data under approved procedure.
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: Set reclaimPolicy Retain and manage retained PV and backend data under approved procedure.
Question 708
A Kubernetes operator wants to verify this condition: A worker unexpectedly becomes NotReady following a network maintenance event. Which investigation step is BEST suited to the case?
- Use kubectl logs pod-name --previous -c app and inspect referenced ConfigMaps.
- Inspect kubectl get httproute -o yaml status.parents conditions and backend refs.
- Use kubectl describe node and journalctl -u kubelet with API connectivity tests.
- Use etcdctl alarm list and endpoint status and inspect member storage utilization.
Explanation
Correct Answer
C:Use kubectl describe node and journalctl -u kubelet with API connectivity tests. This diagnostic examines the relevant resource or subsystem. Node readiness is driven by kubelet heartbeats and node health signals. The validating result would be: Node condition returns Ready after the real network or kubelet fault is corrected.
Incorrect Answers
A:This check is appropriate to the separate problem (A newly deployed app repeatedly exits with invalid configuration errors.), but it is not the direct diagnostic for the described failure. Use kubectl describe node and journalctl -u kubelet with API connectivity tests.
B:This check is appropriate to the separate problem (An HTTPRoute is not serving traffic and its status reports ResolvedRefs False.), but it is not the direct diagnostic for the described failure. Use kubectl describe node and journalctl -u kubelet with API connectivity tests.
D:This check is appropriate to the separate problem (etcd returns a no-space alarm after excessive database growth.), but it is not the direct diagnostic for the described failure. Use kubectl describe node and journalctl -u kubelet with API connectivity tests.
Question 709
An administrator reviews several possible responses to this condition: Pod connections work on one node but fail only when destination Pods are on another worker. Which option creates an avoidable failure?
- Test connectivity from the affected Pod before redesigning all Services.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Choose a storage access mode backed by real CSI capabilities.
- Create a new namespace to fix a missing inter-node route.
Explanation
Correct Answer
D:Create a new namespace to fix a missing inter-node route. Cluster networking requires an end-to-end dataplane across worker hosts. A safer course is: Check inter-node routes, CNI encapsulation and firewall rules for Pod CIDR traffic.
Incorrect Answers
A: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: Check inter-node routes, CNI encapsulation and firewall rules for Pod CIDR traffic.
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: Check inter-node routes, CNI encapsulation and firewall rules for Pod CIDR traffic.
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: Check inter-node routes, CNI encapsulation and firewall rules for Pod CIDR traffic.
Question 710
An administrator is investigating this situation: A custom resource exists but a controller is not reconciling its desired state. Which action BEST resolves the underlying issue?
- Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
- Inspect the operator Deployment, permissions, watched namespace and reconciliation events.
- Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
- Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required.
Explanation
Correct Answer
B:Inspect the operator Deployment, permissions, watched namespace and reconciliation events. This correction targets the specific failure. Operators depend on a working controller and correctly scoped watches and RBAC. A successful result is: The operator processes the custom resource and reaches the expected reconciled status.
Incorrect Answers
A:Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
C:Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details. This procedure belongs to a different Kubernetes condition (A new worker cannot join because its bootstrap token has expired.). It does not directly resolve the observed failure. The targeted action is: Inspect the operator Deployment, permissions, watched namespace and reconciliation events.
D:This procedure belongs to a different Kubernetes condition (A high-availability control plane needs another control-plane node joined securely.).