Skip to main content

CKA practice questions

The CKA is a 2-hour hands-on exam in a terminal, based on Kubernetes v1.37. It has five domains:

DomainWeightQuestions here
Troubleshooting30%6
Cluster Architecture, Installation and Configuration25%5
Services and Networking20%5
Workloads and Scheduling15%4
Storage10%4

The questions are original and unofficial, not taken from the real exam. Domains and weights come from the official curriculum, as listed on Learning paths & certifications. The real exam asks you to do these things, not pick them, so practice the commands in the Hands-on labs.

Troubleshooting (30%)​

  1. kubectl get nodes shows worker-2 as NotReady. You SSH into worker-2. What do you check first?
  2. On a kubeadm cluster, kubectl returns "connection refused" on port 6443 after someone edited the API server. Where do you look?
  3. A Pod is in CrashLoopBackOff. kubectl logs shows only the new container starting. How do you see why the previous one died?
  4. A new Pod shows CreateContainerConfigError. What do you check?
  5. The Service web returns nothing and has no endpoints, but its Pods are Running and Ready. What is the most likely cause?
  6. A container keeps restarting and kubectl describe pod shows Last State: Terminated, Reason: OOMKilled, Exit Code: 137. What happened?

Study: Node NotReady and component failures (CKA), Reading status in three layers and the troubleshooting order, Debugging a Running Pod with kubectl debug, How Logs, Metrics and Traces Leave a Pod, Requests and limits, A Packet from Pod to Pod, Finding Services by Name (Service·DNS)

Cluster Architecture, Installation and Configuration (25%)​

  1. You must back up etcd on a kubeadm control plane node with etcdctl snapshot save. Besides --endpoints, what must the command include?
  2. You upgraded the kubeadm package on the first control plane node and kubeadm upgrade plan looks good. Which command upgrades the control plane components?
  3. How do you see when the certificates of a kubeadm cluster expire?
  4. You bound a Role to the ServiceAccount ci in namespace dev. How do you check that it can now list Pods there?
  5. kubectl drain node-1 refuses to continue because of Pods managed by a DaemonSet. Which flag lets it proceed?

Study: Who Can Do What (RBAC), Upgrading a cluster with kubeadm (CKA), Draining Nodes and Upgrading the Cluster, Cluster Certificate Expiry, Control Plane HA and etcd Quorum, Backing Up and Restoring a Cluster, How a Helm Release Is Installed, Upgraded and Rolled Back, Per-environment deploys with Kustomize (CKA·CKAD), CRDs and Operators

Services and Networking (20%)​

  1. Which NetworkPolicy spec denies all incoming traffic to every Pod in its namespace?
  2. After you add a default-deny egress policy and a rule allowing egress to the database, the app can no longer resolve any names. What is missing?
  3. You create a NodePort Service and set nodePort yourself. With the default API server settings, which value is accepted?
  4. An HTTPRoute exists, but its traffic never reaches the Gateway named public. Which field ties a route to a Gateway?
  5. With the default dnsPolicy ClusterFirst, which nameserver appears in a Pod's /etc/resolv.conf?

Study: A Packet from Pod to Pod, Blocking and Allowing Traffic (NetworkPolicy), Service Types (ClusterIP · NodePort · LoadBalancer), How a Request Reaches a Pod, How a Gateway API HTTPRoute Reaches a Pod, Ingress Rules and TLS, Finding Services by Name (Service·DNS)

Workloads and Scheduling (15%)​

  1. Which command makes a Deployment's rollout go back one revision?
  2. You changed a ConfigMap, but the app reads it through env valueFrom and still sees the old value. What do you do?
  3. A Pod stays Pending with "node(s) had untolerated taint {gpu: true}". The Pod must run on those nodes. What do you add?
  4. Which command creates an HPA that keeps the Deployment web between 2 and 10 replicas at about 60% CPU?

Study: Zero-Downtime Deploys (Rolling Update), Config and Secrets (ConfigMap · Secret), Scaling with Load (HPA), Automatic Pod Sizing (VPA), When a Pod Dies (Self-Healing), Health checks — alive, and ready for requests?, Which Node Gets the Pod (Scheduling), Requests and limits, Spreading Pods Across Zones (Topology Spread Constraints)

Storage (10%)​

  1. A new PVC uses a StorageClass with volumeBindingMode: WaitForFirstConsumer and stays Pending. No Pod uses it yet. What does this mean?
  2. A second Pod using the same ReadWriteOnce PVC is scheduled to a different node and stays ContainerCreating with a Multi-Attach error. Why?
  3. You deleted a PVC and the cloud disk behind it was deleted too. How do you keep disks for future claims from this StorageClass?
  4. A PVC of 10Gi must grow to 20Gi without losing data. What is needed?

Study: How Storage Gets Attached (PVC·PV), When Volumes Attach, and Failures