CNCF CKA Practice Test 5
Question 40
To avoid guessing about this fault, what should be inspected first? A kubeadm managed cluster must move one supported minor release forward.
- Check load-balancer health and kubeconfig server addresses against the shared endpoint.
- Check crictl info with the intended runtime endpoint and inspect kubeadm criSocket.
- Run kubeadm upgrade plan and record supported target versions before any change.
- Inspect kubectl get csidrivers and CSI controller and node plugin Pods.
Explanation
Correct Answer
C:Run kubeadm upgrade plan and record supported target versions before any change. This diagnostic examines the relevant resource or subsystem. Kubernetes upgrades must respect version skew and control-plane ordering. The validating result would be: The control plane reports the intended version before worker upgrades proceed safely.
Incorrect Answers
A:This check is appropriate to the separate problem (Two API servers run but workloads use one control-plane node IP as the endpoint.), but it is not the direct diagnostic for the described failure. Run kubeadm upgrade plan and record supported target versions before any change.
B:This check is appropriate to the separate problem (kubeadm reports multiple CRI sockets and cannot select the runtime.), but it is not the direct diagnostic for the described failure. Run kubeadm upgrade plan and record supported target versions before any change.
D:This check is appropriate to the separate problem (A new storage integration must provision volumes without modifying kubelet core code.), but it is not the direct diagnostic for the described failure.
Question 41
Select TWO technically sound statements for this situation, covering remediation and validation: A Pod is Pending with a message about unbound immediate PersistentVolumeClaims.
- Remediation: Resolve PVC provisioning or binding before expecting the scheduler to place the Pod.
- Validation: Scheduler reservation and request totals explain the failed scheduling decision.
- Remediation: Increase container CPU limits as the sole response to an unbound PVC.
- Validation: The claim binds and the Pod becomes schedulable when topology constraints allow.
- Remediation: Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity.
Explanation
Correct Answers
A:Remediation: Resolve PVC provisioning or binding before expecting the scheduler to place the Pod. The remedy targets the reported failure rather than a different subsystem. Persistent storage binding can be a prerequisite for Pod placement.
D:Validation: The claim binds and the Pod becomes schedulable when topology constraints allow. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
B:Validation: Scheduler reservation and request totals explain the failed scheduling decision. This evidence applies to a different condition (A node appears idle by CPU usage but a new Pod is unschedulable with Insufficient cpu.), and would not verify this target fix: A Pod is Pending with a message about unbound immediate PersistentVolumeClaims.
C:Remediation: Increase container CPU limits as the sole response to an unbound PVC. This is the unsafe shortcut for the case, not an acceptable intervention. Persistent storage binding can be a prerequisite for Pod placement.
E:Remediation: Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity. This action targets a different condition (etcd returns a no-space alarm after excessive database growth.), not this reported failure: A Pod is Pending with a message about unbound immediate PersistentVolumeClaims.
Question 42
In a Kubernetes cluster, the following condition is observed: A worker is Ready but reports PIDPressure and new processes fail to launch. Which remediation MOST directly addresses it?
- Investigate memory consumption and set appropriate requests, limits or fix the application's memory use.
- Identify excessive process counts and correct the offending workload or node capacity.
- Recover the controller-manager static Pod and verify its health and API permissions.
- Check egress route and SNAT or gateway configuration for the cluster network.
Explanation
Correct Answer
B:Identify excessive process counts and correct the offending workload or node capacity. This correction targets the specific failure. Node PID exhaustion can affect kubelet and unrelated Pods. A successful result is: PIDPressure clears and containers can fork processes normally.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A container enters CrashLoopBackOff and lastState terminated reason is OOMKilled.). Investigate memory consumption and set appropriate requests, limits or fix the application's memory use.
C:This procedure belongs to a different Kubernetes condition (ReplicaSets stop creating replacement Pods after kube-controller-manager crashes.). Recover the controller-manager static Pod and verify its health and API permissions.
D:This procedure belongs to a different Kubernetes condition (Pods reach cluster Services but cannot contact external APIs from private node networks.). Check egress route and SNAT or gateway configuration for the cluster network.
Question 43
An engineer needs to justify a change for this issue: Only Pods selected by a new egress policy fail DNS while other Pods resolve normally. Which technical reason is MOST relevant?
- Node authorization depends on valid client identity and trusted CA chain.
- Pending Pod placement depends on a functioning scheduler as well as available resources.
- NetworkPolicy egress isolation can block DNS dependencies.
- Healthy endpoints do not compensate for incorrect TCP/UDP port mapping.
Explanation
Correct Answer
C:NetworkPolicy egress isolation can block DNS dependencies. This principle explains the targeted result. A concrete response is: Allow required DNS egress to the cluster resolver while retaining intended isolation.
Incorrect Answers
A:Node authorization depends on valid client identity and trusted CA chain. This principle is useful for another case (Kubelet logs show TLS certificate errors after a node credential rotation.), but does not explain the most direct solution here. The governing consideration is: NetworkPolicy egress isolation can block DNS dependencies.
B:This principle is useful for another case (New Pods remain Pending even with free node resources and kube-scheduler is unhealthy.), but does not explain the most direct solution here. Pending Pod placement depends on a functioning scheduler as well as available resources.
D:This principle is useful for another case (A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080.), but does not explain the most direct solution here. Healthy endpoints do not compensate for incorrect TCP/UDP port mapping.
Question 44
The team is reviewing this failure mode: A Helm upgrade caused a regression in a cluster add-on. Which statement explains WHY the recommended control works?
- A working control plane alone does not provide Pod networking.
- Helm revisions support controlled release rollback of managed objects.
- kubectl uses current-context, user and cluster mappings that must be validated.
- kubeadm join uses bootstrap discovery and credentials that can expire.
Explanation
Correct Answer
B:Helm revisions support controlled release rollback of managed objects. This principle explains the targeted result. A concrete response is: Inspect release history and roll back to the last healthy chart revision.
Incorrect Answers
A:This principle is useful for another case (Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.), but does not explain the most direct solution here. Helm revisions support controlled release rollback of managed objects.
C: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. Helm revisions support controlled release rollback of managed objects.
D:Kubeadm join uses bootstrap discovery and credentials that can expire. This principle is useful for another case (A new worker cannot join because its bootstrap token has expired.), but does not explain the most direct solution here. The governing consideration is: Helm revisions support controlled release rollback of managed objects.
Question 45
Consider the following Kubernetes administration case: A Pod is Pending because requested memory exceeds all node allocatable resources. Which principle BEST explains the intended solution?
- Scheduling uses requests and allocatable capacity, not current free RAM alone.
- RollingUpdate availability and surge settings govern the rate of replica replacement.
- Startup probes delay other probes until initialization succeeds.
- PDBs govern voluntary disruptions and require enough workload capacity to permit safe evictions.
Explanation
Correct Answer
A:Scheduling uses requests and allocatable capacity, not current free RAM alone. This principle explains the targeted result. A concrete response is: Adjust realistic resource requests or add capacity before scheduling.
Incorrect Answers
B:This principle is useful for another case (A Deployment must update without taking all replicas offline during rollout.), but does not explain the most direct solution here. Scheduling uses requests and allocatable capacity, not current free RAM alone.
C:This principle is useful for another case (A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.), but does not explain the most direct solution here. Scheduling uses requests and allocatable capacity, not current free RAM alone.
D:This principle is useful for another case (A maintenance drain would evict too many healthy replicas of a critical application.), but does not explain the most direct solution here. Scheduling uses requests and allocatable capacity, not current free RAM alone.
Question 46
During cluster maintenance, an engineer finds this problem: An HTTPS Ingress serves the wrong certificate for app.example.org. Which next action is technically justified?
- Configure the correct TLS Secret reference, namespace and host mapping in the Ingress.
- Create a default-deny ingress NetworkPolicy for the sensitive namespace, then allow required traffic.
- Inspect Service routing implementation, kube-proxy or equivalent dataplane, and endpoint health.
- Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload.
Explanation
Correct Answer
A:Configure the correct TLS Secret reference, namespace and host mapping in the Ingress. This correction targets the specific failure. Ingress TLS termination depends on the controller and properly referenced certificate material. A successful result is: TLS negotiation presents the expected certificate chain for the intended host.
Incorrect Answers
B:Create a default-deny ingress NetworkPolicy for the sensitive namespace, then allow required traffic.
C:This procedure belongs to a different Kubernetes condition (A Service virtual IP fails although direct Pod IP connectivity works.). Inspect Service routing implementation, kube-proxy or equivalent dataplane, and endpoint health.
D:Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload. This procedure belongs to a different Kubernetes condition (A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.). It does not directly resolve the observed failure. The targeted action is: Configure the correct TLS Secret reference, namespace and host mapping in the Ingress.
Question 47
A cluster team is handling this situation: Ingress answers HTTPS but returns 404 for /api while backend Service works locally. Which proposed shortcut should be REJECTED?
- Change Pod memory limits instead of diagnosing HTTP routing.
- Record a rollback approach before high-impact control-plane changes.
- Validate a change with a repeatable positive and negative test.
- Use a staged rollout and observe readiness before full deployment.
Explanation
Correct Answer
A:Change Pod memory limits instead of diagnosing HTTP routing. Ingress controller routing matches requested host/path against explicit rules. A safer course is: Correct the Ingress host, path and ingressClass routing configuration.
Incorrect Answers
B:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Correct the Ingress host, path and ingressClass routing configuration.
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: Correct the Ingress host, path and ingressClass routing configuration.
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: Correct the Ingress host, path and ingressClass routing configuration.
Question 48
A reviewer wants proof that this issue was corrected: A recent Deployment image change causes requests to fail and the previous revision worked. Which observed result is the STRONGEST evidence?
- Healthy replicas return to the previous image and readiness is restored.
- Replica count rises under load within min/max settings and scales down when demand drops.
- Voluntary eviction respects the budget and drain waits or fails rather than violating it.
- Resource reservation and QoS class reflect design while eviction risk is reduced.
Explanation
Correct Answer
A:Healthy replicas return to the previous image and readiness is restored. The corresponding action is: Roll back the Deployment to a known healthy revision using rollout undo.
Incorrect Answers
B:Replica count rises under load within min/max settings and scales down when demand drops. This is evidence for a separate case (A CPU-bound deployment needs to grow replica count during sustained load.), not for the target problem. An appropriate validation would be: Healthy replicas return to the previous image and readiness is restored.
C: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: Healthy replicas return to the previous image and readiness is restored.
D:Resource reservation and QoS class reflect design while eviction risk is reduced. This is evidence for a separate case (An important Pod is being evicted during node memory pressure.), not for the target problem. An appropriate validation would be: Healthy replicas return to the previous image and readiness is restored.
Question 49
During cluster maintenance, an engineer finds this problem: A Pod requests a non-existent node label through required node affinity. Which next action is technically justified?
- Correct the placement requirement or label suitable eligible nodes truthfully.
- Correct the Service selector to match actual intended backend labels.
- Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
- Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline.
Explanation
Correct Answer
A:Correct the placement requirement or label suitable eligible nodes truthfully. This correction targets the specific failure. Required node affinity is a hard placement constraint. A successful result is: The Pod schedules on an appropriate node that satisfies required affinity.
Incorrect Answers
B:This procedure belongs to a different Kubernetes condition (A newly deployed Service selector uses app=front while Pods are labeled app=frontend.). Correct the Service selector to match actual intended backend labels.
C:This procedure belongs to a different Kubernetes condition (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.). Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
D:This procedure belongs to a different Kubernetes condition (An app writes errors to stderr but a team searches only a file in the container image.). Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline.
Question 50
An administrator reviews several possible responses to this condition: A StatefulSet member cannot resolve its ordinal hostname after the governing Service changed. Which option creates an avoidable failure?
- Keep backups or change history for potentially destructive maintenance.
- Choose a storage access mode backed by real CSI capabilities.
- Assign every Pod the same static host IP to restore ordinal DNS.
- Preserve relevant logs when diagnosing a repeating container crash.
Explanation
Correct Answer
C:Assign every Pod the same static host IP to restore ordinal DNS. StatefulSet DNS identities require appropriate Service and Pod hostname relationships. A safer course is: Restore the matching headless governing Service and verify Pod subdomain and Service name.
Incorrect Answers
A: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: Restore the matching headless governing Service and verify Pod subdomain and Service name.
B: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: Restore the matching headless governing Service and verify Pod subdomain and Service name.
D: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: Restore the matching headless governing Service and verify Pod subdomain and Service name.