Certified Kubernetes Administrator (CKA) · Difficulty

Easy CKA practice questions

Direct recall — confirm you know the core facts and definitions. 5 easy questions available — no sign-up, always free.

Question 1 of 5

A development team has a backend API running as a Deployment named `orders-api` in the `commerce` namespace. The API only needs to be reachable by other Pods inside the cluster (a frontend Deployment and a batch worker), and must NOT be exposed to any external network or node IP. The team asks you to create a Service that provides a stable virtual IP and DNS name for in-cluster access while minimizing the attack surface. Which Service type should you use?

Reviewed for accuracy · Report an issue
Question 2 of 5

You deployed a new version of an application by updating the image on a Deployment named 'payment-api'. After the rollout completes, users report errors and you confirm the new image is broken. You need to quickly revert 'payment-api' to the exact configuration it had before this latest update, while preserving the ability to inspect what changed. Which command accomplishes this most directly?

Reviewed for accuracy · Report an issue
Question 3 of 5

You maintain a Deployment named `web` running 3 replicas. Marketing needs the app to handle a traffic spike, so you must temporarily scale it to 10 replicas without editing or reapplying the Deployment manifest and without triggering a new rollout of the pod template. Which command accomplishes this most directly?

Reviewed for accuracy · Report an issue
Question 4 of 5

You are the administrator of a kubeadm-managed cluster currently running control-plane version v1.28.3. Before beginning an upgrade, you want to verify which target versions are available and confirm the component version state without making any changes to the cluster. Which command should you run on the first control-plane node?

Reviewed for accuracy · Report an issue
Question 5 of 5

A pod named `web-stack` in the `frontend` namespace runs two containers: `nginx` and `log-agent`. Users report the web page returns HTTP 502 errors. You run `kubectl logs web-stack -n frontend` and receive the error: `Error from server (BadRequest): a container name must be specified for pod web-stack`. You need to view only the logs from the `nginx` container to diagnose the 502. Which command retrieves the correct container's logs?

Reviewed for accuracy · Report an issue