CNCF CKA Practice Test 78
Question 770
Consider the following Kubernetes administration case: A Pod is Pending with an untolerated NoSchedule taint despite free CPU. Which principle BEST explains the intended solution?
- External egress requires network routing beyond internal Service discovery.
- Taints and tolerations affect eligibility separately from CPU capacity.
- Malformed DNS plugin configuration can disable cluster name resolution.
- Kubernetes controllers implement desired-state reconciliation.
Explanation
Correct Answer
B:Taints and tolerations affect eligibility separately from CPU capacity. This principle explains the targeted result. A concrete response is: Apply an approved toleration or choose an eligible untainted node.
Incorrect Answers
A:External egress requires network routing beyond internal Service discovery. This principle is useful for another case (Pods reach cluster Services but cannot contact external APIs from private node networks.), but does not explain the most direct solution here. The governing consideration is: Taints and tolerations affect eligibility separately from CPU capacity.
C:Malformed DNS plugin configuration can disable cluster name resolution. This principle is useful for another case (Pods cannot resolve cluster Service names and CoreDNS Pods are CrashLoopBackOff.), but does not explain the most direct solution here. The governing consideration is: Taints and tolerations affect eligibility separately from CPU capacity.
D:Kubernetes controllers implement desired-state reconciliation. This principle is useful for another case (ReplicaSets stop creating replacement Pods after kube-controller-manager crashes.), but does not explain the most direct solution here. The governing consideration is: Taints and tolerations affect eligibility separately from CPU capacity.
Question 771
During cluster maintenance, an engineer finds this problem: A new control-plane component does not appear ready after a manifest update. Which next action is technically justified?
- Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
- Bind a narrowly scoped Role to the controller ServiceAccount in team-a.
- Inspect the operator Deployment, permissions, watched namespace and reconciliation events.
- Cordon and drain the node with appropriate eviction safeguards before maintenance.
Explanation
Correct Answer
A:Use targeted kube-system Pod descriptions and component logs to locate its failure before edits. This correction targets the specific failure. Cluster change diagnosis needs observed component evidence, not guesswork. A successful result is: Events and logs identify the component issue and health returns after a focused correction.
Incorrect Answers
B:Bind a narrowly scoped Role to the controller ServiceAccount in team-a. This procedure belongs to a different Kubernetes condition (A controller ServiceAccount needs to read ConfigMaps only in team-a.). It does not directly resolve the observed failure. The targeted action is: Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
C:Inspect the operator Deployment, permissions, watched namespace and reconciliation events. This procedure belongs to a different Kubernetes condition (A custom resource exists but a controller is not reconciling its desired state.). It does not directly resolve the observed failure. The targeted action is: Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
D:Cordon and drain the node with appropriate eviction safeguards before maintenance. This procedure belongs to a different Kubernetes condition (A worker requires OS maintenance while running replicated customer Pods.). It does not directly resolve the observed failure. The targeted action is: Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
Question 772
Following this Kubernetes scenario, an operator validates remediation: HPA displays <unknown> target metrics while replicas never scale. Which measurable outcome shows success?
- etcd accepts writes after storage alarms are correctly cleared.
- The container receives required config and starts without reference errors.
- Connections through the Service reach the application on the correct port.
- HPA displays metrics and scales according to observed demand.
Explanation
Correct Answer
D:HPA displays metrics and scales according to observed demand. The corresponding action is: Diagnose metrics-server, metrics API availability and resource requests.
Incorrect Answers
A:Etcd accepts writes after storage alarms are correctly cleared. This is evidence for a separate case (etcd returns a no-space alarm after excessive database growth.), not for the target problem. An appropriate validation would be: HPA displays metrics and scales according to observed demand.
B:The container receives required config and starts without reference errors. This is evidence for a separate case (A Pod is stuck CreateContainerConfigError because a referenced ConfigMap key is absent.), not for the target problem. An appropriate validation would be: HPA displays metrics and scales according to observed demand.
C:Connections through the Service reach the application on the correct port. This is evidence for a separate case (A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080.), not for the target problem. An appropriate validation would be: HPA displays metrics and scales according to observed demand.
Question 773
For this Kubernetes issue, select TWO statements that correctly pair a response with the evidence it should produce: A team needs clients' original source IP preserved for a LoadBalancer Service.
- Remediation: Set Local with no local endpoint capacity and ignore dropped traffic.
- Remediation: Create an authorized ReferenceGrant in the backend namespace allowing the specific cross-namespace reference.
- Remediation: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.
- Validation: The Service obtains an external address and routes to ready backend Pods.
- Validation: Traffic reaches local endpoints with the desired source-IP behavior and documented node distribution.
Explanation
Correct Answers
C:Remediation: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes. The remedy targets the reported failure rather than a different subsystem. Service external traffic policy affects forwarding paths and source address handling.
E:Validation: Traffic reaches local endpoints with the desired source-IP behavior and documented node distribution. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Remediation: Set Local with no local endpoint capacity and ignore dropped traffic. This is the unsafe shortcut for the case, not an acceptable intervention. Service external traffic policy affects forwarding paths and source address handling.
B:Remediation: Create an authorized ReferenceGrant in the backend namespace allowing the specific cross-namespace reference. This action targets a different condition (A Gateway API route in namespace web needs to refer to a backend Service in namespace shared.), not this reported failure: A team needs clients' original source IP preserved for a LoadBalancer Service.
D:Validation: The Service obtains an external address and routes to ready backend Pods. This evidence applies to a different condition (An external HTTP service needs an infrastructure-managed public listener.), and would not verify this target fix: A team needs clients' original source IP preserved for a LoadBalancer Service.
Question 774
An administrator reviews several possible responses to this condition: A PVC requests storageClassName fast but no PV is created after several minutes. Which option creates an avoidable failure?
- Record a rollback approach before high-impact control-plane changes.
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Create an unrelated Pod image pull Secret to fix provisioning.
- Verify the target cluster and namespace before mutating resources.
Explanation
Correct Answer
C:Create an unrelated Pod image pull Secret to fix provisioning. Dynamic provisioning depends on a working provisioner and an appropriate StorageClass. A safer course is: Verify the fast StorageClass provisioner and associated CSI controller health.
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: Verify the fast StorageClass provisioner and associated CSI controller health.
B:Confirm actual node conditions and allocatable resources before scheduling changes. Scheduler behavior must be assessed against real node constraints. For the stated case, a focused correction is: Verify the fast StorageClass provisioner and associated CSI controller health.
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: Verify the fast StorageClass provisioner and associated CSI controller health.
Question 775
Select TWO technically sound statements for this situation, covering remediation and validation: A CPU-bound deployment needs to grow replica count during sustained load.
- Remediation: Configure topologySpreadConstraints with topologyKey and appropriate maxSkew behavior.
- Remediation: Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits.
- Validation: Replica count rises under load within min/max settings and scales down when demand drops.
- Remediation: Set HPA to scale a one-off Job by modifying its completions.
- Validation: The scheduler favors the intended zone when feasible but still permits alternatives.
Explanation
Correct Answers
B:Remediation: Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits. The remedy targets the reported failure rather than a different subsystem. HPA acts on observed metrics to adjust workload replica counts.
C:Validation: Replica count rises under load within min/max settings and scales down when demand drops. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Remediation: Configure topologySpreadConstraints with topologyKey and appropriate maxSkew behavior. This action targets a different condition (Replicas concentrate in one availability zone and violate resilience goals.), not this reported failure: A CPU-bound deployment needs to grow replica count during sustained load.
D:Remediation: Set HPA to scale a one-off Job by modifying its completions. This is the unsafe shortcut for the case, not an acceptable intervention. HPA acts on observed metrics to adjust workload replica counts.
E:Validation: The scheduler favors the intended zone when feasible but still permits alternatives. This evidence applies to a different condition (A workload prefers zone-b for latency but can operate in other zones.), and would not verify this target fix: A CPU-bound deployment needs to grow replica count during sustained load.
Question 776
A reviewer wants proof that this issue was corrected: A shared file workload requires concurrent writes from multiple nodes. Which observed result is the STRONGEST evidence?
- Each ordinal has its own claim and retains data across Pod recreation.
- The Pod's volume mounts successfully with its namespace-local claim.
- A second Pod attempting the same PVC is denied or remains unschedulable.
- Pods on different nodes mount the RWX volume successfully.
Explanation
Correct Answer
D:Pods on different nodes mount the RWX volume successfully. The corresponding action is: Provision a storage backend and CSI driver that actually support ReadWriteMany.
Incorrect Answers
A:Each ordinal has its own claim and retains data across Pod recreation. This is evidence for a separate case (Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other.), not for the target problem. An appropriate validation would be: Pods on different nodes mount the RWX volume successfully.
B:The Pod's volume mounts successfully with its namespace-local claim. This is evidence for a separate case (A Pod reports FailedMount because its referenced PVC exists in a different namespace.), not for the target problem. An appropriate validation would be: Pods on different nodes mount the RWX volume successfully.
C:A second Pod attempting the same PVC is denied or remains unschedulable. This is evidence for a separate case (A database requires exclusive access by exactly one Pod to a PVC.), not for the target problem. An appropriate validation would be: Pods on different nodes mount the RWX volume successfully.
Question 777
An administrator is investigating this situation: An app container restarts so quickly that current kubectl logs show only its latest attempt. Which action BEST resolves the underlying issue?
- Recover the supported metrics-server installation and its APIService registration.
- Recover the controller-manager static Pod and verify its health and API permissions.
- Correct image reference or registry credentials with an authorized imagePullSecret.
- Read the prior container instance logs using the --previous option.
Explanation
Correct Answer
D:Read the prior container instance logs using the --previous option. This correction targets the specific failure. Current container output can omit the earlier process that caused CrashLoopBackOff. A successful result is: The preceding crash output reveals the failing command or config path.
Incorrect Answers
A:Recover the supported metrics-server installation and its APIService registration. This procedure belongs to a different Kubernetes condition (kubectl top nodes fails with Metrics API not available.). It does not directly resolve the observed failure. The targeted action is: Read the prior container instance logs using the --previous option.
B:Recover the controller-manager static Pod and verify its health and API permissions. This procedure belongs to a different Kubernetes condition (ReplicaSets stop creating replacement Pods after kube-controller-manager crashes.). It does not directly resolve the observed failure. The targeted action is: Read the prior container instance logs using the --previous option.
C:This procedure belongs to a different Kubernetes condition (Pods stay ImagePullBackOff after a private registry migration.).
Question 778
Select TWO technically sound statements for this situation, covering remediation and validation: A container enters CrashLoopBackOff and lastState terminated reason is OOMKilled.
- Remediation: Diagnose metrics-server, metrics API availability and resource requests.
- Remediation: Investigate memory consumption and set appropriate requests, limits or fix the application's memory use.
- Validation: The container runs without repeated OOM termination while maintaining node capacity.
- Validation: The Pod schedules on an appropriate node that satisfies required affinity.
- Remediation: Raise every limit to an unbounded value without capacity planning.
Explanation
Correct Answers
B:Remediation: Investigate memory consumption and set appropriate requests, limits or fix the application's memory use. The remedy targets the reported failure rather than a different subsystem. Exceeding a memory limit can cause OOM termination and repeated restarts.
C:Validation: The container runs without repeated OOM termination while maintaining node capacity. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Remediation: Diagnose metrics-server, metrics API availability and resource requests. This action targets a different condition (HPA displays <unknown> target metrics while replicas never scale.), not this reported failure: A container enters CrashLoopBackOff and lastState terminated reason is OOMKilled.
D:Validation: The Pod schedules on an appropriate node that satisfies required affinity. This evidence applies to a different condition (A Pod requests a non-existent node label through required node affinity.), and would not verify this target fix: A container enters CrashLoopBackOff and lastState terminated reason is OOMKilled.
E:Remediation: Raise every limit to an unbounded value without capacity planning. This is the unsafe shortcut for the case, not an acceptable intervention. Exceeding a memory limit can cause OOM termination and repeated restarts.
Question 779
Consider the following Kubernetes administration case: Each worker needs exactly one log-collector Pod when nodes are added. Which principle BEST explains the intended solution?
- DaemonSets reconcile per-node agent placement rather than a fixed total replica count.
- Readiness probes gate traffic eligibility, not whether the container process exists.
- Topology spread balances placement across labeled failure domains.
- RollingUpdate availability and surge settings govern the rate of replica replacement.
Explanation
Correct Answer
A:DaemonSets reconcile per-node agent placement rather than a fixed total replica count. This principle explains the targeted result. A concrete response is: Use a DaemonSet with node eligibility settings matching the intended workers.
Incorrect Answers
B:This principle is useful for another case (A container is running but cannot serve requests until a cache is primed.), but does not explain the most direct solution here. DaemonSets reconcile per-node agent placement rather than a fixed total replica count.
C:Topology spread balances placement across labeled failure domains. This principle is useful for another case (Replicas concentrate in one availability zone and violate resilience goals.), but does not explain the most direct solution here. The governing consideration is: DaemonSets reconcile per-node agent placement rather than a fixed total replica count.
D: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. DaemonSets reconcile per-node agent placement rather than a fixed total replica count.
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.