CNCF CKA Practice Test 46
Question 450
An engineer reports that this problem was fixed: A Deployment must update without taking all replicas offline during rollout. What specific result should an independent reviewer expect?
- The stuck container is restarted and subsequently returns to Ready.
- The rollout maintains the intended number of available replicas at each transition.
- HPA displays utilization rather than unknown and computes a recommendation.
- Healthy replicas return to the previous image and readiness is restored.
Explanation
Correct Answer
B:The rollout maintains the intended number of available replicas at each transition. This outcome shows the required behavior after correction. The corresponding action is: Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.
Incorrect Answers
A:The stuck container is restarted and subsequently returns to Ready. This is evidence for a separate case (An HTTP server occasionally deadlocks while its process remains running.), not for the target problem. An appropriate validation would be: The rollout maintains the intended number of available replicas at each transition.
C:HPA displays utilization rather than unknown and computes a recommendation. This is evidence for a separate case (HPA reports unknown CPU utilization although Pods are running.), not for the target problem. An appropriate validation would be: The rollout maintains the intended number of available replicas at each transition.
D:Healthy replicas return to the previous image and readiness is restored. This is evidence for a separate case (A recent Deployment image change causes requests to fail and the previous revision worked.), not for the target problem. An appropriate validation would be: The rollout maintains the intended number of available replicas at each transition.
Question 451
Select THREE technically appropriate statements spanning action, explanation and expected result for this case: A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules.
- Remediation: Hard-code a PV zone that conflicts with all eligible nodes.
- Remediation: Use a compatible StorageClass with volumeBindingMode WaitForFirstConsumer.
- Remediation: Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
- Validation: New eligible PVCs select the intended default class.
- Validation: Volume provisioning considers the selected Pod scheduling topology.
- Explanation: Delayed binding coordinates placement between storage availability and Pod scheduling.
Explanation
Correct Answers
B:Remediation: Use a compatible StorageClass with volumeBindingMode WaitForFirstConsumer. The remedy targets the reported failure rather than a different subsystem. Delayed binding coordinates placement between storage availability and Pod scheduling.
E:Validation: Volume provisioning considers the selected Pod scheduling topology. This result verifies the behavior the remediation is supposed to restore.
F:Explanation: Delayed binding coordinates placement between storage availability and Pod scheduling. This is the technical mechanism supporting the recommended operation.
Incorrect Answers
A:Remediation: Hard-code a PV zone that conflicts with all eligible nodes. This is the unsafe shortcut for the case, not an acceptable intervention. Delayed binding coordinates placement between storage availability and Pod scheduling.
C:Remediation: Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized. This action targets a different condition (A temporary dynamically provisioned data volume should be removed with its claim.), not this reported failure: A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules.
D:Validation: New eligible PVCs select the intended default class. This evidence applies to a different condition (New claims omit storageClassName and use an unintended slow storage provider.), and would not verify this target fix: A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules.
Question 452
An engineer reports that this problem was fixed: A custom resource exists but a controller is not reconciling its desired state. What specific result should an independent reviewer expect?
- The operator processes the custom resource and reaches the expected reconciled status.
- kubeadm uses the correct runtime endpoint and container creation succeeds.
- Workers reach the API server and successfully complete the trusted join workflow.
- A recovered test control plane reads expected resources and the plan records measured recovery steps.
Explanation
Correct Answer
A:The operator processes the custom resource and reaches the expected reconciled status. The corresponding action is: Inspect the operator Deployment, permissions, watched namespace and reconciliation events.
Incorrect Answers
B:Kubeadm uses the correct runtime endpoint and container creation succeeds. This is evidence for a separate case (kubeadm reports multiple CRI sockets and cannot select the runtime.), not for the target problem. An appropriate validation would be: The operator processes the custom resource and reaches the expected reconciled status.
C:Workers reach the API server and successfully complete the trusted join workflow. This is evidence for a separate case (A kubeadm init uses an advertise address unreachable from joining nodes.), not for the target problem. An appropriate validation would be: The operator processes the custom resource and reaches the expected reconciled status.
D:A recovered test control plane reads expected resources and the plan records measured recovery steps. This is evidence for a separate case (A team has an etcd snapshot but no rehearsed recovery procedure.), not for the target problem. An appropriate validation would be: The operator processes the custom resource and reaches the expected reconciled status.
Question 453
An administrator reviews several possible responses to this condition: Traffic reaches only one replica because two backend Pods have failing readiness. Which option creates an avoidable failure?
- Add replicas without checking whether they ever become Ready.
- Verify the target cluster and namespace before mutating resources.
- Use a staged rollout and observe readiness before full deployment.
- Confirm actual node conditions and allocatable resources before scheduling changes.
Explanation
Correct Answer
A:Add replicas without checking whether they ever become Ready. EndpointSlice endpoint conditions reflect backend readiness and eligibility. A safer course is: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
Incorrect Answers
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: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
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: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
D: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: Repair readiness conditions and confirm EndpointSlice endpoint readiness.
Question 454
A platform engineer receives this incident: A workload prefers zone-b for latency but can operate in other zones. Which change should be made first after validating the facts?
- Use an initContainer for prerequisite checks or initialization steps.
- Use preferredDuringSchedulingIgnoredDuringExecution node affinity with weights.
- Adjust realistic resource requests or add capacity before scheduling.
- Configure pod anti-affinity using appropriate topologyKey and workload labels.
Explanation
Correct Answer
B:Use preferredDuringSchedulingIgnoredDuringExecution node affinity with weights. This correction targets the specific failure. Preferred affinity guides placement without enforcing a hard constraint. A successful result is: The scheduler favors the intended zone when feasible but still permits alternatives.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (An application fails because its database initialization must happen before the main process.). Use an initContainer for prerequisite checks or initialization steps.
C:Adjust realistic resource requests or add capacity before scheduling. This procedure belongs to a different Kubernetes condition (A Pod is Pending because requested memory exceeds all node allocatable resources.). It does not directly resolve the observed failure. The targeted action is: Use preferredDuringSchedulingIgnoredDuringExecution node affinity with weights.
D:Configure pod anti-affinity using appropriate topologyKey and workload labels. This procedure belongs to a different Kubernetes condition (Three replicas should avoid sharing one host to improve failure tolerance.). It does not directly resolve the observed failure. The targeted action is: Use preferredDuringSchedulingIgnoredDuringExecution node affinity with weights.
Question 455
A CKA learner must investigate the following: A team stores a critical database file in an emptyDir volume and loses it after Pod replacement. Which command or check supplies the MOST direct diagnostic evidence?
- Inspect PV accessModes and VolumeAttachment failures during Pod scheduling.
- Run kubectl describe pod -n application and kubectl get pvc -n application.
- Inspect CSI driver capabilities and test mounts from Pods on separate nodes.
- Compare the Pod's volume source with PVC-backed volume configuration.
Explanation
Correct Answer
D:Compare the Pod's volume source with PVC-backed volume configuration. This diagnostic examines the relevant resource or subsystem. emptyDir is tied to a Pod lifetime and is not durable storage. The validating result would be: Database files survive Pod recreation and remount of the persistent volume.
Incorrect Answers
A:This check is appropriate to the separate problem (Two Pods on different nodes try to attach the same RWO block volume and one remains Pending.), but it is not the direct diagnostic for the described failure. Compare the Pod's volume source with PVC-backed volume configuration.
B:This check is appropriate to the separate problem (A Pod reports FailedMount because its referenced PVC exists in a different namespace.), but it is not the direct diagnostic for the described failure. Compare the Pod's volume source with PVC-backed volume configuration.
C:This check is appropriate to the separate problem (A shared file workload requires concurrent writes from multiple nodes.), but it is not the direct diagnostic for the described failure.
Question 456
During an operational review, this fact emerges: A dual-stack cluster Service was created with only IPv4 despite an IPv6 requirement. Which Kubernetes behavior MOST directly governs the result?
- CoreDNS typically forwards non-cluster queries to configured upstream resolvers.
- Kubernetes Service DNS depends on a functioning DNS service and its configuration.
- StatefulSet DNS identities require appropriate Service and Pod hostname relationships.
- Dual-stack Service allocation is constrained by cluster networking capability and IP-family policy.
Explanation
Correct Answer
D:Dual-stack Service allocation is constrained by cluster networking capability and IP-family policy. This principle explains the targeted result. A concrete response is: Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network.
Incorrect Answers
A: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. Dual-stack Service allocation is constrained by cluster networking capability and IP-family policy.
B:This principle is useful for another case (All Pods lose service-name resolution after the CoreDNS Deployment becomes unavailable.), but does not explain the most direct solution here. Dual-stack Service allocation is constrained by cluster networking capability and IP-family policy.
C:This principle is useful for another case (A StatefulSet member cannot resolve its ordinal hostname after the governing Service changed.), but does not explain the most direct solution here. Dual-stack Service allocation is constrained by cluster networking capability and IP-family policy.
Question 457
A review finds this Kubernetes issue: A shared file workload requires concurrent writes from multiple nodes. Which suggestion would make troubleshooting or security worse?
- Set accessModes RWX on a disk-only driver and assume it becomes shared storage.
- Inspect the exact Secret or ConfigMap reference without exposing credentials.
- Confirm actual node conditions and allocatable resources before scheduling changes.
- Record a rollback approach before high-impact control-plane changes.
Explanation
Correct Answer
A:Set accessModes RWX on a disk-only driver and assume it becomes shared storage. Access modes describe requested mounting capabilities but need backend support. A safer course is: Provision a storage backend and CSI driver that actually support ReadWriteMany.
Incorrect Answers
B: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: Provision a storage backend and CSI driver that actually support ReadWriteMany.
C: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: Provision a storage backend and CSI driver that actually support ReadWriteMany.
D:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Provision a storage backend and CSI driver that actually support ReadWriteMany.
Question 458
The team is reviewing this failure mode: A Pod in test is unintentionally accessing the API with its default ServiceAccount. Which statement explains WHY the recommended control works?
- A backup without verified restoration cannot demonstrate recoverability.
- A working control plane alone does not provide Pod networking.
- ServiceAccount token exposure should match a workload's API access requirements.
- The CA pin guards bootstrap against connecting to an unintended cluster.
Explanation
Correct Answer
C:ServiceAccount token exposure should match a workload's API access requirements. This principle explains the targeted result. A concrete response is: Assign a dedicated ServiceAccount and disable token automount if API access is unnecessary.
Incorrect Answers
A:A backup without verified restoration cannot demonstrate recoverability. This principle is useful for another case (A team has an etcd snapshot but no rehearsed recovery procedure.), but does not explain the most direct solution here. The governing consideration is: ServiceAccount token exposure should match a workload's API access requirements.
B:This principle is useful for another case (Newly initialized cluster has a healthy API server but all workers remain NotReady with network plugin not initialized.), but does not explain the most direct solution here. ServiceAccount token exposure should match a workload's API access requirements.
D:This principle is useful for another case (A worker join fails with a discovery CA certificate hash mismatch.), but does not explain the most direct solution here. ServiceAccount token exposure should match a workload's API access requirements.
Question 459
A reviewer wants proof that this issue was corrected: An external HTTP service needs an infrastructure-managed public listener. Which observed result is the STRONGEST evidence?
- Repeated traffic from one source IP is directed consistently while healthy endpoints exist.
- The Service obtains an external address and routes to ready backend Pods.
- Only the intended client Pods in team-a can reach the protected API.
- In-cluster clients reach the Service while no direct external listener is created.
Explanation
Correct Answer
B:The Service obtains an external address and routes to ready backend Pods. The corresponding action is: Use a LoadBalancer Service backed by a working provider integration.
Incorrect Answers
A:Repeated traffic from one source IP is directed consistently while healthy endpoints exist. This is evidence for a separate case (A legacy client needs repeated requests to tend to the same Pod behind one Service.), not for the target problem. An appropriate validation would be: The Service obtains an external address and routes to ready backend Pods.
C: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: The Service obtains an external address and routes to ready backend Pods.
D:In-cluster clients reach the Service while no direct external listener is created. This is evidence for a separate case (An internal backend should only be reachable from inside the cluster through one stable address.), not for the target problem. An appropriate validation would be: The Service obtains an external address and routes to ready backend Pods.
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.