100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 550
A Pod admission error says `minimum memory usage per Container is 128Mi` in a namespace with a LimitRange. The Pod requests 64Mi memory. What is the relevant repair? Choose ONE answer.
- Lower the Deployment replica count only.
- Delete the kube-scheduler leader.
- Change node affinity to a larger node.
- Increase the container request to meet the LimitRange minimum.
Explanation
Correct Answer
D:The denial names a per-container LimitRange constraint rather than exhausted namespace quota.
Incorrect Answers
A:A per-container minimum is independent of replica count.
B:The issue is admission validation, not scheduler leadership.
C:A request below admission minimum is rejected before scheduler node selection.
Question 551
A Pod is rejected during creation because namespace ResourceQuota has no remaining `requests.memory`, although a node has 64Gi free. Choose TWO correct statements. Choose TWO answers.
- kubectl describe node must show a scheduler failure for this rejected object.
- A node label update automatically raises ResourceQuota.
- Node memory headroom does not increase namespace quota.
- The Pod never reaches ordinary node scheduling as written.
- A Pod toleration bypasses ResourceQuota admission.
Explanation
Correct Answers
C:Quota is namespace-level accounting independent from one node’s available capacity.
D:ResourceQuota admission failure prevents creation of a schedulable Pod object.
Incorrect Answers
A:The creation was rejected before any scheduling attempt.
B:Node labels and namespace quota usage are separate systems.
E:Tolerations affect node taints rather than quota enforcement.
Question 552
A Pod create request in namespace `quota-team-46` fails with `exceeded quota`. Its ResourceQuota hard `requests.cpu` is 3250m and current used `requests.cpu` is 2945m. The new Pod asks for 570m CPU requests (ignore its limits). Assume no Pods terminate and no other changes occur during the calculation. Choose THREE statements.
- Only 305m CPU requests remain before this Pod is admitted.
- The new 570m request is rejected under the stated current quota state.
- Raising the hard quota to at least 3515m would remove this particular requests.cpu blocker.
- The Pod can bypass the namespace requests.cpu quota if a node has at least 570m spare CPU.
- Increasing only the container CPU limit changes the ResourceQuota used requests.cpu from 2945m to zero.
- The Pod passes requests.cpu quota because 570m is less than the total hard value 3250m.
Explanation
Correct Answers
A:The namespace quota headroom is 3250m hard minus 2945m used, which equals 305m.
B:Current use plus the new Pod request is 3515m, exceeding the hard quota 3250m.
C:With no other changes, used 2945m plus proposed 570m equals 3515m; admission could still face independent controls.
Incorrect Answers
D:ResourceQuota is checked at API admission independently of later scheduler node resource fit. The namespace has 305m quota headroom, but the candidate asks 570m; 2945+570=3515m is compared with the hard 3250m during admission, before node scheduling.
E:Requests.cpu usage accounts for requests, not only CPU limits; the existing quota usage remains. The namespace has 305m quota headroom, but the candidate asks 570m; 2945+570=3515m is compared with the hard 3250m during admission, before node scheduling.
F:Quota admission adds 570m to the already used 2945m; comparing the new request alone with 3250m is incorrect.
Question 553
Deployment `ledger` in `ops` never creates a ready container. Pod events report `CreateContainerConfigError: secret "billing-keys" not found`. The Deployment references that Secret in an environment variable. What fixes the documented startup blocker? Choose ONE answer.
- Change the Service from ClusterIP to NodePort.
- Set a lower readiness probe initial delay.
- Raise the Deployment replica count from two to four.
- Create the named Secret in `ops` with the required key and recreate or allow the Pod to retry.
Explanation
Correct Answer
D:A non-optional Secret reference must resolve in the Pod namespace before container configuration can be prepared.
Incorrect Answers
A:Service exposure does not create missing environment-variable Secret data.
B:The container has not been configured or started; readiness timing is downstream of the missing Secret.
C:Each replica references the same missing Secret, so scaling produces more failing Pods.
Question 554
After a registry mirror migration, a Pod spec pins `registry.example/app@sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb` but the mirror contains only an image tagged `app:stable` with a different digest. The Pod reports `ImagePullBackOff`. What is the smallest sound repair? Choose ONE answer.
- Publish or reference the exact intended digest in an accessible registry, then verify pull credentials.
- Set `imagePullPolicy: Never` on every cluster Pod.
- Increase the liveness probe timeout to 60 seconds.
- Edit the Service selector to `app=stable`.
Explanation
Correct Answer
A:A digest-pinned reference identifies exact content; an unrelated tag cannot satisfy the requested digest.
Incorrect Answers
B:Never would require the pinned image already to exist locally; it does not retrieve the absent digest.
C:The application has not started, so liveness timing cannot resolve image retrieval.
D:A Service selector controls traffic endpoints, not OCI image resolution.
Question 555
A running Deployment uses `envFrom` to read ConfigMap `pricing-settings`. Engineers edit the ConfigMap, but existing Pods retain old environment values. Which operational step is needed to apply the new values to these containers? Choose ONE answer.
- Wait for a DNS TTL to expire without restarting Pods.
- Change the Service targetPort for the Deployment.
- Add an Ingress resource pointing to the ConfigMap.
- Trigger a controlled Pod restart or Deployment rollout so new containers read the current ConfigMap.
Explanation
Correct Answer
D:Environment variables are set when containers start and are not retroactively replaced by ConfigMap edits.
Incorrect Answers
A:DNS cache expiry is unrelated to environment variables already populated inside processes.
B:Service port mapping does not refresh container process environment.
C:Ingress routes HTTP traffic; it does not update `envFrom` values in running processes.
Question 556
A checkout container processes jobs successfully but fails its readiness probe while a downstream database is unavailable. Its restart count stays zero; Service traffic stops reaching it. Which conclusion best matches Kubernetes probe behavior? Choose ONE answer.
- Readiness failure always kills the container within its initial delay period.
- A failed readiness probe changes the Pod DNS namespace.
- Readiness failure removes the endpoint from normal Service routing without itself restarting the container.
- The scheduler removes the Pod from its assigned node.
Explanation
Correct Answer
C:Readiness determines whether the Pod should receive Service traffic; restarts are associated with liveness or other failures.
Incorrect Answers
A:An unsuccessful readiness probe does not by itself request a restart.
B:The probe changes endpoint readiness, not DNS namespace identity.
D:Readiness state does not automatically unschedule or evict an otherwise running Pod.
Question 557
On node `worker-c`, kubelet reports `DiskPressure=True`, and newly scheduled Pods are being rejected. Image layers and terminated-container logs occupy most ephemeral storage. What should an operator investigate first? Choose ONE answer.
- Examine node disk usage and kubelet eviction thresholds, then reclaim unused image/log space safely.
- Disable RBAC admission for the namespace.
- Increase the number of Service endpoints.
- Edit the app Ingress hostname.
Explanation
Correct Answer
A:DiskPressure is driven by node storage signals; investigating actual filesystems and reclaimable usage addresses the cause.
Incorrect Answers
B:Node pressure decisions are independent of user authorization rules.
C:Endpoint counts do not reclaim disk bytes that drove kubelet pressure.
D:Ingress DNS naming cannot free node ephemeral storage.
Question 558
A Pod enters CrashLoopBackOff. `kubectl logs --previous` shows `sh: /opt/bin/start-worker: not found` and the terminated container reports exit code 127. What is the most direct investigation? Choose ONE answer.
- Inspect the image filesystem and command path for a missing executable or interpreter.
- Increase Service `sessionAffinity` timeout.
- Change the Pod namespace name in CoreDNS.
- Make the PodDisruptionBudget more permissive.
Explanation
Correct Answer
A:Exit 127 with command-not-found output points to an invalid executable path or required interpreter in the image.
Incorrect Answers
B:Session affinity changes client routing, not the binary invoked in the container.
C:The local entrypoint cannot be found within the container image; DNS namespace is irrelevant.
D:Voluntary eviction controls do not repair a broken process command at startup.
Question 559
During maintenance, a Deployment Pod is already Running but not Ready for an extended period. A matching PDB has `disruptionsAllowed: 0` and default unhealthy Pod eviction policy. A node drain repeatedly fails to evict that unhealthy Pod. Choose TWO accurate operational statements.
- Confirm the PDB and Pod conditions using `kubectl get pdb` and Pod readiness before forcing maintenance.
- Consider an explicit, reviewed `unhealthyPodEvictionPolicy: AlwaysAllow` where appropriate for draining unhealthy Pods.
- Assume `kubectl cordon` alone forcibly evicts existing Pods.
- Increase the Service NodePort to make the PDB permit the Pod eviction.
- Delete all PDBs cluster-wide because they cannot apply to unhealthy Pods.
Explanation
Correct Answers
A:Eviction eligibility depends on PDB status and Pod health; inspecting both avoids bypassing workload availability controls.
B:This PDB field can relax eviction handling for unhealthy Pods but should be adopted with a clear operational risk decision.
Incorrect Answers
C:Cordon prevents further scheduling; it does not send eviction requests.
D:Service port configuration does not change the PDB eviction admission decision.
E:PDBs can affect unhealthy Pod eviction, and blanket deletion removes availability protection for unrelated workloads.
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.
Certified Kubernetes Administrator (CKA) Practice Tests