CNCF CKA Practice Test 18
Question 170
During an operational review, this fact emerges: New Pods remain Pending even with free node resources and kube-scheduler is unhealthy. Which Kubernetes behavior MOST directly governs the result?
- Kubernetes container log viewing relies on container output streams, not arbitrary files.
- DNS, network path and application listener failures require different diagnostics.
- Node authorization depends on valid client identity and trusted CA chain.
- Pending Pod placement depends on a functioning scheduler as well as available resources.
Explanation
Correct Answer
D:Pending Pod placement depends on a functioning scheduler as well as available resources. This principle explains the targeted result. A concrete response is: Inspect scheduler static Pod health, logs and leader election before targeted repair.
Incorrect Answers
A:This principle is useful for another case (An app writes errors to stderr but a team searches only a file in the container image.), but does not explain the most direct solution here. Pending Pod placement depends on a functioning scheduler as well as available resources.
B:This principle is useful for another case (An app cannot reach a database and the error is a TCP timeout, not DNS NXDOMAIN.), but does not explain the most direct solution here. Pending Pod placement depends on a functioning scheduler as well as available resources.
C:This principle is useful for another case (Kubelet logs show TLS certificate errors after a node credential rotation.), but does not explain the most direct solution here. Pending Pod placement depends on a functioning scheduler as well as available resources.
Question 171
In a Kubernetes cluster, the following condition is observed: An incident responder sees Pod recreation, image pull and readiness failures and needs the order of events. Which remediation MOST directly addresses it?
- Correct the placement requirement or label suitable eligible nodes truthfully.
- Correlate namespaced events, Pod conditions, restart data and timestamped logs.
- Inspect and correct the control-plane static Pod manifest and kubelet runtime logs.
- Identify excessive process counts and correct the offending workload or node capacity.
Explanation
Correct Answer
B:Correlate namespaced events, Pod conditions, restart data and timestamped logs. This correction targets the specific failure. Troubleshooting should establish an evidence-based sequence before changes. A successful result is: The team can reconstruct which failure came first and validate the repaired stage.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A Pod requests a non-existent node label through required node affinity.).
C:This procedure belongs to a different Kubernetes condition (All kubectl API calls fail following an edit to kube-apiserver static Pod YAML.). Inspect and correct the control-plane static Pod manifest and kubelet runtime logs.
D:Identify excessive process counts and correct the offending workload or node capacity.
Question 172
A cluster team is handling this situation: Pods stay ImagePullBackOff after a private registry migration. Which proposed shortcut should be REJECTED?
- Apply scoped access rather than granting universal administration.
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Inspect Pod and component events before changing unrelated resources.
- Increase readiness timeout while the container image cannot be downloaded.
Explanation
Correct Answer
D:Increase readiness timeout while the container image cannot be downloaded. ImagePullBackOff reflects registry, authentication or image retrieval failure rather than scheduling alone. A safer course is: Correct image reference or registry credentials with an authorized imagePullSecret.
Incorrect Answers
A:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Correct image reference or registry credentials with an authorized imagePullSecret.
B: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: Correct image reference or registry credentials with an authorized imagePullSecret.
C: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: Correct image reference or registry credentials with an authorized imagePullSecret.
Question 173
Consider the following Kubernetes administration case: A namespace user can list Pods in dev but receives Forbidden in prod. Which principle BEST explains the intended solution?
- RBAC permissions are granted through role bindings and scoped to intended subjects and namespaces.
- ServiceAccount token exposure should match a workload's API access requirements.
- Kubernetes upgrades must respect version skew and control-plane ordering.
- Helm revisions support controlled release rollback of managed objects.
Explanation
Correct Answer
A:RBAC permissions are granted through role bindings and scoped to intended subjects and namespaces. This principle explains the targeted result. A concrete response is: Create a namespaced Role and RoleBinding in prod granting only required pod verbs to the user or group.
Incorrect Answers
B:This principle is useful for another case (A Pod in test is unintentionally accessing the API with its default ServiceAccount.), but does not explain the most direct solution here. RBAC permissions are granted through role bindings and scoped to intended subjects and namespaces.
C:This principle is useful for another case (A kubeadm managed cluster must move one supported minor release forward.), but does not explain the most direct solution here. RBAC permissions are granted through role bindings and scoped to intended subjects and namespaces.
D:This principle is useful for another case (A Helm upgrade caused a regression in a cluster add-on.), but does not explain the most direct solution here.
Question 174
An engineer reports that this problem was fixed: A Service virtual IP fails although direct Pod IP connectivity works. What specific result should an independent reviewer expect?
- Gateway and route conditions show Accepted and Programmed as appropriate.
- Repeated traffic from one source IP is directed consistently while healthy endpoints exist.
- The listener becomes Programmed and serves the expected certificate.
- Requests through ClusterIP reach backend Pods after dataplane repair.
Explanation
Correct Answer
D:Requests through ClusterIP reach backend Pods after dataplane repair. The corresponding action is: Inspect Service routing implementation, kube-proxy or equivalent dataplane, and endpoint health.
Incorrect Answers
A: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: Requests through ClusterIP reach backend Pods after dataplane repair.
B:Repeated traffic from one source IP is directed consistently while healthy endpoints exist. This is evidence for a separate case (A legacy client needs repeated requests to tend to the same Pod behind one Service.), not for the target problem. An appropriate validation would be: Requests through ClusterIP reach backend Pods after dataplane repair.
C:The listener becomes Programmed and serves the expected certificate. This is evidence for a separate case (A Gateway HTTPS listener reports invalid certificate references.), not for the target problem. An appropriate validation would be: Requests through ClusterIP reach backend Pods after dataplane repair.
Question 175
An administrator is investigating this situation: After a certificate renewal, an old static Pod process still uses expired credentials. Which action BEST resolves the underlying issue?
- Ensure the affected component reloads renewed credentials through an approved restart or manifest-triggered recreation.
- Bind a narrowly scoped Role to the controller ServiceAccount in team-a.
- Inspect release history and roll back to the last healthy chart revision.
- Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
Explanation
Correct Answer
A:Ensure the affected component reloads renewed credentials through an approved restart or manifest-triggered recreation. This correction targets the specific failure. Renewed certificate files may not be reloaded until components restart. A successful result is: The running component uses fresh certificates and healthy TLS connections are restored.
Incorrect Answers
B: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: Ensure the affected component reloads renewed credentials through an approved restart or manifest-triggered recreation.
C:Inspect release history and roll back to the last healthy chart revision.
D:This procedure belongs to a different Kubernetes condition (A new worker cannot join because its bootstrap token has expired.). Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
Question 176
During remediation, this failure appears: StatefulSet peers must discover individual Pod DNS records rather than one virtual Service IP. Which action is the LEAST defensible?
- Test connectivity from the affected Pod before redesigning all Services.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Create a public LoadBalancer for every database replica.
- Apply scoped access rather than granting universal administration.
Explanation
Correct Answer
C:Create a public LoadBalancer for every database replica. Headless Services expose endpoint DNS without allocating a virtual ClusterIP. A safer course is: Use a headless Service with clusterIP None matching the StatefulSet selector.
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: Use a headless Service with clusterIP None matching the StatefulSet selector.
B: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: Use a headless Service with clusterIP None matching the StatefulSet selector.
D:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Use a headless Service with clusterIP None matching the StatefulSet selector.
Question 177
Consider the following Kubernetes administration case: The API server is slow and logs show etcd request timeouts. Which principle BEST explains the intended solution?
- Node bootstrap failures must be distinguished from post-registration scheduling faults.
- Control-plane API responsiveness depends on healthy etcd persistence and quorum.
- InitContainer failures block ordinary container startup.
- Kubelet manages the kubeadm control-plane static Pod from a local manifest.
Explanation
Correct Answer
B:Control-plane API responsiveness depends on healthy etcd persistence and quorum. This principle explains the targeted result. A concrete response is: Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
Incorrect Answers
A:This principle is useful for another case (A new worker never registers though kubeadm join exited with an error.), but does not explain the most direct solution here. Control-plane API responsiveness depends on healthy etcd persistence and quorum.
C: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: Control-plane API responsiveness depends on healthy etcd persistence and quorum.
D:This principle is useful for another case (All kubectl API calls fail following an edit to kube-apiserver static Pod YAML.), but does not explain the most direct solution here. Control-plane API responsiveness depends on healthy etcd persistence and quorum.
Question 178
A cluster administrator must address the following case: Traffic reaches only one replica because two backend Pods have failing readiness. Select TWO appropriate statements, one corrective action and one observable outcome.
- Validation: DNS resolves the desired Service from other namespaces.
- Remediation: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.
- Validation: Ready endpoints include all healthy replicas and service requests balance accordingly.
- Remediation: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
- Remediation: Add replicas without checking whether they ever become Ready.
Explanation
Correct Answers
C:Validation: Ready endpoints include all healthy replicas and service requests balance accordingly. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Repair readiness conditions and confirm EndpointSlice endpoint readiness. The remedy targets the reported failure rather than a different subsystem. EndpointSlice endpoint conditions reflect backend readiness and eligibility.
Incorrect Answers
A:Validation: DNS resolves the desired Service from other namespaces. This evidence applies to a different condition (A Pod in payments namespace cannot resolve the short name api for a Service in catalog namespace.), and would not verify this target fix: Traffic reaches only one replica because two backend Pods have failing readiness.
B:Remediation: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes. This action targets a different condition (A team needs clients' original source IP preserved for a LoadBalancer Service.), not this reported failure: Traffic reaches only one replica because two backend Pods have failing readiness.
E:Remediation: Add replicas without checking whether they ever become Ready. This is the unsafe shortcut for the case, not an acceptable intervention. EndpointSlice endpoint conditions reflect backend readiness and eligibility.
Question 179
An engineer needs to justify a change for this issue: etcdctl endpoint health fails on a local stacked-etcd member with a TLS handshake error. Which technical reason is MOST relevant?
- etcd client requests must authenticate to the member using compatible TLS identities.
- Adding control-plane members requires certificates and control-plane-specific join configuration.
- Control-plane identity and advertised connectivity must match actual network routing.
- Worker component upgrades follow control-plane upgrades and require deliberate node handling.
Explanation
Correct Answer
A:Etcd client requests must authenticate to the member using compatible TLS identities. This principle explains the targeted result. A concrete response is: Use the correct CA and client certificate/key matching the endpoint's advertised TLS configuration.
Incorrect Answers
B:Adding control-plane members requires certificates and control-plane-specific join configuration. This principle is useful for another case (A high-availability control plane needs another control-plane node joined securely.), but does not explain the most direct solution here. The governing consideration is: etcd client requests must authenticate to the member using compatible TLS identities.
C:This principle is useful for another case (A kubeadm init uses an advertise address unreachable from joining nodes.), but does not explain the most direct solution here.
D:This principle is useful for another case (The control plane is upgraded but one worker still runs an older supported kubelet.), but does not explain the most direct solution here. Etcd client requests must authenticate to the member using compatible TLS identities.
Question 180
An administrator reviews several possible responses to this condition: An etcd snapshot is valid but the restored control plane is reading an empty data directory. Which option creates an avoidable failure?
- Review controller logs and resource status to understand reconciliation failures.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Preserve relevant logs when diagnosing a repeating container crash.
- Reapply one Deployment and claim the entire cluster has been restored.
Explanation
Correct Answer
D:Reapply one Deployment and claim the entire cluster has been restored. Backup usefulness depends on using restored state in the active etcd configuration. A safer course is: Restore the snapshot to the intended data directory and update the relevant static Pod manifest safely.
Incorrect Answers
A:Controller evidence can distinguish desired state from observed failure. This is an appropriate safeguard, not the unsafe shortcut.
B:Configuration errors can be diagnosed without leaking sensitive data. This is an appropriate safeguard, not the unsafe shortcut.
C: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: Restore the snapshot to the intended data directory and update the relevant static Pod manifest safely.