ExamDumpster

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 hardening a high-availability cluster whose control plane nodes run stacked etcd. After inspecting the static pod manifests in `/etc/kubernetes/manifests/`, you notice the `etcd` pod definition is missing a critical parameter for secure communication between members. Which of the following parameters, when correctly configured, ensures that etcd members properly authenticate each other?

Question 2Choose one

A developer reports that their pod in the `dev-ns` namespace cannot resolve the service name `db-service.prod-ns.svc.cluster.local`, despite the service existing and being accessible from pods within the `prod-ns` namespace. You suspect a NetworkPolicy is interfering. Which of the following NetworkPolicy manifests is the most likely cause of this specific DNS resolution failure?

Question 3Choose 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 4Choose 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 5Choose 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 6Choose 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 7Choose 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 8Choose 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 9Choose 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 10Choose 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`.

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