CNCF CKA Practice Test 68
Question 670
Following this Kubernetes scenario, an operator validates remediation: A Pod is Pending because requested memory exceeds all node allocatable resources. Which measurable outcome shows success?
- The Pod schedules onto a node with sufficient available allocatable resources.
- The rollout maintains the intended number of available replicas at each transition.
- The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it.
- The stuck container is restarted and subsequently returns to Ready.
Explanation
Correct Answer
A:The Pod schedules onto a node with sufficient available allocatable resources. The corresponding action is: Adjust realistic resource requests or add capacity before scheduling.
Incorrect Answers
B:The rollout maintains the intended number of available replicas at each transition. This is evidence for a separate case (A Deployment must update without taking all replicas offline during rollout.), not for the target problem. An appropriate validation would be: The Pod schedules onto a node with sufficient available allocatable resources.
C:The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it. This is evidence for a separate case (An application password is mistakenly embedded in a ConfigMap and exposed to broad readers.), not for the target problem. An appropriate validation would be: The Pod schedules onto a node with sufficient available allocatable resources.
D:The stuck container is restarted and subsequently returns to Ready. This is evidence for a separate case (An HTTP server occasionally deadlocks while its process remains running.), not for the target problem. An appropriate validation would be: The Pod schedules onto a node with sufficient available allocatable resources.
Question 671
A Kubernetes operations team observes the following: Two Pods on different nodes try to attach the same RWO block volume and one remains Pending. What is the MOST appropriate corrective action?
- Use StatefulSet volumeClaimTemplates for per-replica persistent storage.
- Configure the intended default StorageClass annotation while checking existing defaults.
- Choose a suitable storage access pattern or keep the volume attached to an allowed node.
- Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
Explanation
Correct Answer
C:Choose a suitable storage access pattern or keep the volume attached to an allowed node. This correction targets the specific failure. ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod. A successful result is: Scheduling and attachment respect the volume's supported ReadWriteOnce topology.
Incorrect Answers
A: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: Choose a suitable storage access pattern or keep the volume attached to an allowed node.
B: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: Choose a suitable storage access pattern or keep the volume attached to an allowed node.
D: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: Choose a suitable storage access pattern or keep the volume attached to an allowed node.
Question 672
A reviewer wants proof that this issue was corrected: Pods reach cluster Services but cannot contact external APIs from private node networks. Which observed result is the STRONGEST evidence?
- The node clears DiskPressure and Pods can start with sufficient ephemeral storage.
- Clients verify and connect to the legitimate API server after certificate correction.
- MemoryPressure clears and essential Pods remain Ready without repeated eviction.
- Allowed Pods reach external endpoints with expected source IP routing.
Explanation
Correct Answer
D:Allowed Pods reach external endpoints with expected source IP routing. The corresponding action is: Check egress route and SNAT or gateway configuration for the cluster network.
Incorrect Answers
A:The node clears DiskPressure and Pods can start with sufficient ephemeral storage. This is evidence for a separate case (Pods on one worker fail while the node reports DiskPressure.), not for the target problem. An appropriate validation would be: Allowed Pods reach external endpoints with expected source IP routing.
B:Clients verify and connect to the legitimate API server after certificate correction. This is evidence for a separate case (A control-plane certificate replacement causes clients to reject the API server.), not for the target problem. An appropriate validation would be: Allowed Pods reach external endpoints with expected source IP routing.
C:MemoryPressure clears and essential Pods remain Ready without repeated eviction. This is evidence for a separate case (A worker transitions to MemoryPressure and several application Pods are evicted.), not for the target problem. An appropriate validation would be: Allowed Pods reach external endpoints with expected source IP routing.
Question 673
A reviewer wants proof that this issue was corrected: A team mistakes the container network interface for the container runtime interface. Which observed result is the STRONGEST evidence?
- The kubelet starts with an explicitly supported swap setting and the node registers normally.
- The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
- Workers reach the API server and successfully complete the trusted join workflow.
- Network add-on handles Pod routes while the runtime handles container lifecycle.
Explanation
Correct Answer
D:Network add-on handles Pod routes while the runtime handles container lifecycle. The corresponding action is: Select a compatible CNI for Pod networking and separately verify CRI runtime integration.
Incorrect Answers
A:The kubelet starts with an explicitly supported swap setting and the node registers normally. This is evidence for a separate case (An intended kubeadm worker reports kubelet swap-related startup failures.), not for the target problem. An appropriate validation would be: Network add-on handles Pod routes while the runtime handles container lifecycle.
B:The new node trusts and joins the expected API server without accepting an arbitrary endpoint. This is evidence for a separate case (A worker join fails with a discovery CA certificate hash mismatch.), not for the target problem. An appropriate validation would be: Network add-on handles Pod routes while the runtime handles container lifecycle.
C:Workers reach the API server and successfully complete the trusted join workflow. This is evidence for a separate case (A kubeadm init uses an advertise address unreachable from joining nodes.), not for the target problem. An appropriate validation would be: Network add-on handles Pod routes while the runtime handles container lifecycle.
Question 674
A Kubernetes operations team observes the following: Egress-isolated Pods cannot resolve DNS even though their app traffic policy is correct. What is the MOST appropriate corrective action?
- Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network.
- Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
- Inspect Service routing implementation, kube-proxy or equivalent dataplane, and endpoint health.
- Create an ingress policy selecting the API Pods with combined namespaceSelector and podSelector peer criteria.
Explanation
Correct Answer
B:Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints. This correction targets the specific failure. Egress policies must allow necessary dependency traffic such as DNS. A successful result is: DNS queries succeed while other disallowed egress remains denied.
Incorrect Answers
A: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: Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
C:Inspect Service routing implementation, kube-proxy or equivalent dataplane, and endpoint health. This procedure belongs to a different Kubernetes condition (A Service virtual IP fails although direct Pod IP connectivity works.). It does not directly resolve the observed failure. The targeted action is: Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
D:Create an ingress policy selecting the API Pods with combined namespaceSelector and podSelector peer criteria. This procedure belongs to a different Kubernetes condition (An API must accept ingress only from Pods labeled role=client in namespace team-a.). It does not directly resolve the observed failure. The targeted action is: Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
Question 675
During an operational review, this fact emerges: All Pods on one node disappear from monitoring after kubelet service stops. Which Kubernetes behavior MOST directly governs the result?
- NetworkPolicies are additive allow lists once isolation applies.
- Pending Pod placement depends on a functioning scheduler as well as available resources.
- Taints and tolerations affect eligibility separately from CPU capacity.
- Kubelet is the local node agent and its failure affects Pod management and reporting.
Explanation
Correct Answer
D:Kubelet is the local node agent and its failure affects Pod management and reporting. This principle explains the targeted result. A concrete response is: Recover kubelet service after inspecting its systemd journal and configuration.
Incorrect Answers
A:This principle is useful for another case (After a default-deny NetworkPolicy, a required API-to-database connection times out.), but does not explain the most direct solution here. Kubelet is the local node agent and its failure affects Pod management and reporting.
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. Kubelet is the local node agent and its failure affects Pod management and reporting.
C:This principle is useful for another case (A Pod is Pending with an untolerated NoSchedule taint despite free CPU.), but does not explain the most direct solution here.
Question 676
An engineer reports that this problem was fixed: An application password is mistakenly embedded in a ConfigMap and exposed to broad readers. What specific result should an independent reviewer expect?
- HPA displays utilization rather than unknown and computes a recommendation.
- A collector runs on each eligible node including newly joined nodes.
- The rollout maintains the intended number of available replicas at each transition.
- The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it.
Explanation
Correct Answer
D:The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it. The corresponding action is: Move the value into a Secret and restrict access with narrowly scoped RBAC.
Incorrect Answers
A:HPA displays utilization rather than unknown and computes a recommendation. This is evidence for a separate case (HPA reports unknown CPU utilization although Pods are running.), not for the target problem. An appropriate validation would be: The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it.
B:A collector runs on each eligible node including newly joined nodes. This is evidence for a separate case (Each worker needs exactly one log-collector Pod when nodes are added.), not for the target problem. An appropriate validation would be: The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it.
C:The rollout maintains the intended number of available replicas at each transition. This is evidence for a separate case (A Deployment must update without taking all replicas offline during rollout.), not for the target problem. An appropriate validation would be: The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it.
Question 677
An engineer needs to justify a change for this issue: A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration. Which technical reason is MOST relevant?
- Cluster networking requires a functioning CNI path between Pod address ranges.
- LoadBalancer services rely on an implementation or cloud integration to provision external access.
- StatefulSet DNS identities require appropriate Service and Pod hostname relationships.
- Host-networked Pods may need an explicit cluster-aware DNS policy.
Explanation
Correct Answer
D:Host-networked Pods may need an explicit cluster-aware DNS policy. This principle explains the targeted result. A concrete response is: Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload.
Incorrect Answers
A:This principle is useful for another case (Pods on two different workers cannot reach one another but Pod traffic works within a node.), but does not explain the most direct solution here. Host-networked Pods may need an explicit cluster-aware DNS policy.
B:LoadBalancer services rely on an implementation or cloud integration to provision external access. This principle is useful for another case (An external HTTP service needs an infrastructure-managed public listener.), but does not explain the most direct solution here. The governing consideration is: Host-networked Pods may need an explicit cluster-aware DNS policy.
C:This principle is useful for another case (A StatefulSet member cannot resolve its ordinal hostname after the governing Service changed.), but does not explain the most direct solution here. Host-networked Pods may need an explicit cluster-aware DNS policy.
Question 678
An administrator is investigating this situation: A worker join fails with a discovery CA certificate hash mismatch. Which action BEST resolves the underlying issue?
- Reject the unsupported skew and follow the documented Kubernetes component version-skew policy.
- Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
- Bind a narrowly scoped Role to the controller ServiceAccount in team-a.
- Use the correct CA and client certificate/key matching the endpoint's advertised TLS configuration.
Explanation
Correct Answer
B:Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash. This correction targets the specific failure. The CA pin guards bootstrap against connecting to an unintended cluster. A successful result is: The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
Incorrect Answers
A:Reject the unsupported skew and follow the documented Kubernetes component version-skew policy.
C: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: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
D:Use the correct CA and client certificate/key matching the endpoint's advertised TLS configuration. This procedure belongs to a different Kubernetes condition (etcdctl endpoint health fails on a local stacked-etcd member with a TLS handshake error.). It does not directly resolve the observed failure. The targeted action is: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
Question 679
A platform engineer receives this incident: Traffic reaches only one replica because two backend Pods have failing readiness. Which change should be made first after validating the facts?
- Repair readiness conditions and confirm EndpointSlice endpoint readiness.
- Use a LoadBalancer Service backed by a working provider integration.
- Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
- Configure Service sessionAffinity ClientIP when its limitations are acceptable.
Explanation
Correct Answer
A:Repair readiness conditions and confirm EndpointSlice endpoint readiness. This correction targets the specific failure. EndpointSlice endpoint conditions reflect backend readiness and eligibility. A successful result is: Ready endpoints include all healthy replicas and service requests balance accordingly.
Incorrect Answers
B:Use a LoadBalancer Service backed by a working provider integration. This procedure belongs to a different Kubernetes condition (An external HTTP service needs an infrastructure-managed public listener.). It does not directly resolve the observed failure. The targeted action is: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
C:Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort. This procedure belongs to a different Kubernetes condition (A development Service must be reachable on each eligible node at a defined node port.). It does not directly resolve the observed failure. The targeted action is: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
D:Configure Service sessionAffinity ClientIP when its limitations are acceptable. This procedure belongs to a different Kubernetes condition (A legacy client needs repeated requests to tend to the same Pod behind one Service.). It does not directly resolve the observed failure. The targeted action is: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
Question 680
A review finds this Kubernetes issue: An application fails because its database initialization must happen before the main process. Which suggestion would make troubleshooting or security worse?
- Record a rollback approach before high-impact control-plane changes.
- Check applicable component version compatibility before upgrading.
- Use a staged rollout and observe readiness before full deployment.
- Put initialization into an always-running sidecar and call it guaranteed prestart.
Explanation
Correct Answer
D:Put initialization into an always-running sidecar and call it guaranteed prestart. Init containers sequence prerequisite work before ordinary containers. A safer course is: Use an initContainer for prerequisite checks or initialization steps.
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: Use an initContainer for prerequisite checks or initialization steps.
B:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Use an initContainer for prerequisite checks or initialization steps.
C: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: Use an initContainer for prerequisite checks or initialization steps.