CNCF CKA Practice Test 73
Question 720
During cluster maintenance, an engineer finds this problem: The API server is slow and logs show etcd request timeouts. Which next action is technically justified?
- Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
- Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
- Identify memory consumers, verify requests and limits and relieve pressure with safe workload/capacity changes.
- Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
Explanation
Correct Answer
B:Inspect etcd endpoint health, disk latency, quorum and certificate connectivity. This correction targets the specific failure. Control-plane API responsiveness depends on healthy etcd persistence and quorum. A successful result is: etcd health is restored and API read/write latency returns to acceptable levels.
Incorrect Answers
A:Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path. This procedure belongs to a different Kubernetes condition (A Pod remains ContainerCreating with MountVolume.SetUp failed errors.). It does not directly resolve the observed failure. The targeted action is: Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
C:Identify memory consumers, verify requests and limits and relieve pressure with safe workload/capacity changes. This procedure belongs to a different Kubernetes condition (A worker transitions to MemoryPressure and several application Pods are evicted.). It does not directly resolve the observed failure. The targeted action is: Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
D:Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement. This procedure belongs to a different Kubernetes condition (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.). It does not directly resolve the observed failure. The targeted action is: Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
Question 721
The team is reviewing this failure mode: Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized. Which statement explains WHY the recommended control works?
- RBAC resourceNames can narrow certain resource requests to named objects.
- Graceful node maintenance coordinates schedulability and safe workload eviction.
- A working control plane alone does not provide Pod networking.
- Labels are selectors and must reflect real intended node attributes.
Explanation
Correct Answer
C:A working control plane alone does not provide Pod networking. This principle explains the targeted result. A concrete response is: Install and configure a CNI compatible with the cluster Pod CIDR.
Incorrect Answers
A:This principle is useful for another case (An operator must update one named ConfigMap but must not edit every ConfigMap.), but does not explain the most direct solution here. A working control plane alone does not provide Pod networking.
B:Graceful node maintenance coordinates schedulability and safe workload eviction. This principle is useful for another case (A worker requires OS maintenance while running replicated customer Pods.), but does not explain the most direct solution here. The governing consideration is: A working control plane alone does not provide Pod networking.
D:Labels are selectors and must reflect real intended node attributes. This principle is useful for another case (Node role labels are inconsistent after provisioning new workers.), but does not explain the most direct solution here. The governing consideration is: A working control plane alone does not provide Pod networking.
Question 722
An administrator is investigating this situation: A Pod is Pending with an untolerated NoSchedule taint despite free CPU. Which action BEST resolves the underlying issue?
- Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity.
- Measure node and Pod CPU usage and correlate resource requests with workload demand before adjusting capacity.
- Apply an approved toleration or choose an eligible untainted node.
- Diagnose RBAC authorization and effective identity rather than treating it as a network outage.
Explanation
Correct Answer
C:Apply an approved toleration or choose an eligible untainted node. This correction targets the specific failure. Taints and tolerations affect eligibility separately from CPU capacity. A successful result is: The Pod schedules while node isolation remains deliberate.
Incorrect Answers
A:Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity.
B:Measure node and Pod CPU usage and correlate resource requests with workload demand before adjusting capacity. This procedure belongs to a different Kubernetes condition (A node reports high CPU use and latency spikes while the scheduler keeps assigning Pods.). It does not directly resolve the observed failure. The targeted action is: Apply an approved toleration or choose an eligible untainted node.
D:Diagnose RBAC authorization and effective identity rather than treating it as a network outage. This procedure belongs to a different Kubernetes condition (An operator receives HTTP 403 Forbidden from the API server when listing Secrets.). It does not directly resolve the observed failure. The targeted action is: Apply an approved toleration or choose an eligible untainted node.
Question 723
The team is reviewing this failure mode: An external HTTP service needs an infrastructure-managed public listener. Which statement explains WHY the recommended control works?
- Gateway API cross-namespace references require explicit grants for relevant reference types.
- Host-networked Pods may need an explicit cluster-aware DNS policy.
- LoadBalancer services rely on an implementation or cloud integration to provision external access.
- Ingress TLS termination depends on the controller and properly referenced certificate material.
Explanation
Correct Answer
C:LoadBalancer services rely on an implementation or cloud integration to provision external access. This principle explains the targeted result. A concrete response is: Use a LoadBalancer Service backed by a working provider integration.
Incorrect Answers
A:This principle is useful for another case (A Gateway API route in namespace web needs to refer to a backend Service in namespace shared.), but does not explain the most direct solution here. LoadBalancer services rely on an implementation or cloud integration to provision external access.
B:This principle is useful for another case (A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.), but does not explain the most direct solution here. LoadBalancer services rely on an implementation or cloud integration to provision external access.
D:This principle is useful for another case (An HTTPS Ingress serves the wrong certificate for app.example.org.), but does not explain the most direct solution here. LoadBalancer services rely on an implementation or cloud integration to provision external access.
Question 724
A reviewer wants proof that this issue was corrected: Traffic reaches only one replica because two backend Pods have failing readiness. Which observed result is the STRONGEST evidence?
- The hostNetwork Pod resolves Kubernetes Service records as intended.
- Ready endpoints include all healthy replicas and service requests balance accordingly.
- The route resolves the backend reference without opening unrelated namespace access.
- Gateway and route conditions show Accepted and Programmed as appropriate.
Explanation
Correct Answer
B:Ready endpoints include all healthy replicas and service requests balance accordingly. The corresponding action is: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
Incorrect Answers
A:The hostNetwork Pod resolves Kubernetes Service records as intended. This is evidence for a separate case (A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.), not for the target problem. An appropriate validation would be: Ready endpoints include all healthy replicas and service requests balance accordingly.
C:The route resolves the backend reference without opening unrelated namespace access. This is evidence for a separate case (A Gateway API route in namespace web needs to refer to a backend Service in namespace shared.), not for the target problem. An appropriate validation would be: Ready endpoints include all healthy replicas and service requests balance accordingly.
D:Gateway and route conditions show Accepted and Programmed as appropriate. This is evidence for a separate case (An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it.), not for the target problem. An appropriate validation would be: Ready endpoints include all healthy replicas and service requests balance accordingly.
Question 725
An administrator is investigating this situation: An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it. Which action BEST resolves the underlying issue?
- Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
- Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network.
- Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
- Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.
Explanation
Correct Answer
C:Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway. This correction targets the specific failure. Gateway API resources require implementing controllers; resource creation alone is not data-plane setup. A successful result is: Gateway and route conditions show Accepted and Programmed as appropriate.
Incorrect Answers
A:Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints. This procedure belongs to a different Kubernetes condition (Egress-isolated Pods cannot resolve DNS even though their app traffic policy is correct.). It does not directly resolve the observed failure. The targeted action is: Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
B:Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network. This procedure belongs to a different Kubernetes condition (A dual-stack cluster Service was created with only IPv4 despite an IPv6 requirement.). It does not directly resolve the observed failure. The targeted action is: Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
D:Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes. This procedure belongs to a different Kubernetes condition (A team needs clients' original source IP preserved for a LoadBalancer Service.). It does not directly resolve the observed failure. The targeted action is: Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
Question 726
An administrator is investigating this situation: Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized. Which action BEST resolves the underlying issue?
- Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
- Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
- Cordon and drain the node with appropriate eviction safeguards before maintenance.
- Install and configure a CNI compatible with the cluster Pod CIDR.
Explanation
Correct Answer
D:Install and configure a CNI compatible with the cluster Pod CIDR. This correction targets the specific failure. A working control plane alone does not provide Pod networking. A successful result is: Nodes transition to Ready and cross-node Pod connectivity becomes available.
Incorrect Answers
A:Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members. This procedure belongs to a different Kubernetes condition (A stacked-etcd cluster has lost quorum after too many control-plane failures.). It does not directly resolve the observed failure. The targeted action is: Install and configure a CNI compatible with the cluster Pod CIDR.
B:Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings. This procedure belongs to a different Kubernetes condition (A cluster bootstrap script contains changing flags and has become difficult to audit.). It does not directly resolve the observed failure. The targeted action is: Install and configure a CNI compatible with the cluster Pod CIDR.
C: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: Install and configure a CNI compatible with the cluster Pod CIDR.
Question 727
A cluster issue is reported: A Pod in payments namespace cannot resolve the short name api for a Service in catalog namespace. What practical check most directly confirms the suspected cause?
- Inspect spec.policyTypes and run an outbound connectivity test from the selected Pod.
- Run nslookup api.catalog.svc.cluster.local in a debugging Pod.
- Inspect kubectl get service -o yaml ports and curl the backend Pod port directly.
- Inspect Service spec.sessionAffinity and test requests from controlled source IPs.
Explanation
Correct Answer
B:Run nslookup api.catalog.svc.cluster.local in a debugging Pod. This diagnostic examines the relevant resource or subsystem. Unqualified Service names resolve relative to the client's namespace search path. The validating result would be: DNS resolves the desired Service from other namespaces.
Incorrect Answers
A:This check is appropriate to the separate problem (A team thinks applying an ingress-only policy prevents Pods from sending outbound traffic.), but it is not the direct diagnostic for the described failure. Inspect spec.policyTypes and run an outbound connectivity test from the selected Pod.
C:This check is appropriate to the separate problem (A Service listens on port 80 but the container listens on 8080 and requests fail.), but it is not the direct diagnostic for the described failure. Inspect kubectl get service -o yaml ports and curl the backend Pod port directly.
D:This check is appropriate to the separate problem (A legacy client needs repeated requests to tend to the same Pod behind one Service.), but it is not the direct diagnostic for the described failure. Inspect Service spec.sessionAffinity and test requests from controlled source IPs.
Question 728
Select TWO technically sound statements for this situation, covering remediation and validation: etcd returns a no-space alarm after excessive database growth.
- Remediation: Manually truncate live etcd data files while the server is running.
- Validation: The node registers with the intended cluster and becomes Ready.
- Validation: etcd accepts writes after storage alarms are correctly cleared.
- Remediation: Identify excessive process counts and correct the offending workload or node capacity.
- Remediation: Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity.
Explanation
Correct Answers
C:Validation: etcd accepts writes after storage alarms are correctly cleared. This result verifies the behavior the remediation is supposed to restore.
E:Remediation: Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity. The remedy targets the reported failure rather than a different subsystem. etcd storage quota alarms require careful backend maintenance and sufficient disk.
Incorrect Answers
A:Remediation: Manually truncate live etcd data files while the server is running. This is the unsafe shortcut for the case, not an acceptable intervention. etcd storage quota alarms require careful backend maintenance and sufficient disk.
B:Validation: The node registers with the intended cluster and becomes Ready. This evidence applies to a different condition (A new worker never registers though kubeadm join exited with an error.), and would not verify this target fix: etcd returns a no-space alarm after excessive database growth.
D:Remediation: Identify excessive process counts and correct the offending workload or node capacity. This action targets a different condition (A worker is Ready but reports PIDPressure and new processes fail to launch.), not this reported failure: etcd returns a no-space alarm after excessive database growth.
Question 729
An engineer needs to justify a change for this issue: An app writes errors to stderr but a team searches only a file in the container image. Which technical reason is MOST relevant?
- InitContainer failures block ordinary container startup.
- Persistent storage binding can be a prerequisite for Pod placement.
- Service routing depends on node dataplane health distinct from Pod connectivity.
- Kubernetes container log viewing relies on container output streams, not arbitrary files.
Explanation
Correct Answer
D:Kubernetes container log viewing relies on container output streams, not arbitrary files. This principle explains the targeted result. A concrete response is: Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline.
Incorrect Answers
A:InitContainer failures block ordinary container startup. This principle is useful for another case (The main app never starts because an initContainer image is inaccessible.), but does not explain the most direct solution here. The governing consideration is: Kubernetes container log viewing relies on container output streams, not arbitrary files.
B:This principle is useful for another case (A Pod is Pending with a message about unbound immediate PersistentVolumeClaims.), but does not explain the most direct solution here. Kubernetes container log viewing relies on container output streams, not arbitrary files.
C:This principle is useful for another case (Service ClusterIP connections fail on one node even though direct Pod IP connections work.), but does not explain the most direct solution here. Kubernetes container log viewing relies on container output streams, not arbitrary files.
Question 730
During cluster maintenance, an engineer finds this problem: A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi. Which next action is technically justified?
- Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
- Enable supported volume expansion and increase PVC requested storage safely.
- Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
- Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
Explanation
Correct Answer
A:Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity. This correction targets the specific failure. PVC binding requires matching capacity, access mode and other volume constraints. A successful result is: The PVC becomes Bound to a compatible volume and its Pod can mount it.
Incorrect Answers
B:Enable supported volume expansion and increase PVC requested storage safely. This procedure belongs to a different Kubernetes condition (A PVC is nearly full and its backing CSI driver supports growth.). It does not directly resolve the observed failure. The targeted action is: Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
C:Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
D:Use StatefulSet volumeClaimTemplates for per-replica persistent storage. This procedure belongs to a different Kubernetes condition (Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other.). It does not directly resolve the observed failure. The targeted action is: Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.