CNCF CKA Practice Test 77
Question 760
To avoid guessing about this fault, what should be inspected first? An Ingress resource has an address but no controller is processing its rules.
- Inspect kubectl get ingressclass and controller Pod logs.
- Inspect Gateway listeners and TLS Secret in the certificate reference namespace.
- Inspect kubectl get pods -n kube-system -l k8s-app=kube-dns and CoreDNS logs.
- Inspect kubectl describe ingress and test HTTP requests with Host and path headers.
Explanation
Correct Answer
A:Inspect kubectl get ingressclass and controller Pod logs. This diagnostic examines the relevant resource or subsystem. Ingress objects need a supporting controller to implement routing. The validating result would be: Ingress controller reconciliation configures the expected backend route.
Incorrect Answers
B:Inspect Gateway listeners and TLS Secret in the certificate reference namespace. This check is appropriate to the separate problem (A Gateway HTTPS listener reports invalid certificate references.), but it is not the direct diagnostic for the described failure. The relevant check is: Inspect kubectl get ingressclass and controller Pod logs.
C:Inspect kubectl get pods -n kube-system -l k8s-app=kube-dns and CoreDNS logs. This check is appropriate to the separate problem (All Pods lose service-name resolution after the CoreDNS Deployment becomes unavailable.), but it is not the direct diagnostic for the described failure. The relevant check is: Inspect kubectl get ingressclass and controller Pod logs.
D:This check is appropriate to the separate problem (Traffic to /api is routed to the frontend Service rather than the API backend.), but it is not the direct diagnostic for the described failure. Inspect kubectl describe ingress and test HTTP requests with Host and path headers.
Question 761
During remediation, this failure appears: A Gateway API team wants to send 10 percent traffic to canary and 90 percent to stable. Which action is the LEAST defensible?
- Choose a storage access mode backed by real CSI capabilities.
- Record a rollback approach before high-impact control-plane changes.
- Set backend replicas to 9 and 1 and assume exactly the intended request weights.
- Test connectivity from the affected Pod before redesigning all Services.
Explanation
Correct Answer
C:Set backend replicas to 9 and 1 and assume exactly the intended request weights. Weighted HTTPRoute backends can express proportional request routing when supported. A safer course is: Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
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: Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
B:Record a rollback approach before high-impact control-plane changes. Deliberate rollback improves operational recoverability. For the stated case, a focused correction is: Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
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: Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
Question 762
During cluster maintenance, an engineer finds this problem: A manually created PV is available but a PVC specifying an unmatched StorageClass never binds. Which next action is technically justified?
- Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized.
- Enable supported volume expansion and increase PVC requested storage safely.
- Create or reference a compatible PVC in the same namespace as the Pod.
- Align the claim and PV storageClassName and required volume characteristics for static binding.
Explanation
Correct Answer
D:Align the claim and PV storageClassName and required volume characteristics for static binding. This correction targets the specific failure. Static PV-PVC binding considers class, capacity and access requirements. A successful result is: The expected PV binds to the intended PVC without unrelated provisioning.
Incorrect Answers
A:Use a StorageClass and PV reclaimPolicy Delete where lifecycle deletion is authorized. This procedure belongs to a different Kubernetes condition (A temporary dynamically provisioned data volume should be removed with its claim.). It does not directly resolve the observed failure. The targeted action is: Align the claim and PV storageClassName and required volume characteristics for static binding.
B:Enable supported volume expansion and increase PVC requested storage safely. This procedure belongs to a different Kubernetes condition (A PVC is nearly full and its backing CSI driver supports growth.). It does not directly resolve the observed failure. The targeted action is: Align the claim and PV storageClassName and required volume characteristics for static binding.
C:This procedure belongs to a different Kubernetes condition (A Pod reports FailedMount because its referenced PVC exists in a different namespace.).
Question 763
Select TWO technically sound statements for this situation, covering remediation and validation: The control plane is upgraded but one worker still runs an older supported kubelet.
- Remediation: Force downgrade the API server to match an older kubelet.
- Validation: The worker rejoins Ready with the approved kubelet version and scheduled workloads recover.
- Validation: A permitted node read succeeds and a node mutation is forbidden.
- Remediation: Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation.
- Remediation: Perform an isolated restore rehearsal with documented credentials, manifest paths and validation checks.
Explanation
Correct Answers
B:Validation: The worker rejoins Ready with the approved kubelet version and scheduled workloads recover. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Drain the worker, upgrade kubeadm and kubelet components appropriately, then uncordon after validation. The remedy targets the reported failure rather than a different subsystem. Worker component upgrades follow control-plane upgrades and require deliberate node handling.
Incorrect Answers
A:Remediation: Force downgrade the API server to match an older kubelet. This is the unsafe shortcut for the case, not an acceptable intervention. Worker component upgrades follow control-plane upgrades and require deliberate node handling.
C:Validation: A permitted node read succeeds and a node mutation is forbidden. This evidence applies to a different condition (A monitoring integration needs cluster-wide read-only node information.), and would not verify this target fix: The control plane is upgraded but one worker still runs an older supported kubelet.
E:Remediation: Perform an isolated restore rehearsal with documented credentials, manifest paths and validation checks. This action targets a different condition (A team has an etcd snapshot but no rehearsed recovery procedure.), not this reported failure: The control plane is upgraded but one worker still runs an older supported kubelet.
Question 764
Select TWO technically sound statements for this situation, covering remediation and validation: A cleanup should run nightly but prevent overlapping executions.
- Validation: Scheduled Jobs launch on time and do not overlap while a previous run remains active.
- Validation: The container survives normal slow initialization then receives ongoing liveness checks.
- Remediation: Assume concurrencyPolicy Allow automatically prevents overlap.
- Remediation: Create a CronJob with schedule and concurrencyPolicy Forbid if overlap is unsafe.
- Remediation: Use preferredDuringSchedulingIgnoredDuringExecution node affinity with weights.
Explanation
Correct Answers
A:Validation: Scheduled Jobs launch on time and do not overlap while a previous run remains active. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Create a CronJob with schedule and concurrencyPolicy Forbid if overlap is unsafe. The remedy targets the reported failure rather than a different subsystem. CronJob concurrency policy controls overlapping scheduled executions.
Incorrect Answers
B:Validation: The container survives normal slow initialization then receives ongoing liveness checks. This evidence applies to a different condition (A Java application needs two minutes to initialize but liveness checks restart it at 30 seconds.), and would not verify this target fix: A cleanup should run nightly but prevent overlapping executions.
C:Remediation: Assume concurrencyPolicy Allow automatically prevents overlap. This is the unsafe shortcut for the case, not an acceptable intervention. CronJob concurrency policy controls overlapping scheduled executions.
E:Remediation: Use preferredDuringSchedulingIgnoredDuringExecution node affinity with weights. This action targets a different condition (A workload prefers zone-b for latency but can operate in other zones.), not this reported failure: A cleanup should run nightly but prevent overlapping executions.
Question 765
An operations team tests its response to this finding: Only Pods selected by a new egress policy fail DNS while other Pods resolve normally. Which outcome most clearly establishes that the fix worked?
- The API server static Pod starts and kubectl connectivity returns.
- Affected Pods resolve cluster and external names that policy permits.
- HPA displays metrics and scales according to observed demand.
- The identified workload and node saturation explain latency and a targeted capacity change restores headroom.
Explanation
Correct Answer
B:Affected Pods resolve cluster and external names that policy permits. The corresponding action is: Allow required DNS egress to the cluster resolver while retaining intended isolation.
Incorrect Answers
A: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: Affected Pods resolve cluster and external names that policy permits.
C:HPA displays metrics and scales according to observed demand. This is evidence for a separate case (HPA displays <unknown> target metrics while replicas never scale.), not for the target problem. An appropriate validation would be: Affected Pods resolve cluster and external names that policy permits.
D:The identified workload and node saturation explain latency and a targeted capacity change restores headroom. This is evidence for a separate case (A node reports high CPU use and latency spikes while the scheduler keeps assigning Pods.), not for the target problem. An appropriate validation would be: Affected Pods resolve cluster and external names that policy permits.
Question 766
An engineer needs to justify a change for this issue: A recent Deployment image change causes requests to fail and the previous revision worked. Which technical reason is MOST relevant?
- Init containers sequence prerequisite work before ordinary containers.
- Readiness probes gate traffic eligibility, not whether the container process exists.
- QoS affects eviction priority but does not guarantee protection from all failures.
- Deployment rollout history can support a controlled rollback without rebuilding manifests.
Explanation
Correct Answer
D:Deployment rollout history can support a controlled rollback without rebuilding manifests. This principle explains the targeted result. A concrete response is: Roll back the Deployment to a known healthy revision using rollout undo.
Incorrect Answers
A:This principle is useful for another case (An application fails because its database initialization must happen before the main process.), but does not explain the most direct solution here.
B:This principle is useful for another case (A container is running but cannot serve requests until a cache is primed.), but does not explain the most direct solution here. Deployment rollout history can support a controlled rollback without rebuilding manifests.
C:This principle is useful for another case (An important Pod is being evicted during node memory pressure.), but does not explain the most direct solution here. Deployment rollout history can support a controlled rollback without rebuilding manifests.
Question 767
During an operational review, this fact emerges: An admin changed RoleBindings and wants proof the operator cannot create deployments. Which Kubernetes behavior MOST directly governs the result?
- Renewed certificate files may not be reloaded until components restart.
- Cordon changes scheduling eligibility but does not terminate current Pods.
- Authorization decisions depend on effective bindings, subjects and scope, not merely Role text.
- Kustomize composes declarative resources without requiring separate duplicated manifests.
Explanation
Correct Answer
C:A concrete response is: Check effective permissions using impersonation rather than relying on the YAML file alone.
Incorrect Answers
A:This principle is useful for another case (After a certificate renewal, an old static Pod process still uses expired credentials.), but does not explain the most direct solution here. Authorization decisions depend on effective bindings, subjects and scope, not merely Role text.
B:This principle is useful for another case (An administrator cordoned a node but existing Pods are still running on it.), but does not explain the most direct solution here. Authorization decisions depend on effective bindings, subjects and scope, not merely Role text.
D:This principle is useful for another case (Two clusters need the same base manifest but different replica counts and labels.), but does not explain the most direct solution here. Authorization decisions depend on effective bindings, subjects and scope, not merely Role text.
Question 768
Following this Kubernetes scenario, an operator validates remediation: Three replicas should avoid sharing one host to improve failure tolerance. Which measurable outcome shows success?
- Main application containers start only after initContainers complete successfully.
- Replicas occupy separate suitable nodes when capacity allows.
- The rollout maintains the intended number of available replicas at each transition.
- The application reads the intended namespace configuration and the Pod references the ConfigMap.
Explanation
Correct Answer
B:Replicas occupy separate suitable nodes when capacity allows. The corresponding action is: Configure pod anti-affinity using appropriate topologyKey and workload labels.
Incorrect Answers
A:Main application containers start only after initContainers complete successfully. This is evidence for a separate case (An application fails because its database initialization must happen before the main process.), not for the target problem. An appropriate validation would be: Replicas occupy separate suitable nodes when capacity allows.
C:The rollout maintains the intended number of available replicas at each transition. This is evidence for a separate case (A Deployment must update without taking all replicas offline during rollout.), not for the target problem. An appropriate validation would be: Replicas occupy separate suitable nodes when capacity allows.
D:The application reads the intended namespace configuration and the Pod references the ConfigMap. This is evidence for a separate case (A workload requires a nonsecret configuration file that varies per namespace.), not for the target problem. An appropriate validation would be: Replicas occupy separate suitable nodes when capacity allows.
Question 769
During an operational review, this fact emerges: Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace. Which Kubernetes behavior MOST directly governs the result?
- Host-networked Pods may need an explicit cluster-aware DNS policy.
- NetworkPolicy isolation is additive and defaults to allow without selecting policies.
- CoreDNS typically forwards non-cluster queries to configured upstream resolvers.
- Weighted HTTPRoute backends can express proportional request routing when supported.
Explanation
Correct Answer
B:NetworkPolicy isolation is additive and defaults to allow without selecting policies. This principle explains the targeted result. A concrete response is: Create a default-deny ingress NetworkPolicy for the sensitive namespace, then allow required traffic.
Incorrect Answers
A:This principle is useful for another case (A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration.), but does not explain the most direct solution here. NetworkPolicy isolation is additive and defaults to allow without selecting policies.
C: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. NetworkPolicy isolation is additive and defaults to allow without selecting policies.
D:This principle is useful for another case (A Gateway API team wants to send 10 percent traffic to canary and 90 percent to stable.), but does not explain the most direct solution here. NetworkPolicy isolation is additive and defaults to allow without selecting policies.
Question 770
Consider the following Kubernetes administration case: A Pod is Pending with an untolerated NoSchedule taint despite free CPU. Which principle BEST explains the intended solution?
- External egress requires network routing beyond internal Service discovery.
- Taints and tolerations affect eligibility separately from CPU capacity.
- Malformed DNS plugin configuration can disable cluster name resolution.
- Kubernetes controllers implement desired-state reconciliation.
Explanation
Correct Answer
B:Taints and tolerations affect eligibility separately from CPU capacity. This principle explains the targeted result. A concrete response is: Apply an approved toleration or choose an eligible untainted node.
Incorrect Answers
A:External egress requires network routing beyond internal Service discovery. This principle is useful for another case (Pods reach cluster Services but cannot contact external APIs from private node networks.), but does not explain the most direct solution here. The governing consideration is: Taints and tolerations affect eligibility separately from CPU capacity.
C:Malformed DNS plugin configuration can disable cluster name resolution. This principle is useful for another case (Pods cannot resolve cluster Service names and CoreDNS Pods are CrashLoopBackOff.), but does not explain the most direct solution here. The governing consideration is: Taints and tolerations affect eligibility separately from CPU capacity.
D:Kubernetes controllers implement desired-state reconciliation. This principle is useful for another case (ReplicaSets stop creating replacement Pods after kube-controller-manager crashes.), but does not explain the most direct solution here. The governing consideration is: Taints and tolerations affect eligibility separately from CPU capacity.