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 2

Question 10

Consider the following Kubernetes administration case: An API must accept ingress only from Pods labeled role=client in namespace team-a. Which principle BEST explains the intended solution?

  1. Service selectors and readiness determine which Pods become eligible endpoints.
  2. A single NetworkPolicy peer combining namespaceSelector and podSelector intersects their selection criteria.
  3. Gateway listeners own TLS configuration and certificate references must resolve.
  4. Port forwarding is a debugging tunnel, not an internet-facing production endpoint.

Explanation

Correct Answer

B:

A single NetworkPolicy peer combining namespaceSelector and podSelector intersects their selection criteria. This principle explains the targeted result. A concrete response is: Create an ingress policy selecting the API Pods with combined namespaceSelector and podSelector peer criteria.

Incorrect Answers

A:

This principle is useful for another case (A Service exists but its EndpointSlice contains no addresses even though backend Pods are running.), but does not explain the most direct solution here. A single NetworkPolicy peer combining namespaceSelector and podSelector intersects their selection criteria.

C:

Gateway listeners own TLS configuration and certificate references must resolve. This principle is useful for another case (A Gateway HTTPS listener reports invalid certificate references.), but does not explain the most direct solution here. The governing consideration is: A single NetworkPolicy peer combining namespaceSelector and podSelector intersects their selection criteria.

D:

This principle is useful for another case (An operator wants temporary access to an internal Pod without publishing a public Service.), but does not explain the most direct solution here. A single NetworkPolicy peer combining namespaceSelector and podSelector intersects their selection criteria.

Question 11

A CKA learner must investigate the following: An important Pod is being evicted during node memory pressure. Which command or check supplies the MOST direct diagnostic evidence?

  1. Inspect kubectl get cronjob -o yaml schedule and concurrencyPolicy.
  2. Run kubectl top pods and inspect HPA conditions and Pod CPU requests.
  3. Compare Pod creation timestamps after kubectl rollout restart deployment/web.
  4. Read kubectl get pod -o jsonpath='{.status.qosClass}' and node memory-pressure events.

Explanation

Correct Answer

D:

Read kubectl get pod -o jsonpath='{.status.qosClass}' and node memory-pressure events. This diagnostic examines the relevant resource or subsystem. QoS affects eviction priority but does not guarantee protection from all failures. The validating result would be: Resource reservation and QoS class reflect design while eviction risk is reduced.

Incorrect Answers

A:

Inspect kubectl get cronjob -o yaml schedule and concurrencyPolicy. This check is appropriate to the separate problem (A cleanup should run nightly but prevent overlapping executions.), but it is not the direct diagnostic for the described failure. The relevant check is: Read kubectl get pod -o jsonpath='{.status.qosClass}' and node memory-pressure events.

B:

This check is appropriate to the separate problem (HPA reports unknown CPU utilization although Pods are running.), but it is not the direct diagnostic for the described failure. Read kubectl get pod -o jsonpath='{.status.qosClass}' and node memory-pressure events.

C:

This check is appropriate to the separate problem (A Deployment consumes a ConfigMap through env vars and existing Pods still have old values.), but it is not the direct diagnostic for the described failure. Read kubectl get pod -o jsonpath='{.status.qosClass}' and node memory-pressure events.

Question 12

A Kubernetes operations team observes the following: A container enters CrashLoopBackOff and lastState terminated reason is OOMKilled. What is the MOST appropriate corrective action?

  1. Measure node and Pod CPU usage and correlate resource requests with workload demand before adjusting capacity.
  2. Investigate memory consumption and set appropriate requests, limits or fix the application's memory use.
  3. Read the prior container instance logs using the --previous option.
  4. Diagnose metrics-server, metrics API availability and resource requests.

Explanation

Correct Answer

B:

Investigate memory consumption and set appropriate requests, limits or fix the application's memory use. This correction targets the specific failure. Exceeding a memory limit can cause OOM termination and repeated restarts. A successful result is: The container runs without repeated OOM termination while maintaining node capacity.

Incorrect Answers

A:

This procedure belongs to a different Kubernetes condition (A node reports high CPU use and latency spikes while the scheduler keeps assigning Pods.). Measure node and Pod CPU usage and correlate resource requests with workload demand before adjusting capacity.

C:

This procedure belongs to a different Kubernetes condition (An app container restarts so quickly that current kubectl logs show only its latest attempt.). Read the prior container instance logs using the --previous option.

D:

