Sample questions
Certified Kubernetes Administrator CKA practice questions
You run `kubectl port-forward service/my-svc 8080:80`. What does this command do?
You need to investigate why a service is not reachable from within the cluster. Which of the following is the first step?
A CronJob runs every hour. The job takes 45 minutes to complete. What is the default behavior if the next scheduled time occurs while the previous job is still running?
Which three are possible reasons for a pod being in Pending state? (Choose three.)
A pod is configured to use a PersistentVolumeClaim (PVC). The PVC is bound to a PersistentVolume (PV) that uses a cloud disk. The pod fails to start with the error 'MountVolume.Set…
A pod is stuck in Pending state. You describe the pod and see: '0/4 nodes are available: 4 node(s) had taint {node.kubernetes.io/not-ready: }, that the pod didn't tolerate.' What i…
You run 'kubectl get nodes' and one node shows 'NotReady'. You SSH into the node and run 'systemctl status kubelet'. Kubelet is active but 'journalctl -u kubelet -n 50' shows 'netw…
You have a pod that is CrashLoopBackOff. The logs show 'error: dial tcp: lookup service.default.svc.cluster.local: no such host'. What is the most likely cause?
A team is designing a storage solution for a Cassandra cluster on Kubernetes. Each pod must have its own dedicated storage, and the cluster must be able to scale up and down dynami…
Which THREE of the following are valid commands to troubleshoot network connectivity between pods? (Select 3)
A cluster administrator notices that nodes are not joining the cluster after a kubeadm init. The kubelet logs show: 'failed to run Kubelet: could not init service: open /var/lib/ku…
Cluster Architecture, Installation & ConfigurationhardSee the answer and why each option is right or wrong →An administrator runs 'kubeadm init' on a machine that previously had a Kubernetes cluster. The command fails with the above errors. What is the best course of action?
Cluster Architecture, Installation & ConfigurationhardSee the answer and why each option is right or wrong →A Service of type ClusterIP is not reachable from within the cluster. Pods backing the Service are running and healthy. What is the most likely cause?
A Pod is in Pending state for a long time. 'kubectl describe pod' shows the event: '0/3 nodes are available: 3 node(s) had taints that the pod didn't tolerate'. What is the most li…
A pod is stuck in Pending with event '0/4 nodes are available: 1 node(s) had taint "node.kubernetes.io/disk-pressure", and 3 node(s) had taint "node.kubernetes.io/memory-pressure",…
Which of the following are valid methods to debug a failing CoreDNS pod? (Select TWO)
A node in the cluster is showing status 'NotReady'. You run 'kubectl describe node worker1' and see that the kubelet has not posted node status for more than 1 minute. Which comman…
A pod is in CrashLoopBackOff. The YAML for the initContainer is: apiVersion: v1 kind: Pod metadata: name: myapp spec: initContainers: - name: init image: busybox com…
You suspect the kubelet on a worker node has stopped. Which two commands should you run to confirm the kubelet status and check its logs?
A node shows status NotReady. You SSH into the node and run 'systemctl status kubelet' which shows the kubelet is active (running). What is the next most likely step to diagnose th…
A user tries to create a pod with the YAML file that requests 2 CPUs as a limit. The cluster has a ResourceQuota named 'compute-quota' with limits.cpu: 2. The user sees the above e…
Cluster Architecture, Installation & ConfigurationmediumSee the answer and why each option is right or wrong →A company deploys a web application with multiple replicas in a Kubernetes cluster. Users report intermittent connectivity issues. The application pods are exposed via a ClusterIP…
Which TWO of the following are valid reasons to use a Headless Service?
A Node is in NotReady state. Which action should be taken first to diagnose the issue?