CNCF CKA Practice Test 52
Question 510
A review finds this Kubernetes issue: A Pod remains ContainerCreating with MountVolume.SetUp failed errors. Which suggestion would make troubleshooting or security worse?
- Validate a change with a repeatable positive and negative test.
- Increase readinessProbe timeout while the volume cannot mount.
- Preserve relevant logs when diagnosing a repeating container crash.
- Check applicable component version compatibility before upgrading.
Explanation
Correct Answer
B:Increase readinessProbe timeout while the volume cannot mount. Storage mount errors can occur after successful scheduling and PVC binding. A safer course is: Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
Incorrect Answers
A:Validate a change with a repeatable positive and negative test. A testable outcome provides stronger evidence than intent alone. For the stated case, a focused correction is: Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
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: Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
D:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
Question 511
A Kubernetes operator wants to verify this condition: Only Pods selected by a new egress policy fail DNS while other Pods resolve normally. Which investigation step is BEST suited to the case?
- Test nslookup and inspect egress policy ports 53 UDP/TCP for selected Pods.
- Inspect kubelet logs and kubeconfig certificate dates and CA references.
- Inspect kubelet journal for manifest parsing errors and validate YAML locally.
- Inspect CNI IPAM errors and allocated Pod CIDRs or address pools.
Explanation
Correct Answer
A:Test nslookup and inspect egress policy ports 53 UDP/TCP for selected Pods. This diagnostic examines the relevant resource or subsystem. NetworkPolicy egress isolation can block DNS dependencies. The validating result would be: Affected Pods resolve cluster and external names that policy permits.
Incorrect Answers
B:This check is appropriate to the separate problem (Kubelet logs show TLS certificate errors after a node credential rotation.), but it is not the direct diagnostic for the described failure. Test nslookup and inspect egress policy ports 53 UDP/TCP for selected Pods.
C:This check is appropriate to the separate problem (After a malformed YAML edit, kubelet stops running kube-controller-manager.), but it is not the direct diagnostic for the described failure. Test nslookup and inspect egress policy ports 53 UDP/TCP for selected Pods.
D:This check is appropriate to the separate problem (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.), but it is not the direct diagnostic for the described failure.
Question 512
Select TWO technically sound statements for this situation, covering remediation and validation: A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.
- Remediation: Create a CronJob with schedule and concurrencyPolicy Forbid if overlap is unsafe.
- Validation: All desired replicas use image v2 and rollout status completes successfully.
- Remediation: Remove all health probes permanently to avoid restarts.
- Remediation: Add a startupProbe with a startup budget before liveness checking begins.
- Validation: The container survives normal slow initialization then receives ongoing liveness checks.
Explanation
Correct Answers
D:Remediation: Add a startupProbe with a startup budget before liveness checking begins. The remedy targets the reported failure rather than a different subsystem. Startup probes delay other probes until initialization succeeds.
E:Validation: The container survives normal slow initialization then receives ongoing liveness checks. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Remediation: Create a CronJob with schedule and concurrencyPolicy Forbid if overlap is unsafe. This action targets a different condition (A cleanup should run nightly but prevent overlapping executions.), not this reported failure: A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.
B:Validation: All desired replicas use image v2 and rollout status completes successfully. This evidence applies to a different condition (A Deployment is using image v1 but needs a controlled update to image v2.), and would not verify this target fix: A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.
C:Remediation: Remove all health probes permanently to avoid restarts. This is the unsafe shortcut for the case, not an acceptable intervention. Startup probes delay other probes until initialization succeeds.
Question 513
For this Kubernetes issue, select TWO statements that correctly pair a response with the evidence it should produce: After a certificate renewal, an old static Pod process still uses expired credentials.
- Remediation: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
- Validation: The controller can get its intended ConfigMaps but cannot modify Secrets or read other namespaces.
- Validation: The running component uses fresh certificates and healthy TLS connections are restored.
- Remediation: Assume certificate files on disk always update process memory instantly.
- Remediation: Ensure the affected component reloads renewed credentials through an approved restart or manifest-triggered recreation.
Explanation
Correct Answers
C:Validation: The running component uses fresh certificates and healthy TLS connections are restored. This result verifies the behavior the remediation is supposed to restore.
E:Remediation: Ensure the affected component reloads renewed credentials through an approved restart or manifest-triggered recreation. The remedy targets the reported failure rather than a different subsystem. Renewed certificate files may not be reloaded until components restart.
Incorrect Answers
A:Remediation: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details. This action targets a different condition (A new worker cannot join because its bootstrap token has expired.), not this reported failure: After a certificate renewal, an old static Pod process still uses expired credentials.
B:Validation: The controller can get its intended ConfigMaps but cannot modify Secrets or read other namespaces. This evidence applies to a different condition (A controller ServiceAccount needs to read ConfigMaps only in team-a.), and would not verify this target fix: After a certificate renewal, an old static Pod process still uses expired credentials.
D:Remediation: Assume certificate files on disk always update process memory instantly. This is the unsafe shortcut for the case, not an acceptable intervention. Renewed certificate files may not be reloaded until components restart.
Question 514
A reviewer wants proof that this issue was corrected: A PVC is nearly full and its backing CSI driver supports growth. Which observed result is the STRONGEST evidence?
- The Pod's volume mounts successfully with its namespace-local claim.
- VolumeAttachment becomes healthy and the Pod mounts its claim.
- Deleting the claim initiates removal of the associated provisioned storage.
- PVC and filesystem capacity increase to the requested size once reconciliation completes.
Explanation
Correct Answer
D:PVC and filesystem capacity increase to the requested size once reconciliation completes. The corresponding action is: Enable supported volume expansion and increase PVC requested storage safely.
Incorrect Answers
A:The Pod's volume mounts successfully with its namespace-local claim. This is evidence for a separate case (A Pod reports FailedMount because its referenced PVC exists in a different namespace.), not for the target problem. An appropriate validation would be: PVC and filesystem capacity increase to the requested size once reconciliation completes.
B:VolumeAttachment becomes healthy and the Pod mounts its claim. This is evidence for a separate case (A Pod is stuck ContainerCreating due to an attach timeout from a cloud block volume.), not for the target problem. An appropriate validation would be: PVC and filesystem capacity increase to the requested size once reconciliation completes.
C:Deleting the claim initiates removal of the associated provisioned storage. This is evidence for a separate case (A temporary dynamically provisioned data volume should be removed with its claim.), not for the target problem. An appropriate validation would be: PVC and filesystem capacity increase to the requested size once reconciliation completes.
Question 515
An engineer needs to justify a change for this issue: A team has an etcd snapshot but no rehearsed recovery procedure. Which technical reason is MOST relevant?
- A backup without verified restoration cannot demonstrate recoverability.
- Kubelet must not be newer than its kube-apiserver under normal supported skew rules.
- A highly available control plane needs a stable reachable API endpoint.
- kubeadm join uses bootstrap discovery and credentials that can expire.
Explanation
Correct Answer
A:A backup without verified restoration cannot demonstrate recoverability. This principle explains the targeted result. A concrete response is: Perform an isolated restore rehearsal with documented credentials, manifest paths and validation checks.
Incorrect Answers
B:Kubelet must not be newer than its kube-apiserver under normal supported skew rules. This principle is useful for another case (A proposed upgrade would run kubelet newer than kube-apiserver.), but does not explain the most direct solution here. The governing consideration is: A backup without verified restoration cannot demonstrate recoverability.
C:This principle is useful for another case (Two API servers run but workloads use one control-plane node IP as the endpoint.), but does not explain the most direct solution here. A backup without verified restoration cannot demonstrate recoverability.
D:Kubeadm join uses bootstrap discovery and credentials that can expire. This principle is useful for another case (A new worker cannot join because its bootstrap token has expired.), but does not explain the most direct solution here. The governing consideration is: A backup without verified restoration cannot demonstrate recoverability.
Question 516
During cluster maintenance, an engineer finds this problem: A batch import must succeed once and then stop rather than keep restarting forever. Which next action is technically justified?
- Update the image on the Deployment and observe its rolling rollout.
- Use a DaemonSet with node eligibility settings matching the intended workers.
- Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
- Use a Job with restart and backoff settings appropriate for finite completion.
Explanation
Correct Answer
D:Use a Job with restart and backoff settings appropriate for finite completion. This correction targets the specific failure. Jobs manage finite tasks with completion semantics. A successful result is: The Job reaches Complete after desired successful executions.
Incorrect Answers
A:Update the image on the Deployment and observe its rolling rollout. This procedure belongs to a different Kubernetes condition (A Deployment is using image v1 but needs a controlled update to image v2.). It does not directly resolve the observed failure. The targeted action is: Use a Job with restart and backoff settings appropriate for finite completion.
B:This procedure belongs to a different Kubernetes condition (Each worker needs exactly one log-collector Pod when nodes are added.). Use a DaemonSet with node eligibility settings matching the intended workers.
C:Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity. This procedure belongs to a different Kubernetes condition (A maintenance drain would evict too many healthy replicas of a critical application.). It does not directly resolve the observed failure. The targeted action is: Use a Job with restart and backoff settings appropriate for finite completion.
Question 517
During an operational review, this fact emerges: A new storage integration must provision volumes without modifying kubelet core code. Which Kubernetes behavior MOST directly governs the result?
- CSI decouples storage provider implementation from Kubernetes core.
- Helm revisions support controlled release rollback of managed objects.
- Kubelet communicates with a CRI-compatible runtime at a valid socket.
- Cordon changes scheduling eligibility but does not terminate current Pods.
Explanation
Correct Answer
A:CSI decouples storage provider implementation from Kubernetes core. This principle explains the targeted result. A concrete response is: Install a supported CSI driver and associated controller/node components.
Incorrect Answers
B:Helm revisions support controlled release rollback of managed objects. 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. The governing consideration is: CSI decouples storage provider implementation from Kubernetes core.
C:Kubelet communicates with a CRI-compatible runtime at a valid socket. This principle is useful for another case (kubeadm reports multiple CRI sockets and cannot select the runtime.), but does not explain the most direct solution here. The governing consideration is: CSI decouples storage provider implementation from Kubernetes core.
D:Cordon changes scheduling eligibility but does not terminate current Pods. This principle is useful for another case (An administrator cordoned a node but existing Pods are still running on it.), but does not explain the most direct solution here. The governing consideration is: CSI decouples storage provider implementation from Kubernetes core.
Question 518
A review finds this Kubernetes issue: A cluster bootstrap script contains changing flags and has become difficult to audit. Which suggestion would make troubleshooting or security worse?
- Choose a storage access mode backed by real CSI capabilities.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Paste old deprecated flags without checking compatibility.
- Use a staged rollout and observe readiness before full deployment.
Explanation
Correct Answer
C:Paste old deprecated flags without checking compatibility. Declarative bootstrap configuration reduces drift and makes cluster setup reproducible. A safer course is: Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
Incorrect Answers
A:Choose a storage access mode backed by real CSI capabilities. Requested volume semantics still depend on the storage implementation. For the stated case, a focused correction is: Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
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: Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
D:Use a staged rollout and observe readiness before full deployment. Staged changes reduce simultaneous loss of healthy replicas. For the stated case, a focused correction is: Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
Question 519
Consider the following Kubernetes administration case: A Pod is stuck CreateContainerConfigError because a referenced ConfigMap key is absent. Which principle BEST explains the intended solution?
- Storage mount errors can occur after successful scheduling and PVC binding.
- Pending Pod placement depends on a functioning scheduler as well as available resources.
- Required configuration references must resolve to existing keys.
- Image and ephemeral filesystem consumption can trigger node disk pressure and evictions.
Explanation
Correct Answer
C:Required configuration references must resolve to existing keys. This principle explains the targeted result. A concrete response is: Create the expected key or correct the container's configMapKeyRef name.
Incorrect Answers
A:Storage mount errors can occur after successful scheduling and PVC binding. This principle is useful for another case (A Pod remains ContainerCreating with MountVolume.SetUp failed errors.), but does not explain the most direct solution here. The governing consideration is: Required configuration references must resolve to existing keys.
B:This principle is useful for another case (New Pods remain Pending even with free node resources and kube-scheduler is unhealthy.), but does not explain the most direct solution here. Required configuration references must resolve to existing keys.
D:Image and ephemeral filesystem consumption can trigger node disk pressure and evictions. This principle is useful for another case (Pods on one worker fail while the node reports DiskPressure.), but does not explain the most direct solution here. The governing consideration is: Required configuration references must resolve to existing keys.
Question 520
An administrator reviews several possible responses to this condition: A stacked-etcd control plane needs a recoverable snapshot before upgrade. Which option creates an avoidable failure?
- Copy random etcd database files while the server is active without using a supported snapshot process.
- Choose a storage access mode backed by real CSI capabilities.
- Preserve relevant logs when diagnosing a repeating container crash.
- Inspect Pod and component events before changing unrelated resources.
Explanation
Correct Answer
A:Copy random etcd database files while the server is active without using a supported snapshot process. etcd contains cluster state and needs tested, consistent backups. A safer course is: Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
Incorrect Answers
B:Choose a storage access mode backed by real CSI capabilities. Requested volume semantics still depend on the storage implementation. For the stated case, a focused correction is: Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
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: Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
D: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: Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.