Diagnose metrics-server, metrics API availability and resource requests. This procedure belongs to a different Kubernetes condition (HPA displays <unknown> target metrics while replicas never scale.). It does not directly resolve the observed failure. The targeted action is: Investigate memory consumption and set appropriate requests, limits or fix the application's memory use.

Question 13

In a Kubernetes cluster, the following condition is observed: A PVC is nearly full and its backing CSI driver supports growth. Which remediation MOST directly addresses it?

  1. Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.
  2. Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.
  3. Configure compatible PVC and PV volumeMode Block and Pod volumeDevices when supported.
  4. Enable supported volume expansion and increase PVC requested storage safely.

Explanation

Correct Answer

D:

Enable supported volume expansion and increase PVC requested storage safely. This correction targets the specific failure. Volume expansion requires storage class permission and driver support, sometimes filesystem growth. A successful result is: PVC and filesystem capacity increase to the requested size once reconciliation completes.

Incorrect Answers

A:

This procedure belongs to a different Kubernetes condition (A Pod is stuck ContainerCreating due to an attach timeout from a cloud block volume.). Inspect CSI controller, node plugin and VolumeAttachment state then restore the failing attachment path.

B:

This procedure belongs to a different Kubernetes condition (A PVC stays Pending because it asks for 20Gi while the only matching PV has 10Gi.). Provide a compatible PV or a suitable StorageClass provisioner with enough requested capacity.

C:

This procedure belongs to a different Kubernetes condition (A storage consumer expects a raw block device but the PVC is provisioned with volumeMode Filesystem.). Configure compatible PVC and PV volumeMode Block and Pod volumeDevices when supported.

Question 14

A review finds this Kubernetes issue: A container is running but cannot serve requests until a cache is primed. Which suggestion would make troubleshooting or security worse?

  1. Verify the target cluster and namespace before mutating resources.
  2. Use only a liveness probe and assume traffic cannot reach unready applications.
  3. Preserve relevant logs when diagnosing a repeating container crash.
  4. Validate a change with a repeatable positive and negative test.

Explanation

Correct Answer

B:

Use only a liveness probe and assume traffic cannot reach unready applications. Readiness probes gate traffic eligibility, not whether the container process exists. A safer course is: Configure a readinessProbe that tests the actual application readiness endpoint.

Incorrect Answers

A:

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: Configure a readinessProbe that tests the actual application readiness endpoint.

C:

Preserve relevant logs when diagnosing a repeating container crash. Prior process output often identifies the immediate cause. For the stated case, a focused correction is: Configure a readinessProbe that tests the actual application readiness endpoint.

D:

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: Configure a readinessProbe that tests the actual application readiness endpoint.

Question 15

The team is reviewing this failure mode: A team mistakes the container network interface for the container runtime interface. Which statement explains WHY the recommended control works?

  1. Control-plane identity and advertised connectivity must match actual network routing.
  2. Consensus systems require quorum; uncontrolled member recreation risks state loss.
  3. Worker component upgrades follow control-plane upgrades and require deliberate node handling.
  4. CNI, CRI and CSI solve different cluster extension problems.

Explanation

Correct Answer

D:

CNI, CRI and CSI solve different cluster extension problems. This principle explains the targeted result. A concrete response is: Select a compatible CNI for Pod networking and separately verify CRI runtime integration.

Incorrect Answers

A:

Control-plane identity and advertised connectivity must match actual network routing. This principle is useful for another case (A kubeadm init uses an advertise address unreachable from joining nodes.), but does not explain the most direct solution here. The governing consideration is: CNI, CRI and CSI solve different cluster extension problems.

B:

Consensus systems require quorum; uncontrolled member recreation risks state loss. This principle is useful for another case (A stacked-etcd cluster has lost quorum after too many control-plane failures.), but does not explain the most direct solution here. The governing consideration is: CNI, CRI and CSI solve different cluster extension problems.

C:

This principle is useful for another case (The control plane is upgraded but one worker still runs an older supported kubelet.), but does not explain the most direct solution here. CNI, CRI and CSI solve different cluster extension problems.

Question 16

Consider the following Kubernetes administration case: An etcd snapshot is valid but the restored control plane is reading an empty data directory. Which principle BEST explains the intended solution?

  1. Helm revisions support controlled release rollback of managed objects.
  2. Helm charts are templates that must be evaluated before cluster changes.
  3. Backup usefulness depends on using restored state in the active etcd configuration.
  4. Authorization decisions depend on effective bindings, subjects and scope, not merely Role text.

