CNCF CKA Practice Test 9
Question 80
A cluster administrator must address the following case: A new worker cannot join because its bootstrap token has expired. Select TWO appropriate statements, one corrective action and one observable outcome.
- Remediation: Disable API server certificate validation so the stale command succeeds.
- Remediation: Apply controlled labels and validate node identity before relying on placement rules.
- Validation: The worker joins the intended cluster and its node appears without relaxing certificate trust.
- Remediation: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
- Validation: Resources return to known-good configuration with preserved change history.
Explanation
Correct Answers
C:Validation: The worker joins the intended cluster and its node appears without relaxing certificate trust. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details. The remedy targets the reported failure rather than a different subsystem. kubeadm join uses bootstrap discovery and credentials that can expire.
Incorrect Answers
A:Remediation: Disable API server certificate validation so the stale command succeeds. This is the unsafe shortcut for the case, not an acceptable intervention. kubeadm join uses bootstrap discovery and credentials that can expire.
B:Remediation: Apply controlled labels and validate node identity before relying on placement rules. This action targets a different condition (Node role labels are inconsistent after provisioning new workers.), not this reported failure: A new worker cannot join because its bootstrap token has expired.
E:Validation: Resources return to known-good configuration with preserved change history. This evidence applies to a different condition (A Helm upgrade caused a regression in a cluster add-on.), and would not verify this target fix: A new worker cannot join because its bootstrap token has expired.
Question 81
For this Kubernetes administration case, select THREE statements that correctly identify a remedy, its governing principle and verification evidence: Database replicas require stable identities and persistent storage across rescheduling.
- Remediation: Mount a ConfigMap as a volume or use its keys in environment configuration as appropriate.
- Explanation: StatefulSets are suited to ordered, identity-aware stateful workloads.
- Remediation: Use a StatefulSet with stable network identity and volumeClaimTemplates as appropriate.
- Validation: Each replica retains stable ordinal identity and corresponding persistent claim.
- Validation: Main application containers start only after initContainers complete successfully.
- Remediation: Use a stateless Deployment and rely on ephemeral emptyDir for durable database data.
Explanation
Correct Answers
B:Explanation: StatefulSets are suited to ordered, identity-aware stateful workloads. This is the technical mechanism supporting the recommended operation.
C:Remediation: Use a StatefulSet with stable network identity and volumeClaimTemplates as appropriate. The remedy targets the reported failure rather than a different subsystem. StatefulSets are suited to ordered, identity-aware stateful workloads.
D:Validation: Each replica retains stable ordinal identity and corresponding persistent claim. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Remediation: Mount a ConfigMap as a volume or use its keys in environment configuration as appropriate. This action targets a different condition (A workload requires a nonsecret configuration file that varies per namespace.), not this reported failure: Database replicas require stable identities and persistent storage across rescheduling.
E:Validation: Main application containers start only after initContainers complete successfully. This evidence applies to a different condition (An application fails because its database initialization must happen before the main process.), and would not verify this target fix: Database replicas require stable identities and persistent storage across rescheduling.
F:Remediation: Use a stateless Deployment and rely on ephemeral emptyDir for durable database data. This is the unsafe shortcut for the case, not an acceptable intervention. StatefulSets are suited to ordered, identity-aware stateful workloads.
Question 82
An engineer reports that this problem was fixed: An important Pod is being evicted during node memory pressure. What specific result should an independent reviewer expect?
- The scheduler favors the intended zone when feasible but still permits alternatives.
- The application reads the intended namespace configuration and the Pod references the ConfigMap.
- Resource reservation and QoS class reflect design while eviction risk is reduced.
- HPA displays utilization rather than unknown and computes a recommendation.
Explanation
Correct Answer
C:Resource reservation and QoS class reflect design while eviction risk is reduced. The corresponding action is: Set appropriate memory requests and limits with attention to QoS and actual node capacity.
Incorrect Answers
A:The scheduler favors the intended zone when feasible but still permits alternatives. This is evidence for a separate case (A workload prefers zone-b for latency but can operate in other zones.), not for the target problem. An appropriate validation would be: Resource reservation and QoS class reflect design while eviction risk is reduced.
B:The application reads the intended namespace configuration and the Pod references the ConfigMap. This is evidence for a separate case (A workload requires a nonsecret configuration file that varies per namespace.), not for the target problem. An appropriate validation would be: Resource reservation and QoS class reflect design while eviction risk is reduced.
D: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: Resource reservation and QoS class reflect design while eviction risk is reduced.
Question 83
A cluster issue is reported: A Deployment is using image v1 but needs a controlled update to image v2. What practical check most directly confirms the suspected cause?
- Inspect kubectl get pdb and allowedDisruptions before kubectl drain.
- Inspect kubectl get hpa -w and metrics-server resource metrics availability.
- Run kubectl set image deployment/web app=repo/app:v2 and kubectl rollout status deployment/web.
- Read kubectl get pod -o jsonpath='{.status.qosClass}' and node memory-pressure events.
Explanation
Correct Answer
C:Run kubectl set image deployment/web app=repo/app:v2 and kubectl rollout status deployment/web. This diagnostic examines the relevant resource or subsystem. Deployment controllers reconcile ReplicaSets to achieve a declared desired state. The validating result would be: All desired replicas use image v2 and rollout status completes successfully.
Incorrect Answers
A:This check is appropriate to the separate problem (A maintenance drain would evict too many healthy replicas of a critical application.), but it is not the direct diagnostic for the described failure. Run kubectl set image deployment/web app=repo/app:v2 and kubectl rollout status deployment/web.
B:This check is appropriate to the separate problem (A CPU-bound deployment needs to grow replica count during sustained load.), but it is not the direct diagnostic for the described failure. Run kubectl set image deployment/web app=repo/app:v2 and kubectl rollout status deployment/web.
D:This check is appropriate to the separate problem (An important Pod is being evicted during node memory pressure.), but it is not the direct diagnostic for the described failure.
Question 84
An engineer needs to justify a change for this issue: Three replicas should avoid sharing one host to improve failure tolerance. Which technical reason is MOST relevant?
- Liveness probes trigger container recovery when the application cannot progress.
- Jobs manage finite tasks with completion semantics.
- Startup probes delay other probes until initialization succeeds.
- Pod anti-affinity can spread replicas according to matching Pod labels.
Explanation
Correct Answer
D:Pod anti-affinity can spread replicas according to matching Pod labels. This principle explains the targeted result. A concrete response is: Configure pod anti-affinity using appropriate topologyKey and workload labels.
Incorrect Answers
A:Liveness probes trigger container recovery when the application cannot progress. This principle is useful for another case (An HTTP server occasionally deadlocks while its process remains running.), but does not explain the most direct solution here. The governing consideration is: Pod anti-affinity can spread replicas according to matching Pod labels.
B:Jobs manage finite tasks with completion semantics. This principle is useful for another case (A batch import must succeed once and then stop rather than keep restarting forever.), but does not explain the most direct solution here. The governing consideration is: Pod anti-affinity can spread replicas according to matching Pod labels.
C:This principle is useful for another case (A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.), but does not explain the most direct solution here. Pod anti-affinity can spread replicas according to matching Pod labels.
Question 85
Consider the following Kubernetes administration case: Pods on two different workers cannot reach one another but Pod traffic works within a node. Which principle BEST explains the intended solution?
- Gateway API resources require implementing controllers; resource creation alone is not data-plane setup.
- Cluster networking requires a functioning CNI path between Pod address ranges.
- Kubernetes Service DNS depends on a functioning DNS service and its configuration.
- Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
Explanation
Correct Answer
B:Cluster networking requires a functioning CNI path between Pod address ranges. This principle explains the targeted result. A concrete response is: Investigate CNI routing, Pod CIDR allocation and inter-node network reachability.
Incorrect Answers
A:This principle is useful for another case (An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it.), but does not explain the most direct solution here.
C:This principle is useful for another case (All Pods lose service-name resolution after the CoreDNS Deployment becomes unavailable.), but does not explain the most direct solution here. Cluster networking requires a functioning CNI path between Pod address ranges.
D:This principle is useful for another case (An operator wants temporary access to an internal Pod without publishing a public Service.), but does not explain the most direct solution here. Cluster networking requires a functioning CNI path between Pod address ranges.
Question 86
An operations team tests its response to this finding: A new worker never registers though kubeadm join exited with an error. Which outcome most clearly establishes that the fix worked?
- The node registers with the intended cluster and becomes Ready.
- The Service has ready endpoints and traffic reaches them.
- The filesystem mounts and the Pod transitions to Running.
- The static Pod reappears and the component starts successfully.
Explanation
Correct Answer
A:The node registers with the intended cluster and becomes Ready. The corresponding action is: Inspect kubeadm join output, API endpoint, token and discovery CA trust before retrying.
Incorrect Answers
B:The Service has ready endpoints and traffic reaches them. This is evidence for a separate case (A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints.), not for the target problem. An appropriate validation would be: The node registers with the intended cluster and becomes Ready.
C:The filesystem mounts and the Pod transitions to Running. This is evidence for a separate case (A Pod remains ContainerCreating with MountVolume.SetUp failed errors.), not for the target problem. An appropriate validation would be: The node registers with the intended cluster and becomes Ready.
D:The static Pod reappears and the component starts successfully. This is evidence for a separate case (After a malformed YAML edit, kubelet stops running kube-controller-manager.), not for the target problem. An appropriate validation would be: The node registers with the intended cluster and becomes Ready.
Question 87
Following this Kubernetes scenario, an operator validates remediation: A Gateway HTTPS listener reports invalid certificate references. Which measurable outcome shows success?
- Route conditions indicate acceptance and traffic reaches its backend Service.
- The Service obtains an external address and routes to ready backend Pods.
- The listener becomes Programmed and serves the expected certificate.
- Requests to /api reach the API and / reach the frontend.
Explanation
Correct Answer
C:The listener becomes Programmed and serves the expected certificate. The corresponding action is: Configure listener TLS certificateRefs to an accessible matching Secret and accepted hostname.
Incorrect Answers
A:Route conditions indicate acceptance and traffic reaches its backend Service. This is evidence for a separate case (A Gateway exists but an HTTPRoute is not attached to its listener.), not for the target problem. An appropriate validation would be: The listener becomes Programmed and serves the expected certificate.
B:The Service obtains an external address and routes to ready backend Pods. This is evidence for a separate case (An external HTTP service needs an infrastructure-managed public listener.), not for the target problem. An appropriate validation would be: The listener becomes Programmed and serves the expected certificate.
D:Requests to /api reach the API and / reach the frontend. This is evidence for a separate case (Traffic to /api is routed to the frontend Service rather than the API backend.), not for the target problem. An appropriate validation would be: The listener becomes Programmed and serves the expected certificate.
Question 88
A reviewer wants proof that this issue was corrected: A worker join fails with a discovery CA certificate hash mismatch. Which observed result is the STRONGEST evidence?
- TLS clients can authenticate after renewal and the control plane is healthy.
- The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
- CSI objects and drivers become registered and claims can be provisioned.
- kubectl recognizes the new kind and the custom resource can be admitted.
Explanation
Correct Answer
B:The new node trusts and joins the expected API server without accepting an arbitrary endpoint. The corresponding action is: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
Incorrect Answers
A: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: The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
C:CSI objects and drivers become registered and claims can be provisioned. This is evidence for a separate case (A new storage integration must provision volumes without modifying kubelet core code.), not for the target problem. An appropriate validation would be: The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
D:Kubectl recognizes the new kind and the custom resource can be admitted. This is evidence for a separate case (A custom resource cannot be created because the API server does not recognize its kind.), not for the target problem. An appropriate validation would be: The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
Question 89
Consider the following Kubernetes administration case: Pod connections work on one node but fail only when destination Pods are on another worker. Which principle BEST explains the intended solution?
- Pod address exhaustion can block container networking despite healthy kubelet.
- HA control-plane components coordinate active leadership through leases.
- Image and ephemeral filesystem consumption can trigger node disk pressure and evictions.
- Cluster networking requires an end-to-end dataplane across worker hosts.
Explanation
Correct Answer
D:Cluster networking requires an end-to-end dataplane across worker hosts. This principle explains the targeted result. A concrete response is: Check inter-node routes, CNI encapsulation and firewall rules for Pod CIDR traffic.
Incorrect Answers
A:This principle is useful for another case (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.), but does not explain the most direct solution here. Cluster networking requires an end-to-end dataplane across worker hosts.
B:HA control-plane components coordinate active leadership through leases. This principle is useful for another case (Multiple scheduler Pods run but none can acquire the leader lease.), but does not explain the most direct solution here. The governing consideration is: Cluster networking requires an end-to-end dataplane across worker hosts.
C:Image and ephemeral filesystem consumption can trigger node disk pressure and evictions. This principle is useful for another case (Pods on one worker fail while the node reports DiskPressure.), but does not explain the most direct solution here. The governing consideration is: Cluster networking requires an end-to-end dataplane across worker hosts.
Question 90
A reviewer wants proof that this issue was corrected: A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080. Which observed result is the STRONGEST evidence?
- The API server static Pod starts and kubectl connectivity returns.
- The static Pod reappears and the component starts successfully.
- Connections through the Service reach the application on the correct port.
- New Pods obtain unique Pod IPs without collision after capacity remediation.
Explanation
Correct Answer
C:Connections through the Service reach the application on the correct port. The corresponding action is: Correct targetPort or named container port mapping to the actual listener.
Incorrect Answers
A:The API server static Pod starts and kubectl connectivity returns. This is evidence for a separate case (All kubectl API calls fail following an edit to kube-apiserver static Pod YAML.), not for the target problem. An appropriate validation would be: Connections through the Service reach the application on the correct port.
B:The static Pod reappears and the component starts successfully. This is evidence for a separate case (After a malformed YAML edit, kubelet stops running kube-controller-manager.), not for the target problem. An appropriate validation would be: Connections through the Service reach the application on the correct port.
D:New Pods obtain unique Pod IPs without collision after capacity remediation. This is evidence for a separate case (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.), not for the target problem. An appropriate validation would be: Connections through the Service reach the application on the correct port.