100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 580
A process reads a ConfigMap file mounted with `subPath`. The ConfigMap is updated, but the process keeps seeing old bytes. Administrators want correct rollouts without changing Secret or RBAC scope. Choose THREE accurate statements.
- RBAC permissions on Deployments force existing subPath mounts to reload.
- A controlled Pod recreation can remount the new ConfigMap content.
- ConfigMap changes do not automatically propagate through an existing `subPath` volume mount.
- A Service targetPort change must refresh the mounted bytes.
- Avoid subPath for live-reloaded ConfigMap projections if automatic update propagation is required.
- Changing an Ingress class automatically remounts volumes for all Pods.
Explanation
Correct Answers
B:A newly created Pod resolves its volume content using the current ConfigMap object.
C:The subPath binding fixes the mounted file path instead of receiving projected update swaps.
E:Normal projected ConfigMap volumes may receive eventual updates, unlike subPath mounts.
Incorrect Answers
A:Kubernetes API authorization does not rewrite files held through subPath.
D:Network forwarding and ConfigMap volume projection are unrelated.
F:Ingress class affects external HTTP routing, not Pod filesystem mounts.
Question 581
A Pod repeatedly restarts with `lastState.terminated.reason: OOMKilled`. Its memory request is 128Mi and its limit is 256Mi; process profiling shows a 400Mi steady footprint. Which remediation directly addresses the termination? Choose ONE answer.
- Only increase CPU request to 1000m.
- Raise the Service targetPort from 8080 to 8081.
- Disable the readiness probe so OOM signals are ignored.
- Reduce actual memory use or set a justified higher memory limit within node and quota capacity.
Explanation
Correct Answer
D:Crossing a container memory limit can cause kernel OOM termination; the 128Mi request does not override a 256Mi limit.
Incorrect Answers
A:CPU request changes scheduler placement and does not remove the too-low memory limit.
B:Port mapping changes cannot enlarge the container memory cgroup limit.
C:Readiness probes do not prevent memory-limit enforcement.
Question 582
A Service accepts TCP/80 but its `targetPort` is 9090; the only ready backend container listens on 8080. DNS resolves and EndpointSlices list the Pod correctly, but connections refuse. What change best addresses the evidence? Choose ONE answer.
- Remove the Service selector.
- Increase CoreDNS replicas as the only change.
- Align Service targetPort with the actual container listener, or change the container listener consistently.
- Set the Deployment imagePullPolicy to Never.
Explanation
Correct Answer
C:The endpoint exists, but TCP is forwarded to a port on which no application process is accepting connections.
Incorrect Answers
A:That would destroy endpoint discovery rather than repair the wrong target port.
B:DNS has already resolved; the failure occurs at the backend transport port.
D:Image pulling is unrelated because backend Pods are already running and Ready.
Question 583
A Java API needs 90 seconds to initialize, but a liveness probe starts immediately and kills it after 15 seconds. The process becomes healthy if given sufficient startup time. What probe design is appropriate? Choose ONE answer.
- Increase the PodDisruptionBudget maxUnavailable.
- Use a startup probe with a failure budget covering the expected initialization period before liveness begins.
- Add a second node label without changing probes.
- Make the Service of type ExternalName.
Explanation
Correct Answer
B:A successful startup probe gates regular liveness/readiness probing, preventing premature restarts during known initialization.
Incorrect Answers
A:Disruption budgets do not influence liveness-based container restarts.
C:Node labels cannot keep the kubelet from restarting a container with a failing liveness check.
D:ExternalName changes DNS resolution, not when the kubelet runs liveness probes.
Question 584
A CronJob uses `concurrencyPolicy: Forbid`. Its nightly Job runs longer than 24 hours, and operators report that the next scheduled run did not start. Which explanation best fits? Choose ONE answer.
- The API server changes Forbid to Allow whenever a Job lasts a day.
- The Service account name determines whether cron schedules overlap.
- Forbid prevents creating a new Job when a prior Job from the same CronJob remains active.
- A PodDisruptionBudget requires all CronJobs to run concurrently.
Explanation
Correct Answer
C:The concurrency policy intentionally skips overlapping scheduled runs rather than terminating the active Job.
Incorrect Answers
A:Kubernetes does not silently override the configured policy for long-running Jobs.
B:Service account identity governs API access for workloads, not concurrencyPolicy timing.
D:PDBs constrain voluntary Pod evictions, not CronJob overlap admission.
Question 585
A Deployment controller cannot create another ReplicaSet Pod. Namespace events show `exceeded quota: requests.cpu` even though worker nodes have spare CPU. Which layer is blocking admission? Choose ONE answer.
- Kubernetes always schedules the Pod first and checks quota after it starts.
- A NodePort allocation failure is causing the CPU quota message.
- The namespace ResourceQuota admission check rejects a request that would exceed configured aggregate requests.
- CoreDNS is rejecting Pod creation because the Service has no A record.
Explanation
Correct Answer
C:Node-level spare capacity does not override namespace aggregate requested-CPU quotas.
Incorrect Answers
A:ResourceQuota is an admission control before a Pod is persisted and scheduled.
B:Service port allocation and quota requests.cpu are independent admission concerns.
D:DNS resolution happens for running workloads and does not impose ResourceQuota aggregate limits.
Question 586
Pod admission reports `serviceaccount "pipeline-runner" not found` in namespace `build`. The Pod spec explicitly names that account and no account exists there. What is the least-privilege recovery? Choose ONE answer.
- Create the intended ServiceAccount in `build` and bind only the required permissions, or correct the reference.
- Grant cluster-admin to every ServiceAccount.
- Change the cluster DNS suffix to include build.
- Increase the Pod CPU request.
Explanation
Correct Answer
A:ServiceAccount names are resolved within the Pod namespace; the referenced identity must exist for the Pod to be admitted.
Incorrect Answers
B:Broad rights do not create the missing named account and violate least privilege.
C:DNS configuration does not create Kubernetes ServiceAccount objects.
D:Resource reservation does not address a missing service account reference.
Question 587
A Pod was scheduled with `requiredDuringSchedulingIgnoredDuringExecution` matching `disk=ssd`. After deployment, the node label changes to `disk=hdd`, but the Pod continues running. Which statement correctly explains this? Choose ONE answer.
- Required affinity is enforced for initial scheduling; IgnoredDuringExecution does not evict the Pod merely because that label changes.
- Changing a node label rewrites the Pod affinity manifest.
- The control plane must immediately delete the Pod after any matching node label changes.
- The new label converts node affinity into a Service selector.
Explanation
Correct Answer
A:The documented node-affinity mode does not continuously enforce the constraint against already running Pods.
Incorrect Answers
B:The Pod spec is not rewritten when node metadata is modified.
C:IgnoredDuringExecution specifically means label drift alone does not trigger that eviction.
D:Node affinity and Service endpoint selection operate on different resources and labels.
Question 588
A node has 8Gi physical RAM, but `kubectl describe node` shows only 6Gi allocatable. A new Pod requesting 7Gi remains Pending although `free` reports available physical memory. What should the scheduler compare? Choose ONE answer.
- Only the current resident memory of existing processes.
- The Service ClusterIP address against the node RAM size.
- Requested memory against allocatable memory minus existing Pod requests, not total physical RAM.
- The desired HPA replica count against the capacity of a PVC.
Explanation
Correct Answer
C:Kubelet reservations and system overhead reduce allocatable capacity before scheduling constraints are evaluated.
Incorrect Answers
A:The Kubernetes scheduler primarily accounts for declared requests, not instantaneous process memory.
B:Service IPs do not represent schedulable memory capacity.
D:PVC size and desired replica count do not determine node memory request fit.
Question 589
An incident response team prepares to restore etcd from a known backup after corruption of cluster state. The existing cluster is still receiving API traffic. Choose TWO pre-restore safeguards.
- Coordinate stopping or isolating conflicting control-plane writes while following the restore procedure.
- Copy restored files over a running etcd data directory while clients write continuously.
- Verify the snapshot integrity and scope, and preserve existing evidence before initiating the documented restore.
- Treat CoreDNS scale-out as an alternative to recovering etcd state.
- Ignore peer membership and existing data-directory configuration during restore.
Explanation
Correct Answers
A:Restoring authoritative etcd data while live components continue changing it creates consistency and recovery risks.
C:An incorrect or stale snapshot can lose cluster state; validation and evidence preservation make the recovery auditable.
Incorrect Answers
B:Uncoordinated live file replacement bypasses etcd storage consistency requirements.
D:DNS replication does not recreate Kubernetes API objects that were lost from etcd.
E:A functional restore must account for member configuration and data consistency.
Question 590
A worker is `Ready=Unknown`, its NodeLease is stale and kubelet logs show repeated API connection timeouts. Other workers are Ready. Choose THREE relevant investigations.
- Inspect kubelet process health, authentication state and logs on the affected worker.
- Test worker-to-API network reachability, routing and any firewall rules.
- Raise the namespace PodDisruptionBudget to clear network timeouts.
- Delete all PVCs because stale leases always indicate CSI failure.
- Compare the last NodeLease renewTime and Node conditions to the incident timeline.
- Change every ClusterIP Service port in the cluster.
Explanation
Correct Answers
A:A stopped or unauthenticated kubelet can stop NodeLease and Node status updates.
B:Heartbeat renewal requires kubelet communication with the API server.
E:Correlating lease age and conditions helps distinguish stale heartbeat from application-only failure.
Incorrect Answers
C:PDB configuration does not affect kubelet heartbeat transport.
D:A stale lease is a node heartbeat symptom, not proof of storage claim corruption.
F:Application Service port changes do not restore kubelet to API connectivity.
Certified Kubernetes Administrator (CKA) Practice Tests