Free CKA sample questions
Each free CKA sample question below includes the correct answer and an explanation. Topics range from RBAC and cluster upgrades to services, storage and broken pods. Use them to test your Kubernetes knowledge before you practise in a real cluster.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
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?
A team is transitioning from a traditional Ingress resource to the newer Gateway API for more flexible traffic management. They need to configure a simple routing rule: traffic to `store.example.com/` should be directed to a service named `frontend-svc`. Which combination of Gateway API resources is required to accomplish this?
A pod is failing to start with the status `ImagePullBackOff`. Which of the following are potential root causes for this error? (Select THREE)
You are deploying a custom controller to your cluster that requires permission to watch Deployments and update Pods across all namespaces. Which combination of RBAC objects is most appropriate to grant these permissions?
Workloads on a node named `node-04` are reporting intermittent I/O errors, although the node is still `Ready`. Before you investigate, you want the scheduler to stop placing new pods on `node-04`, without evicting the pods that are already running there. Which command marks `node-04` as unschedulable?
You need to schedule a batch job that runs a database cleanup script every day at 01:00 AM UTC. The job should use the `db-cleanup:1.2` image. Which Kubernetes object is designed for this type of recurring task?
When configuring a HorizontalPodAutoscaler (HPA) to scale on CPU or memory utilization, the resource metrics API (`metrics.k8s.io`), which is usually provided by the metrics-server add-on, must be available in the cluster. True or False?
A cluster is experiencing issues where containers in several pods are being killed with the reason `OOMKilled` whenever their node runs low on memory. An investigation reveals that these pods have no `resources` section defined in their manifests. In which Quality of Service (QoS) class are these pods running, and why does this make them the first candidates to be killed or evicted under node memory pressure?
You are using Kustomize to manage deployments across different environments (staging and production). The `base/` directory contains a standard Deployment manifest. You need to create a `production/` overlay that increases the replica count to 5 and adds an annotation `env: production`. Which of the following `kustomization.yaml` files, placed in the `production/` directory, would achieve this?
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.