CNCF CKA Practice Test 48
Question 470
During an operational review, this fact emerges: A monitoring integration needs cluster-wide read-only node information. Which Kubernetes behavior MOST directly governs the result?
- Kubelet must not be newer than its kube-apiserver under normal supported skew rules.
- Helm charts are templates that must be evaluated before cluster changes.
- Kubernetes upgrades must respect version skew and control-plane ordering.
- Nodes are cluster-scoped API resources; a namespaced Role alone cannot grant access to them.
Explanation
Correct Answer
D:Nodes are cluster-scoped API resources; a namespaced Role alone cannot grant access to them. This principle explains the targeted result. A concrete response is: Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
Incorrect Answers
A:This principle is useful for another case (A proposed upgrade would run kubelet newer than kube-apiserver.), but does not explain the most direct solution here. Nodes are cluster-scoped API resources; a namespaced Role alone cannot grant access to them.
B:This principle is useful for another case (A Helm chart update is proposed but its rendered RBAC is unknown.), but does not explain the most direct solution here. Nodes are cluster-scoped API resources; a namespaced Role alone cannot grant access to them.
C:This principle is useful for another case (A kubeadm managed cluster must move one supported minor release forward.), but does not explain the most direct solution here. Nodes are cluster-scoped API resources; a namespaced Role alone cannot grant access to them.
Question 471
An engineer needs to justify a change for this issue: A team needs clients' original source IP preserved for a LoadBalancer Service. Which technical reason is MOST relevant?
- Service port and targetPort express different ends of routing.
- NetworkPolicy isolation is additive and defaults to allow without selecting policies.
- Service external traffic policy affects forwarding paths and source address handling.
- Port forwarding is a debugging tunnel, not an internet-facing production endpoint.
Explanation
Correct Answer
C:Service external traffic policy affects forwarding paths and source address handling. This principle explains the targeted result. A concrete response is: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.
Incorrect Answers
A:This principle is useful for another case (A Service listens on port 80 but the container listens on 8080 and requests fail.), but does not explain the most direct solution here. Service external traffic policy affects forwarding paths and source address handling.
B:This principle is useful for another case (Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace.), but does not explain the most direct solution here. Service external traffic policy affects forwarding paths and source address handling.
D:This principle is useful for another case (An operator wants temporary access to an internal Pod without publishing a public Service.), but does not explain the most direct solution here. Service external traffic policy affects forwarding paths and source address handling.
Question 472
An administrator is investigating this situation: A cluster bootstrap script contains changing flags and has become difficult to audit. Which action BEST resolves the underlying issue?
- Inspect a pinned chart with helm template or helm diff style review before installation.
- Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
- Plan the ordered control-plane upgrade using kubeadm upgrade plan and supported version skew guidance.
- Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
Explanation
Correct Answer
D:Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings. This correction targets the specific failure. Declarative bootstrap configuration reduces drift and makes cluster setup reproducible. A successful result is: Repeat installations use the expected cluster configuration with a reviewable change history.
Incorrect Answers
A:Inspect a pinned chart with helm template or helm diff style review before installation.
B:Initialize kubeadm with a Pod CIDR compatible with the selected CNI and deploy that CNI.
C: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: Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
Question 473
Select TWO technically sound statements for this situation, covering remediation and validation: All Pods on one node disappear from monitoring after kubelet service stops.
- Remediation: Correct the Service selector to match actual intended backend labels.
- Validation: Kubelet resumes node reporting and reconciles static and managed Pods.
- Validation: kubectl reaches the intended API endpoint without changing workloads.
- Remediation: Edit Service ClusterIP to restore a stopped node agent.
- Remediation: Recover kubelet service after inspecting its systemd journal and configuration.
Explanation
Correct Answers
B:Validation: Kubelet resumes node reporting and reconciles static and managed Pods. This result verifies the behavior the remediation is supposed to restore.
E:Remediation: Recover kubelet service after inspecting its systemd journal and configuration. The remedy targets the reported failure rather than a different subsystem. Kubelet is the local node agent and its failure affects Pod management and reporting.
Incorrect Answers
A:Remediation: Correct the Service selector to match actual intended backend labels. This action targets a different condition (A newly deployed Service selector uses app=front while Pods are labeled app=frontend.), not this reported failure: All Pods on one node disappear from monitoring after kubelet service stops.
C:Validation: kubectl reaches the intended API endpoint without changing workloads. This evidence applies to a different condition (kubectl suddenly reports connection refused after the team changed contexts.), and would not verify this target fix: All Pods on one node disappear from monitoring after kubelet service stops.
D:Remediation: Edit Service ClusterIP to restore a stopped node agent. This is the unsafe shortcut for the case, not an acceptable intervention. Kubelet is the local node agent and its failure affects Pod management and reporting.
Question 474
Select TWO technically sound statements for this situation, covering remediation and validation: A Pod is Pending because requested memory exceeds all node allocatable resources.
- Remediation: Adjust realistic resource requests or add capacity before scheduling.
- Validation: Voluntary eviction respects the budget and drain waits or fails rather than violating it.
- Remediation: Ensure relevant CPU requests are defined and the resource metrics pipeline is working.
- Remediation: Increase a container memory limit only and assume that reduces its request.
- Validation: The Pod schedules onto a node with sufficient available allocatable resources.
Explanation
Correct Answers
A:Remediation: Adjust realistic resource requests or add capacity before scheduling. The remedy targets the reported failure rather than a different subsystem. Scheduling uses requests and allocatable capacity, not current free RAM alone.
E:Validation: The Pod schedules onto a node with sufficient available allocatable resources. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
B:Validation: Voluntary eviction respects the budget and drain waits or fails rather than violating it. This evidence applies to a different condition (A maintenance drain would evict too many healthy replicas of a critical application.), and would not verify this target fix: A Pod is Pending because requested memory exceeds all node allocatable resources.
C:Remediation: Ensure relevant CPU requests are defined and the resource metrics pipeline is working. This action targets a different condition (HPA reports unknown CPU utilization although Pods are running.), not this reported failure: A Pod is Pending because requested memory exceeds all node allocatable resources.
D:Remediation: Increase a container memory limit only and assume that reduces its request. This is the unsafe shortcut for the case, not an acceptable intervention. Scheduling uses requests and allocatable capacity, not current free RAM alone.
Question 475
In a Kubernetes cluster, the following condition is observed: A Service DNS resolves but connections fail and EndpointSlices contain zero ready endpoints. Which remediation MOST directly addresses it?
- Inspect kube-proxy or the installed replacement dataplane on the affected node.
- Check egress route and SNAT or gateway configuration for the cluster network.
- Find and correct backend readiness or selector mismatch before changing external routing.
- Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline.
Explanation
Correct Answer
C:Find and correct backend readiness or selector mismatch before changing external routing. This correction targets the specific failure. Service existence does not guarantee a healthy backend endpoint. A successful result is: The Service has ready endpoints and traffic reaches them.
Incorrect Answers
A:Inspect kube-proxy or the installed replacement dataplane on the affected node. This procedure belongs to a different Kubernetes condition (Service ClusterIP connections fail on one node even though direct Pod IP connections work.). It does not directly resolve the observed failure. The targeted action is: Find and correct backend readiness or selector mismatch before changing external routing.
B:Check egress route and SNAT or gateway configuration for the cluster network. This procedure belongs to a different Kubernetes condition (Pods reach cluster Services but cannot contact external APIs from private node networks.). It does not directly resolve the observed failure. The targeted action is: Find and correct backend readiness or selector mismatch before changing external routing.
D:Inspect aggregated container stdout/stderr using kubectl logs or the configured logging pipeline. This procedure belongs to a different Kubernetes condition (An app writes errors to stderr but a team searches only a file in the container image.). It does not directly resolve the observed failure. The targeted action is: Find and correct backend readiness or selector mismatch before changing external routing.
Question 476
Consider the following Kubernetes administration case: A Pod is stuck ContainerCreating due to an attach timeout from a cloud block volume. Which principle BEST explains the intended solution?
- CSI attachment and mounting rely on healthy controller and node components.
- StatefulSet claim templates provision stable volumes associated with ordinal identities.
- ReadWriteOncePod is more restrictive than node-level ReadWriteOnce.
- ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod.
Explanation
Correct Answer
A:CSI attachment and mounting rely on healthy controller and node components. This principle explains the targeted result. A concrete response is: Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
Incorrect Answers
B:This principle is useful for another case (Two StatefulSet replicas accidentally share one manually named PVC and interfere with each other.), but does not explain the most direct solution here. CSI attachment and mounting rely on healthy controller and node components.
C:ReadWriteOncePod is more restrictive than node-level ReadWriteOnce. This principle is useful for another case (A database requires exclusive access by exactly one Pod to a PVC.), but does not explain the most direct solution here. The governing consideration is: CSI attachment and mounting rely on healthy controller and node components.
D:This principle is useful for another case (Two Pods on different nodes try to attach the same RWO block volume and one remains Pending.), but does not explain the most direct solution here. CSI attachment and mounting rely on healthy controller and node components.
Question 477
A CKA learner must investigate the following: A Service listens on port 80 but the container listens on 8080 and requests fail. Which command or check supplies the MOST direct diagnostic evidence?
- Inspect spec.policyTypes and run an outbound connectivity test from the selected Pod.
- Check kubectl describe service events and the provider's load-balancer controller logs.
- Inspect kubectl get service -o yaml ports and curl the backend Pod port directly.
- Inspect Service externalTrafficPolicy and local EndpointSlice distribution by node.
Explanation
Correct Answer
C:Inspect kubectl get service -o yaml ports and curl the backend Pod port directly. This diagnostic examines the relevant resource or subsystem. Service port and targetPort express different ends of routing. The validating result would be: Requests to Service port 80 reach the application listener on 8080.
Incorrect Answers
A: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 kubectl get service -o yaml ports and curl the backend Pod port directly.
B:This check is appropriate to the separate problem (An external HTTP service needs an infrastructure-managed public listener.), but it is not the direct diagnostic for the described failure. Inspect kubectl get service -o yaml ports and curl the backend Pod port directly.
D:This check is appropriate to the separate problem (A team needs clients' original source IP preserved for a LoadBalancer Service.), but it is not the direct diagnostic for the described failure.
Question 478
An administrator reviews several possible responses to this condition: A new worker cannot join because its bootstrap token has expired. Which option creates an avoidable failure?
- Record a rollback approach before high-impact control-plane changes.
- Validate a change with a repeatable positive and negative test.
- Disable API server certificate validation so the stale command succeeds.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
Explanation
Correct Answer
C:Disable API server certificate validation so the stale command succeeds. kubeadm join uses bootstrap discovery and credentials that can expire. A safer course is: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
Incorrect Answers
A:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
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: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
D:Configuration errors can be diagnosed without leaking sensitive data. For the stated case, a focused correction is: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
Question 479
A cluster team is handling this situation: A worker is Ready but reports PIDPressure and new processes fail to launch. Which proposed shortcut should be REJECTED?
- Restart every cluster control-plane component to fix one runaway process tree.
- Apply scoped access rather than granting universal administration.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Inspect Pod and component events before changing unrelated resources.
Explanation
Correct Answer
A:Restart every cluster control-plane component to fix one runaway process tree. Node PID exhaustion can affect kubelet and unrelated Pods. A safer course is: Identify excessive process counts and correct the offending workload or node capacity.
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: Identify excessive process counts and correct the offending workload or node capacity.
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: Identify excessive process counts and correct the offending workload or node capacity.
D: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: Identify excessive process counts and correct the offending workload or node capacity.
Question 480
An operations team tests its response to this finding: Internal Service names resolve but Pods cannot resolve public domains through CoreDNS. Which outcome most clearly establishes that the fix worked?
- Controlled deny tests actually prevent prohibited Pod connections.
- DNS returns individual eligible Pod endpoint addresses and stable peer identities.
- Both internal Services and intended external domains resolve from Pods.
- Disallowed outbound connections fail while approved egress stays functional.
Explanation
Correct Answer
C:Both internal Services and intended external domains resolve from Pods. The corresponding action is: Inspect CoreDNS forward configuration, upstream resolver reachability and network policies.
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: Both internal Services and intended external domains resolve from Pods.
B:DNS returns individual eligible Pod endpoint addresses and stable peer identities. This is evidence for a separate case (StatefulSet peers must discover individual Pod DNS records rather than one virtual Service IP.), not for the target problem. An appropriate validation would be: Both internal Services and intended external domains resolve from Pods.
D:Disallowed outbound connections fail while approved egress stays functional. This is evidence for a separate case (A team thinks applying an ingress-only policy prevents Pods from sending outbound traffic.), not for the target problem. An appropriate validation would be: Both internal Services and intended external domains resolve from Pods.