CNCF CKA Practice Test 80
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.
Question 791
During remediation, this failure appears: ReplicaSets stop creating replacement Pods after kube-controller-manager crashes. Which action is the LEAST defensible?
- Inspect Pod and component events before changing unrelated resources.
- Apply scoped access rather than granting universal administration.
- Scale ReplicaSet to a huge number to compensate for a broken controller.
- Use a staged rollout and observe readiness before full deployment.
Explanation
Correct Answer
C:Scale ReplicaSet to a huge number to compensate for a broken controller. Kubernetes controllers implement desired-state reconciliation. A safer course is: Recover the controller-manager static Pod and verify its health and API permissions.
Incorrect Answers
A: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: Recover the controller-manager static Pod and verify its health and API permissions.
B:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Recover the controller-manager static Pod and verify its health and API permissions.
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: Recover the controller-manager static Pod and verify its health and API permissions.
Question 792
During cluster maintenance, an engineer finds this problem: HPA reports unknown CPU utilization although Pods are running. Which next action is technically justified?
- Ensure relevant CPU requests are defined and the resource metrics pipeline is working.
- Configure a readinessProbe that tests the actual application readiness endpoint.
- Use preferredDuringSchedulingIgnoredDuringExecution node affinity with weights.
- Add a startupProbe with a startup budget before liveness checking begins.
Explanation
Correct Answer
A:Ensure relevant CPU requests are defined and the resource metrics pipeline is working. This correction targets the specific failure. CPU utilization-based HPA calculations need requests and available resource metrics. A successful result is: HPA displays utilization rather than unknown and computes a recommendation.
Incorrect Answers
B:Configure a readinessProbe that tests the actual application readiness endpoint. This procedure belongs to a different Kubernetes condition (A container is running but cannot serve requests until a cache is primed.). It does not directly resolve the observed failure. The targeted action is: Ensure relevant CPU requests are defined and the resource metrics pipeline is working.
C:Use preferredDuringSchedulingIgnoredDuringExecution node affinity with weights. This procedure belongs to a different Kubernetes condition (A workload prefers zone-b for latency but can operate in other zones.). It does not directly resolve the observed failure. The targeted action is: Ensure relevant CPU requests are defined and the resource metrics pipeline is working.
D:Add a startupProbe with a startup budget before liveness checking begins. This procedure belongs to a different Kubernetes condition (A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.). It does not directly resolve the observed failure. The targeted action is: Ensure relevant CPU requests are defined and the resource metrics pipeline is working.
Question 793
An engineer needs to justify a change for this issue: A stacked-etcd cluster has lost quorum after too many control-plane failures. Which technical reason is MOST relevant?
- Host prerequisites and kubelet configuration determine whether nodes can participate.
- Consensus systems require quorum; uncontrolled member recreation risks state loss.
- Cordon changes scheduling eligibility but does not terminate current Pods.
- Helm charts are templates that must be evaluated before cluster changes.
Explanation
Correct Answer
B:Consensus systems require quorum; uncontrolled member recreation risks state loss. This principle explains the targeted result. A concrete response is: Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
Incorrect Answers
A:Host prerequisites and kubelet configuration determine whether nodes can participate. This principle is useful for another case (An intended kubeadm worker reports kubelet swap-related startup failures.), but does not explain the most direct solution here. The governing consideration is: Consensus systems require quorum; uncontrolled member recreation risks state loss.
C:This principle is useful for another case (An administrator cordoned a node but existing Pods are still running on it.), but does not explain the most direct solution here. Consensus systems require quorum; uncontrolled member recreation risks state loss.
D:This principle is useful for another case (A Helm chart update is proposed but its rendered RBAC is unknown.), but does not explain the most direct solution here. Consensus systems require quorum; uncontrolled member recreation risks state loss.
Question 794
An operations team tests its response to this finding: An administrator cordoned a node but existing Pods are still running on it. Which outcome most clearly establishes that the fix worked?
- Repeat installations use the expected cluster configuration with a reviewable change history.
- An authorization check succeeds for the approved pod operation in prod and remains denied elsewhere.
- Workloads are evicted or intentionally retained according to policy, not merely marked unschedulable.
- Allowed updates to the named object succeed while edits to unrelated ConfigMaps are rejected.
Explanation
Correct Answer
C:The corresponding action is: Use drain when eviction is needed; cordon alone only prevents new scheduling.
Incorrect Answers
A:Repeat installations use the expected cluster configuration with a reviewable change history. This is evidence for a separate case (A cluster bootstrap script contains changing flags and has become difficult to audit.), not for the target problem. An appropriate validation would be: Workloads are evicted or intentionally retained according to policy, not merely marked unschedulable.
B:An authorization check succeeds for the approved pod operation in prod and remains denied elsewhere. This is evidence for a separate case (A namespace user can list Pods in dev but receives Forbidden in prod.), not for the target problem. An appropriate validation would be: Workloads are evicted or intentionally retained according to policy, not merely marked unschedulable.
D:Allowed updates to the named object succeed while edits to unrelated ConfigMaps are rejected. This is evidence for a separate case (An operator must update one named ConfigMap but must not edit every ConfigMap.), not for the target problem. An appropriate validation would be: Workloads are evicted or intentionally retained according to policy, not merely marked unschedulable.
Question 795
Following this Kubernetes scenario, an operator validates remediation: A team stores a critical database file in an emptyDir volume and loses it after Pod replacement. Which measurable outcome shows success?
- Deleting the PVC does not automatically delete the underlying retained storage.
- A second Pod attempting the same PVC is denied or remains unschedulable.
- Database files survive Pod recreation and remount of the persistent volume.
- Volume provisioning considers the selected Pod scheduling topology.
Explanation
Correct Answer
C:Database files survive Pod recreation and remount of the persistent volume. The corresponding action is: Use persistent storage backed by a PVC for data that must survive Pod deletion.
Incorrect Answers
A:Deleting the PVC does not automatically delete the underlying retained storage. This is evidence for a separate case (A StatefulSet is decommissioned but its underlying audit volume must remain for investigation.), not for the target problem. An appropriate validation would be: Database files survive Pod recreation and remount of the persistent volume.
B: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: Database files survive Pod recreation and remount of the persistent volume.
D:Volume provisioning considers the selected Pod scheduling topology. This is evidence for a separate case (A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules.), not for the target problem. An appropriate validation would be: Database files survive Pod recreation and remount of the persistent volume.
Question 796
The team is reviewing this failure mode: A temporary dynamically provisioned data volume should be removed with its claim. Which statement explains WHY the recommended control works?
- emptyDir is tied to a Pod lifetime and is not durable storage.
- Delete reclaim policy instructs supported provisioners to remove backing assets.
- Volume mode differentiates raw block devices from filesystem mounts.
- Access modes describe requested mounting capabilities but need backend support.
Explanation
Correct Answer
B:Delete reclaim policy instructs supported provisioners to remove backing assets. This principle explains the targeted result. A concrete response is: Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
Incorrect Answers
A:This principle is useful for another case (A team stores a critical database file in an emptyDir volume and loses it after Pod replacement.), but does not explain the most direct solution here. Delete reclaim policy instructs supported provisioners to remove backing assets.
C: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. Delete reclaim policy instructs supported provisioners to remove backing assets.
D:Access modes describe requested mounting capabilities but need backend support. This principle is useful for another case (A shared file workload requires concurrent writes from multiple nodes.), but does not explain the most direct solution here. The governing consideration is: Delete reclaim policy instructs supported provisioners to remove backing assets.
Question 797
In a Kubernetes cluster, the following condition is observed: An Ingress resource has an address but no controller is processing its rules. Which remediation MOST directly addresses it?
- Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
- Set a valid ingressClassName for an installed and healthy Ingress controller.
- Set dnsPolicy None and configure the Pod's dnsConfig nameservers and searches appropriately.
- Correct Ingress paths and pathType mapping to the proper Service backends.
Explanation
Correct Answer
B:Set a valid ingressClassName for an installed and healthy Ingress controller. This correction targets the specific failure. Ingress objects need a supporting controller to implement routing. A successful result is: Ingress controller reconciliation configures the expected backend route.
Incorrect Answers
A:Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway. This procedure belongs to a different Kubernetes condition (An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it.). It does not directly resolve the observed failure. The targeted action is: Set a valid ingressClassName for an installed and healthy Ingress controller.
C:Set dnsPolicy None and configure the Pod's dnsConfig nameservers and searches appropriately. This procedure belongs to a different Kubernetes condition (A Pod must resolve a private test hostname using a custom resolver without changing cluster-wide DNS.). It does not directly resolve the observed failure. The targeted action is: Set a valid ingressClassName for an installed and healthy Ingress controller.
D: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: Set a valid ingressClassName for an installed and healthy Ingress controller.
Question 798
A review finds this Kubernetes issue: A Pod requests a non-existent node label through required node affinity. Which suggestion would make troubleshooting or security worse?
- Patch scheduler Deployment and ignore the impossible node selector.
- Keep backups or change history for potentially destructive maintenance.
- Preserve relevant logs when diagnosing a repeating container crash.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
Explanation
Correct Answer
A:Patch scheduler Deployment and ignore the impossible node selector. Required node affinity is a hard placement constraint. A safer course is: Correct the placement requirement or label suitable eligible nodes truthfully.
Incorrect Answers
B: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: Correct the placement requirement or label suitable eligible nodes truthfully.
C:Preserve relevant logs when diagnosing a repeating container crash. This is an appropriate safeguard, not the unsafe shortcut. Prior process output often identifies the immediate cause. For the stated case, a focused correction is: Correct the placement requirement or label suitable eligible nodes truthfully.
D: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: Correct the placement requirement or label suitable eligible nodes truthfully.
Question 799
Following this Kubernetes scenario, an operator validates remediation: A stacked-etcd control plane needs a recoverable snapshot before upgrade. Which measurable outcome shows success?
- Snapshot status is readable and the backup is protected and recoverable.
- TLS clients can authenticate after renewal and the control plane is healthy.
- The running component uses fresh certificates and healthy TLS connections are restored.
- The control plane reports the intended version before worker upgrades proceed safely.
Explanation
Correct Answer
A:Snapshot status is readable and the backup is protected and recoverable. The corresponding action is: Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
Incorrect Answers
B:TLS clients can authenticate after renewal and the control plane is healthy. This is evidence for a separate case (An API client certificate is about to expire on a kubeadm managed control plane.), not for the target problem. An appropriate validation would be: Snapshot status is readable and the backup is protected and recoverable.
C:The running component uses fresh certificates and healthy TLS connections are restored. This is evidence for a separate case (After a certificate renewal, an old static Pod process still uses expired credentials.), not for the target problem. An appropriate validation would be: Snapshot status is readable and the backup is protected and recoverable.
D:The control plane reports the intended version before worker upgrades proceed safely. This is evidence for a separate case (A kubeadm managed cluster must move one supported minor release forward.), not for the target problem. An appropriate validation would be: Snapshot status is readable and the backup is protected and recoverable.
Question 800
An administrator is investigating this situation: A maintenance drain would evict too many healthy replicas of a critical application. Which action BEST resolves the underlying issue?
- Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
- Update the image on the Deployment and observe its rolling rollout.
- Set appropriate memory requests and limits with attention to QoS and actual node capacity.
- Add a startupProbe with a startup budget before liveness checking begins.
Explanation
Correct Answer
A:Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity. This correction targets the specific failure. PDBs govern voluntary disruptions and require enough workload capacity to permit safe evictions. A successful result is: Voluntary eviction respects the budget and drain waits or fails rather than violating it.
Incorrect Answers
B:Update the image on the Deployment and observe its rolling rollout. This procedure belongs to a different Kubernetes condition (A Deployment is using image v1 but needs a controlled update to image v2.). It does not directly resolve the observed failure. The targeted action is: Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
C:This procedure belongs to a different Kubernetes condition (An important Pod is being evicted during node memory pressure.).
D:Add a startupProbe with a startup budget before liveness checking begins. This procedure belongs to a different Kubernetes condition (A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.). It does not directly resolve the observed failure. The targeted action is: Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.