cert
cert-1
cert-2

Pass CNCF CKA Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
CKA Exam - Verified By Experts
CKA Premium Bundle
$29.98

CKA Premium Bundle

$79.99
$109.97
  • Premium File 58 Questions & Answers. Last update: Nov 26, 2026
  • Training Course 138 Video Lectures
  • Study Guide 268 Pages
 
$109.97
$79.99
accept 26 downloads in last 7 days
block-screenshots
Purchase CNCF CKA Exam Training Products Individually
CNCF CKA Premium File
Premium File 58 Q&A
$76.99$69.99
CNCF CKA Video Training Course
Training Course 138 Lectures
$21.99 $19.99
CNCF CKA PDF Study Guide
Study Guide 268 Pages
$21.99 $19.99
CNCF CKA Practice Test 3

Question 20

An administrator reviews several possible responses to this condition: Pods reach cluster Services but cannot contact external APIs from private node networks. Which option creates an avoidable failure?

  1. Validate a change with a repeatable positive and negative test.
  2. Verify the target cluster and namespace before mutating resources.
  3. Use a staged rollout and observe readiness before full deployment.
  4. Change every Pod's ServiceAccount to cluster-admin to restore internet egress.

Explanation

Correct Answer

D:

Change every Pod's ServiceAccount to cluster-admin to restore internet egress. External egress requires network routing beyond internal Service discovery. A safer course is: Check egress route and SNAT or gateway configuration for the cluster network.

Incorrect Answers

A:

Validate a change with a repeatable positive and negative test. A testable outcome provides stronger evidence than intent alone. For the stated case, a focused correction is: Check egress route and SNAT or gateway configuration for the cluster network.

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: Check egress route and SNAT or gateway configuration for the cluster network.

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: Check egress route and SNAT or gateway configuration for the cluster network.

Question 21

Select TWO technically sound statements for this situation, covering remediation and validation: A node image update changes the runtime socket and kubelet can no longer create containers.

  1. Validation: Kubelet connects successfully to the runtime and new Pods start.
  2. Remediation: Change the cluster DNS ConfigMap as a fix for runtime socket failure.
  3. Validation: kubectl and joining nodes remain able to reach the API when one control-plane node fails.
  4. Remediation: Correct the kubelet CRI endpoint and verify runtime socket availability.
  5. Remediation: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy.

Explanation

Correct Answers

A:

Validation: Kubelet connects successfully to the runtime and new Pods start. This result verifies the behavior the remediation is supposed to restore.

D:

Remediation: Correct the kubelet CRI endpoint and verify runtime socket availability. The remedy targets the reported failure rather than a different subsystem. The CRI is the node-side interface for container lifecycle management.

Incorrect Answers

B:

Remediation: Change the cluster DNS ConfigMap as a fix for runtime socket failure. This is the unsafe shortcut for the case, not an acceptable intervention. The CRI is the node-side interface for container lifecycle management.

C:

Validation: kubectl and joining nodes remain able to reach the API when one control-plane node fails. This evidence applies to a different condition (Two API servers run but workloads use one control-plane node IP as the endpoint.), and would not verify this target fix: A node image update changes the runtime socket and kubelet can no longer create containers.

E:

Remediation: Confirm the Kubernetes and kubelet swap configuration and align host swap handling with supported policy. This action targets a different condition (An intended kubeadm worker reports kubelet swap-related startup failures.), not this reported failure: A node image update changes the runtime socket and kubelet can no longer create containers.

Question 22

In a Kubernetes cluster, the following condition is observed: A kubeadm init uses an advertise address unreachable from joining nodes. Which remediation MOST directly addresses it?

  1. Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.
  2. Plan the ordered control-plane upgrade using kubeadm upgrade plan and supported version skew guidance.
  3. Use Kustomize bases and overlays rather than maintaining divergent full copies.
  4. Align the node advertise address and stable control-plane endpoint with reachable network interfaces.

Explanation

Correct Answer

D:

Align the node advertise address and stable control-plane endpoint with reachable network interfaces. This correction targets the specific failure. Control-plane identity and advertised connectivity must match actual network routing. A successful result is: Workers reach the API server and successfully complete the trusted join workflow.

Incorrect Answers

A:

This procedure belongs to a different Kubernetes condition (A cluster bootstrap script contains changing flags and has become difficult to audit.). Adopt a version-controlled kubeadm configuration document with supported API schema and pinned intended settings.

B:

This procedure belongs to a different Kubernetes condition (A kubeadm managed cluster must move one supported minor release forward.). Plan the ordered control-plane upgrade using kubeadm upgrade plan and supported version skew guidance.

C:

This procedure belongs to a different Kubernetes condition (Two clusters need the same base manifest but different replica counts and labels.). Use Kustomize bases and overlays rather than maintaining divergent full copies.

Question 23

