CNCF CKA Practice Test 8
Question 70
During an operational review, this fact emerges: All kubectl API calls fail following an edit to kube-apiserver static Pod YAML. Which Kubernetes behavior MOST directly governs the result?
- InitContainer failures block ordinary container startup.
- Ingress controller routing matches requested host/path against explicit rules.
- Kubelet manages the kubeadm control-plane static Pod from a local manifest.
- Gateway API status conditions identify invalid reference wiring.
Explanation
Correct Answer
C:Kubelet manages the kubeadm control-plane static Pod from a local manifest. This principle explains the targeted result. A concrete response is: Inspect and correct the control-plane static Pod manifest and kubelet runtime logs.
Incorrect Answers
A:InitContainer failures block ordinary container startup. This principle is useful for another case (The main app never starts because an initContainer image is inaccessible.), but does not explain the most direct solution here. The governing consideration is: Kubelet manages the kubeadm control-plane static Pod from a local manifest.
B:This principle is useful for another case (Ingress answers HTTPS but returns 404 for /api while backend Service works locally.), but does not explain the most direct solution here. Kubelet manages the kubeadm control-plane static Pod from a local manifest.
D:Gateway API status conditions identify invalid reference wiring. This principle is useful for another case (An HTTPRoute is not serving traffic and its status reports ResolvedRefs False.), but does not explain the most direct solution here. The governing consideration is: Kubelet manages the kubeadm control-plane static Pod from a local manifest.
Question 71
Select TWO technically sound statements for this situation, covering remediation and validation: A dual-stack cluster Service was created with only IPv4 despite an IPv6 requirement.
- Validation: Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families.
- Validation: Requests through ClusterIP reach backend Pods after dataplane repair.
- Remediation: Specify an unavailable IPv6 family and assume Kubernetes will provide a working route.
- Remediation: Restore healthy CoreDNS replicas and verify their upstream and service plugin configuration.
- Remediation: Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network.
Explanation
Correct Answers
A:Validation: Service IP allocation matches the supported IPv4/IPv6 policy and connectivity works on desired families. This result verifies the behavior the remediation is supposed to restore.
E:Remediation: Set appropriate Service ipFamilyPolicy and ipFamilies supported by the cluster and network. The remedy targets the reported failure rather than a different subsystem. Dual-stack Service allocation is constrained by cluster networking capability and IP-family policy.
Incorrect Answers
B:Validation: Requests through ClusterIP reach backend Pods after dataplane repair. This evidence applies to a different condition (A Service virtual IP fails although direct Pod IP connectivity works.), and would not verify this target fix: A dual-stack cluster Service was created with only IPv4 despite an IPv6 requirement.
C:Remediation: Specify an unavailable IPv6 family and assume Kubernetes will provide a working route. This is the unsafe shortcut for the case, not an acceptable intervention. Dual-stack Service allocation is constrained by cluster networking capability and IP-family policy.
D:Remediation: Restore healthy CoreDNS replicas and verify their upstream and service plugin configuration. This action targets a different condition (All Pods lose service-name resolution after the CoreDNS Deployment becomes unavailable.), not this reported failure: A dual-stack cluster Service was created with only IPv4 despite an IPv6 requirement.
Question 72
Select TWO technically sound statements for this situation, covering remediation and validation: HPA displays <unknown> target metrics while replicas never scale.
- Remediation: Diagnose metrics-server, metrics API availability and resource requests.
- Validation: HPA displays metrics and scales according to observed demand.
- Validation: etcd accepts writes after storage alarms are correctly cleared.
- Remediation: Identify memory consumers, verify requests and limits and relieve pressure with safe workload/capacity changes.
- Remediation: Edit HPA maxReplicas randomly without fixing metrics.
Explanation
Correct Answers
A:Remediation: Diagnose metrics-server, metrics API availability and resource requests. The remedy targets the reported failure rather than a different subsystem. Autoscaling requires available metrics and valid target configuration.
B:Validation: HPA displays metrics and scales according to observed demand. This result verifies the behavior the remediation is supposed to restore.
Incorrect Answers
C:Validation: etcd accepts writes after storage alarms are correctly cleared. This evidence applies to a different condition (etcd returns a no-space alarm after excessive database growth.), and would not verify this target fix: HPA displays <unknown> target metrics while replicas never scale.
D:Remediation: Identify memory consumers, verify requests and limits and relieve pressure with safe workload/capacity changes. This action targets a different condition (A worker transitions to MemoryPressure and several application Pods are evicted.), not this reported failure: HPA displays <unknown> target metrics while replicas never scale.
E:Remediation: Edit HPA maxReplicas randomly without fixing metrics. This is the unsafe shortcut for the case, not an acceptable intervention. Autoscaling requires available metrics and valid target configuration.
Question 73
A Kubernetes operations team observes the following: An intended kubeadm worker reports kubelet swap-related startup failures. What is the MOST appropriate corrective action?
- Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
- Specify the intended working CRI socket in kubeadm configuration and verify runtime health.
- Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
- Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
Explanation
Correct Answer
D:Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy. This correction targets the specific failure. Host prerequisites and kubelet configuration determine whether nodes can participate. A successful result is: The kubelet starts with an explicitly supported swap setting and the node registers normally.
Incorrect Answers
A:This procedure belongs to a different Kubernetes condition (A monitoring integration needs cluster-wide read-only node information.). Bind an appropriate limited ClusterRole to its ServiceAccount rather than writing namespaced Roles.
B:This procedure belongs to a different Kubernetes condition (kubeadm reports multiple CRI sockets and cannot select the runtime.). Specify the intended working CRI socket in kubeadm configuration and verify runtime health.
C:Verify the intended cluster CA and regenerate a join command containing its correct discovery-token-ca-cert-hash.
Question 74
A Kubernetes operator wants to verify this condition: Two Pods on different nodes try to attach the same RWO block volume and one remains Pending. Which investigation step is BEST suited to the case?
- Read the PVC accessModes and verify a second test Pod cannot mount the same claim simultaneously.
- Inspect PV accessModes and VolumeAttachment failures during Pod scheduling.
- Inspect PV persistentVolumeReclaimPolicy and bound/released state before cleanup.
- Run kubectl describe pod -n application and kubectl get pvc -n application.
Explanation
Correct Answer
B:Inspect PV accessModes and VolumeAttachment failures during Pod scheduling. This diagnostic examines the relevant resource or subsystem. ReadWriteOnce generally constrains mounting read-write to one node, not universally to one Pod. The validating result would be: Scheduling and attachment respect the volume's supported ReadWriteOnce topology.
Incorrect Answers
A:This check is appropriate to the separate problem (A database requires exclusive access by exactly one Pod to a PVC.), but it is not the direct diagnostic for the described failure. Inspect PV accessModes and VolumeAttachment failures during Pod scheduling.
C:This check is appropriate to the separate problem (A StatefulSet is decommissioned but its underlying audit volume must remain for investigation.), but it is not the direct diagnostic for the described failure. Inspect PV accessModes and VolumeAttachment failures during Pod scheduling.
D: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. Inspect PV accessModes and VolumeAttachment failures during Pod scheduling.
Question 75
An operations team tests its response to this finding: A Pod must resolve a private test hostname using a custom resolver without changing cluster-wide DNS. Which outcome most clearly establishes that the fix worked?
- The operator can test the local forwarded port and no permanent external Service is created.
- The Pod resolves the test hostname through the specified nameserver.
- Both internal Services and intended external domains resolve from Pods.
- Route conditions indicate acceptance and traffic reaches its backend Service.
Explanation
Correct Answer
B:The Pod resolves the test hostname through the specified nameserver. The corresponding action is: Set dnsPolicy None and configure the Pod's dnsConfig nameservers and searches appropriately.
Incorrect Answers
A:The operator can test the local forwarded port and no permanent external Service is created. This is evidence for a separate case (An operator wants temporary access to an internal Pod without publishing a public Service.), not for the target problem. An appropriate validation would be: The Pod resolves the test hostname through the specified nameserver.
C:Both internal Services and intended external domains resolve from Pods. This is evidence for a separate case (Internal Service names resolve but Pods cannot resolve public domains through CoreDNS.), not for the target problem. An appropriate validation would be: The Pod resolves the test hostname through the specified nameserver.
D:Route conditions indicate acceptance and traffic reaches its backend Service. This is evidence for a separate case (A Gateway exists but an HTTPRoute is not attached to its listener.), not for the target problem. An appropriate validation would be: The Pod resolves the test hostname through the specified nameserver.
Question 76
In a Kubernetes cluster, the following condition is observed: A high-availability control plane needs another control-plane node joined securely. Which remediation MOST directly addresses it?
- Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required.
- Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
- Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
- Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
Explanation
Correct Answer
A:Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required. This correction targets the specific failure. Adding control-plane members requires certificates and control-plane-specific join configuration. A successful result is: The additional control-plane node becomes Ready and control-plane static Pods are healthy.
Incorrect Answers
B:Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings. This procedure belongs to a different Kubernetes condition (A cluster bootstrap script contains changing flags and has become difficult to audit.). It does not directly resolve the observed failure. The targeted action is: Use the supported kubeadm control-plane join workflow with a shared endpoint and valid certificate key where required.
C:This procedure belongs to a different Kubernetes condition (An intended kubeadm worker reports kubelet swap-related startup failures.). Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.
D:This procedure belongs to a different Kubernetes condition (The kube-scheduler static Pod disappeared after someone edited its manifest incorrectly.). Repair the scheduler static Pod YAML in the kubelet watched manifest directory.
Question 77
A CKA learner must investigate the following: Ingress answers HTTPS but returns 404 for /api while backend Service works locally. Which command or check supplies the MOST direct diagnostic evidence?
- Inspect policy selectors and test TCP connectivity from approved and denied Pods.
- Run curl -H 'Host: app.example.test' through ingress and inspect describe ingress.
- Inspect kubectl describe pod and CSI node plugin logs along with VolumeAttachment.
- Inspect kubectl describe pod image pull events and verify image name and pull Secret.
Explanation
Correct Answer
B:Run curl -H 'Host: app.example.test' through ingress and inspect describe ingress. This diagnostic examines the relevant resource or subsystem. Ingress controller routing matches requested host/path against explicit rules. The validating result would be: Requests for the intended host and /api path reach the API backend.
Incorrect Answers
A:This check is appropriate to the separate problem (After a default-deny NetworkPolicy, a required API-to-database connection times out.), but it is not the direct diagnostic for the described failure. Run curl -H 'Host: app.example.test' through ingress and inspect describe ingress.
C:This check is appropriate to the separate problem (A Pod remains ContainerCreating with MountVolume.SetUp failed errors.), but it is not the direct diagnostic for the described failure.
D:This check is appropriate to the separate problem (Pods stay ImagePullBackOff after a private registry migration.), but it is not the direct diagnostic for the described failure. Run curl -H 'Host: app.example.test' through ingress and inspect describe ingress.
Question 78
The team is reviewing this failure mode: Pods reach cluster Services but cannot contact external APIs from private node networks. Which statement explains WHY the recommended control works?
- External egress requires network routing beyond internal Service discovery.
- Kubelet is the local node agent and its failure affects Pod management and reporting.
- NetworkPolicy egress isolation can block DNS dependencies.
- Persistent storage binding can be a prerequisite for Pod placement.
Explanation
Correct Answer
A:External egress requires network routing beyond internal Service discovery. This principle explains the targeted result. A concrete response is: Check egress route and SNAT or gateway configuration for the cluster network.
Incorrect Answers
B:This principle is useful for another case (All Pods on one node disappear from monitoring after kubelet service stops.), but does not explain the most direct solution here. External egress requires network routing beyond internal Service discovery.
C:NetworkPolicy egress isolation can block DNS dependencies. This principle is useful for another case (Only Pods selected by a new egress policy fail DNS while other Pods resolve normally.), but does not explain the most direct solution here. The governing consideration is: External egress requires network routing beyond internal Service discovery.
D:Persistent storage binding can be a prerequisite for Pod placement. This principle is useful for another case (A Pod is Pending with a message about unbound immediate PersistentVolumeClaims.), but does not explain the most direct solution here. The governing consideration is: External egress requires network routing beyond internal Service discovery.
Question 79
Select TWO technically sound statements for this situation, covering remediation and validation: A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080.
- Validation: etcd accepts writes after storage alarms are correctly cleared.
- Validation: Connections through the Service reach the application on the correct port.
- Remediation: Apply an approved toleration or choose an eligible untainted node.
- Remediation: Correct targetPort or named container port mapping to the actual listener.
- Remediation: Increase Deployment replicas to fix a port-number mismatch.
Explanation
Correct Answers
B:Validation: Connections through the Service reach the application on the correct port. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Correct targetPort or named container port mapping to the actual listener. The remedy targets the reported failure rather than a different subsystem. Healthy endpoints do not compensate for incorrect TCP/UDP port mapping.
Incorrect Answers
A:Validation: etcd accepts writes after storage alarms are correctly cleared. This evidence applies to a different condition (etcd returns a no-space alarm after excessive database growth.), and would not verify this target fix: A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080.
C:Remediation: Apply an approved toleration or choose an eligible untainted node. This action targets a different condition (A Pod is Pending with an untolerated NoSchedule taint despite free CPU.), not this reported failure: A Service has healthy endpoints but its targetPort points to 9090 while Pods listen on 8080.
E:Remediation: Increase Deployment replicas to fix a port-number mismatch. This is the unsafe shortcut for the case, not an acceptable intervention. Healthy endpoints do not compensate for incorrect TCP/UDP port mapping.
Question 80
A cluster administrator must address the following case: A new worker cannot join because its bootstrap token has expired. Select TWO appropriate statements, one corrective action and one observable outcome.
- Remediation: Disable API server certificate validation so the stale command succeeds.
- Remediation: Apply controlled labels and validate node identity before relying on placement rules.
- Validation: The worker joins the intended cluster and its node appears without relaxing certificate trust.
- Remediation: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details.
- Validation: Resources return to known-good configuration with preserved change history.
Explanation
Correct Answers
C:Validation: The worker joins the intended cluster and its node appears without relaxing certificate trust. This result verifies the behavior the remediation is supposed to restore.
D:Remediation: Create a valid short-lived kubeadm token and issue a fresh join command using trusted discovery details. The remedy targets the reported failure rather than a different subsystem. kubeadm join uses bootstrap discovery and credentials that can expire.
Incorrect Answers
A:Remediation: Disable API server certificate validation so the stale command succeeds. This is the unsafe shortcut for the case, not an acceptable intervention. kubeadm join uses bootstrap discovery and credentials that can expire.
B:Remediation: Apply controlled labels and validate node identity before relying on placement rules. This action targets a different condition (Node role labels are inconsistent after provisioning new workers.), not this reported failure: A new worker cannot join because its bootstrap token has expired.
E:Validation: Resources return to known-good configuration with preserved change history. This evidence applies to a different condition (A Helm upgrade caused a regression in a cluster add-on.), and would not verify this target fix: A new worker cannot join because its bootstrap token has expired.