100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 560
A maintenance drain stops with a message that it cannot evict Pods managed by DaemonSets. The affected node also has ordinary Deployment Pods protected by a PDB. Choose THREE sound statements about a controlled maintenance path.
- Review the DaemonSet ownership before using `kubectl drain --ignore-daemonsets`.
- Replace the affected NodeLease with a Service to bypass eviction.
- Check each relevant PDB before requesting evictions of Deployment Pods.
- Delete every DaemonSet object in the cluster to make maintenance possible.
- Leave the node cordoned while carefully resolving workload eviction blockers.
- Assume `--ignore-daemonsets` disables every matching PDB in the cluster.
Explanation
Correct Answers
A:DaemonSet Pods are normally managed differently from replicated workload Pods and can block naive drain.
C:The Eviction API coordinates voluntary disruptions against matching disruption budgets.
E:Cordon prevents new regular scheduling during the maintenance process without indiscriminately deleting workloads.
Incorrect Answers
B:NodeLease heartbeat objects and Service routing have no authority to override drain checks.
D:Global deletion destroys unrelated system agents and is unnecessary for a single-node drain.
F:Ignoring DaemonSet-managed Pods does not turn off PDB checks for other workload Pods.
Question 561
A Pod has two init containers followed by an API container. The second init container repeatedly exits nonzero, and the API container remains `Waiting: PodInitializing`. What is the correct first diagnostic step? Choose ONE answer.
- Drain all healthy nodes to force the API container to run.
- Mark the app container readiness probe successful manually.
- Add a Service targeting the API container.
- Inspect the failed init container status and previous logs, then fix its command or dependency.
Explanation
Correct Answer
D:Ordinary init containers must complete successfully in order before app containers are started.
Incorrect Answers
A:Relocating the Pod does not resolve the failing init command or missing dependency.
B:Readiness cannot start a container blocked by init setup.
C:Service selection cannot bypass unsuccessful init container execution.
Question 562
Creating new Pods suddenly returns `failed calling webhook` with a timeout. Existing Pods continue running. The validating webhook Service has no ready endpoints. Which investigation directly addresses admission failures? Choose ONE answer.
- Delete unrelated NetworkPolicies in every namespace.
- Restore the webhook backend endpoints or correct its Service selectors and availability.
- Raise kubelet CPU limits on every worker.
- Restart all existing Pods because they share the namespace.
Explanation
Correct Answer
B:The API server contacts the configured admission webhook; with no reachable endpoints requests may fail under fail-closed policy.
Incorrect Answers
A:Broad policy deletion is not justified by the specific missing webhook endpoints evidence.
C:Pod CPU requests do not restore the absent admission backend service endpoint.
D:Existing workloads do not make an unavailable webhook respond to new admission requests.
Question 563
After upgrading a cluster, `kubectl apply` fails with `no matches for kind` for an obsolete manifest API version, while the corresponding resource kind is served at a newer stable API. Which correction is indicated? Choose ONE answer.
- Increase the replica count of the resource in the invalid manifest.
- Inspect `kubectl api-resources` or API discovery and update `apiVersion` plus any changed schema fields.
- Add a Pod toleration for every node taint.
- Change the application Service to ExternalName.
Explanation
Correct Answer
B:A removed served API group/version cannot accept old manifests; discovery identifies currently served endpoints.
Incorrect Answers
A:The API server rejects the object before its controller can manage replicas.
C:Node scheduling rules are not involved in API server resource-type discovery.
D:ExternalName Service resolution does not make an obsolete Kubernetes API endpoint available.
Question 564
A StatefulSet Pod is Pending. Its bound local PersistentVolume has node affinity requiring `kubernetes.io/hostname=node-a`, but the Pod has required node affinity for `node-b`. Which repair addresses this scheduling contradiction? Choose ONE answer.
- Align the workload scheduling requirement with the PV node affinity or provision a compatible volume for `node-b`.
- Raise the container memory limit without changing node selectors.
- Increase DNS query retries in the app.
- Change only the Service clusterIP.
Explanation
Correct Answer
A:Local volume node affinity is a hard constraint; incompatible simultaneous node requirements leave no feasible node.
Incorrect Answers
B:A larger memory limit does not satisfy opposite hard node affinity requirements.
C:DNS is downstream of scheduling; the Pod is Pending because of contradictory node constraints.
D:Service addressing has no effect on the node topology of a bound volume.
Question 565
An operator intends to patch a Deployment in staging but `kubectl config current-context` reports `prod-admin`; there are valid contexts for both clusters. What safeguard should precede the patch? Choose ONE answer.
- Switch to and verify the intended staging context and namespace using `kubectl config use-context` and read-only inspection.
- Delete the production context without confirming the staging credentials.
- Change the Deployment label to `environment=staging` in production.
- Set an Ingress host in the YAML to the staging domain.
Explanation
Correct Answer
A:kubectl sends requests using the active context; checking before mutation avoids changing the wrong cluster.
Incorrect Answers
B:Deleting config prematurely can disrupt recovery and does not validate the desired destination.
C:A metadata label does not redirect kubectl to the staging API server.
D:Ingress hosts configure application routing, not the control-plane endpoint used by kubectl.
Question 566
A Deployment reports `desired=3` but only one Pod is available. The new ReplicaSet has two Pods stuck Pending due to required node selector `disk=ssd`; no nodes have that label. What should be investigated first? Choose ONE answer.
- Check Pod scheduling events and correct or satisfy the required node selector before monitoring rollout availability.
- Change the default StorageClass for the cluster.
- Disable resource requests on every Pod.
- Set an unrelated Service port to 443.
Explanation
Correct Answer
A:A required node selector with no matching Nodes prevents scheduling; Pods cannot become available until placement is feasible.
Incorrect Answers
B:The observed problem is an unsatisfied hard node selector, not storage provisioning.
C:The displayed scheduling events identify a required label mismatch; removing all requests is an unrelated overbroad change.
D:Service port values do not make missing node labels become eligible for Pod scheduling.
Question 567
A Pod in `frontend` can resolve `orders-api.backend.svc.cluster.local` but `orders-api` alone fails. The Service exists only in `backend`. Which explanation is correct? Choose ONE answer.
- An unqualified Service name normally searches the caller namespace; use the cross-namespace Service name.
- The API server must rename `frontend` to `backend`.
- A NetworkPolicy ingress rule changes the DNS search suffix.
- The Service needs to be of type LoadBalancer for internal DNS.
Explanation
Correct Answer
A:The short name is resolved relative to the Pod DNS search path, while the fully qualified name identifies the backend namespace.
Incorrect Answers
B:Namespace renaming is neither required nor a repair for qualified DNS queries.
C:Policy can affect reachability to DNS, not the query suffix expansion rules.
D:ClusterIP Services have cluster DNS names without external load balancers.
Question 568
A Service `report-web` has selector `app=reports`, but all Ready Pods are labeled `app=reporter`. EndpointSlices for the Service list no backends. Which minimal diagnosis and fix is justified? Choose ONE answer.
- Set PodDisruptionBudget `minAvailable` to zero.
- Raise TCP connection tracking limits on every node.
- Correct the selector to the labels actually used by the desired Ready Pods and verify EndpointSlices.
- Install a second Ingress controller to populate EndpointSlices.
Explanation
Correct Answer
C:A selector mismatch leaves the Service without matching endpoints regardless of Pod readiness.
Incorrect Answers
A:Disruption budgets do not modify Service-to-Pod label matching.
B:Connection tracking capacity is irrelevant while endpoint discovery returns no backends.
D:Ingress controllers do not reconcile EndpointSlices for an incorrect Service selector.
Question 569
A Pod in namespace `retail` cannot connect to `database` by short name. `database.platform.svc.cluster.local` resolves to a running database Service in namespace `platform`. Choose TWO justified conclusions.
- Change the Service to type LoadBalancer solely to make cross-namespace DNS work.
- DNS success does not itself prove TCP reachability; inspect endpoint readiness and network restrictions next.
- The caller should use the cross-namespace DNS name or full Service FQDN.
- Add an RBAC RoleBinding to grant permission for DNS name resolution.
- Rename namespace retail to platform because that is how short names must always resolve.
Explanation
Correct Answers
B:Resolution establishes an address, not healthy backends or permitted data-plane traffic.
C:Unqualified lookups use the caller namespace search context, so a Service in platform needs a qualified name.
Incorrect Answers
A:Cluster DNS supports normal ClusterIP Services across namespaces with qualified names.
D:Ordinary DNS lookup is not a Kubernetes API RBAC operation.
E:Namespace renaming is not necessary to address a Service in a different namespace.
Question 570
The control plane and `kubectl get pods` work, but `kubectl top pods` fails with `the server could not find the requested resource` for `metrics.k8s.io`. Choose THREE useful diagnostic actions.
- Delete all ResourceQuotas to make kubectl top operational.
- Increase each application Service NodePort to 30000.
- Assume core Pod listing proves the aggregated metrics API is healthy.
- Inspect the `metrics.k8s.io` APIService and its Available condition.
- Validate metrics-server access to kubelet summary or resource metrics paths and related TLS configuration.
- Check metrics-server Deployment readiness and logs if that component is installed.
Explanation
Correct Answers
D:The aggregated metrics API must be registered and reachable for kubectl top to retrieve resource measurements.
E:The metrics pipeline depends on collecting node/Pod measurements through kubelet endpoints.
F:An unavailable metrics-server can prevent the aggregated metrics endpoint from serving data.
Incorrect Answers
A:Namespace quota admission does not register or repair the metrics API.
B:Application Service ports are independent of the metrics API registration and collection pipeline.
C:Core API object listing and metrics.k8s.io are separate API capabilities.
Certified Kubernetes Administrator (CKA) Practice Tests