A platform engineer receives this incident: A hostNetwork Pod cannot resolve cluster Services using its inherited host resolver configuration. Which change should be made first after validating the facts?

  1. Use a headless Service with clusterIP None matching the StatefulSet selector.
  2. Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload.
  3. Correct HTTPRoute parentRefs, hostname and listener compatibility with the Gateway.
  4. Create a default-deny ingress NetworkPolicy for the sensitive namespace, then allow required traffic.

Explanation

Correct Answer

B:

Set dnsPolicy ClusterFirstWithHostNet for the hostNetwork workload. This correction targets the specific failure. Host-networked Pods may need an explicit cluster-aware DNS policy. A successful result is: The hostNetwork Pod resolves Kubernetes Service records as intended.

Incorrect Answers

A:

This procedure belongs to a different Kubernetes condition (StatefulSet peers must discover individual Pod DNS records rather than one virtual Service IP.). Use a headless Service with clusterIP None matching the StatefulSet selector.

C:

This procedure belongs to a different Kubernetes condition (A Gateway exists but an HTTPRoute is not attached to its listener.). Correct HTTPRoute parentRefs, hostname and listener compatibility with the Gateway.

D:

This procedure belongs to a different Kubernetes condition (Frontend Pods can unexpectedly connect to every Pod in a sensitive namespace.). Create a default-deny ingress NetworkPolicy for the sensitive namespace, then allow required traffic.

Question 24

An operations team tests its response to this finding: A StatefulSet member cannot resolve its ordinal hostname after the governing Service changed. Which outcome most clearly establishes that the fix worked?

  1. Repeated traffic from one source IP is directed consistently while healthy endpoints exist.
  2. Route conditions indicate acceptance and traffic reaches its backend Service.
  3. Requests to Service port 80 reach the application listener on 8080.
  4. Expected per-Pod DNS records resolve for stable StatefulSet member names.

Explanation

Correct Answer

D:

Expected per-Pod DNS records resolve for stable StatefulSet member names. The corresponding action is: Restore the matching headless governing Service and verify Pod subdomain and Service name.

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: Expected per-Pod DNS records resolve for stable StatefulSet member names.

B:

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: Expected per-Pod DNS records resolve for stable StatefulSet member names.

C:

Requests to Service port 80 reach the application listener on 8080. This is evidence for a separate case (A Service listens on port 80 but the container listens on 8080 and requests fail.), not for the target problem. An appropriate validation would be: Expected per-Pod DNS records resolve for stable StatefulSet member names.

Question 25

During an operational review, this fact emerges: An app cannot reach a database and the error is a TCP timeout, not DNS NXDOMAIN. Which Kubernetes behavior MOST directly governs the result?

  1. Required configuration references must resolve to existing keys.
  2. DNS, network path and application listener failures require different diagnostics.
  3. Node readiness is driven by kubelet heartbeats and node health signals.
  4. Kubelet manages the kubeadm control-plane static Pod from a local manifest.

Explanation

Correct Answer

B:

DNS, network path and application listener failures require different diagnostics. This principle explains the targeted result. A concrete response is: Test name resolution, then TCP reachability, policies and listening port stepwise.

Incorrect Answers

A:

Required configuration references must resolve to existing keys. This principle is useful for another case (A Pod is stuck CreateContainerConfigError because a referenced ConfigMap key is absent.), but does not explain the most direct solution here. The governing consideration is: DNS, network path and application listener failures require different diagnostics.

C:

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: DNS, network path and application listener failures require different diagnostics.

D:

This principle is useful for another case (All kubectl API calls fail following an edit to kube-apiserver static Pod YAML.), but does not explain the most direct solution here. DNS, network path and application listener failures require different diagnostics.

Question 26

During cluster maintenance, an engineer finds this problem: A GPU workload was scheduled on a node without GPU hardware. Which next action is technically justified?

  1. Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.
  2. Adjust realistic resource requests or add capacity before scheduling.
  3. Label eligible hardware nodes and use an explicit nodeSelector or required node affinity.
  4. Ensure relevant CPU requests are defined and the resource metrics pipeline is working.

Explanation

Correct Answer

C:

Label eligible hardware nodes and use an explicit nodeSelector or required node affinity. This correction targets the specific failure. Node selection constrains placement to labeled eligible machines. A successful result is: The Pod lands only on nodes with the confirmed GPU label and hardware.

Incorrect Answers

A:

This procedure belongs to a different Kubernetes condition (A Deployment must update without taking all replicas offline during rollout.). Tune maxUnavailable and maxSurge in the RollingUpdate strategy with adequate capacity.

B:

This procedure belongs to a different Kubernetes condition (A Pod is Pending because requested memory exceeds all node allocatable resources.). Adjust realistic resource requests or add capacity before scheduling.

D:

This procedure belongs to a different Kubernetes condition (HPA reports unknown CPU utilization although Pods are running.). Ensure relevant CPU requests are defined and the resource metrics pipeline is working.

Question 27

During cluster maintenance, an engineer finds this problem: A Gateway exists but an HTTPRoute is not attached to its listener. Which next action is technically justified?

  1. Correct HTTPRoute parentRefs, hostname and listener compatibility with the Gateway.
  2. Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.
  3. Use a headless Service with clusterIP None matching the StatefulSet selector.
  4. Set a valid ingressClassName for an installed and healthy Ingress controller.

