CNCF CKA Practice Test 45
Question 440
During remediation, this failure appears: A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints. Which action is the LEAST defensible?
- Preserve relevant logs when diagnosing a repeating container crash.
- Apply scoped access rather than granting universal administration.
- Add a public Ingress to a Service with no ready Pods.
- Choose a storage access mode backed by real CSI capabilities.
Explanation
Correct Answer
C:Add a public Ingress to a Service with no ready Pods. Service existence does not guarantee a healthy backend endpoint. A safer course is: Find and correct backend readiness or selector mismatch before changing external routing.
Incorrect Answers
A: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: Find and correct backend readiness or selector mismatch before changing external routing.
B:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Find and correct backend readiness or selector mismatch before changing external routing.
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: Find and correct backend readiness or selector mismatch before changing external routing.
Question 441
A reviewer wants proof that this issue was corrected: A development Service must be reachable on each eligible node at a defined node port. Which observed result is the STRONGEST evidence?
- A representative request sample approximates the intended distribution between healthy backends.
- Traffic to a suitable node IP and nodePort reaches the intended backends.
- Both internal Services and intended external domains resolve from Pods.
- The route resolves the backend reference without opening unrelated namespace access.
Explanation
Correct Answer
B:Traffic to a suitable node IP and nodePort reaches the intended backends. The corresponding action is: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
Incorrect Answers
A:A representative request sample approximates the intended distribution between healthy backends. This is evidence for a separate case (A Gateway API team wants to send 10 percent traffic to canary and 90 percent to stable.), not for the target problem. An appropriate validation would be: Traffic to a suitable node IP and nodePort reaches the intended backends.
C:Both internal Services and intended external domains resolve from Pods. This is evidence for a separate case (Internal Service names resolve but Pods cannot resolve public domains through CoreDNS.), not for the target problem. An appropriate validation would be: Traffic to a suitable node IP and nodePort reaches the intended backends.
D:The route resolves the backend reference without opening unrelated namespace access. This is evidence for a separate case (A Gateway API route in namespace web needs to refer to a backend Service in namespace shared.), not for the target problem. An appropriate validation would be: Traffic to a suitable node IP and nodePort reaches the intended backends.
Question 442
A platform engineer receives this incident: A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules. Which change should be made first after validating the facts?
- Align the claim and PV storageClassName and required volume characteristics for static binding.
- Use a compatible StorageClass with volumeBindingMode WaitForFirstConsumer.
- Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
- Configure compatible PVC and PV volumeMode Block and Pod volumeDevices when supported.
Explanation
Correct Answer
B:Use a compatible StorageClass with volumeBindingMode WaitForFirstConsumer. This correction targets the specific failure. Delayed binding coordinates placement between storage availability and Pod scheduling. A successful result is: Volume provisioning considers the selected Pod scheduling topology.
Incorrect Answers
A:Align the claim and PV storageClassName and required volume characteristics for static binding.
C:Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity. This procedure belongs to a different Kubernetes condition (A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi.). It does not directly resolve the observed failure. The targeted action is: Use a compatible StorageClass with volumeBindingMode WaitForFirstConsumer.
D:Configure compatible PVC and PV volumeMode Block and Pod volumeDevices when supported.
Question 443
A cluster issue is reported: kubectl top nodes fails with Metrics API not available. What practical check most directly confirms the suspected cause?
- Inspect kubelet logs and kubeconfig certificate dates and CA references.
- Trace connection from a test Pod and inspect host egress NAT and route tables.
- Inspect kubectl get endpointslice and Pod Ready conditions.
- Inspect kubectl get apiservice v1beta1.metrics.k8s.io and metrics-server Pod logs.
Explanation
Correct Answer
D:Inspect kubectl get apiservice v1beta1.metrics.k8s.io and metrics-server Pod logs. This diagnostic examines the relevant resource or subsystem. Resource metrics API availability depends on healthy metrics-server integration. The validating result would be: kubectl top nodes and kubectl top pods return current resource metrics.
Incorrect Answers
A: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. Inspect kubectl get apiservice v1beta1.metrics.k8s.io and metrics-server Pod logs.
B:This check is appropriate to the separate problem (Pods reach cluster Services but cannot contact external APIs from private node networks.), but it is not the direct diagnostic for the described failure. Inspect kubectl get apiservice v1beta1.metrics.k8s.io and metrics-server Pod logs.
C:This check is appropriate to the separate problem (A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints.), but it is not the direct diagnostic for the described failure.
Question 444
In a Kubernetes cluster, the following condition is observed: An HTTP server occasionally deadlocks while its process remains running. Which remediation MOST directly addresses it?
- Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits.
- Configure a livenessProbe that detects the deadlock and uses safe thresholds.
- Adjust realistic resource requests or add capacity before scheduling.
- Use a Job with restart and backoff settings appropriate for finite completion.
Explanation
Correct Answer
B:Configure a livenessProbe that detects the deadlock and uses safe thresholds. This correction targets the specific failure. Liveness probes trigger container recovery when the application cannot progress. A successful result is: The stuck container is restarted and subsequently returns to Ready.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A CPU-bound deployment needs to grow replica count during sustained load.).
C:Adjust realistic resource requests or add capacity before scheduling. This procedure belongs to a different Kubernetes condition (A Pod is Pending because requested memory exceeds all node allocatable resources.). It does not directly resolve the observed failure. The targeted action is: Configure a livenessProbe that detects the deadlock and uses safe thresholds.
D:This procedure belongs to a different Kubernetes condition (A batch import must succeed once and then stop rather than keep restarting forever.). Use a Job with restart and backoff settings appropriate for finite completion.
Question 445
During cluster maintenance, an engineer finds this problem: Replicas concentrate in one availability zone and violate resilience goals. Which next action is technically justified?
- Configure topologySpreadConstraints with topologyKey and appropriate maxSkew behavior.
- Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
- Configure a livenessProbe that detects the deadlock and uses safe thresholds.
- Add a startupProbe with a startup budget before liveness checking begins.
Explanation
Correct Answer
A:Configure topologySpreadConstraints with topologyKey and appropriate maxSkew behavior. This correction targets the specific failure. Topology spread balances placement across labeled failure domains. A successful result is: Replica distribution across eligible zones satisfies the configured skew where feasible.
Incorrect Answers
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: Configure topologySpreadConstraints with topologyKey and appropriate maxSkew behavior.
C:Configure a livenessProbe that detects the deadlock and uses safe thresholds. This procedure belongs to a different Kubernetes condition (An HTTP server occasionally deadlocks while its process remains running.). It does not directly resolve the observed failure. The targeted action is: Configure topologySpreadConstraints with topologyKey and appropriate maxSkew behavior.
D:This procedure belongs to a different Kubernetes condition (A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.). Add a startupProbe with a startup budget before liveness checking begins.
Question 446
A cluster administrator must address the following case: kubectl suddenly reports connection refused after the team changed contexts. Select TWO appropriate statements, one corrective action and one observable outcome.
- Remediation: Inspect current context and configured cluster server address, then choose the correct target.
- Remediation: Restart production etcd without checking the client endpoint.
- Validation: kubectl reaches the intended API endpoint without changing workloads.
- Validation: Allowed Pods reach external endpoints with expected source IP routing.
- Remediation: Allow required DNS egress to the cluster resolver while retaining intended isolation.
Explanation
Correct Answers
A:Remediation: Inspect current context and configured cluster server address, then choose the correct target. The remedy targets the reported failure rather than a different subsystem. Context misselection can masquerade as a cluster outage.
C:Validation: kubectl reaches the intended API endpoint without changing workloads. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
B:Remediation: Restart production etcd without checking the client endpoint. This is the unsafe shortcut for the case, not an acceptable intervention. Context misselection can masquerade as a cluster outage.
D:Validation: Allowed Pods reach external endpoints with expected source IP routing. This evidence applies to a different condition (Pods reach cluster Services but cannot contact external APIs from private node networks.), and would not verify this target fix: kubectl suddenly reports connection refused after the team changed contexts.
E:Remediation: Allow required DNS egress to the cluster resolver while retaining intended isolation. This action targets a different condition (Only Pods selected by a new egress policy fail DNS while other Pods resolve normally.), not this reported failure: kubectl suddenly reports connection refused after the team changed contexts.
Question 447
Following this Kubernetes scenario, an operator validates remediation: Node role labels are inconsistent after provisioning new workers. Which measurable outcome shows success?
- A permitted node read succeeds and a node mutation is forbidden.
- Resources return to known-good configuration with preserved change history.
- The intended nodes have the expected labels and targeted scheduling rules match them.
- Kubelet recreates kube-scheduler and scheduler health recovers.
Explanation
Correct Answer
C:The intended nodes have the expected labels and targeted scheduling rules match them. The corresponding action is: Apply controlled labels and validate node identity before relying on placement rules.
Incorrect Answers
A:A permitted node read succeeds and a node mutation is forbidden. This is evidence for a separate case (A monitoring integration needs cluster-wide read-only node information.), not for the target problem. An appropriate validation would be: The intended nodes have the expected labels and targeted scheduling rules match them.
B:Resources return to known-good configuration with preserved change history. This is evidence for a separate case (A Helm upgrade caused a regression in a cluster add-on.), not for the target problem. An appropriate validation would be: The intended nodes have the expected labels and targeted scheduling rules match them.
D:Kubelet recreates kube-scheduler and scheduler health recovers. This is evidence for a separate case (The kube-scheduler static Pod disappeared after someone edited its manifest incorrectly.), not for the target problem. An appropriate validation would be: The intended nodes have the expected labels and targeted scheduling rules match them.
Question 448
During an operational review, this fact emerges: A new control-plane node initializes but Pods will not receive Pod network addresses. Which Kubernetes behavior MOST directly governs the result?
- kubeadm bootstraps control-plane components; a compatible CNI provides Pod networking.
- Kustomize composes declarative resources without requiring separate duplicated manifests.
- Renewed certificate files may not be reloaded until components restart.
- The CA pin guards bootstrap against connecting to an unintended cluster.
Explanation
Correct Answer
A:Kubeadm bootstraps control-plane components; a compatible CNI provides Pod networking. This principle explains the targeted result. A concrete response is: Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
Incorrect Answers
B:This principle is useful for another case (Two clusters need the same base manifest but different replica counts and labels.), but does not explain the most direct solution here. Kubeadm bootstraps control-plane components; a compatible CNI provides Pod networking.
C:This principle is useful for another case (After a certificate renewal, an old static Pod process still uses expired credentials.), but does not explain the most direct solution here. Kubeadm bootstraps control-plane components; a compatible CNI provides Pod networking.
D:This principle is useful for another case (A worker join fails with a discovery CA certificate hash mismatch.), but does not explain the most direct solution here. Kubeadm bootstraps control-plane components; a compatible CNI provides Pod networking.
Question 449
An administrator reviews several possible responses to this condition: A maintenance drain would evict too many healthy replicas of a critical application. Which option creates an avoidable failure?
- Apply scoped access rather than granting universal administration.
- Preserve relevant logs when diagnosing a repeating container crash.
- Force delete every replica during planned maintenance and assume PDB still protects them.
- Validate a change with a repeatable positive and negative test.
Explanation
Correct Answer
C:Force delete every replica during planned maintenance and assume PDB still protects them. This shortcut fails to address the root cause and risks a worse outcome. PDBs govern voluntary disruptions and require enough workload capacity to permit safe evictions. A safer course is: Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
Incorrect Answers
A:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
B: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: Create a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
D: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 a PodDisruptionBudget that retains the required healthy replicas and plan capacity.
Question 450
An engineer reports that this problem was fixed: A Deployment must update without taking all replicas offline during rollout. What specific result should an independent reviewer expect?
- The stuck container is restarted and subsequently returns to Ready.
- The rollout maintains the intended number of available replicas at each transition.
- HPA displays utilization rather than unknown and computes a recommendation.
- Healthy replicas return to the previous image and readiness is restored.
Explanation
Correct Answer
B:The rollout maintains the intended number of available replicas at each transition. This outcome shows the required behavior after correction. The corresponding action is: Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.
Incorrect Answers
A:The stuck container is restarted and subsequently returns to Ready. This is evidence for a separate case (An HTTP server occasionally deadlocks while its process remains running.), not for the target problem. An appropriate validation would be: The rollout maintains the intended number of available replicas at each transition.
C:HPA displays utilization rather than unknown and computes a recommendation. This is evidence for a separate case (HPA reports unknown CPU utilization although Pods are running.), not for the target problem. An appropriate validation would be: The rollout maintains the intended number of available replicas at each transition.
D:Healthy replicas return to the previous image and readiness is restored. This is evidence for a separate case (A recent Deployment image change causes requests to fail and the previous revision worked.), not for the target problem. An appropriate validation would be: The rollout maintains the intended number of available replicas at each transition.