100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
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.
Question 591
An operator upgrades a kubeadm control plane, then attempts to jump a kubelet several unsupported minor versions in a single step. Which practice avoids the compatibility issue? Choose ONE answer.
- Modify CoreDNS ClusterIP to encode the desired kubelet version.
- Force `--ignore-preflight-errors=all` and treat every skew warning as harmless.
- Check the official component version-skew policy and use supported staged kubelet upgrades.
- Change PodDisruptionBudget percentages until kubelet accepts the version.
Explanation
Correct Answer
C:Kubelet, kube-apiserver and controller compatibility has explicit supported ranges; arbitrary minor-version leaps are unsafe.
Incorrect Answers
A:DNS addressing does not affect binary/API version skew.
B:Bypassing prereqs is not evidence that the component version combination is supported.
D:PDBs do not change compatibility between node agents and API servers.
Question 592
New Deployments remain at zero replicas even though the API server accepts create requests and schedulers are healthy. Controller-manager leader election repeatedly loses its lease. Where should diagnosis focus? Choose ONE answer.
- Inspect controller-manager health, leader-election permissions and API connectivity before altering workloads.
- Increase Deployment Service port to 65535.
- Raise every app liveness threshold.
- Delete all existing PersistentVolumeClaims.
Explanation
Correct Answer
A:Deployment reconciliation depends on an operating controller manager; inability to hold leadership stalls controller actions.
Incorrect Answers
B:Service front-end ports do not restore control-plane controller reconciliation.
C:App probes do not make the controller manager acquire its leader-election lease.
D:PVC deletion is destructive and not tied to controller-manager leader-election failures.
Question 593
A node stays `NotReady`; kubelet logs show repeated `container runtime is down` errors and the configured containerd socket path no longer exists after an OS upgrade. What should be repaired? Choose ONE answer.
- Restore a healthy CRI runtime and align kubelet runtime-endpoint configuration with the actual socket.
- Change the API server DNS search domain.
- Add a new EndpointSlice for every Service.
- Set PodDisruptionBudget `minAvailable: 0` cluster-wide.
Explanation
Correct Answer
A:kubelet requires a reachable container runtime interface to create and manage Pod sandboxes.
Incorrect Answers
B:DNS search suffixes do not create the missing containerd Unix socket.
C:EndpointSlices cannot restore the node-local CRI transport socket.
D:PDB settings do not repair the kubelet runtime connection.
Question 594
A namespace adopts an egress-default-deny NetworkPolicy. Internal name lookups from Pods start timing out, while existing direct-IP connections to explicitly allowed destinations still work. Which follow-up rule is most appropriate? Choose ONE answer.
- Permit necessary DNS traffic to the actual cluster DNS endpoint on the appropriate UDP/TCP ports.
- Raise the Service NodePort range.
- Delete every Pod readiness probe.
- Replace CoreDNS with a headless Service only.
Explanation
Correct Answer
A:Egress isolation also blocks DNS queries unless permitted, so adding a correctly targeted DNS allow rule restores resolution.
Incorrect Answers
B:NodePort allocation has no bearing on whether the policy permits DNS egress.
C:Probe configuration does not grant egress permission to the DNS Service.
D:Service type alone does not exempt DNS packets from egress policy enforcement.
Question 595
A maintenance script receives HTTP 401 when contacting the Kubernetes API after its client certificate expires. A colleague proposes changing RoleBindings. Which layer should be fixed first? Choose ONE answer.
- Increase the Pod termination grace period.
- Grant `cluster-admin` to anonymous users.
- Delete every validating admission webhook.
- Restore a valid client authentication credential and then assess authorization if subsequent requests are forbidden.
Explanation
Correct Answer
D:HTTP 401 indicates authentication has not succeeded; RoleBindings govern authorization after identity is established.
Incorrect Answers
A:Pod shutdown timing has no relation to API client authentication failure.
B:Broader authorization does not renew the expired credential and creates severe unnecessary risk.
C:Admission controllers process authenticated requests after authorization checks, not expired client TLS identity.
Question 596
A hardened container runs with `readOnlyRootFilesystem: true`; its process crashes trying to write cache files under `/var/cache/app`. Security policy cannot be relaxed. What deployment change fits the observed requirement? Choose ONE answer.
- Mount an appropriate writable volume at the cache path while keeping the root filesystem read-only.
- Disable PVC binding for unrelated workloads.
- Grant RBAC write on Pods to the service account.
- Change the Service externalTrafficPolicy to Cluster.
Explanation
Correct Answer
A:A writable volume can provide a bounded data path without removing read-only protection from the image filesystem.
Incorrect Answers
B:Other volume claims do not repair the local cache mount requirement.
C:Kubernetes API permissions do not grant container filesystem write access.
D:Traffic source handling does not make `/var/cache/app` writable.
Question 597
A private registry rollout fails with `ErrImagePull` and `unauthorized: authentication required`. The Pod has no imagePullSecrets and the node can reach the registry. What is the minimal scoped correction? Choose ONE answer.
- Increase the container memory request until the registry accepts it.
- Provide a valid registry pull Secret in the workload namespace and reference it in the Pod or ServiceAccount.
- Give the Pod `get` permission on secrets through its runtime RBAC role.
- Change Service targetPort to the registry HTTPS port.
Explanation
Correct Answer
B:Pull credentials are used by kubelet for authenticated registry requests, and the current Pod lacks them.
Incorrect Answers
A:Registry authorization does not depend on the Pod requested memory size.
C:Container API permissions do not automatically supply kubelet registry authentication.
D:The workload Service routing is unrelated to image retrieval from an external registry.
Question 598
The control plane marks one worker `Ready=Unknown` because its NodeLease stopped renewing. Pods on that node become unreachable, while other nodes report healthy. What is the most direct investigation? Choose ONE answer.
- Change the Deployment ServiceAccount for unrelated applications.
- Check kubelet heartbeat, node-to-API connectivity and node health on the affected worker.
- Replace all ClusterIP Services.
- Increase default namespace storage quotas.
Explanation
Correct Answer
B:The NodeLease is a lightweight heartbeat; stale renewals point to kubelet or connectivity problems.
Incorrect Answers
A:Workload ServiceAccounts are not responsible for the kubelet NodeLease heartbeat.
C:Service virtual IPs do not cause the worker kubelet to renew its API lease.
D:Namespace PVC quotas cannot restore node heartbeat messages.
Question 599
A RoleBinding in namespace `invoices` references ClusterRole `auditor`, with `get` on Pods, and names ServiceAccount `ci/checker` as its subject. No other bindings grant that SA access. Choose TWO correct access conclusions.
- The binding does not grant Pod read access in unrelated namespace payments.
- ServiceAccount `ci/checker` gains `get` on Pods in namespace invoices.
- The binding also grants deletion of Pods because it grants get.
- The ClusterRole name makes every namespace readable through this RoleBinding.
- ServiceAccount `invoices/checker` inherits the grant because the binding is stored in invoices.
Explanation
Correct Answers
A:A RoleBinding referencing a ClusterRole does not create cluster-wide permissions.
B:The RoleBinding applies its ClusterRole permissions to the binding namespace, even though the subject lives in ci.
Incorrect Answers
C:RBAC verbs are explicit; get does not imply delete.
D:Namespace scope comes from RoleBinding versus ClusterRoleBinding.
E:The explicit ServiceAccount subject namespace remains ci, not the RoleBinding namespace.
Question 600
A front-end Pod is egress-isolated, and a database Pod is ingress-isolated. A new TCP/5432 connection is denied. The front-end egress rule allows only TCP/443; the DB ingress rule allows TCP/5432 only from namespace `payments`, while the front end is in `web`. Choose THREE sound conclusions.
- The front-end egress policy currently blocks TCP/5432 to the database.
- The database ingress policy also rejects the web namespace as a source.
- Allowing 5432 egress alone always succeeds even though DB ingress still denies web.
- Changing the application Service name alone grants network permission.
- A permitted connection requires suitable allows on both isolated traffic directions.
- Granting Kubernetes RBAC `get pods` to the front end opens TCP/5432 automatically.
Explanation
Correct Answers
A:Only TCP/443 is permitted on the source side, so 5432 does not match egress.
B:The ingress allow list restricts sources to payments, whereas this caller is in web.
E:NetworkPolicy evaluates the source egress and destination ingress permissions independently.
Incorrect Answers
C:An ingress-isolated database can continue to reject traffic after egress is fixed.
D:Service naming does not rewrite either source egress or destination ingress allows.
F:Kubernetes API authorization and CNI packet authorization are separate control planes.
Certified Kubernetes Administrator (CKA) Practice Tests