Explanation

Correct Answer

A:

Correct HTTPRoute parentRefs, hostname and listener compatibility with the Gateway. This correction targets the specific failure. Gateway listener constraints and route parent relationships determine attachment. A successful result is: Route conditions indicate acceptance and traffic reaches its backend Service.

Incorrect Answers

B:

Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.

C:

Use a headless Service with clusterIP None matching the StatefulSet selector. This procedure belongs to a different Kubernetes condition (StatefulSet peers must discover individual Pod DNS records rather than one virtual Service IP.). It does not directly resolve the observed failure. The targeted action is: Correct HTTPRoute parentRefs, hostname and listener compatibility with the Gateway.

D:

This procedure belongs to a different Kubernetes condition (An Ingress resource has an address but no controller is processing its rules.). Set a valid ingressClassName for an installed and healthy Ingress controller.

Question 28

An operations team tests its response to this finding: A team needs clients' original source IP preserved for a LoadBalancer Service. Which outcome most clearly establishes that the fix worked?

  1. Ingress controller reconciliation configures the expected backend route.
  2. Requests to Service port 80 reach the application listener on 8080.
  3. Traffic reaches local endpoints with the desired source-IP behavior and documented node distribution.
  4. Disallowed outbound connections fail while approved egress stays functional.

Explanation

Correct Answer

C:

Traffic reaches local endpoints with the desired source-IP behavior and documented node distribution. The corresponding action is: Evaluate externalTrafficPolicy Local and ensure healthy local endpoints on receiving nodes.

Incorrect Answers

A:

Ingress controller reconciliation configures the expected backend route. This is evidence for a separate case (An Ingress resource has an address but no controller is processing its rules.), not for the target problem. An appropriate validation would be: Traffic reaches local endpoints with the desired source-IP behavior and documented node distribution.

B:

Requests to Service port 80 reach the application listener on 8080. This is evidence for a separate case (A Service listens on port 80 but the container listens on 8080 and requests fail.), not for the target problem. An appropriate validation would be: Traffic reaches local endpoints with the desired source-IP behavior and documented node distribution.

D:

Disallowed outbound connections fail while approved egress stays functional. This is evidence for a separate case (A team thinks applying an ingress-only policy prevents Pods from sending outbound traffic.), not for the target problem. An appropriate validation would be: Traffic reaches local endpoints with the desired source-IP behavior and documented node distribution.

Question 29

A cluster team is handling this situation: Node role labels are inconsistent after provisioning new workers. Which proposed shortcut should be REJECTED?

  1. Test connectivity from the affected Pod before redesigning all Services.
  2. Apply all hardware labels identically to every machine regardless of hardware.
  3. Use a staged rollout and observe readiness before full deployment.
  4. Apply scoped access rather than granting universal administration.

Explanation

Correct Answer

B:

Apply all hardware labels identically to every machine regardless of hardware. Labels are selectors and must reflect real intended node attributes. A safer course is: Apply controlled labels and validate node identity before relying on placement rules.

Incorrect Answers

A:

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: Apply controlled labels and validate node identity before relying on placement rules.

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: Apply controlled labels and validate node identity before relying on placement rules.

D:

Apply scoped access rather than granting universal administration. Least privilege limits accidental or excessive authority. For the stated case, a focused correction is: Apply controlled labels and validate node identity before relying on placement rules.

Question 30

An administrator is investigating this situation: A shared file workload requires concurrent writes from multiple nodes. Which action BEST resolves the underlying issue?

  1. Use a compatible StorageClass with volumeBindingMode WaitForFirstConsumer.
  2. Configure the intended default StorageClass annotation while checking existing defaults.
  3. Provision a storage backend and CSI driver that actually support ReadWriteMany.
  4. Choose a suitable storage access pattern or keep the volume attached to an allowed node.

Explanation

Correct Answer

C:

Provision a storage backend and CSI driver that actually support ReadWriteMany. This correction targets the specific failure. Access modes describe requested mounting capabilities but need backend support. A successful result is: Pods on different nodes mount the RWX volume successfully.

Incorrect Answers

A:

Use a compatible StorageClass with volumeBindingMode WaitForFirstConsumer. This procedure belongs to a different Kubernetes condition (A topology-bound cloud disk is provisioned in the wrong zone before its Pod schedules.). It does not directly resolve the observed failure. The targeted action is: Provision a storage backend and CSI driver that actually support ReadWriteMany.

B:

This procedure belongs to a different Kubernetes condition (New claims omit storageClassName and use an unintended slow storage provider.). Configure the intended default StorageClass annotation while checking existing defaults.

D:

This procedure belongs to a different Kubernetes condition (Two Pods on different nodes try to attach the same RWO block volume and one remains Pending.). Choose a suitable storage access pattern or keep the volume attached to an allowed node.

Certified Kubernetes Administrator (CKA) Practice Tests