CNCF CKA Practice Test 19
Question 180
An administrator reviews several possible responses to this condition: An etcd snapshot is valid but the restored control plane is reading an empty data directory. Which option creates an avoidable failure?
- Review controller logs and resource status to understand reconciliation failures.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Preserve relevant logs when diagnosing a repeating container crash.
- Reapply one Deployment and claim the entire cluster has been restored.
Explanation
Correct Answer
D:Reapply one Deployment and claim the entire cluster has been restored. Backup usefulness depends on using restored state in the active etcd configuration. A safer course is: Restore the snapshot to the intended data directory and update the relevant static Pod manifest safely.
Incorrect Answers
A:Controller evidence can distinguish desired state from observed failure. This is an appropriate safeguard, not the unsafe shortcut.
B:Configuration errors can be diagnosed without leaking sensitive data. This is an appropriate safeguard, not the unsafe shortcut.
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: Restore the snapshot to the intended data directory and update the relevant static Pod manifest safely.
Question 181
Select TWO technically sound statements for this situation, covering remediation and validation: A recent Deployment image change causes requests to fail and the previous revision worked.
- Remediation: Use a DaemonSet with node eligibility settings matching the intended workers.
- Validation: Healthy replicas return to the previous image and readiness is restored.
- Validation: Replica count rises under load within min/max settings and scales down when demand drops.
- Remediation: Roll back the Deployment to a known healthy revision using rollout undo.
- Remediation: Patch running Pods directly and leave the Deployment unchanged.
Explanation
Correct Answers
B:Validation: Healthy replicas return to the previous image and readiness is restored. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Roll back the Deployment to a known healthy revision using rollout undo. The remedy targets the reported failure rather than a different subsystem. Deployment rollout history can support a controlled rollback without rebuilding manifests.
Incorrect Answers
A:Remediation: Use a DaemonSet with node eligibility settings matching the intended workers. This action targets a different condition (Each worker needs exactly one log-collector Pod when nodes are added.), not this reported failure: A recent Deployment image change causes requests to fail and the previous revision worked.
C:Validation: Replica count rises under load within min/max settings and scales down when demand drops. This evidence applies to a different condition (A CPU-bound deployment needs to grow replica count during sustained load.), and would not verify this target fix: A recent Deployment image change causes requests to fail and the previous revision worked.
E:Remediation: Patch running Pods directly and leave the Deployment unchanged. This is the unsafe shortcut for the case, not an acceptable intervention. Deployment rollout history can support a controlled rollback without rebuilding manifests.
Question 182
Consider the following Kubernetes administration case: A worker transitions to MemoryPressure and several application Pods are evicted. Which principle BEST explains the intended solution?
- Autoscaling requires available metrics and valid target configuration.
- Resource metrics API availability depends on healthy metrics-server integration.
- Node memory pressure can trigger evictions according to resource availability and Pod QoS.
- Pending Pod placement depends on a functioning scheduler as well as available resources.
Explanation
Correct Answer
C:Node memory pressure can trigger evictions according to resource availability and Pod QoS. This principle explains the targeted result. A concrete response is: Identify memory consumers, verify requests and limits and relieve pressure with safe workload/capacity changes.
Incorrect Answers
A:Autoscaling requires available metrics and valid target configuration. This principle is useful for another case (HPA displays <unknown> target metrics while replicas never scale.), but does not explain the most direct solution here. The governing consideration is: Node memory pressure can trigger evictions according to resource availability and Pod QoS.
B:Resource metrics API availability depends on healthy metrics-server integration. This principle is useful for another case (kubectl top nodes fails with Metrics API not available.), but does not explain the most direct solution here. The governing consideration is: Node memory pressure can trigger evictions according to resource availability and Pod QoS.
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. Node memory pressure can trigger evictions according to resource availability and Pod QoS.
Question 183
The team is reviewing this failure mode: StatefulSet peers must discover individual Pod DNS records rather than one virtual Service IP. Which statement explains WHY the recommended control works?
- Kubernetes Service DNS depends on a functioning DNS service and its configuration.
- Headless Services expose endpoint DNS without allocating a virtual ClusterIP.
- LoadBalancer services rely on an implementation or cloud integration to provision external access.
- Egress policies must allow necessary dependency traffic such as DNS.
Explanation
Correct Answer
B:Headless Services expose endpoint DNS without allocating a virtual ClusterIP. This principle explains the targeted result. A concrete response is: Use a headless Service with clusterIP None matching the StatefulSet selector.
Incorrect Answers
A:This principle is useful for another case (All Pods lose service-name resolution after the CoreDNS Deployment becomes unavailable.), but does not explain the most direct solution here. Headless Services expose endpoint DNS without allocating a virtual ClusterIP.
C:This principle is useful for another case (An external HTTP service needs an infrastructure-managed public listener.), but does not explain the most direct solution here.
D:This principle is useful for another case (Egress-isolated Pods cannot resolve DNS even though their app traffic policy is correct.), but does not explain the most direct solution here. Headless Services expose endpoint DNS without allocating a virtual ClusterIP.
Question 184
During remediation, this failure appears: An admin changed RoleBindings and wants proof the operator cannot create deployments. Which action is the LEAST defensible?
- Use a staged rollout and observe readiness before full deployment.
- Preserve relevant logs when diagnosing a repeating container crash.
- Record a rollback approach before high-impact control-plane changes.
- Assume a restrictive-looking Role overrides all other bindings.
Explanation
Correct Answer
D:A safer course is: Check effective permissions using impersonation rather than relying on the YAML file alone.
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: Check effective permissions using impersonation rather than relying on the YAML file alone.
B: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: Check effective permissions using impersonation rather than relying on the YAML file alone.
C:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Check effective permissions using impersonation rather than relying on the YAML file alone.
Question 185
An administrator is investigating this situation: A newly deployed app repeatedly exits with invalid configuration errors. Which action BEST resolves the underlying issue?
- Apply an approved toleration or choose an eligible untainted node.
- Inspect kubeadm join output, API endpoint, token and discovery CA trust before retrying.
- Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline.
- Review current and previous container logs and correct the referenced configuration.
Explanation
Correct Answer
D:Review current and previous container logs and correct the referenced configuration. This correction targets the specific failure. CrashLoopBackOff is a symptom; process exit messages reveal the cause. A successful result is: Container starts and readiness recovers without repeated exits.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A Pod is Pending with an untolerated NoSchedule taint despite free CPU.). Apply an approved toleration or choose an eligible untainted node.
B:This procedure belongs to a different Kubernetes condition (A new worker never registers though kubeadm join exited with an error.). Inspect kubeadm join output, API endpoint, token and discovery CA trust before retrying.
C:Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline.
Question 186
A cluster team is handling this situation: Pods on one worker fail while the node reports DiskPressure. Which proposed shortcut should be REJECTED?
- Delete the etcd data directory to free storage on a worker.
- Preserve relevant logs when diagnosing a repeating container crash.
- Use a staged rollout and observe readiness before full deployment.
- Review controller logs and resource status to understand reconciliation failures.
Explanation
Correct Answer
A:Delete the etcd data directory to free storage on a worker. Image and ephemeral filesystem consumption can trigger node disk pressure and evictions. A safer course is: Inspect image, container log and ephemeral-storage usage and reclaim space safely.
Incorrect Answers
B: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 image, container log and ephemeral-storage usage and reclaim space safely.
C: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: Inspect image, container log and ephemeral-storage usage and reclaim space safely.
D: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: Inspect image, container log and ephemeral-storage usage and reclaim space safely.
Question 187
An administrator reviews several possible responses to this condition: A Helm chart update is proposed but its rendered RBAC is unknown. Which option creates an avoidable failure?
- Review controller logs and resource status to understand reconciliation failures.
- Test connectivity from the affected Pod before redesigning all Services.
- Choose a storage access mode backed by real CSI capabilities.
- Install a chart with wildcard admin permissions without reviewing output.
Explanation
Correct Answer
D:Install a chart with wildcard admin permissions without reviewing output. Helm charts are templates that must be evaluated before cluster changes. A safer course is: Inspect a pinned chart with helm template or helm diff style review before installation.
Incorrect Answers
A: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: Inspect a pinned chart with helm template or helm diff style review before installation.
B:Test connectivity from the affected Pod before redesigning all Services. Layered checks separate DNS, network and application failures. For the stated case, a focused correction is: Inspect a pinned chart with helm template or helm diff style review before installation.
C: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: Inspect a pinned chart with helm template or helm diff style review before installation.
Question 188
An operations team tests its response to this finding: A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules. Which outcome most clearly establishes that the fix worked?
- Database files survive Pod recreation and remount of the persistent volume.
- VolumeAttachment becomes healthy and the Pod mounts its claim.
- Volume provisioning considers the selected Pod scheduling topology.
- New eligible PVCs select the intended default class.
Explanation
Correct Answer
C:Volume provisioning considers the selected Pod scheduling topology. The corresponding action is: Use a compatible StorageClass with volumeBindingMode WaitForFirstConsumer.
Incorrect Answers
A:Database files survive Pod recreation and remount of the persistent volume. This is evidence for a separate case (A team stores a critical database file in an emptyDir volume and loses it after Pod replacement.), not for the target problem. An appropriate validation would be: Volume provisioning considers the selected Pod scheduling topology.
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: Volume provisioning considers the selected Pod scheduling topology.
D:New eligible PVCs select the intended default class. This is evidence for a separate case (New claims omit storageClassName and use an unintended slow storage provider.), not for the target problem. An appropriate validation would be: Volume provisioning considers the selected Pod scheduling topology.
Question 189
A Kubernetes operations team observes the following: Kubelet logs show TLS certificate errors after a node credential rotation. What is the MOST appropriate corrective action?
- Validate the serving certificate SANs, trusted CA and configured server endpoint.
- Add a specific policy allowing the expected source and destination labels and port.
- Compare resource requests against node allocatable rather than only live CPU utilization.
- Diagnose valid kubelet client/server certificates and repair credential rotation through supported mechanisms.
Explanation
Correct Answer
D:Diagnose valid kubelet client/server certificates and repair credential rotation through supported mechanisms. This correction targets the specific failure. Node authorization depends on valid client identity and trusted CA chain. A successful result is: Kubelet authenticates to the API and node status updates normally.
Incorrect Answers
A:Validate the serving certificate SANs, trusted CA and configured server endpoint. This procedure belongs to a different Kubernetes condition (A control-plane certificate replacement causes clients to reject the API server.). It does not directly resolve the observed failure. The targeted action is: Diagnose valid kubelet client/server certificates and repair credential rotation through supported mechanisms.
B:This procedure belongs to a different Kubernetes condition (After a default-deny NetworkPolicy, a required API-to-database connection times out.). Add a specific policy allowing the expected source and destination labels and port.
C:Compare resource requests against node allocatable rather than only live CPU utilization.
Question 190
The team is reviewing this failure mode: A newly deployed Service selector uses app=front while Pods are labeled app=frontend. Which statement explains WHY the recommended control works?
- Ingress controller routing matches requested host/path against explicit rules.
- Service selectors must match label key/value pairs exactly.
- Pod address exhaustion can block container networking despite healthy kubelet.
- Kubelet is the local node agent and its failure affects Pod management and reporting.
Explanation
Correct Answer
B:Service selectors must match label key/value pairs exactly. This principle explains the targeted result. A concrete response is: Correct the Service selector to match actual intended backend labels.
Incorrect Answers
A:Ingress controller routing matches requested host/path against explicit rules. This principle is useful for another case (Ingress answers HTTPS but returns 404 for /api while backend Service works locally.), but does not explain the most direct solution here. The governing consideration is: Service selectors must match label key/value pairs exactly.
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. Service selectors must match label key/value pairs exactly.
D:This principle is useful for another case (All Pods on one node disappear from monitoring after kubelet service stops.), but does not explain the most direct solution here. Service selectors must match label key/value pairs exactly.