CNCF CKA Practice Test 47
Question 460
Consider the following Kubernetes administration case: A PVC is nearly full and its backing CSI driver supports growth. Which principle BEST explains the intended solution?
- Delete reclaim policy instructs supported provisioners to remove backing assets.
- ReadWriteOncePod is more restrictive than node-level ReadWriteOnce.
- Volume expansion requires storage class permission and driver support, sometimes filesystem growth.
- ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod.
Explanation
Correct Answer
C:Volume expansion requires storage class permission and driver support, sometimes filesystem growth. This principle explains the targeted result. A concrete response is: Enable supported volume expansion and increase PVC requested storage safely.
Incorrect Answers
A:This principle is useful for another case (A temporary dynamically provisioned data volume should be removed with its claim.), but does not explain the most direct solution here. Volume expansion requires storage class permission and driver support, sometimes filesystem growth.
B: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: Volume expansion requires storage class permission and driver support, sometimes filesystem growth.
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. Volume expansion requires storage class permission and driver support, sometimes filesystem growth.
Question 461
A platform engineer receives this incident: Pods cannot resolve cluster Service names and CoreDNS Pods are CrashLoopBackOff. Which change should be made first after validating the facts?
- Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement.
- Review current and previous container logs and correct the referenced configuration.
- Check egress route and SNAT or gateway configuration for the cluster network.
- Review CoreDNS logs and Corefile configuration, then restore a valid DNS Deployment.
Explanation
Correct Answer
D:Review CoreDNS logs and Corefile configuration, then restore a valid DNS Deployment. This correction targets the specific failure. Malformed DNS plugin configuration can disable cluster name resolution. A successful result is: CoreDNS becomes Ready and service DNS lookups succeed.
Incorrect Answers
A:Inspect CNI IPAM allocation and capacity, then expand supported address space or workload placement. This procedure belongs to a different Kubernetes condition (A CNI plugin fails to allocate Pod addresses as a node's Pod CIDR fills.). It does not directly resolve the observed failure. The targeted action is: Review CoreDNS logs and Corefile configuration, then restore a valid DNS Deployment.
B:Review current and previous container logs and correct the referenced configuration. This procedure belongs to a different Kubernetes condition (A newly deployed app repeatedly exits with invalid configuration errors.). It does not directly resolve the observed failure. The targeted action is: Review CoreDNS logs and Corefile configuration, then restore a valid DNS Deployment.
C: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: Review CoreDNS logs and Corefile configuration, then restore a valid DNS Deployment.
Question 462
Consider the following Kubernetes administration case: NetworkPolicy objects are accepted but all supposedly blocked traffic is still allowed. Which principle BEST explains the intended solution?
- CoreDNS typically forwards non-cluster queries to configured upstream resolvers.
- The NetworkPolicy API requires a network plugin that enforces policies.
- Gateway listener constraints and route parent relationships determine attachment.
- Service selectors and readiness determine which Pods become eligible endpoints.
Explanation
Correct Answer
B:The NetworkPolicy API requires a network plugin that enforces policies. This principle explains the targeted result. A concrete response is: Confirm the installed CNI implements policy enforcement and configure a supported policy-capable plugin.
Incorrect Answers
A:CoreDNS typically forwards non-cluster queries to configured upstream resolvers. This principle is useful for another case (Internal Service names resolve but Pods cannot resolve public domains through CoreDNS.), but does not explain the most direct solution here. The governing consideration is: The NetworkPolicy API requires a network plugin that enforces policies.
C:Gateway listener constraints and route parent relationships determine attachment. This principle is useful for another case (A Gateway exists but an HTTPRoute is not attached to its listener.), but does not explain the most direct solution here. The governing consideration is: The NetworkPolicy API requires a network plugin that enforces policies.
D:This principle is useful for another case (A Service exists but its EndpointSlice contains no addresses even though backend Pods are running.), but does not explain the most direct solution here. The NetworkPolicy API requires a network plugin that enforces policies.
Question 463
Consider the following Kubernetes administration case: An intended kubeadm worker reports kubelet swap-related startup failures. Which principle BEST explains the intended solution?
- Host prerequisites and kubelet configuration determine whether nodes can participate.
- Kubelet must not be newer than its kube-apiserver under normal supported skew rules.
- etcd client requests must authenticate to the member using compatible TLS identities.
- The CRI is the node-side interface for container lifecycle management.
Explanation
Correct Answer
A:Host prerequisites and kubelet configuration determine whether nodes can participate. This principle explains the targeted result. A concrete response is: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
Incorrect Answers
B: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. Host prerequisites and kubelet configuration determine whether nodes can participate.
C:This principle is useful for another case (etcdctl endpoint health fails on a local stacked-etcd member with a TLS handshake error.), but does not explain the most direct solution here. Host prerequisites and kubelet configuration determine whether nodes can participate.
D:This principle is useful for another case (A node image update changes the runtime socket and kubelet can no longer create containers.), but does not explain the most direct solution here. Host prerequisites and kubelet configuration determine whether nodes can participate.
Question 464
During remediation, this failure appears: A Deployment is using image v1 but needs a controlled update to image v2. Which action is the LEAST defensible?
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Review controller logs and resource status to understand reconciliation failures.
- Test connectivity from the affected Pod before redesigning all Services.
- Delete every Pod simultaneously and assume application availability.
Explanation
Correct Answer
D:Delete every Pod simultaneously and assume application availability. Deployment controllers reconcile ReplicaSets to achieve a declared desired state. A safer course is: Update the image on the Deployment and observe its rolling rollout.
Incorrect Answers
A: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: Update the image on the Deployment and observe its rolling rollout.
B: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: Update the image on the Deployment and observe its rolling rollout.
C: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: Update the image on the Deployment and observe its rolling rollout.
Question 465
During remediation, this failure appears: A new storage integration must provision volumes without modifying kubelet core code. Which action is the LEAST defensible?
- Record a rollback approach before high-impact control-plane changes.
- Apply scoped access rather than granting universal administration.
- Review controller logs and resource status to understand reconciliation failures.
- Treat the CNI plugin as a volume provisioning component.
Explanation
Correct Answer
D:Treat the CNI plugin as a volume provisioning component. CSI decouples storage provider implementation from Kubernetes core. A safer course is: Install a supported CSI driver and associated controller/node components.
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: Install a supported CSI driver and associated controller/node components.
B:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Install a supported CSI driver and associated controller/node components.
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: Install a supported CSI driver and associated controller/node components.
Question 466
During remediation, this failure appears: A batch import must succeed once and then stop rather than keep restarting forever. Which action is the LEAST defensible?
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Create a Deployment to keep a one-time import process running indefinitely.
- Verify the target cluster and namespace before mutating resources.
- Apply scoped access rather than granting universal administration.
Explanation
Correct Answer
B:Create a Deployment to keep a one-time import process running indefinitely. Jobs manage finite tasks with completion semantics. A safer course is: Use a Job with restart and backoff settings appropriate for finite completion.
Incorrect Answers
A: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: Use a Job with restart and backoff settings appropriate for finite completion.
C: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 a Job with restart and backoff settings appropriate for finite completion.
D:Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Use a Job with restart and backoff settings appropriate for finite completion.
Question 467
An operations team tests its response to this finding: A node reports high CPU use and latency spikes while the scheduler keeps assigning Pods. Which outcome most clearly establishes that the fix worked?
- One healthy instance holds the expected lease and scheduling resumes.
- The team can reconstruct which failure came first and validate the repaired stage.
- The identified workload and node saturation explain latency and a targeted capacity change restores headroom.
- The API server static Pod starts and kubectl connectivity returns.
Explanation
Correct Answer
C:The identified workload and node saturation explain latency and a targeted capacity change restores headroom. The corresponding action is: Measure node and Pod CPU usage and correlate resource requests with workload demand before adjusting capacity.
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: The identified workload and node saturation explain latency and a targeted capacity change restores headroom.
B:The team can reconstruct which failure came first and validate the repaired stage. This is evidence for a separate case (An incident responder sees Pod recreation, image pull and readiness failures and needs the order of events.), not for the target problem. An appropriate validation would be: The identified workload and node saturation explain latency and a targeted capacity change restores headroom.
D:The API server static Pod starts and kubectl connectivity returns. This is evidence for a separate case (All kubectl API calls fail following an edit to kube-apiserver static Pod YAML.), not for the target problem. An appropriate validation would be: The identified workload and node saturation explain latency and a targeted capacity change restores headroom.
Question 468
During remediation, this failure appears: An internal backend should only be reachable from inside the cluster through one stable address. Which action is the LEAST defensible?
- Use a public LoadBalancer for a backend required to be private.
- Inspect Pod and component events before changing unrelated resources.
- Record a rollback approach before high-impact control-plane changes.
- Choose a storage access mode backed by real CSI capabilities.
Explanation
Correct Answer
A:Use a public LoadBalancer for a backend required to be private. ClusterIP is the basic internal Service exposure model. A safer course is: Use a ClusterIP Service selecting the backend Pods.
Incorrect Answers
B: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: Use a ClusterIP Service selecting the backend Pods.
C:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Use a ClusterIP Service selecting the backend Pods.
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: Use a ClusterIP Service selecting the backend Pods.
Question 469
Select TWO technically sound statements for this situation, covering remediation and validation: Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.
- Remediation: Inspect certificate expirations and plan safe renewal with component restart and verification as necessary.
- Remediation: Restart kube-apiserver repeatedly instead of installing a CNI.
- Validation: Snapshot status is readable and the backup is protected and recoverable.
- Remediation: Install and configure a CNI compatible with the cluster Pod CIDR.
- Validation: Nodes transition to Ready and cross-node Pod connectivity becomes available.
Explanation
Correct Answers
D:Remediation: Install and configure a CNI compatible with the cluster Pod CIDR. The remedy targets the reported failure rather than a different subsystem. A working control plane alone does not provide Pod networking.
E:Validation: Nodes transition to Ready and cross-node Pod connectivity becomes available. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
A:Remediation: Inspect certificate expirations and plan safe renewal with component restart and verification as necessary. This action targets a different condition (An API client certificate is about to expire on a kubeadm managed control plane.), not this reported failure: Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.
B:Remediation: Restart kube-apiserver repeatedly instead of installing a CNI. This is the unsafe shortcut for the case, not an acceptable intervention. A working control plane alone does not provide Pod networking.
C:Validation: Snapshot status is readable and the backup is protected and recoverable. This evidence applies to a different condition (A stacked-etcd control plane needs a recoverable snapshot before upgrade.), and would not verify this target fix: Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.
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.