CNCF CKA Practice Test 14
Question 130
During remediation, this failure appears: A CPU-bound deployment needs to grow replica count during sustained load. Which action is the LEAST defensible?
- Keep backups or change history for potentially destructive maintenance.
- Set HPA to scale a one-off Job by modifying its completions.
- Review controller logs and resource status to understand reconciliation failures.
- Preserve relevant logs when diagnosing a repeating container crash.
Explanation
Correct Answer
B:Set HPA to scale a one-off Job by modifying its completions. HPA acts on observed metrics to adjust workload replica counts. A safer course is: Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits.
Incorrect Answers
A: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: Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits.
C: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: Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits.
D: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: Configure a HorizontalPodAutoscaler with CPU utilization targets and appropriate limits.
Question 131
To avoid guessing about this fault, what should be inspected first? A worker join fails with a discovery CA certificate hash mismatch.
- Compare the discovery hash with the control-plane CA public-key hash before retrying join.
- Run kubeadm upgrade plan and record supported target versions before any change.
- Inspect journalctl -u kubelet and kubelet configuration alongside swapon --show.
- Run helm template release ./chart -f values.yaml and inspect rendered ServiceAccounts and Roles.
Explanation
Correct Answer
A:Compare the discovery hash with the control-plane CA public-key hash before retrying join. This diagnostic examines the relevant resource or subsystem. The CA pin guards bootstrap against connecting to an unintended cluster. The validating result would be: The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
Incorrect Answers
B:This check is appropriate to the separate problem (A kubeadm managed cluster must move one supported minor release forward.), but it is not the direct diagnostic for the described failure.
C:This check is appropriate to the separate problem (An intended kubeadm worker reports kubelet swap-related startup failures.), but it is not the direct diagnostic for the described failure. Compare the discovery hash with the control-plane CA public-key hash before retrying join.
D:This check is appropriate to the separate problem (A Helm chart update is proposed but its rendered RBAC is unknown.), but it is not the direct diagnostic for the described failure. Compare the discovery hash with the control-plane CA public-key hash before retrying join.
Question 132
Select THREE technically appropriate statements spanning action, explanation and expected result for this case: A stacked-etcd control plane needs a recoverable snapshot before upgrade.
- Validation: Snapshot status is readable and the backup is protected and recoverable.
- Remediation: Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials.
- Explanation: etcd contains cluster state and needs tested, consistent backups.
- Remediation: Copy random etcd database files while the server is active without using a supported snapshot process.
- Validation: Resources return to known-good configuration with preserved change history.
- Remediation: Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
Explanation
Correct Answers
A:Validation: Snapshot status is readable and the backup is protected and recoverable. This result verifies the behavior the remediation is supposed to restore.
B:Remediation: Take an authenticated etcdctl snapshot with correct endpoints and required TLS credentials. The remedy targets the reported failure rather than a different subsystem. etcd contains cluster state and needs tested, consistent backups.
C:Explanation: etcd contains cluster state and needs tested, consistent backups. This is the technical mechanism supporting the recommended operation.
Incorrect Answers
D:Remediation: Copy random etcd database files while the server is active without using a supported snapshot process. This is the unsafe shortcut for the case, not an acceptable intervention. etcd contains cluster state and needs tested, consistent backups.
E:Validation: Resources return to known-good configuration with preserved change history. This evidence applies to a different condition (A Helm upgrade caused a regression in a cluster add-on.), and would not verify this target fix: A stacked-etcd control plane needs a recoverable snapshot before upgrade.
F:Remediation: Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings. This action targets a different condition (A cluster bootstrap script contains changing flags and has become difficult to audit.), not this reported failure: A stacked-etcd control plane needs a recoverable snapshot before upgrade.
Question 133
A cluster team is handling this situation: A Helm upgrade caused a regression in a cluster add-on. Which proposed shortcut should be REJECTED?
- Test connectivity from the affected Pod before redesigning all Services.
- Apply scoped access rather than granting universal administration.
- Use a staged rollout and observe readiness before full deployment.
- Delete all release secrets and hope default resources return.
Explanation
Correct Answer
D:Delete all release secrets and hope default resources return. Helm revisions support controlled release rollback of managed objects. A safer course is: Inspect release history and roll back to the last healthy chart revision.
Incorrect Answers
A: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 release history and roll back to the last healthy chart revision.
B:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Inspect release history and roll back to the last healthy chart revision.
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 release history and roll back to the last healthy chart revision.
Question 134
An operations team tests its response to this finding: A cluster bootstrap script contains changing flags and has become difficult to audit. Which outcome most clearly establishes that the fix worked?
- Repeat installations use the expected cluster configuration with a reviewable change history.
- Health checks succeed without skipping TLS verification.
- The control plane reports the intended version before worker upgrades proceed safely.
- kubectl commands target the authorized cluster and expected namespace.
Explanation
Correct Answer
A:Repeat installations use the expected cluster configuration with a reviewable change history. The corresponding action is: Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
Incorrect Answers
B:Health checks succeed without skipping TLS verification. This is evidence for a separate case (etcdctl endpoint health fails on a local stacked-etcd member with a TLS handshake error.), not for the target problem. An appropriate validation would be: Repeat installations use the expected cluster configuration with a reviewable change history.
C:The control plane reports the intended version before worker upgrades proceed safely. This is evidence for a separate case (A kubeadm managed cluster must move one supported minor release forward.), not for the target problem. An appropriate validation would be: Repeat installations use the expected cluster configuration with a reviewable change history.
D:Kubectl commands target the authorized cluster and expected namespace. This is evidence for a separate case (A kubectl command is applying objects in the wrong environment after a context switch.), not for the target problem. An appropriate validation would be: Repeat installations use the expected cluster configuration with a reviewable change history.
Question 135
A reviewer wants proof that this issue was corrected: A Service exists but its EndpointSlice contains no addresses even though backend Pods are running. Which observed result is the STRONGEST evidence?
- DNS queries succeed while other disallowed egress remains denied.
- Route conditions indicate acceptance and traffic reaches its backend Service.
- Ready backend Pod IPs appear in EndpointSlices for the Service.
- In-cluster Service names resolve again from test Pods.
Explanation
Correct Answer
C:Ready backend Pod IPs appear in EndpointSlices for the Service. The corresponding action is: Align the Service selector with ready Pod labels and verify endpoint membership.
Incorrect Answers
A:DNS queries succeed while other disallowed egress remains denied. This is evidence for a separate case (Egress-isolated Pods cannot resolve DNS even though their app traffic policy is correct.), not for the target problem. An appropriate validation would be: Ready backend Pod IPs appear in EndpointSlices for the Service.
B: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: Ready backend Pod IPs appear in EndpointSlices for the Service.
D:In-cluster Service names resolve again from test Pods. This is evidence for a separate case (All Pods lose service-name resolution after the CoreDNS Deployment becomes unavailable.), not for the target problem. An appropriate validation would be: Ready backend Pod IPs appear in EndpointSlices for the Service.
Question 136
A review finds this Kubernetes issue: A Pod is stuck CreateContainerConfigError because a referenced ConfigMap key is absent. Which suggestion would make troubleshooting or security worse?
- Change node taints to fix a missing ConfigMap key.
- Keep backups or change history for potentially destructive maintenance.
- Validate a change with a repeatable positive and negative test.
- Test connectivity from the affected Pod before redesigning all Services.
Explanation
Correct Answer
A:Change node taints to fix a missing ConfigMap key. Required configuration references must resolve to existing keys. A safer course is: Create the expected key or correct the container's configMapKeyRef name.
Incorrect Answers
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 the expected key or correct the container's configMapKeyRef name.
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 the expected key or correct the container's configMapKeyRef name.
D: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: Create the expected key or correct the container's configMapKeyRef name.
Question 137
Select TWO technically sound statements for this situation, covering remediation and validation: NetworkPolicy objects are accepted but all supposedly blocked traffic is still allowed.
- Validation: Route conditions indicate acceptance and traffic reaches its backend Service.
- Remediation: Assume API acceptance proves packet filtering is active.
- Validation: Controlled deny tests actually prevent prohibited Pod connections.
- Remediation: Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
- Remediation: Use a LoadBalancer Service backed by a working provider integration.
Explanation
Correct Answers
C:Validation: Controlled deny tests actually prevent prohibited Pod connections. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin. The remedy targets the reported failure rather than a different subsystem. The NetworkPolicy API requires a network plugin that enforces policies.
Incorrect Answers
A:Validation: Route conditions indicate acceptance and traffic reaches its backend Service. This evidence applies to a different condition (A Gateway exists but an HTTPRoute is not attached to its listener.), and would not verify this target fix: NetworkPolicy objects are accepted but all supposedly blocked traffic is still allowed.
B:Remediation: Assume API acceptance proves packet filtering is active. This is the unsafe shortcut for the case, not an acceptable intervention. The NetworkPolicy API requires a network plugin that enforces policies.
E:Remediation: Use a LoadBalancer Service backed by a working provider integration. This action targets a different condition (An external HTTP service needs an infrastructure-managed public listener.), not this reported failure: NetworkPolicy objects are accepted but all supposedly blocked traffic is still allowed.
Question 138
An operations team tests its response to this finding: A node appears idle by CPU usage but a new Pod is unschedulable with Insufficient cpu. Which outcome most clearly establishes that the fix worked?
- The HTTPRoute reference resolves and accepted traffic reaches intended backends.
- Scheduler reservation and request totals explain the failed scheduling decision.
- etcd health is restored and API read/write latency returns to acceptable levels.
- One healthy instance holds the expected lease and scheduling resumes.
Explanation
Correct Answer
B:Scheduler reservation and request totals explain the failed scheduling decision. The corresponding action is: Compare resource requests against node allocatable rather than only live CPU utilization.
Incorrect Answers
A:The HTTPRoute reference resolves and accepted traffic reaches intended backends. This is evidence for a separate case (An HTTPRoute is not serving traffic and its status reports ResolvedRefs False.), not for the target problem. An appropriate validation would be: Scheduler reservation and request totals explain the failed scheduling decision.
C:Etcd health is restored and API read/write latency returns to acceptable levels. This is evidence for a separate case (The API server is slow and logs show etcd request timeouts.), not for the target problem. An appropriate validation would be: Scheduler reservation and request totals explain the failed scheduling decision.
D:One healthy instance holds the expected lease and scheduling resumes. This is evidence for a separate case (Multiple scheduler Pods run but none can acquire the leader lease.), not for the target problem. An appropriate validation would be: Scheduler reservation and request totals explain the failed scheduling decision.
Question 139
Following this Kubernetes scenario, an operator validates remediation: A container is running but cannot serve requests until a cache is primed. Which measurable outcome shows success?
- The Pod schedules onto a node with sufficient available allocatable resources.
- The rollout maintains the intended number of available replicas at each transition.
- The Pod is excluded from Service endpoints until it becomes ready.
- Main application containers start only after initContainers complete successfully.
Explanation
Correct Answer
C:The Pod is excluded from Service endpoints until it becomes ready. The corresponding action is: Configure a readinessProbe that tests the actual application readiness endpoint.
Incorrect Answers
A:The Pod schedules onto a node with sufficient available allocatable resources. This is evidence for a separate case (A Pod is Pending because requested memory exceeds all node allocatable resources.), not for the target problem. An appropriate validation would be: The Pod is excluded from Service endpoints until it becomes ready.
B:The rollout maintains the intended number of available replicas at each transition. This is evidence for a separate case (A Deployment must update without taking all replicas offline during rollout.), not for the target problem. An appropriate validation would be: The Pod is excluded from Service endpoints until it becomes ready.
D:Main application containers start only after initContainers complete successfully. This is evidence for a separate case (An application fails because its database initialization must happen before the main process.), not for the target problem. An appropriate validation would be: The Pod is excluded from Service endpoints until it becomes ready.
Question 140
The team is reviewing this failure mode: A PVC requests storageClassName fast but no PV is created after several minutes. Which statement explains WHY the recommended control works?
- Volume mode differentiates raw block devices from filesystem mounts.
- PVC binding requires matching capacity, access mode and other volume constraints.
- Dynamic provisioning depends on a working provisioner and an appropriate StorageClass.
- Delayed binding coordinates placement between storage availability and Pod scheduling.
Explanation
Correct Answer
C:Dynamic provisioning depends on a working provisioner and an appropriate StorageClass. This principle explains the targeted result. A concrete response is: Verify the fast StorageClass provisioner and associated CSI controller health.
Incorrect Answers
A:This principle is useful for another case (A storage consumer expects a raw block device but the PVC is provisioned with volumeMode Filesystem.), but does not explain the most direct solution here. Dynamic provisioning depends on a working provisioner and an appropriate StorageClass.
B:This principle is useful for another case (A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi.), but does not explain the most direct solution here. Dynamic provisioning depends on a working provisioner and an appropriate StorageClass.
D:This principle is useful for another case (A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules.), but does not explain the most direct solution here. Dynamic provisioning depends on a working provisioner and an appropriate StorageClass.