CNCF CKA Practice Test 17
Question 160
During cluster maintenance, an engineer finds this problem: An HTTPRoute is not serving traffic and its status reports ResolvedRefs False. Which next action is technically justified?
- Recover kubelet service after inspecting its systemd journal and configuration.
- Correct the invalid backend Service reference or required cross-namespace ReferenceGrant.
- Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity.
- Compare resource requests against node allocatable rather than only live CPU utilization.
Explanation
Correct Answer
B:Correct the invalid backend Service reference or required cross-namespace ReferenceGrant. This correction targets the specific failure. Gateway API status conditions identify invalid reference wiring. A successful result is: The HTTPRoute reference resolves and accepted traffic reaches intended backends.
Incorrect Answers
A:Recover kubelet service after inspecting its systemd journal and configuration. This procedure belongs to a different Kubernetes condition (All Pods on one node disappear from monitoring after kubelet service stops.). It does not directly resolve the observed failure. The targeted action is: Correct the invalid backend Service reference or required cross-namespace ReferenceGrant.
C:This procedure belongs to a different Kubernetes condition (etcd returns a no-space alarm after excessive database growth.). Inspect alarms and backend size, compact and defragment safely as documented, and restore capacity.
D:This procedure belongs to a different Kubernetes condition (A node appears idle by CPU usage but a new Pod is unschedulable with Insufficient cpu.). Compare resource requests against node allocatable rather than only live CPU utilization.
Question 161
A review finds this Kubernetes issue: An administrator cordoned a node but existing Pods are still running on it. Which suggestion would make troubleshooting or security worse?
- Verify the target cluster and namespace before mutating resources.
- Validate a change with a repeatable positive and negative test.
- Assume kubectl cordon immediately removes every Pod.
- Keep backups or change history for potentially destructive maintenance.
Explanation
Correct Answer
C:Assume kubectl cordon immediately removes every Pod. This shortcut fails to address the root cause and risks a worse outcome. Cordon changes scheduling eligibility but does not terminate current Pods. A safer course is: Use drain when eviction is needed; cordon alone only prevents new scheduling.
Incorrect Answers
A:Verify the target cluster and namespace before mutating resources. Explicit target context avoids changing the wrong environment. For the stated case, a focused correction is: Use drain when eviction is needed; cordon alone only prevents new scheduling.
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: Use drain when eviction is needed; cordon alone only prevents new scheduling.
D: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: Use drain when eviction is needed; cordon alone only prevents new scheduling.
Question 162
A cluster team is handling this situation: A team thinks applying an ingress-only policy prevents Pods from sending outbound traffic. Which proposed shortcut should be REJECTED?
- Inspect Pod and component events before changing unrelated resources.
- Assume policyTypes Ingress blocks all outbound traffic.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Keep backups or change history for potentially destructive maintenance.
Explanation
Correct Answer
B:Assume policyTypes Ingress blocks all outbound traffic. Ingress and egress isolation are independent in NetworkPolicy. A safer course is: Define egress policy types and explicit egress rules if outbound isolation is required.
Incorrect Answers
A: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: Define egress policy types and explicit egress rules if outbound isolation is required.
C: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: Define egress policy types and explicit egress rules if outbound isolation is required.
D: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: Define egress policy types and explicit egress rules if outbound isolation is required.
Question 163
The team is reviewing this failure mode: A workload requires a nonsecret configuration file that varies per namespace. Which statement explains WHY the recommended control works?
- Secrets support sensitive configuration but still require RBAC and encryption controls.
- ConfigMaps separate ordinary configuration from container images.
- Deployment controllers reconcile ReplicaSets to achieve a declared desired state.
- RollingUpdate availability and surge settings govern the rate of replica replacement.
Explanation
Correct Answer
B:ConfigMaps separate ordinary configuration from container images. This principle explains the targeted result. A concrete response is: Mount a ConfigMap as a volume or use its keys in environment configuration as appropriate.
Incorrect Answers
A:This principle is useful for another case (An application password is mistakenly embedded in a ConfigMap and exposed to broad readers.), but does not explain the most direct solution here. Secrets support sensitive configuration but still require RBAC and encryption controls.
C:Deployment controllers reconcile ReplicaSets to achieve a declared desired state. This principle is useful for another case (A Deployment is using image v1 but needs a controlled update to image v2.), but does not explain the most direct solution here. The governing consideration is: ConfigMaps separate ordinary configuration from container images.
D:RollingUpdate availability and surge settings govern the rate of replica replacement. This principle is useful for another case (A Deployment must update without taking all replicas offline during rollout.), but does not explain the most direct solution here. The governing consideration is: ConfigMaps separate ordinary configuration from container images.
Question 164
A platform engineer receives this incident: HPA displays <unknown> target metrics while replicas never scale. Which change should be made first after validating the facts?
- Allow required DNS egress to the cluster resolver while retaining intended isolation.
- Diagnose metrics-server, metrics API availability and resource requests.
- Identify excessive process counts and correct the offending workload or node capacity.
- Recover the supported metrics-server installation and its APIService registration.
Explanation
Correct Answer
B:Diagnose metrics-server, metrics API availability and resource requests. This correction targets the specific failure. Autoscaling requires available metrics and valid target configuration. A successful result is: HPA displays metrics and scales according to observed demand.
Incorrect Answers
A:Allow required DNS egress to the cluster resolver while retaining intended isolation.
C:This procedure belongs to a different Kubernetes condition (A worker is Ready but reports PIDPressure and new processes fail to launch.). Identify excessive process counts and correct the offending workload or node capacity.
D:This procedure belongs to a different Kubernetes condition (kubectl top nodes fails with Metrics API not available.). Recover the supported metrics-server installation and its APIService registration.
Question 165
Following this Kubernetes scenario, an operator validates remediation: A dual-stack cluster Service was created with only IPv4 despite an IPv6 requirement. Which measurable outcome shows success?
- Controlled deny tests actually prevent prohibited Pod connections.
- Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families.
- The hostNetwork Pod resolves Kubernetes Service records as intended.
- Only the intended client Pods in team-a can reach the protected API.
Explanation
Correct Answer
B:Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families. The corresponding action is: Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network.
Incorrect Answers
A:Controlled deny tests actually prevent prohibited Pod connections. This is evidence for a separate case (NetworkPolicy objects are accepted but all supposedly blocked traffic is still allowed.), not for the target problem. An appropriate validation would be: Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families.
C:The hostNetwork Pod resolves Kubernetes Service records as intended. This is evidence for a separate case (A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.), not for the target problem. An appropriate validation would be: Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families.
D:Only the intended client Pods in team-a can reach the protected API. This is evidence for a separate case (An API must accept ingress only from Pods labeled role=client in namespace team-a.), not for the target problem. An appropriate validation would be: Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families.
Question 166
During remediation, this failure appears: A new control-plane node initializes but Pods will not receive Pod network addresses. Which action is the LEAST defensible?
- Check applicable component version compatibility before upgrading.
- Test connectivity from the affected Pod before redesigning all Services.
- Assume kubeadm installs every Pod networking plugin automatically.
- Record a rollback approach before high-impact control-plane changes.
Explanation
Correct Answer
C:Assume kubeadm installs every Pod networking plugin automatically. kubeadm bootstraps control-plane components; a compatible CNI provides Pod networking. A safer course is: Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
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: Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
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: Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
D:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
Question 167
A platform engineer receives this incident: A kubeadm managed cluster must move one supported minor release forward. 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.
- Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation.
- Use the correct CA and client certificate/key matching the endpoint's advertised TLS configuration.
- Inspect release history and roll back to the last healthy chart revision.
Explanation
Correct Answer
A:Plan the ordered control-plane upgrade using kubeadm upgrade plan and supported version skew guidance. This correction targets the specific failure. Kubernetes upgrades must respect version skew and control-plane ordering. A successful result is: The control plane reports the intended version before worker upgrades proceed safely.
Incorrect Answers
B:This procedure belongs to a different Kubernetes condition (The control plane is upgraded but one worker still runs an older supported kubelet.). Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation.
C:This procedure belongs to a different Kubernetes condition (etcdctl endpoint health fails on a local stacked-etcd member with a TLS handshake error.). Use the correct CA and client certificate/key matching the endpoint's advertised TLS configuration.
D:This procedure belongs to a different Kubernetes condition (A Helm upgrade caused a regression in a cluster add-on.). Inspect release history and roll back to the last healthy chart revision.
Question 168
To avoid guessing about this fault, what should be inspected first? A Helm upgrade caused a regression in a cluster add-on.
- Inspect kubectl describe node conditions and kube-system CNI DaemonSet logs.
- Run helm history addon -n system and helm rollback addon <revision> -n system.
- Inspect installed CNI configuration and test runtime with crictl separately.
- Inspect kubectl get crds and kubectl api-resources for the expected plural and API version.
Explanation
Correct Answer
B:Run helm history addon -n system and helm rollback addon <revision> -n system. This diagnostic examines the relevant resource or subsystem. Helm revisions support controlled release rollback of managed objects. The validating result would be: Resources return to known-good configuration with preserved change history.
Incorrect Answers
A:This check is appropriate to the separate problem (Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.), but it is not the direct diagnostic for the described failure.
C:This check is appropriate to the separate problem (A team mistakes the container network interface for the container runtime interface.), but it is not the direct diagnostic for the described failure. Run helm history addon -n system and helm rollback addon <revision> -n system.
D:This check is appropriate to the separate problem (A custom resource cannot be created because the API server does not recognize its kind.), but it is not the direct diagnostic for the described failure. Run helm history addon -n system and helm rollback addon <revision> -n system.
Question 169
An administrator reviews several possible responses to this condition: kubectl reports x509 certificate expired after months of successful access. Which option creates an avoidable failure?
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Set insecure-skip-tls-verify globally and never investigate expiration.
- Verify the target cluster and namespace before mutating resources.
Explanation
Correct Answer
C:Set insecure-skip-tls-verify globally and never investigate expiration. Expired credentials can interrupt API clients while the server remains healthy. A safer course is: Inspect kubeconfig client credentials and renew valid certificates through the approved procedure.
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 kubeconfig client credentials and renew valid certificates through the approved procedure.
B: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: Inspect kubeconfig client credentials and renew valid certificates through the approved procedure.
D:Verify the target cluster and namespace before mutating resources. Explicit target context avoids changing the wrong environment. For the stated case, a focused correction is: Inspect kubeconfig client credentials and renew valid certificates through the approved procedure.
Question 170
During an operational review, this fact emerges: New Pods remain Pending even with free node resources and kube-scheduler is unhealthy. Which Kubernetes behavior MOST directly governs the result?
- Kubernetes container log viewing relies on container output streams, not arbitrary files.
- DNS, network path and application listener failures require different diagnostics.
- Node authorization depends on valid client identity and trusted CA chain.
- Pending Pod placement depends on a functioning scheduler as well as available resources.
Explanation
Correct Answer
D:Pending Pod placement depends on a functioning scheduler as well as available resources. This principle explains the targeted result. A concrete response is: Inspect scheduler static Pod health, logs and leader election before targeted repair.
Incorrect Answers
A:This principle is useful for another case (An app writes errors to stderr but a team searches only a file in the container image.), but does not explain the most direct solution here. Pending Pod placement depends on a functioning scheduler as well as available resources.
B:This principle is useful for another case (An app cannot reach a database and the error is a TCP timeout, not DNS NXDOMAIN.), but does not explain the most direct solution here. Pending Pod placement depends on a functioning scheduler as well as available resources.
C:This principle is useful for another case (Kubelet logs show TLS certificate errors after a node credential rotation.), but does not explain the most direct solution here. Pending Pod placement depends on a functioning scheduler as well as available resources.