CNCF CKA Practice Test 44
Question 430
A cluster team is handling this situation: A development Service must be reachable on each eligible node at a defined node port. Which proposed shortcut should be REJECTED?
- Inspect Pod and component events before changing unrelated resources.
- Verify the target cluster and namespace before mutating resources.
- Check applicable component version compatibility before upgrading.
- Set nodePort outside the configured range and assume the API accepts it.
Explanation
Correct Answer
D:Set nodePort outside the configured range and assume the API accepts it. NodePort exposes a Service using a port on cluster nodes. A safer course is: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
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: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
B: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: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
C:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
Question 431
A review finds this Kubernetes issue: A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080. Which suggestion would make troubleshooting or security worse?
- Review controller logs and resource status to understand reconciliation failures.
- Increase Deployment replicas to fix a port-number mismatch.
- Apply scoped access rather than granting universal administration.
- Test connectivity from the affected Pod before redesigning all Services.
Explanation
Correct Answer
B:Increase Deployment replicas to fix a port-number mismatch. Healthy endpoints do not compensate for incorrect TCP/UDP port mapping. A safer course is: Correct targetPort or named container port mapping to the actual listener.
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: Correct targetPort or named container port mapping to the actual listener.
C:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Correct targetPort or named container port mapping to the actual listener.
D:Test connectivity from the affected Pod before redesigning all Services. Layered checks separate DNS, network and application failures. For the stated case, a focused correction is: Correct targetPort or named container port mapping to the actual listener.
Question 432
Consider the following Kubernetes administration case: Traffic to /api is routed to the frontend Service rather than the API backend. Which principle BEST explains the intended solution?
- Ingress path routing depends on explicit path rules and controller semantics.
- Service affinity can be source-IP based but is not a durable application session store.
- A single NetworkPolicy peer combining namespaceSelector and podSelector intersects their selection criteria.
- NetworkPolicy isolation is additive and defaults to allow without selecting policies.
Explanation
Correct Answer
A:Ingress path routing depends on explicit path rules and controller semantics. This principle explains the targeted result. A concrete response is: Correct Ingress paths and pathType mapping to the proper Service backends.
Incorrect Answers
B:This principle is useful for another case (A legacy client needs repeated requests to tend to the same Pod behind one Service.), but does not explain the most direct solution here. Ingress path routing depends on explicit path rules and controller semantics.
C:This principle is useful for another case (An API must accept ingress only from Pods labeled role=client in namespace team-a.), but does not explain the most direct solution here. Ingress path routing depends on explicit path rules and controller semantics.
D:This principle is useful for another case (Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace.), but does not explain the most direct solution here. Ingress path routing depends on explicit path rules and controller semantics.
Question 433
A reviewer wants proof that this issue was corrected: kubeadm reports multiple CRI sockets and cannot select the runtime. Which observed result is the STRONGEST evidence?
- Kubelet recreates kube-scheduler and scheduler health recovers.
- Workloads are evicted or intentionally retained according to policy, not merely marked unschedulable.
- kubeadm uses the correct runtime endpoint and container creation succeeds.
- TLS clients can authenticate after renewal and the control plane is healthy.
Explanation
Correct Answer
C:Kubeadm uses the correct runtime endpoint and container creation succeeds. The corresponding action is: Specify the intended working CRI socket in kubeadm configuration and verify runtime health.
Incorrect Answers
A:Kubelet recreates kube-scheduler and scheduler health recovers. This is evidence for a separate case (The kube-scheduler static Pod disappeared after someone edited its manifest incorrectly.), not for the target problem. An appropriate validation would be: kubeadm uses the correct runtime endpoint and container creation succeeds.
B:Workloads are evicted or intentionally retained according to policy, not merely marked unschedulable. This is evidence for a separate case (An administrator cordoned a node but existing Pods are still running on it.), not for the target problem. An appropriate validation would be: kubeadm uses the correct runtime endpoint and container creation succeeds.
D: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: kubeadm uses the correct runtime endpoint and container creation succeeds.
Question 434
An operations team tests its response to this finding: A Deployment consumes a ConfigMap through env vars and existing Pods still have old values. Which outcome most clearly establishes that the fix worked?
- Replicas occupy separate suitable nodes when capacity allows.
- A collector runs on each eligible node including newly joined nodes.
- New Pods read updated environment variables and rollout finishes successfully.
- Each replica retains stable ordinal identity and corresponding persistent claim.
Explanation
Correct Answer
C:New Pods read updated environment variables and rollout finishes successfully. This outcome shows the required behavior after correction. The corresponding action is: Update the ConfigMap and roll out fresh Pods when environment variables need refresh.
Incorrect Answers
A:Replicas occupy separate suitable nodes when capacity allows. This is evidence for a separate case (Three replicas should avoid sharing one host to improve failure tolerance.), not for the target problem. An appropriate validation would be: New Pods read updated environment variables and rollout finishes successfully.
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: New Pods read updated environment variables and rollout finishes successfully.
D:Each replica retains stable ordinal identity and corresponding persistent claim. This is evidence for a separate case (Database replicas require stable identities and persistent storage across rescheduling.), not for the target problem. An appropriate validation would be: New Pods read updated environment variables and rollout finishes successfully.
Question 435
To avoid guessing about this fault, what should be inspected first? An API client certificate is about to expire on a kubeadm managed control plane.
- Compare kubelet and API server versions against the official version-skew policy.
- Run kubeadm certs check-expiration and inspect relevant component logs.
- Test with kubectl auth can-i get configmaps -n team-a --as=system:serviceaccount:team-a:controller.
- Use kubectl auth can-i list pods -n prod --as=developer and repeat against an unauthorized namespace.
Explanation
Correct Answer
B:Run kubeadm certs check-expiration and inspect relevant component logs. This diagnostic examines the relevant resource or subsystem. Expired control-plane credentials can break otherwise healthy components. The validating result would be: TLS clients can authenticate after renewal and the control plane is healthy.
Incorrect Answers
A:This check is appropriate to the separate problem (A proposed upgrade would run kubelet newer than kube-apiserver.), but it is not the direct diagnostic for the described failure.
C:This check is appropriate to the separate problem (A controller ServiceAccount needs to read ConfigMaps only in team-a.), but it is not the direct diagnostic for the described failure. Run kubeadm certs check-expiration and inspect relevant component logs.
D:This check is appropriate to the separate problem (A namespace user can list Pods in dev but receives Forbidden in prod.), but it is not the direct diagnostic for the described failure. Run kubeadm certs check-expiration and inspect relevant component logs.
Question 436
Consider the following Kubernetes administration case: A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills. Which principle BEST explains the intended solution?
- Pod address exhaustion can block container networking despite healthy kubelet.
- Service routing depends on node dataplane health distinct from Pod connectivity.
- Service selectors must match label key/value pairs exactly.
- Invalid static Pod manifests prevent kubelet from reconciling critical control-plane components.
Explanation
Correct Answer
A:Pod address exhaustion can block container networking despite healthy kubelet. This principle explains the targeted result. A concrete response is: Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
Incorrect Answers
B: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. Pod address exhaustion can block container networking despite healthy kubelet.
C:Service selectors must match label key/value pairs exactly. This principle is useful for another case (A newly deployed Service selector uses app=front while Pods are labeled app=frontend.), but does not explain the most direct solution here. The governing consideration is: Pod address exhaustion can block container networking despite healthy kubelet.
D:Invalid static Pod manifests prevent kubelet from reconciling critical control-plane components. This principle is useful for another case (After a malformed YAML edit, kubelet stops running kube-controller-manager.), but does not explain the most direct solution here. The governing consideration is: Pod address exhaustion can block container networking despite healthy kubelet.
Question 437
Select THREE technically appropriate statements spanning action, explanation and expected result for this case: An incident responder sees Pod recreation, image pull and readiness failures and needs the order of events.
- Explanation: Troubleshooting should establish an evidence-based sequence before changes.
- Remediation: Correlate namespaced events, Pod conditions, restart data and timestamped logs.
- Validation: New Pods obtain unique Pod IPs without collision after capacity remediation.
- Remediation: Create the expected key or correct the container's configMapKeyRef name.
- Validation: The team can reconstruct which failure came first and validate the repaired stage.
- Remediation: Assume the most recent Warning event must be the root cause.
Explanation
Correct Answers
A:Explanation: Troubleshooting should establish an evidence-based sequence before changes. This is the technical mechanism supporting the recommended operation.
B:Remediation: Correlate namespaced events, Pod conditions, restart data and timestamped logs. The remedy targets the reported failure rather than a different subsystem. Troubleshooting should establish an evidence-based sequence before changes.
E:Validation: The team can reconstruct which failure came first and validate the repaired stage. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
C:Validation: New Pods obtain unique Pod IPs without collision after capacity remediation. This evidence applies to a different condition (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.), and would not verify this target fix: An incident responder sees Pod recreation, image pull and readiness failures and needs the order of events.
D:Remediation: Create the expected key or correct the container's configMapKeyRef name. This action targets a different condition (A Pod is stuck CreateContainerConfigError because a referenced ConfigMap key is absent.), not this reported failure: An incident responder sees Pod recreation, image pull and readiness failures and needs the order of events.
F:Remediation: Assume the most recent Warning event must be the root cause. This is the unsafe shortcut for the case, not an acceptable intervention. Troubleshooting should establish an evidence-based sequence before changes.
Question 438
An administrator reviews several possible responses to this condition: A worker unexpectedly becomes NotReady following a network maintenance event. Which option creates an avoidable failure?
- Test connectivity from the affected Pod before redesigning all Services.
- Inspect Pod and component events before changing unrelated resources.
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Scale all Deployments to zero instead of investigating the node.
Explanation
Correct Answer
D:Scale all Deployments to zero instead of investigating the node. Node readiness is driven by kubelet heartbeats and node health signals. A safer course is: Check kubelet status, node heartbeats and API server reachability from that worker.
Incorrect Answers
A:Test connectivity from the affected Pod before redesigning all Services. Layered checks separate DNS, network and application failures. For the stated case, a focused correction is: Check kubelet status, node heartbeats and API server reachability from that worker.
B: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: Check kubelet status, node heartbeats and API server reachability from that worker.
C: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: Check kubelet status, node heartbeats and API server reachability from that worker.
Question 439
A Kubernetes operator wants to verify this condition: Pods stay ImagePullBackOff after a private registry migration. Which investigation step is BEST suited to the case?
- Inspect kubectl describe pod events and Secret existence without exposing data.
- Inspect Pod events and ConfigMap keys in the same namespace.
- Compare ClusterIP and direct Pod tests from affected and healthy nodes.
- Inspect kubectl describe pod image pull events and verify image name and pull Secret.
Explanation
Correct Answer
D:Inspect kubectl describe pod image pull events and verify image name and pull Secret. This diagnostic examines the relevant resource or subsystem. ImagePullBackOff reflects registry, authentication or image retrieval failure rather than scheduling alone. The validating result would be: Pods successfully pull the image and transition to Running.
Incorrect Answers
A:This check is appropriate to the separate problem (A Deployment's Pods report CreateContainerConfigError due to a missing Secret.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe pod image pull events and verify image name and pull Secret.
B:This check is appropriate to the separate problem (A Pod is stuck CreateContainerConfigError because a referenced ConfigMap key is absent.), but it is not the direct diagnostic for the described failure.
C:This check is appropriate to the separate problem (Service ClusterIP connections fail on one node even though direct Pod IP connections work.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe pod image pull events and verify image name and pull Secret.
Question 440
During remediation, this failure appears: A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints. Which action is the LEAST defensible?
- Preserve relevant logs when diagnosing a repeating container crash.
- Apply scoped access rather than granting universal administration.
- Add a public Ingress to a Service with no ready Pods.
- Choose a storage access mode backed by real CSI capabilities.
Explanation
Correct Answer
C:Add a public Ingress to a Service with no ready Pods. Service existence does not guarantee a healthy backend endpoint. A safer course is: Find and correct backend readiness or selector mismatch before changing external routing.
Incorrect Answers
A: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: Find and correct backend readiness or selector mismatch before changing external routing.
B:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Find and correct backend readiness or selector mismatch before changing external routing.
D: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: Find and correct backend readiness or selector mismatch before changing external routing.