CNCF CKA Practice Test 54
Question 530
An engineer needs to justify a change for this issue: After a default-deny NetworkPolicy, a required API-to-database connection times out. Which technical reason is MOST relevant?
- Node readiness is driven by kubelet heartbeats and node health signals.
- NetworkPolicies are additive allow lists once isolation applies.
- External egress requires network routing beyond internal Service discovery.
- Healthy endpoints do not compensate for incorrect TCP/UDP port mapping.
Explanation
Correct Answer
B:NetworkPolicies are additive allow lists once isolation applies. This principle explains the targeted result. A concrete response is: Add a specific policy allowing the expected source and destination labels and port.
Incorrect Answers
A:Node readiness is driven by kubelet heartbeats and node health signals. This principle is useful for another case (A worker unexpectedly becomes NotReady following a network maintenance event.), but does not explain the most direct solution here. The governing consideration is: NetworkPolicies are additive allow lists once isolation applies.
C: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: NetworkPolicies are additive allow lists once isolation applies.
D:This principle is useful for another case (A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080.), but does not explain the most direct solution here. NetworkPolicies are additive allow lists once isolation applies.
Question 531
In a Kubernetes cluster, the following condition is observed: After a malformed YAML edit, kubelet stops running kube-controller-manager. Which remediation MOST directly addresses it?
- Diagnose RBAC authorization and effective identity rather than treating it as a network outage.
- Diagnose valid kubelet client/server certificates and repair credential rotation through supported mechanisms.
- Identify excessive process counts and correct the offending workload or node capacity.
- Validate static Pod YAML syntax and restore the last correct manifest version.
Explanation
Correct Answer
D:Validate static Pod YAML syntax and restore the last correct manifest version. This correction targets the specific failure. Invalid static Pod manifests prevent kubelet from reconciling critical control-plane components. A successful result is: The static Pod reappears and the component starts successfully.
Incorrect Answers
A:Diagnose RBAC authorization and effective identity rather than treating it as a network outage. This procedure belongs to a different Kubernetes condition (An operator receives HTTP 403 Forbidden from the API server when listing Secrets.). It does not directly resolve the observed failure. The targeted action is: Validate static Pod YAML syntax and restore the last correct manifest version.
B:Diagnose valid kubelet client/server certificates and repair credential rotation through supported mechanisms. This procedure belongs to a different Kubernetes condition (Kubelet logs show TLS certificate errors after a node credential rotation.). It does not directly resolve the observed failure. The targeted action is: Validate static Pod YAML syntax and restore the last correct manifest version.
C:Identify excessive process counts and correct the offending workload or node capacity. This procedure belongs to a different Kubernetes condition (A worker is Ready but reports PIDPressure and new processes fail to launch.). It does not directly resolve the observed failure. The targeted action is: Validate static Pod YAML syntax and restore the last correct manifest version.
Question 532
An administrator is investigating this situation: A Gateway API team wants to send 10 percent traffic to canary and 90 percent to stable. Which action BEST resolves the underlying issue?
- Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
- Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network.
- Inspect CoreDNS forward configuration, upstream resolver reachability and network policies.
- Set a valid ingressClassName for an installed and healthy Ingress controller.
Explanation
Correct Answer
A:Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes. This correction targets the specific failure. Weighted HTTPRoute backends can express proportional request routing when supported. A successful result is: A representative request sample approximates the intended distribution between healthy backends.
Incorrect Answers
B:Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network.
C:Inspect CoreDNS forward configuration, upstream resolver reachability and network policies. This procedure belongs to a different Kubernetes condition (Internal Service names resolve but Pods cannot resolve public domains through CoreDNS.). It does not directly resolve the observed failure. The targeted action is: Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
D:Set a valid ingressClassName for an installed and healthy Ingress controller. This procedure belongs to a different Kubernetes condition (An Ingress resource has an address but no controller is processing its rules.). It does not directly resolve the observed failure. The targeted action is: Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
Question 533
Select TWO technically sound statements for this situation, covering remediation and validation: A stacked-etcd cluster has lost quorum after too many control-plane failures.
- Validation: etcd regains a healthy majority and API writes succeed without divergent state.
- Remediation: Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members.
- Validation: The etcd member starts from restored data and expected Kubernetes API resources reappear.
- Remediation: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
- Remediation: Delete surviving etcd members to force a new leader without preserving recovery evidence.
Explanation
Correct Answers
A:Validation: etcd regains a healthy majority and API writes succeed without divergent state. This result verifies the behavior the remediation is supposed to restore.
B:Remediation: Recover quorum using a documented etcd recovery plan rather than repeatedly restarting surviving members. The remedy targets the reported failure rather than a different subsystem. Consensus systems require quorum; uncontrolled member recreation risks state loss.
Incorrect Answers
C:Validation: The etcd member starts from restored data and expected Kubernetes API resources reappear. This evidence applies to a different condition (An etcd snapshot is valid but the restored control plane is reading an empty data directory.), and would not verify this target fix: A stacked-etcd cluster has lost quorum after too many control-plane failures.
D:Remediation: Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash. This action targets a different condition (A worker join fails with a discovery CA certificate hash mismatch.), not this reported failure: A stacked-etcd cluster has lost quorum after too many control-plane failures.
E:Remediation: Delete surviving etcd members to force a new leader without preserving recovery evidence. This is the unsafe shortcut for the case, not an acceptable intervention. Consensus systems require quorum; uncontrolled member recreation risks state loss.
Question 534
An engineer needs to justify a change for this issue: An application fails because its database initialization must happen before the main process. Which technical reason is MOST relevant?
- StatefulSets are suited to ordered, identity-aware stateful workloads.
- RollingUpdate availability and surge settings govern the rate of replica replacement.
- Init containers sequence prerequisite work before ordinary containers.
- Taints repel Pods and tolerations allow consideration but do not force placement.
Explanation
Correct Answer
C:Init containers sequence prerequisite work before ordinary containers. This principle explains the targeted result. A concrete response is: Use an initContainer for prerequisite checks or initialization steps.
Incorrect Answers
A:StatefulSets are suited to ordered, identity-aware stateful workloads. This principle is useful for another case (Database replicas require stable identities and persistent storage across rescheduling.), but does not explain the most direct solution here. The governing consideration is: Init containers sequence prerequisite work before ordinary containers.
B:RollingUpdate availability and surge settings govern the rate of replica replacement. This principle is useful for another case (A Deployment must update without taking all replicas offline during rollout.), but does not explain the most direct solution here. The governing consideration is: Init containers sequence prerequisite work before ordinary containers.
D:This principle is useful for another case (A special node has NoSchedule taint and a permitted Pod remains Pending.), but does not explain the most direct solution here. Taints repel Pods and tolerations allow consideration but do not force placement.
Question 535
Consider the following Kubernetes administration case: A container is running but cannot serve requests until a cache is primed. Which principle BEST explains the intended solution?
- Liveness probes trigger container recovery when the application cannot progress.
- Readiness probes gate traffic eligibility, not whether the container process exists.
- Scheduling uses requests and allocatable capacity, not current free RAM alone.
- Container environment variables are set at start and do not update in place.
Explanation
Correct Answer
B:Readiness probes gate traffic eligibility, not whether the container process exists. This principle explains the targeted result. A concrete response is: Configure a readinessProbe that tests the actual application readiness endpoint.
Incorrect Answers
A:Liveness probes trigger container recovery when the application cannot progress. This principle is useful for another case (An HTTP server occasionally deadlocks while its process remains running.), but does not explain the most direct solution here. The governing consideration is: Readiness probes gate traffic eligibility, not whether the container process exists.
C:This principle is useful for another case (A Pod is Pending because requested memory exceeds all node allocatable resources.), but does not explain the most direct solution here.
D:This principle is useful for another case (A Deployment consumes a ConfigMap through env vars and existing Pods still have old values.), but does not explain the most direct solution here. Readiness probes gate traffic eligibility, not whether the container process exists.
Question 536
An operations team tests its response to this finding: A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi. Which outcome most clearly establishes that the fix worked?
- The PVC becomes Bound to a compatible volume and its Pod can mount it.
- The Pod's volume mounts successfully with its namespace-local claim.
- Deleting the PVC does not automatically delete the underlying retained storage.
- New eligible PVCs select the intended default class.
Explanation
Correct Answer
A:The PVC becomes Bound to a compatible volume and its Pod can mount it. The corresponding action is: Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
Incorrect Answers
B:The Pod's volume mounts successfully with its namespace-local claim. This is evidence for a separate case (A Pod reports FailedMount because its referenced PVC exists in a different namespace.), not for the target problem. An appropriate validation would be: The PVC becomes Bound to a compatible volume and its Pod can mount it.
C:Deleting the PVC does not automatically delete the underlying retained storage. This is evidence for a separate case (A StatefulSet is decommissioned but its underlying audit volume must remain for investigation.), not for the target problem. An appropriate validation would be: The PVC becomes Bound to a compatible volume and its Pod can mount it.
D:New eligible PVCs select the intended default class. This is evidence for a separate case (New claims omit storageClassName and use an unintended slow storage provider.), not for the target problem. An appropriate validation would be: The PVC becomes Bound to a compatible volume and its Pod can mount it.
Question 537
Select TWO technically sound statements for this situation, covering remediation and validation: A monitoring integration needs cluster-wide read-only node information.
- Validation: Health checks succeed without skipping TLS verification.
- Remediation: Create a Role in default and assume it covers every node.
- Validation: A permitted node read succeeds and a node mutation is forbidden.
- Remediation: Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
- Remediation: Bind a narrowly scoped Role to the controller ServiceAccount in team-a.
Explanation
Correct Answers
C:Validation: A permitted node read succeeds and a node mutation is forbidden. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles. The remedy targets the reported failure rather than a different subsystem. Nodes are cluster-scoped API resources; a namespaced Role alone cannot grant access to them.
Incorrect Answers
A:Validation: Health checks succeed without skipping TLS verification. This evidence applies to a different condition (etcdctl endpoint health fails on a local stacked-etcd member with a TLS handshake error.), and would not verify this target fix: A monitoring integration needs cluster-wide read-only node information.
B:Remediation: Create a Role in default and assume it covers every node. This is the unsafe shortcut for the case, not an acceptable intervention. Nodes are cluster-scoped API resources; a namespaced Role alone cannot grant access to them.
E:Remediation: Bind a narrowly scoped Role to the controller ServiceAccount in team-a. This action targets a different condition (A controller ServiceAccount needs to read ConfigMaps only in team-a.), not this reported failure: A monitoring integration needs cluster-wide read-only node information.
Question 538
An engineer reports that this problem was fixed: A high-availability control plane needs another control-plane node joined securely. What specific result should an independent reviewer expect?
- The kubelet starts with an explicitly supported swap setting and the node registers normally.
- kubectl recognizes the new kind and the custom resource can be admitted.
- The new node trusts and joins the expected API server without accepting an arbitrary endpoint.
- The additional control-plane node becomes Ready and control-plane static Pods are healthy.
Explanation
Correct Answer
D:The additional control-plane node becomes Ready and control-plane static Pods are healthy. The corresponding action is: Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required.
Incorrect Answers
A: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: The additional control-plane node becomes Ready and control-plane static Pods are healthy.
B:Kubectl recognizes the new kind and the custom resource can be admitted. This is evidence for a separate case (A custom resource cannot be created because the API server does not recognize its kind.), not for the target problem. An appropriate validation would be: The additional control-plane node becomes Ready and control-plane static Pods are healthy.
C:The new node trusts and joins the expected API server without accepting an arbitrary endpoint. This is evidence for a separate case (A worker join fails with a discovery CA certificate hash mismatch.), not for the target problem. An appropriate validation would be: The additional control-plane node becomes Ready and control-plane static Pods are healthy.
Question 539
During remediation, this failure appears: A control-plane certificate replacement causes clients to reject the API server. Which action is the LEAST defensible?
- Globally disable TLS verification in every kubeconfig to restore access.
- Test connectivity from the affected Pod before redesigning all Services.
- Keep backups or change history for potentially destructive maintenance.
- Confirm actual node conditions and allocatable resources before scheduling changes.
Explanation
Correct Answer
A:Globally disable TLS verification in every kubeconfig to restore access. TLS validation requires matching server identity and trusted certificate chain. A safer course is: Validate the serving certificate SANs, trusted CA and configured server endpoint.
Incorrect Answers
B: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: Validate the serving certificate SANs, trusted CA and configured server endpoint.
C:Keep backups or change history for potentially destructive maintenance. Recovery planning reduces the impact of a faulty change. For the stated case, a focused correction is: Validate the serving certificate SANs, trusted CA and configured server endpoint.
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: Validate the serving certificate SANs, trusted CA and configured server endpoint.
Question 540
Consider the following Kubernetes administration case: A Pod requests a non-existent node label through required node affinity. Which principle BEST explains the intended solution?
- Scheduler placement is based on requests and allocatable capacity, not instant kubectl top usage.
- Expired credentials can interrupt API clients while the server remains healthy.
- Image and ephemeral filesystem consumption can trigger node disk pressure and evictions.
- Required node affinity is a hard placement constraint.
Explanation
Correct Answer
D:Required node affinity is a hard placement constraint. This principle explains the targeted result. A concrete response is: Correct the placement requirement or label suitable eligible nodes truthfully.
Incorrect Answers
A:This principle is useful for another case (A node appears idle by CPU usage but a new Pod is unschedulable with Insufficient cpu.), but does not explain the most direct solution here. Required node affinity is a hard placement constraint.
B:Expired credentials can interrupt API clients while the server remains healthy. This principle is useful for another case (kubectl reports x509 certificate expired after months of successful access.), but does not explain the most direct solution here. The governing consideration is: Required node affinity is a hard placement constraint.
C:Image and ephemeral filesystem consumption can trigger node disk pressure and evictions. This principle is useful for another case (Pods on one worker fail while the node reports DiskPressure.), but does not explain the most direct solution here. The governing consideration is: Required node affinity is a hard placement constraint.