CNCF CKA Practice Test 22
Question 210
Following this Kubernetes scenario, an operator validates remediation: Each worker needs exactly one log-collector Pod when nodes are added. Which measurable outcome shows success?
- Replica distribution across eligible zones satisfies the configured skew where feasible.
- The Pod reads the Secret using its configured reference while unauthorized users cannot retrieve it.
- All desired replicas use image v2 and rollout status completes successfully.
- A collector runs on each eligible node including newly joined nodes.
Explanation
Correct Answer
D:A collector runs on each eligible node including newly joined nodes. This outcome shows the required behavior after correction. The corresponding action is: Use a DaemonSet with node eligibility settings matching the intended workers.
Incorrect Answers
A:Replica distribution across eligible zones satisfies the configured skew where feasible. This is evidence for a separate case (Replicas concentrate in one availability zone and violate resilience goals.), not for the target problem. An appropriate validation would be: A collector runs on each eligible node including newly joined nodes.
B: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: A collector runs on each eligible node including newly joined nodes.
C:All desired replicas use image v2 and rollout status completes successfully. This is evidence for a separate case (A Deployment is using image v1 but needs a controlled update to image v2.), not for the target problem. An appropriate validation would be: A collector runs on each eligible node including newly joined nodes.
Question 211
Select TWO technically sound statements for this situation, covering remediation and validation: Pods reach cluster Services but cannot contact external APIs from private node networks.
- Validation: Allowed Pods reach external endpoints with expected source IP routing.
- Remediation: Change every Pod's ServiceAccount to cluster-admin to restore internet egress.
- Remediation: Add a specific policy allowing the expected source and destination labels and port.
- Remediation: Check egress route and SNAT or gateway configuration for the cluster network.
- Validation: Scheduler reservation and request totals explain the failed scheduling decision.
Explanation
Correct Answers
A:Validation: Allowed Pods reach external endpoints with expected source IP routing. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Check egress route and SNAT or gateway configuration for the cluster network. The remedy targets the reported failure rather than a different subsystem. External egress requires network routing beyond internal Service discovery.
Incorrect Answers
B:Remediation: Change every Pod's ServiceAccount to cluster-admin to restore internet egress. This is the unsafe shortcut for the case, not an acceptable intervention. External egress requires network routing beyond internal Service discovery.
C:Remediation: Add a specific policy allowing the expected source and destination labels and port. This action targets a different condition (After a default-deny NetworkPolicy, a required API-to-database connection times out.), not this reported failure: Pods reach cluster Services but cannot contact external APIs from private node networks.
E:Validation: Scheduler reservation and request totals explain the failed scheduling decision. This evidence applies to a different condition (A node appears idle by CPU usage but a new Pod is unschedulable with Insufficient cpu.), and would not verify this target fix: Pods reach cluster Services but cannot contact external APIs from private node networks.
Question 212
An administrator is investigating this situation: NetworkPolicy objects are accepted but all supposedly blocked traffic is still allowed. Which action BEST resolves the underlying issue?
- Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
- Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
- Use a LoadBalancer Service backed by a working provider integration.
- Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
Explanation
Correct Answer
B:Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin. This correction targets the specific failure. The NetworkPolicy API requires a network plugin that enforces policies. A successful result is: Controlled deny tests actually prevent prohibited Pod connections.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it.). Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
C:Use a LoadBalancer Service backed by a working provider integration. This procedure belongs to a different Kubernetes condition (An external HTTP service needs an infrastructure-managed public listener.). It does not directly resolve the observed failure. The targeted action is: Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
D:Add a narrowly scoped egress allowance for DNS UDP/TCP 53 to the intended resolver endpoints.
Question 213
Select TWO technically sound statements for this situation, covering remediation and validation: An intended kubeadm worker reports kubelet swap-related startup failures.
- Validation: The kubelet starts with an explicitly supported swap setting and the node registers normally.
- Validation: Repeat installations use the expected cluster configuration with a reviewable change history.
- Remediation: Align the node advertise address and stable control-plane endpoint with reachable network interfaces.
- Remediation: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
- Remediation: Change unrelated Deployment replicas until the kubelet starts.
Explanation
Correct Answers
A:Validation: The kubelet starts with an explicitly supported swap setting and the node registers normally. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy. The remedy targets the reported failure rather than a different subsystem. Host prerequisites and kubelet configuration determine whether nodes can participate.
Incorrect Answers
B:Validation: Repeat installations use the expected cluster configuration with a reviewable change history. This evidence applies to a different condition (A cluster bootstrap script contains changing flags and has become difficult to audit.), and would not verify this target fix: An intended kubeadm worker reports kubelet swap-related startup failures.
C:Remediation: Align the node advertise address and stable control-plane endpoint with reachable network interfaces. This action targets a different condition (A kubeadm init uses an advertise address unreachable from joining nodes.), not this reported failure: An intended kubeadm worker reports kubelet swap-related startup failures.
E:Remediation: Change unrelated Deployment replicas until the kubelet starts. This is the unsafe shortcut for the case, not an acceptable intervention. Host prerequisites and kubelet configuration determine whether nodes can participate.
Question 214
The team is reviewing this failure mode: Service ClusterIP connections fail on one node even though direct Pod IP connections work. Which statement explains WHY the recommended control works?
- Scheduler placement is based on requests and allocatable capacity, not instant kubectl top usage.
- Pod address exhaustion can block container networking despite healthy kubelet.
- Service routing depends on node dataplane health distinct from Pod connectivity.
- Persistent storage binding can be a prerequisite for Pod placement.
Explanation
Correct Answer
C:Service routing depends on node dataplane health distinct from Pod connectivity. This principle explains the targeted result. A concrete response is: Inspect kube-proxy or the installed replacement dataplane on the affected node.
Incorrect Answers
A:This principle is useful for another case (A node appears idle by CPU usage but a new Pod is unschedulable with Insufficient cpu.), but does not explain the most direct solution here. Service routing depends on node dataplane health distinct from Pod connectivity.
B: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. Service routing depends on node dataplane health distinct from Pod connectivity.
D:This principle is useful for another case (A Pod is Pending with a message about unbound immediate PersistentVolumeClaims.), but does not explain the most direct solution here. Service routing depends on node dataplane health distinct from Pod connectivity.
Question 215
The team is reviewing this failure mode: An internal backend should only be reachable from inside the cluster through one stable address. Which statement explains WHY the recommended control works?
- ClusterIP is the basic internal Service exposure model.
- Ingress objects need a supporting controller to implement routing.
- Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
- Service selectors and readiness determine which Pods become eligible endpoints.
Explanation
Correct Answer
A:ClusterIP is the basic internal Service exposure model. This principle explains the targeted result. A concrete response is: Use a ClusterIP Service selecting the backend Pods.
Incorrect Answers
B:Ingress objects need a supporting controller to implement routing. This principle is useful for another case (An Ingress resource has an address but no controller is processing its rules.), but does not explain the most direct solution here. The governing consideration is: ClusterIP is the basic internal Service exposure model.
C:This principle is useful for another case (An operator wants temporary access to an internal Pod without publishing a public Service.), but does not explain the most direct solution here. Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
D:This principle is useful for another case (A Service exists but its EndpointSlice contains no addresses even though backend Pods are running.), but does not explain the most direct solution here. ClusterIP is the basic internal Service exposure model.
Question 216
An engineer reports that this problem was fixed: etcdctl endpoint health fails on a local stacked-etcd member with a TLS handshake error. What specific result should an independent reviewer expect?
- Health checks succeed without skipping TLS verification.
- The controller can get its intended ConfigMaps but cannot modify Secrets or read other namespaces.
- Rendered resources and permissions match reviewed deployment expectations.
- Snapshot status is readable and the backup is protected and recoverable.
Explanation
Correct Answer
A:Health checks succeed without skipping TLS verification. The corresponding action is: Use the correct CA and client certificate/key matching the endpoint's advertised TLS configuration.
Incorrect Answers
B:The controller can get its intended ConfigMaps but cannot modify Secrets or read other namespaces. This is evidence for a separate case (A controller ServiceAccount needs to read ConfigMaps only in team-a.), not for the target problem. An appropriate validation would be: Health checks succeed without skipping TLS verification.
C:Rendered resources and permissions match reviewed deployment expectations. This is evidence for a separate case (A Helm chart update is proposed but its rendered RBAC is unknown.), not for the target problem. An appropriate validation would be: Health checks succeed without skipping TLS verification.
D:Snapshot status is readable and the backup is protected and recoverable. This is evidence for a separate case (A stacked-etcd control plane needs a recoverable snapshot before upgrade.), not for the target problem. An appropriate validation would be: Health checks succeed without skipping TLS verification.
Question 217
An administrator reviews several possible responses to this condition: A worker join fails with a discovery CA certificate hash mismatch. Which option creates an avoidable failure?
- Remove all trust verification and join whichever API server responds.
- Inspect Pod and component events before changing unrelated resources.
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Use a staged rollout and observe readiness before full deployment.
Explanation
Correct Answer
A:Remove all trust verification and join whichever API server responds. The CA pin guards bootstrap against connecting to an unintended cluster. A safer course is: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
Incorrect Answers
B: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: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
C: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: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
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: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
Question 218
A platform engineer receives this incident: A database requires exclusive access by exactly one Pod to a PVC. Which change should be made first after validating the facts?
- Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
- Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
- Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
- Choose a suitable storage access pattern or keep the volume attached to an allowed node.
Explanation
Correct Answer
A:Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required. This correction targets the specific failure. ReadWriteOncePod is more restrictive than node-level ReadWriteOnce. A successful result is: A second Pod attempting the same PVC is denied or remains unschedulable.
Incorrect Answers
B:This procedure belongs to a different Kubernetes condition (A temporary dynamically provisioned data volume should be removed with its claim.). Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
C:Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
D:Choose a suitable storage access pattern or keep the volume attached to an allowed node. This procedure belongs to a different Kubernetes condition (Two Pods on different nodes try to attach the same RWO block volume and one remains Pending.). It does not directly resolve the observed failure. The targeted action is: Use ReadWriteOncePod with a compatible CSI environment when strict single-Pod ownership is required.
Question 219
To avoid guessing about this fault, what should be inspected first? A special node has NoSchedule taint and a permitted Pod remains Pending.
- Inspect Pod initContainerStatuses and events for initialization sequencing.
- Inspect kubectl get hpa -w and metrics-server resource metrics availability.
- Inspect kubectl describe node Taints and Pod spec tolerations with scheduling events.
- Compare Pod creation timestamps after kubectl rollout restart deployment/web.
Explanation
Correct Answer
C:Inspect kubectl describe node Taints and Pod spec tolerations with scheduling events. This diagnostic examines the relevant resource or subsystem. Taints repel Pods and tolerations allow consideration but do not force placement. The validating result would be: The intended Pod can schedule there while unrelated Pods remain excluded.
Incorrect Answers
A:This check is appropriate to the separate problem (An application fails because its database initialization must happen before the main process.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe node Taints and Pod spec tolerations with scheduling events.
B:This check is appropriate to the separate problem (A CPU-bound deployment needs to grow replica count during sustained load.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe node Taints and Pod spec tolerations with scheduling events.
D:This check is appropriate to the separate problem (A Deployment consumes a ConfigMap through env vars and existing Pods still have old values.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe node Taints and Pod spec tolerations with scheduling events.
Question 220
A CKA learner must investigate the following: A Deployment consumes a ConfigMap through env vars and existing Pods still have old values. Which command or check supplies the MOST direct diagnostic evidence?
- Inspect kubectl get cronjob -o yaml schedule and concurrencyPolicy.
- Compare Pod creation timestamps after kubectl rollout restart deployment/web.
- Inspect kubectl get hpa -w and metrics-server resource metrics availability.
- Inspect kubectl get configmap settings -o yaml and kubectl exec to verify mounted data.
Explanation
Correct Answer
B:Compare Pod creation timestamps after kubectl rollout restart deployment/web. This diagnostic examines the relevant resource or subsystem. Container environment variables are set at start and do not update in place. The validating result would be: New Pods read updated environment variables and rollout finishes successfully.
Incorrect Answers
A:Inspect kubectl get cronjob -o yaml schedule and concurrencyPolicy. This check is appropriate to the separate problem (A cleanup should run nightly but prevent overlapping executions.), but it is not the direct diagnostic for the described failure. The relevant check is: Compare Pod creation timestamps after kubectl rollout restart deployment/web.
C:This check is appropriate to the separate problem (A CPU-bound deployment needs to grow replica count during sustained load.), but it is not the direct diagnostic for the described failure. Compare Pod creation timestamps after kubectl rollout restart deployment/web.
D:This check is appropriate to the separate problem (A workload requires a nonsecret configuration file that varies per namespace.), but it is not the direct diagnostic for the described failure. Compare Pod creation timestamps after kubectl rollout restart deployment/web.