Explanation

Correct Answer

C:

Backup usefulness depends on using restored state in the active etcd configuration. This principle explains the targeted result. A concrete response is: Restore the snapshot to the intended data directory and update the relevant static Pod manifest safely.

Incorrect Answers

A:

Helm revisions support controlled release rollback of managed objects. This principle is useful for another case (A Helm upgrade caused a regression in a cluster add-on.), but does not explain the most direct solution here. The governing consideration is: Backup usefulness depends on using restored state in the active etcd configuration.

B:

This principle is useful for another case (A Helm chart update is proposed but its rendered RBAC is unknown.), but does not explain the most direct solution here. Backup usefulness depends on using restored state in the active etcd configuration.

D:

This principle is useful for another case (An admin changed RoleBindings and wants proof the operator cannot create deployments.), but does not explain the most direct solution here.

Question 17

Following this Kubernetes scenario, an operator validates remediation: A Pod is stuck CreateContainerConfigError because a referenced ConfigMap key is absent. Which measurable outcome shows success?

  1. The static Pod reappears and the component starts successfully.
  2. MemoryPressure clears and essential Pods remain Ready without repeated eviction.
  3. The HTTPRoute reference resolves and accepted traffic reaches intended backends.
  4. The container receives required config and starts without reference errors.

Explanation

Correct Answer

D:

The container receives required config and starts without reference errors. The corresponding action is: Create the expected key or correct the container's configMapKeyRef name.

Incorrect Answers

A:

The static Pod reappears and the component starts successfully. This is evidence for a separate case (After a malformed YAML edit, kubelet stops running kube-controller-manager.), not for the target problem. An appropriate validation would be: The container receives required config and starts without reference errors.

B:

MemoryPressure clears and essential Pods remain Ready without repeated eviction. This is evidence for a separate case (A worker transitions to MemoryPressure and several application Pods are evicted.), not for the target problem. An appropriate validation would be: The container receives required config and starts without reference errors.

C:

The HTTPRoute reference resolves and accepted traffic reaches intended backends. This is evidence for a separate case (An HTTPRoute is not serving traffic and its status reports ResolvedRefs False.), not for the target problem. An appropriate validation would be: The container receives required config and starts without reference errors.

Question 18

An administrator reviews several possible responses to this condition: A GPU workload was scheduled on a node without GPU hardware. Which option creates an avoidable failure?

  1. Use a staged rollout and observe readiness before full deployment.
  2. Verify the target cluster and namespace before mutating resources.
  3. Inspect the exact Secret or ConfigMap reference without exposing credentials.
  4. Add a GPU label to every node to satisfy the selector.

Explanation

Correct Answer

D:

Add a GPU label to every node to satisfy the selector. This shortcut fails to address the root cause and risks a worse outcome. Node selection constrains placement to labeled eligible machines. A safer course is: Label eligible hardware nodes and use an explicit nodeSelector or required node affinity.

Incorrect Answers

A:

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: Label eligible hardware nodes and use an explicit nodeSelector or required node affinity.

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: Label eligible hardware nodes and use an explicit nodeSelector or required node affinity.

C:

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: Label eligible hardware nodes and use an explicit nodeSelector or required node affinity.

Question 19

An administrator is investigating this situation: An internal backend should only be reachable from inside the cluster through one stable address. Which action BEST resolves the underlying issue?

  1. Configure Service sessionAffinity ClientIP when its limitations are acceptable.
  2. Use a ClusterIP Service selecting the backend Pods.
  3. Use a LoadBalancer Service backed by a working provider integration.
  4. Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.

Explanation

Correct Answer

B:

Use a ClusterIP Service selecting the backend Pods. This correction targets the specific failure. ClusterIP is the basic internal Service exposure model. A successful result is: In-cluster clients reach the Service while no direct external listener is created.

Incorrect Answers

A:

This procedure belongs to a different Kubernetes condition (A legacy client needs repeated requests to tend to the same Pod behind one Service.). Configure Service sessionAffinity ClientIP when its limitations are acceptable.

C:

This procedure belongs to a different Kubernetes condition (An external HTTP service needs an infrastructure-managed public listener.). Use a LoadBalancer Service backed by a working provider integration.

D:

This procedure belongs to a different Kubernetes condition (A Gateway API team wants to send 10 percent traffic to canary and 90 percent to stable.). Set HTTPRoute backendRefs weights for the two Services and verify health and accepted routes.

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.

Certified Kubernetes Administrator (CKA) Practice Tests