CNCF CKA Practice Test 27
Question 260
A cluster team is handling this situation: A team needs clients' original source IP preserved for a LoadBalancer Service. Which proposed shortcut should be REJECTED?
- Use a staged rollout and observe readiness before full deployment.
- Verify the target cluster and namespace before mutating resources.
- Set Local with no local endpoint capacity and ignore dropped traffic.
- Choose a storage access mode backed by real CSI capabilities.
Explanation
Correct Answer
C:Set Local with no local endpoint capacity and ignore dropped traffic. Service external traffic policy affects forwarding paths and source address handling. A safer course is: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.
Incorrect Answers
A: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: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.
B:Verify the target cluster and namespace before mutating resources. Explicit target context avoids changing the wrong environment. For the stated case, a focused correction is: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.
D: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: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.
Question 261
A review finds this Kubernetes issue: A team has an etcd snapshot but no rehearsed recovery procedure. Which suggestion would make troubleshooting or security worse?
- Verify the target cluster and namespace before mutating resources.
- Call the cluster protected solely because a file named snapshot exists.
- Validate a change with a repeatable positive and negative test.
- Apply scoped access rather than granting universal administration.
Explanation
Correct Answer
B:Call the cluster protected solely because a file named snapshot exists. A backup without verified restoration cannot demonstrate recoverability. A safer course is: Perform an isolated restore rehearsal with documented credentials, manifest paths and validation checks.
Incorrect Answers
A:Verify the target cluster and namespace before mutating resources. Explicit target context avoids changing the wrong environment. For the stated case, a focused correction is: Perform an isolated restore rehearsal with documented credentials, manifest paths and validation checks.
C: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: Perform an isolated restore rehearsal with documented credentials, manifest paths and validation checks.
D:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Perform an isolated restore rehearsal with documented credentials, manifest paths and validation checks.
Question 262
A cluster team is handling this situation: A Pod reports FailedMount because its referenced PVC exists in a different namespace. Which proposed shortcut should be REJECTED?
- Check applicable component version compatibility before upgrading.
- Keep backups or change history for potentially destructive maintenance.
- Validate a change with a repeatable positive and negative test.
- Use a raw claim name in another namespace without any supported cross-namespace mechanism.
Explanation
Correct Answer
D:Use a raw claim name in another namespace without any supported cross-namespace mechanism. This shortcut fails to address the root cause and risks a worse outcome. PVC references from Pods are namespace-scoped. A safer course is: Create or reference a compatible PVC in the same namespace as the Pod.
Incorrect Answers
A:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Create or reference a compatible PVC in the same namespace as the Pod.
B:Keep backups or change history for potentially destructive maintenance. Recovery planning reduces the impact of a faulty change. For the stated case, a focused correction is: Create or reference a compatible PVC in the same namespace as the Pod.
C: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: Create or reference a compatible PVC in the same namespace as the Pod.
Question 263
A cluster team is handling this situation: An important Pod is being evicted during node memory pressure. Which proposed shortcut should be REJECTED?
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Review controller logs and resource status to understand reconciliation failures.
- Assume a Burstable Pod can never be evicted when a limit is large.
- Choose a storage access mode backed by real CSI capabilities.
Explanation
Correct Answer
C:Assume a Burstable Pod can never be evicted when a limit is large. QoS affects eviction priority but does not guarantee protection from all failures. A safer course is: Set appropriate memory requests and limits with attention to QoS and actual node capacity.
Incorrect Answers
A: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: Set appropriate memory requests and limits with attention to QoS and actual node capacity.
B:Review controller logs and resource status to understand reconciliation failures. Controller evidence can distinguish desired state from observed failure. For the stated case, a focused correction is: Set appropriate memory requests and limits with attention to QoS and actual node capacity.
D: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: Set appropriate memory requests and limits with attention to QoS and actual node capacity.
Question 264
During remediation, this failure appears: A database requires exclusive access by exactly one Pod to a PVC. Which action is the LEAST defensible?
- Preserve relevant logs when diagnosing a repeating container crash.
- Verify the target cluster and namespace before mutating resources.
- Inspect Pod and component events before changing unrelated resources.
- Use ReadWriteMany and claim it guarantees exclusive Pod access.
Explanation
Correct Answer
D:Use ReadWriteMany and claim it guarantees exclusive Pod access. ReadWriteOncePod is more restrictive than node-level ReadWriteOnce. A safer course is: Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
Incorrect Answers
A:Preserve relevant logs when diagnosing a repeating container crash. This is an appropriate safeguard, not the unsafe shortcut. Prior process output often identifies the immediate cause. For the stated case, a focused correction is: Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
B:Verify the target cluster and namespace before mutating resources. Explicit target context avoids changing the wrong environment. For the stated case, a focused correction is: Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
C: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: Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
Question 265
A reviewer wants proof that this issue was corrected: A special node has NoSchedule taint and a permitted Pod remains Pending. Which observed result is the STRONGEST evidence?
- The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it.
- The container survives normal slow initialization then receives ongoing liveness checks.
- The Job reaches Complete after desired successful executions.
- The intended Pod can schedule there while unrelated Pods remain excluded.
Explanation
Correct Answer
D:The intended Pod can schedule there while unrelated Pods remain excluded. The corresponding action is: Add only the needed matching toleration to the workload or adjust node policy intentionally.
Incorrect Answers
A:The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it. This is evidence for a separate case (An application password is mistakenly embedded in a ConfigMap and exposed to broad readers.), not for the target problem. An appropriate validation would be: The intended Pod can schedule there while unrelated Pods remain excluded.
B:The container survives normal slow initialization then receives ongoing liveness checks. This is evidence for a separate case (A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.), not for the target problem. An appropriate validation would be: The intended Pod can schedule there while unrelated Pods remain excluded.
C:The Job reaches Complete after desired successful executions. This is evidence for a separate case (A batch import must succeed once and then stop rather than keep restarting forever.), not for the target problem. An appropriate validation would be: The intended Pod can schedule there while unrelated Pods remain excluded.
Question 266
During an operational review, this fact emerges: A Pod remains ContainerCreating with MountVolume.SetUp failed errors. Which Kubernetes behavior MOST directly governs the result?
- Storage mount errors can occur after successful scheduling and PVC binding.
- etcd storage quota alarms require careful backend maintenance and sufficient disk.
- Pod address exhaustion can block container networking despite healthy kubelet.
- Pending Pod placement depends on a functioning scheduler as well as available resources.
Explanation
Correct Answer
A:Storage mount errors can occur after successful scheduling and PVC binding. This principle explains the targeted result. A concrete response is: Inspect PVC binding, VolumeAttachment and CSI node plugin logs and fix the storage path.
Incorrect Answers
B:Etcd storage quota alarms require careful backend maintenance and sufficient disk. This principle is useful for another case (etcd returns a no-space alarm after excessive database growth.), but does not explain the most direct solution here. The governing consideration is: Storage mount errors can occur after successful scheduling and PVC binding.
C:This principle is useful for another case (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.), but does not explain the most direct solution here. Storage mount errors can occur after successful scheduling and PVC binding.
D: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. Storage mount errors can occur after successful scheduling and PVC binding.
Question 267
An engineer needs to justify a change for this issue: A development Service must be reachable on each eligible node at a defined node port. Which technical reason is MOST relevant?
- Headless Services expose endpoint DNS without allocating a virtual ClusterIP.
- NodePort exposes a Service using a port on cluster nodes.
- Service affinity can be source-IP based but is not a durable application session store.
- Host-networked Pods may need an explicit cluster-aware DNS policy.
Explanation
Correct Answer
B:NodePort exposes a Service using a port on cluster nodes. This principle explains the targeted result. A concrete response is: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
Incorrect Answers
A:This principle is useful for another case (StatefulSet peers must discover individual Pod DNS records rather than one virtual Service IP.), but does not explain the most direct solution here. NodePort exposes a Service using a port on cluster nodes.
C:This principle is useful for another case (A legacy client needs repeated requests to tend to the same Pod behind one Service.), but does not explain the most direct solution here. NodePort exposes a Service using a port on cluster nodes.
D:This principle is useful for another case (A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.), but does not explain the most direct solution here. NodePort exposes a Service using a port on cluster nodes.
Question 268
A reviewer wants proof that this issue was corrected: The kube-scheduler static Pod disappeared after someone edited its manifest incorrectly. Which observed result is the STRONGEST evidence?
- Kubelet recreates kube-scheduler and scheduler health recovers.
- kubeadm uses the correct runtime endpoint and container creation succeeds.
- CSI objects and drivers become registered and claims can be provisioned.
- An authorization check succeeds for the approved pod operation in prod and remains denied elsewhere.
Explanation
Correct Answer
A:Kubelet recreates kube-scheduler and scheduler health recovers. This outcome shows the required behavior after correction. The corresponding action is: Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
Incorrect Answers
B:Kubeadm uses the correct runtime endpoint and container creation succeeds. This is evidence for a separate case (kubeadm reports multiple CRI sockets and cannot select the runtime.), not for the target problem. An appropriate validation would be: Kubelet recreates kube-scheduler and scheduler health recovers.
C:CSI objects and drivers become registered and claims can be provisioned. This is evidence for a separate case (A new storage integration must provision volumes without modifying kubelet core code.), not for the target problem. An appropriate validation would be: Kubelet recreates kube-scheduler and scheduler health recovers.
D:An authorization check succeeds for the approved pod operation in prod and remains denied elsewhere. This is evidence for a separate case (A namespace user can list Pods in dev but receives Forbidden in prod.), not for the target problem. An appropriate validation would be: Kubelet recreates kube-scheduler and scheduler health recovers.
Question 269
A review finds this Kubernetes issue: A legacy client needs repeated requests to tend to the same Pod behind one Service. Which suggestion would make troubleshooting or security worse?
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Check applicable component version compatibility before upgrading.
- Enable session affinity and assume session data survives Pod termination.
- Confirm actual node conditions and allocatable resources before scheduling changes.
Explanation
Correct Answer
C:Enable session affinity and assume session data survives Pod termination. Service affinity can be source-IP based but is not a durable application session store. A safer course is: Configure Service sessionAffinity ClientIP when its limitations are acceptable.
Incorrect Answers
A: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: Configure Service sessionAffinity ClientIP when its limitations are acceptable.
B:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Configure Service sessionAffinity ClientIP when its limitations are acceptable.
D:Confirm actual node conditions and allocatable resources before scheduling changes. Scheduler behavior must be assessed against real node constraints. For the stated case, a focused correction is: Configure Service sessionAffinity ClientIP when its limitations are acceptable.
Question 270
An engineer reports that this problem was fixed: New claims omit storageClassName and use an unintended slow storage provider. What specific result should an independent reviewer expect?
- New eligible PVCs select the intended default class.
- Deleting the claim initiates removal of the associated provisioned storage.
- The expected PV binds to the intended PVC without unrelated provisioning.
- VolumeAttachment becomes healthy and the Pod mounts its claim.
Explanation
Correct Answer
A:New eligible PVCs select the intended default class. The corresponding action is: Configure the intended default StorageClass annotation while checking existing defaults.
Incorrect Answers
B: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: New eligible PVCs select the intended default class.
C:The expected PV binds to the intended PVC without unrelated provisioning. This is evidence for a separate case (A manually created PV is available but a PVC specifying an unmatched StorageClass never binds.), not for the target problem. An appropriate validation would be: New eligible PVCs select the intended default class.
D: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: New eligible PVCs select the intended default class.