Free CKA sample questions

Real questions from the Certified Kubernetes Administrator practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose one

You are performing a cluster upgrade from v1.32.5 to v1.33.1 using `kubeadm`. After successfully upgrading the first control plane node with `kubeadm upgrade apply v1.33.1`, you proceed to upgrade the worker nodes. The worker's apt source already points to the `pkgs.k8s.io` v1.33 repository (package index updated), and the Kubernetes packages are not on hold. What is the correct sequence of commands to safely upgrade a worker node named `worker-01`?

Question 2Choose one

A pod is in a `CrashLoopBackOff` state. Running `kubectl logs --previous` shows that the application terminated due to a failure to connect to a database. You need to gain interactive access to the pod's environment to test network connectivity using tools like `ping` and `wget`, but these tools are not included in the original container image. What is the most effective `kubectl` command to debug this issue?

Question 3Choose one

You need to create a Kubernetes secret named `db-credentials` in the `backend` namespace to store a database username and password. The username is `admin` and the password is `S3cur3P@ssw0rd!`. Which imperative command correctly creates this secret directly from the command line, without first writing the credentials to a file?

Question 4Choose 2

An administrator needs to deploy a monitoring agent as a DaemonSet to all nodes in the cluster, but the control plane nodes must be excluded. The control plane nodes are labeled `node-role.kubernetes.io/control-plane` and tainted with `node-role.kubernetes.io/control-plane:NoSchedule`. Which TWO of the following statements about excluding the control plane nodes are correct? (Select TWO)

Question 5Choose one

You are auditing RBAC permissions and need to quickly verify if a specific service account, `app-reader` in the `staging` namespace, has permission to `get` pods in the `production` namespace. Which command provides a clear 'yes' or 'no' answer to this question?

Question 6Choose one

A new cluster administrator is trying to understand the flow of traffic for a service exposed via NodePort. They observe that a request sent to `node-ip:node-port` on any node in the cluster correctly routes to a pod, even if that pod is not running on the node that received the request. Which component is responsible for this routing behavior across the cluster? graph TD Client -->|"Request to Node2_IP:NodePort"| Rules2 subgraph Node2 Rules2["Service forwarding rules on Node2"] end subgraph Node1 TargetPod[Target Pod] end Rules2 -->|"DNAT to the Pod IP, delivered over the Pod network"| TargetPod

Question 7Choose one

A critical application is experiencing performance degradation. You suspect a 'noisy neighbor' pod is consuming excessive CPU resources on a worker node. Which `kubectl` command would you use to identify the pods consuming the most CPU on all nodes in the cluster?

Question 8Choose one

True or False: When using `kubeadm` with the default kubelet configuration, swap should be disabled on all nodes (both control plane and worker) before running `kubeadm init` or `kubeadm join`.

Question 9Choose one

You need to provision a PersistentVolume that sources its storage directly from a directory, `/data/mysql-pv`, on a specific worker node, `node-03`. This volume should be 5Gi in size and have a `ReadWriteOnce` access mode. Which of the following YAML snippets correctly defines this PersistentVolume?

Question 10Choose one

You have been given a backup file of an etcd database located at `/tmp/etcd-backup.db`. The cluster's etcd is running as a static pod. You need to restore the cluster state from this backup file. Which command should you run to perform the restore?

10 more free samples are waiting

Create a free account to unlock the whole CKA sample bank, or get full access to all 199 practice questions in the simulator.

Create account