CNCF CKA Practice Test 43
Question 420
A CKA learner must investigate the following: A Gateway HTTPS listener reports invalid certificate references. Which command or check supplies the MOST direct diagnostic evidence?
- Inspect kubectl get endpointslice -l kubernetes.io/service-name=api -o yaml.
- Inspect Gateway listeners and TLS Secret in the certificate reference namespace.
- Query pod-0.service.namespace.svc.cluster.local from a same-cluster test Pod.
- Inspect spec.policyTypes and run an outbound connectivity test from the selected Pod.
Explanation
Correct Answer
B:Inspect Gateway listeners and TLS Secret in the certificate reference namespace. This diagnostic examines the relevant resource or subsystem. Gateway listeners own TLS configuration and certificate references must resolve. The validating result would be: The listener becomes Programmed and serves the expected certificate.
Incorrect Answers
A:This check is appropriate to the separate problem (Traffic reaches only one replica because two backend Pods have failing readiness.), but it is not the direct diagnostic for the described failure. Inspect Gateway listeners and TLS Secret in the certificate reference namespace.
C:This check is appropriate to the separate problem (A StatefulSet member cannot resolve its ordinal hostname after the governing Service changed.), but it is not the direct diagnostic for the described failure.
D:This check is appropriate to the separate problem (A team thinks applying an ingress-only policy prevents Pods from sending outbound traffic.), but it is not the direct diagnostic for the described failure. Inspect Gateway listeners and TLS Secret in the certificate reference namespace.
Question 421
A reviewer wants proof that this issue was corrected: A newly deployed Service selector uses app=front while Pods are labeled app=frontend. Which observed result is the STRONGEST evidence?
- One healthy instance holds the expected lease and scheduling resumes.
- Replica controllers reconcile desired Pods and restore replica counts.
- EndpointSlices contain the expected ready frontend Pods and requests succeed.
- The claim binds and the Pod becomes schedulable when topology constraints allow.
Explanation
Correct Answer
C:EndpointSlices contain the expected ready frontend Pods and requests succeed. The corresponding action is: Correct the Service selector to match actual intended backend labels.
Incorrect Answers
A: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: EndpointSlices contain the expected ready frontend Pods and requests succeed.
B:Replica controllers reconcile desired Pods and restore replica counts. This is evidence for a separate case (ReplicaSets stop creating replacement Pods after kube-controller-manager crashes.), not for the target problem. An appropriate validation would be: EndpointSlices contain the expected ready frontend Pods and requests succeed.
D:The claim binds and the Pod becomes schedulable when topology constraints allow. This is evidence for a separate case (A Pod is Pending with a message about unbound immediate PersistentVolumeClaims.), not for the target problem. An appropriate validation would be: EndpointSlices contain the expected ready frontend Pods and requests succeed.
Question 422
During remediation, this failure appears: All Pods on one node disappear from monitoring after kubelet service stops. Which action is the LEAST defensible?
- Edit Service ClusterIP to restore a stopped node agent.
- Apply scoped access rather than granting universal administration.
- Review controller logs and resource status to understand reconciliation failures.
- Test connectivity from the affected Pod before redesigning all Services.
Explanation
Correct Answer
A:Edit Service ClusterIP to restore a stopped node agent. Kubelet is the local node agent and its failure affects Pod management and reporting. A safer course is: Recover kubelet service after inspecting its systemd journal and configuration.
Incorrect Answers
B:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Recover kubelet service after inspecting its systemd journal and configuration.
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: Recover kubelet service after inspecting its systemd journal and configuration.
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: Recover kubelet service after inspecting its systemd journal and configuration.
Question 423
For this Kubernetes issue, select TWO statements that correctly pair a response with the evidence it should produce: An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it.
- Validation: The Service obtains an external address and routes to ready backend Pods.
- Remediation: Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway.
- Remediation: Use kubectl port-forward to an appropriate Pod or Service for authorized short-lived access.
- Validation: Gateway and route conditions show Accepted and Programmed as appropriate.
- Remediation: Assume the API server automatically provisions gateway proxies for all GatewayClasses.
Explanation
Correct Answers
B:Remediation: Install or select a supported Gateway API controller and provision a valid GatewayClass and Gateway. The remedy targets the reported failure rather than a different subsystem. Gateway API resources require implementing controllers; resource creation alone is not data-plane setup.
D:Validation: Gateway and route conditions show Accepted and Programmed as appropriate. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Validation: The Service obtains an external address and routes to ready backend Pods. This evidence applies to a different condition (An external HTTP service needs an infrastructure-managed public listener.), and would not verify this target fix: An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it.
C:Remediation: Use kubectl port-forward to an appropriate Pod or Service for authorized short-lived access. This action targets a different condition (An operator wants temporary access to an internal Pod without publishing a public Service.), not this reported failure: An HTTPRoute cannot bind because its parent GatewayClass has no controller managing it.
E:Remediation: Assume the API server automatically provisions gateway proxies for all GatewayClasses. This is the unsafe shortcut for the case, not an acceptable intervention. Gateway API resources require implementing controllers; resource creation alone is not data-plane setup.
Question 424
An engineer needs to justify a change for this issue: A team thinks applying an ingress-only policy prevents Pods from sending outbound traffic. Which technical reason is MOST relevant?
- Ingress path routing depends on explicit path rules and controller semantics.
- Ingress and egress isolation are independent in NetworkPolicy.
- Cluster networking requires a functioning CNI path between Pod address ranges.
- NodePort exposes a Service using a port on cluster nodes.
Explanation
Correct Answer
B:Ingress and egress isolation are independent in NetworkPolicy. This principle explains the targeted result. A concrete response is: Define egress policy types and explicit egress rules if outbound isolation is required.
Incorrect Answers
A:This principle is useful for another case (Traffic to /api is routed to the frontend Service rather than the API backend.), but does not explain the most direct solution here. Ingress path routing depends on explicit path rules and controller semantics.
C:This principle is useful for another case (Pods on two different workers cannot reach one another but Pod traffic works within a node.), but does not explain the most direct solution here. Cluster networking requires a functioning CNI path between Pod address ranges.
D:This principle is useful for another case (A development Service must be reachable on each eligible node at a defined node port.), but does not explain the most direct solution here. NodePort exposes a Service using a port on cluster nodes.
Question 425
A cluster team is handling this situation: Two API servers run but workloads use one control-plane node IP as the endpoint. Which proposed shortcut should be REJECTED?
- Choose a storage access mode backed by real CSI capabilities.
- Preserve relevant logs when diagnosing a repeating container crash.
- Point every kubeconfig at a single worker node's Pod IP.
- Apply scoped access rather than granting universal administration.
Explanation
Correct Answer
C:Point every kubeconfig at a single worker node's Pod IP. A highly available control plane needs a stable reachable API endpoint. A safer course is: Configure a stable shared controlPlaneEndpoint behind a correctly configured API server load balancer.
Incorrect Answers
A: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: Configure a stable shared controlPlaneEndpoint behind a correctly configured API server load balancer.
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: Configure a stable shared controlPlaneEndpoint behind a correctly configured API server load balancer.
D:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Configure a stable shared controlPlaneEndpoint behind a correctly configured API server load balancer.
Question 426
A platform engineer receives this incident: An API client certificate is about to expire on a kubeadm managed control plane. Which change should be made first after validating the facts?
- Reject the unsupported skew and follow the documented Kubernetes component version-skew policy.
- Inspect certificate expirations and plan safe renewal with component restart and verification as necessary.
- Restore the snapshot to the intended data directory and update the relevant static Pod manifest safely.
- Cordon and drain the node with appropriate eviction safeguards before maintenance.
Explanation
Correct Answer
B:Inspect certificate expirations and plan safe renewal with component restart and verification as necessary. This correction targets the specific failure. Expired control-plane credentials can break otherwise healthy components. A successful result is: TLS clients can authenticate after renewal and the control plane is healthy.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A proposed upgrade would run kubelet newer than kube-apiserver.). Reject the unsupported skew and follow the documented Kubernetes component version-skew policy.
C:This procedure belongs to a different Kubernetes condition (An etcd snapshot is valid but the restored control plane is reading an empty data directory.).
D:Cordon and drain the node with appropriate eviction safeguards before maintenance. This procedure belongs to a different Kubernetes condition (A worker requires OS maintenance while running replicated customer Pods.). It does not directly resolve the observed failure. The targeted action is: Inspect certificate expirations and plan safe renewal with component restart and verification as necessary.
Question 427
An operations team tests its response to this finding: An operator must update one named ConfigMap but must not edit every ConfigMap. Which outcome most clearly establishes that the fix worked?
- Snapshot status is readable and the backup is protected and recoverable.
- Allowed updates to the named object succeed while edits to unrelated ConfigMaps are rejected.
- An impersonated create deployment request is denied in the target namespace.
- The kubelet starts with an explicitly supported swap setting and the node registers normally.
Explanation
Correct Answer
B:Allowed updates to the named object succeed while edits to unrelated ConfigMaps are rejected. The corresponding action is: Use a Role limited to the required verbs and resourceNames for the named ConfigMap.
Incorrect Answers
A:Snapshot status is readable and the backup is protected and recoverable. This is evidence for a separate case (A stacked-etcd control plane needs a recoverable snapshot before upgrade.), not for the target problem. An appropriate validation would be: Allowed updates to the named object succeed while edits to unrelated ConfigMaps are rejected.
C:An impersonated create deployment request is denied in the target namespace. This is evidence for a separate case (An admin changed RoleBindings and wants proof the operator cannot create deployments.), not for the target problem. An appropriate validation would be: Allowed updates to the named object succeed while edits to unrelated ConfigMaps are rejected.
D:The kubelet starts with an explicitly supported swap setting and the node registers normally. This is evidence for a separate case (An intended kubeadm worker reports kubelet swap-related startup failures.), not for the target problem. An appropriate validation would be: Allowed updates to the named object succeed while edits to unrelated ConfigMaps are rejected.
Question 428
A review finds this Kubernetes issue: A high-availability control plane needs another control-plane node joined securely. Which suggestion would make troubleshooting or security worse?
- Use a worker-only join command and manually copy private keys through chat.
- Choose a storage access mode backed by real CSI capabilities.
- Review controller logs and resource status to understand reconciliation failures.
- Record a rollback approach before high-impact control-plane changes.
Explanation
Correct Answer
A:Use a worker-only join command and manually copy private keys through chat. Adding control-plane members requires certificates and control-plane-specific join configuration. A safer course is: Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required.
Incorrect Answers
B:Requested volume semantics still depend on the storage implementation.
C:Controller evidence can distinguish desired state from observed failure. For the stated case, a focused correction is: Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required.
D:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required.
Question 429
During cluster maintenance, an engineer finds this problem: An admin changed RoleBindings and wants proof the operator cannot create deployments. Which next action is technically justified?
- Inspect the operator Deployment, permissions, watched namespace and reconciliation events.
- Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
- Check effective permissions using impersonation rather than relying on the YAML file alone.
- Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
Explanation
Correct Answer
C:A successful result is: An impersonated create deployment request is denied in the target namespace.
Incorrect Answers
A:Inspect the operator Deployment, permissions, watched namespace and reconciliation events. This procedure belongs to a different Kubernetes condition (A custom resource exists but a controller is not reconciling its desired state.). It does not directly resolve the observed failure. The targeted action is: Check effective permissions using impersonation rather than relying on the YAML file alone.
B:Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
D:Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
Question 430
A cluster team is handling this situation: A development Service must be reachable on each eligible node at a defined node port. Which proposed shortcut should be REJECTED?
- Inspect Pod and component events before changing unrelated resources.
- Verify the target cluster and namespace before mutating resources.
- Check applicable component version compatibility before upgrading.
- Set nodePort outside the configured range and assume the API accepts it.
Explanation
Correct Answer
D:Set nodePort outside the configured range and assume the API accepts it. NodePort exposes a Service using a port on cluster nodes. A safer course is: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
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: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
B: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: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.
C:Check applicable component version compatibility before upgrading. Supported version relationships prevent avoidable upgrade failures. For the stated case, a focused correction is: Configure a NodePort Service with the appropriate servicePort, targetPort and allowed nodePort.