CNCF CKA Practice Test 55
Question 540
Consider the following Kubernetes administration case: A Pod requests a non-existent node label through required node affinity. Which principle BEST explains the intended solution?
- Scheduler placement is based on requests and allocatable capacity, not instant kubectl top usage.
- Expired credentials can interrupt API clients while the server remains healthy.
- Image and ephemeral filesystem consumption can trigger node disk pressure and evictions.
- Required node affinity is a hard placement constraint.
Explanation
Correct Answer
D:Required node affinity is a hard placement constraint. This principle explains the targeted result. A concrete response is: Correct the placement requirement or label suitable eligible nodes truthfully.
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. Required node affinity is a hard placement constraint.
B:Expired credentials can interrupt API clients while the server remains healthy. This principle is useful for another case (kubectl reports x509 certificate expired after months of successful access.), but does not explain the most direct solution here. The governing consideration is: Required node affinity is a hard placement constraint.
C: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 node affinity is a hard placement constraint.
Question 541
A cluster team is handling this situation: The API server is slow and logs show etcd request timeouts. Which proposed shortcut should be REJECTED?
- Check applicable component version compatibility before upgrading.
- Inspect Pod and component events before changing unrelated resources.
- Keep backups or change history for potentially destructive maintenance.
- Delete all etcd snapshots as a latency optimization.
Explanation
Correct Answer
D:Delete all etcd snapshots as a latency optimization. Control-plane API responsiveness depends on healthy etcd persistence and quorum. A safer course is: Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
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: Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
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: Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
C: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: Inspect etcd endpoint health, disk latency, quorum and certificate connectivity.
Question 542
A platform engineer receives this incident: A Pod in test is unintentionally accessing the API with its default ServiceAccount. Which change should be made first after validating the facts?
- Plan the ordered control-plane upgrade using kubeadm upgrade plan and supported version skew guidance.
- Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
- Assign a dedicated ServiceAccount and disable token automount if API access is unnecessary.
- Correct the kubelet CRI endpoint and verify runtime socket availability.
Explanation
Correct Answer
C:Assign a dedicated ServiceAccount and disable token automount if API access is unnecessary. This correction targets the specific failure. ServiceAccount token exposure should match a workload's API access requirements. A successful result is: The running Pod lacks an automatically mounted API token when no Kubernetes API access is needed.
Incorrect Answers
A:Plan the ordered control-plane upgrade using kubeadm upgrade plan and supported version skew guidance. This procedure belongs to a different Kubernetes condition (A kubeadm managed cluster must move one supported minor release forward.). It does not directly resolve the observed failure. The targeted action is: Assign a dedicated ServiceAccount and disable token automount if API access is unnecessary.
B:Use targeted kube-system Pod descriptions and component logs to locate its failure before edits.
D:Correct the kubelet CRI endpoint and verify runtime socket availability. This procedure belongs to a different Kubernetes condition (A node image update changes the runtime socket and kubelet can no longer create containers.). It does not directly resolve the observed failure. The targeted action is: Assign a dedicated ServiceAccount and disable token automount if API access is unnecessary.
Question 543
Following this Kubernetes scenario, an operator validates remediation: A Pod requests a non-existent node label through required node affinity. Which measurable outcome shows success?
- Permitted operations succeed while unauthorized Secret access remains forbidden.
- The Service has ready endpoints and traffic reaches them.
- The Pod schedules on an appropriate node that satisfies required affinity.
- Clients verify and connect to the legitimate API server after certificate correction.
Explanation
Correct Answer
C:The Pod schedules on an appropriate node that satisfies required affinity. This outcome shows the required behavior after correction. The corresponding action is: Correct the placement requirement or label suitable eligible nodes truthfully.
Incorrect Answers
A:Permitted operations succeed while unauthorized Secret access remains forbidden. This is evidence for a separate case (An operator receives HTTP 403 Forbidden from the API server when listing Secrets.), not for the target problem. An appropriate validation would be: The Pod schedules on an appropriate node that satisfies required affinity.
B:The Service has ready endpoints and traffic reaches them. This is evidence for a separate case (A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints.), not for the target problem. An appropriate validation would be: The Pod schedules on an appropriate node that satisfies required affinity.
D:Clients verify and connect to the legitimate API server after certificate correction. This is evidence for a separate case (A control-plane certificate replacement causes clients to reject the API server.), not for the target problem. An appropriate validation would be: The Pod schedules on an appropriate node that satisfies required affinity.
Question 544
A Kubernetes operations team observes the following: A Pod is Pending because requested memory exceeds all node allocatable resources. What is the MOST appropriate corrective action?
- Adjust realistic resource requests or add capacity before scheduling.
- Ensure relevant CPU requests are defined and the resource metrics pipeline is working.
- Move the value into a Secret and restrict access with narrowly scoped RBAC.
- Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.
Explanation
Correct Answer
A:Adjust realistic resource requests or add capacity before scheduling. This correction targets the specific failure. Scheduling uses requests and allocatable capacity, not current free RAM alone. A successful result is: The Pod schedules onto a node with sufficient available allocatable resources.
Incorrect Answers
B:Ensure relevant CPU requests are defined and the resource metrics pipeline is working.
C:Move the value into a Secret and restrict access with narrowly scoped RBAC.
D:Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity. This procedure belongs to a different Kubernetes condition (A Deployment must update without taking all replicas offline during rollout.). It does not directly resolve the observed failure. The targeted action is: Adjust realistic resource requests or add capacity before scheduling.
Question 545
Following this Kubernetes scenario, an operator validates remediation: An app writes errors to stderr but a team searches only a file in the container image. Which measurable outcome shows success?
- MemoryPressure clears and essential Pods remain Ready without repeated eviction.
- Expected error lines appear in container output with time and container identity.
- The identified workload and node saturation explain latency and a targeted capacity change restores headroom.
- Initialization succeeds and main containers can start.
Explanation
Correct Answer
B:Expected error lines appear in container output with time and container identity. The corresponding action is: Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline.
Incorrect Answers
A:MemoryPressure clears and essential Pods remain Ready without repeated eviction. This is evidence for a separate case (A worker transitions to MemoryPressure and several application Pods are evicted.), not for the target problem. An appropriate validation would be: Expected error lines appear in container output with time and container identity.
C:The identified workload and node saturation explain latency and a targeted capacity change restores headroom. This is evidence for a separate case (A node reports high CPU use and latency spikes while the scheduler keeps assigning Pods.), not for the target problem. An appropriate validation would be: Expected error lines appear in container output with time and container identity.
D:Initialization succeeds and main containers can start. This is evidence for a separate case (The main app never starts because an initContainer image is inaccessible.), not for the target problem. An appropriate validation would be: Expected error lines appear in container output with time and container identity.
Question 546
Following this Kubernetes scenario, an operator validates remediation: A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration. Which measurable outcome shows success?
- The hostNetwork Pod resolves Kubernetes Service records as intended.
- Traffic to a suitable node IP and nodePort reaches the intended backends.
- DNS resolves the desired Service from other namespaces.
- Route conditions indicate acceptance and traffic reaches its backend Service.
Explanation
Correct Answer
A:The hostNetwork Pod resolves Kubernetes Service records as intended. The corresponding action is: Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload.
Incorrect Answers
B:Traffic to a suitable node IP and nodePort reaches the intended backends. This is evidence for a separate case (A development Service must be reachable on each eligible node at a defined node port.), not for the target problem. An appropriate validation would be: The hostNetwork Pod resolves Kubernetes Service records as intended.
C:DNS resolves the desired Service from other namespaces. This is evidence for a separate case (A Pod in payments namespace cannot resolve the short name api for a Service in catalog namespace.), not for the target problem. An appropriate validation would be: The hostNetwork Pod resolves Kubernetes Service records as intended.
D:Route conditions indicate acceptance and traffic reaches its backend Service. This is evidence for a separate case (A Gateway exists but an HTTPRoute is not attached to its listener.), not for the target problem. An appropriate validation would be: The hostNetwork Pod resolves Kubernetes Service records as intended.
Question 547
A platform engineer receives this incident: An important Pod is being evicted during node memory pressure. Which change should be made first after validating the facts?
- Configure a readinessProbe that tests the actual application readiness endpoint.
- Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
- Set appropriate memory requests and limits with attention to QoS and actual node capacity.
- Update the image on the Deployment and observe its rolling rollout.
Explanation
Correct Answer
C:Set appropriate memory requests and limits with attention to QoS and actual node capacity. This correction targets the specific failure. QoS affects eviction priority but does not guarantee protection from all failures. A successful result is: Resource reservation and QoS class reflect design while eviction risk is reduced.
Incorrect Answers
A:Configure a readinessProbe that tests the actual application readiness endpoint. This procedure belongs to a different Kubernetes condition (A container is running but cannot serve requests until a cache is primed.). It does not directly resolve the observed failure. The targeted action is: Set appropriate memory requests and limits with attention to QoS and actual node capacity.
B: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: Set appropriate memory requests and limits with attention to QoS and actual node capacity.
D: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: Set appropriate memory requests and limits with attention to QoS and actual node capacity.
Question 548
A cluster team is handling this situation: New Pods remain Pending even with free node resources and kube-scheduler is unhealthy. Which proposed shortcut should be REJECTED?
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Validate a change with a repeatable positive and negative test.
- Inspect Pod and component events before changing unrelated resources.
- Change container image versions in every Pending Pod without reading scheduler events.
Explanation
Correct Answer
D:Change container image versions in every Pending Pod without reading scheduler events. Pending Pod placement depends on a functioning scheduler as well as available resources. A safer course is: Inspect scheduler static Pod health, logs and leader election before targeted repair.
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: Inspect scheduler static Pod health, logs and leader election before targeted repair.
B: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 scheduler static Pod health, logs and leader election before targeted repair.
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: Inspect scheduler static Pod health, logs and leader election before targeted repair.
Question 549
A cluster issue is reported: A workload prefers zone-b for latency but can operate in other zones. What practical check most directly confirms the suspected cause?
- Inspect kubectl describe pod readiness events and kubectl get endpointslices.
- Inspect kubectl get hpa -w and metrics-server resource metrics availability.
- Inspect StatefulSet Pod names and PVCs created by volumeClaimTemplates.
- Inspect Pod nodeAffinity and the actual node selected under controlled scheduling tests.
Explanation
Correct Answer
D:Inspect Pod nodeAffinity and the actual node selected under controlled scheduling tests. This diagnostic examines the relevant resource or subsystem. Preferred affinity guides placement without enforcing a hard constraint. The validating result would be: The scheduler favors the intended zone when feasible but still permits alternatives.
Incorrect Answers
A:This check is appropriate to the separate problem (A container is running but cannot serve requests until a cache is primed.), but it is not the direct diagnostic for the described failure. Inspect Pod nodeAffinity and the actual node selected under controlled scheduling tests.
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 Pod nodeAffinity and the actual node selected under controlled scheduling tests.
C:This check is appropriate to the separate problem (Database replicas require stable identities and persistent storage across rescheduling.), but it is not the direct diagnostic for the described failure. Inspect Pod nodeAffinity and the actual node selected under controlled scheduling tests.
Question 550
The team is reviewing this failure mode: A CPU-bound deployment needs to grow replica count during sustained load. Which statement explains WHY the recommended control works?
- Taints repel Pods and tolerations allow consideration but do not force placement.
- PDBs govern voluntary disruptions and require enough workload capacity to permit safe evictions.
- HPA acts on observed metrics to adjust workload replica counts.
- QoS affects eviction priority but does not guarantee protection from all failures.
Explanation
Correct Answer
C:HPA acts on observed metrics to adjust workload replica counts. This principle explains the targeted result. A concrete response is: Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits.
Incorrect Answers
A:This principle is useful for another case (A special node has NoSchedule taint and a permitted Pod remains Pending.), but does not explain the most direct solution here. HPA acts on observed metrics to adjust workload replica counts.
B:This principle is useful for another case (A maintenance drain would evict too many healthy replicas of a critical application.), but does not explain the most direct solution here. HPA acts on observed metrics to adjust workload replica counts.
D:This principle is useful for another case (An important Pod is being evicted during node memory pressure.), but does not explain the most direct solution here. HPA acts on observed metrics to adjust workload replica counts.