Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Troubleshooting practice sets

CKA Troubleshooting • Complete Question Bank

CKA Troubleshooting — All Questions With Answers

Complete CKA Troubleshooting question bank — all 0 questions with answers and detailed explanations.

290
Questions
Free
No signup
Certifications/CKA/Practice Test/Troubleshooting/All Questions
Question 1mediummultiple choice
Read the full Troubleshooting explanation →

A pod named 'web-frontend' is in CrashLoopBackOff. You run 'kubectl logs web-frontend' and see: 'Error: listen tcp :8080: bind: address already in use'. What is the most likely cause and how should you fix it?

Question 2hardmultiple choice
Read the full DNS explanation →

A user reports that their application cannot resolve DNS names for services in the cluster. The application runs in a pod with dnsPolicy: ClusterFirst. What is the most likely cause?

Question 3easymulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid methods to troubleshoot a pod that is stuck in 'Pending' state?

Question 4mediummultiple choice
Read the full Troubleshooting explanation →

Based on the exhibit, the pod is in CrashLoopBackOff. Which command should you run NEXT to identify the root cause?

Exhibit

Refer to the exhibit.

$ kubectl get pods -n production
NAME                    READY   STATUS             RESTARTS   AGE
api-6f4d7b9d4c-abcde   0/1     CrashLoopBackOff   5          3m

$ kubectl describe pod api-6f4d7b9d4c-abcde -n production
...
Events:
  Type     Reason     Age                   From               Message
  ----     ------     ----                  ----               -------
  Normal   Scheduled  3m40s                 default-scheduler  Successfully assigned production/api-6f4d7b9d4c-abcde to node-1
  Normal   Pulled     3m30s                 kubelet            Container image "nginx:1.21" already present on machine
  Normal   Created    3m30s                 kubelet            Created container api
  Normal   Started    3m30s                 kubelet            Started container api
  Warning  BackOff    1s (x5 over 3m)       kubelet            Back-off restarting failed container
Question 5hardmultiple choice
Read the full Troubleshooting explanation →

You are a CKA managing a production cluster with 5 worker nodes. A developer reports that a new deployment 'payment-service' is not accessible from other pods via its Service 'payment-svc' in the 'default' namespace. The Service is of type ClusterIP with selector 'app: payment'. The deployment has 3 replicas, all showing 'Running' status. From a test pod, you run 'curl http://payment-svc:8080' and get 'Connection refused'. You verify that the pods are listening on port 8080 and the container's readiness probe passes. 'kubectl get endpoints payment-svc' shows no endpoints. 'kubectl describe svc payment-svc' shows the selector 'app=payment'. What is the most likely cause?

Question 6mediummulti select
Read the full Troubleshooting explanation →

A developer reports that a newly deployed Deployment named 'web-app' is not serving traffic. The Deployment has 3 replicas, a Service of type ClusterIP, and an Ingress. Which TWO commands should you run first to diagnose the issue?

Question 7hardmultiple choice
Read the full Troubleshooting explanation →

Based on the exhibit, what is the most likely cause of the pod not running?

Exhibit

Refer to the exhibit.
$ kubectl describe pod nginx-pod
...
Events:
  Type     Reason                  Age   From               Message
  ----     ------                  ----  ----               -------
  Normal   Scheduled               2m    default-scheduler  Successfully assigned default/nginx-pod to node-1
  Warning  FailedMount             2m    kubelet            MountVolume.SetUp failed for volume "config" : secrets "my-secret" not found
  Warning  FailedMount             1m    kubelet            MountVolume.SetUp failed for volume "config" : secrets "my-secret" not found
  Warning  FailedMount             30s   kubelet            MountVolume.SetUp failed for volume "config" : secrets "my-secret" not found
Question 8easymultiple choice
Read the full Troubleshooting explanation →

You are tasked with troubleshooting a production Kubernetes cluster. A user reports that they cannot access a web application running in the cluster. The application is deployed as a Deployment named 'frontend' with 2 replicas, exposed via a Service of type LoadBalancer. You have kubectl access to the cluster. You run 'kubectl get pods -l app=frontend' and see both pods are Running and Ready. You run 'kubectl get svc frontend' and see the Service has an external IP of 192.168.1.100. However, when you curl http://192.168.1.100 from a machine outside the cluster, you get a connection timeout. You are able to curl the pod IPs directly from within the cluster and get a response. Which of the following is the most likely cause of the issue?

Question 9easymultiple choice
Read the full Troubleshooting explanation →

A pod is in CrashLoopBackOff state. Which command should you use to see the logs of the previous instance?

Question 10mediummultiple choice
Read the full Troubleshooting explanation →

You run kubectl get nodes and see one node is NotReady. The kubelet is running on the node. What is the most likely cause?

Question 11hardmultiple choice
Read the full Troubleshooting explanation →

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 is the most likely reason?

Question 12mediummultiple choice
Read the full Troubleshooting explanation →

You need to investigate why a service is not reachable from within the cluster. Which of the following is the first step?

Question 13hardmultiple choice
Read the full Troubleshooting explanation →

A pod has status 'Init:Error'. What does this indicate?

Question 14mediummulti select
Read the full DNS explanation →

Which of the following are valid methods to debug a failing CoreDNS pod? (Select TWO)

Question 15easymultiple choice
Read the full NAT/PAT explanation →

A pod is in CrashLoopBackOff state. Which command shows the last termination reason?

Question 16mediummultiple choice
Read the full Troubleshooting explanation →

A Node is in NotReady state. Which action should be taken first to diagnose the issue?

Question 17hardmultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in ContainerCreating. Which condition is most likely if `kubectl describe pod` shows 'Failed to create pod sandbox'?

Question 18mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in ImagePullBackOff. Which command would help determine the exact reason?

Question 19hardmultiple choice
Read the full Troubleshooting explanation →

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?

Question 20mediummulti select
Read the full Troubleshooting explanation →

A worker node is marked NotReady. Which two checks are most relevant to diagnose the node's kubelet health? (Choose two.)

Question 21hardmulti select
Read the full Troubleshooting explanation →

A Deployment's pods are failing with 'CrashLoopBackOff'. The container exits with code 1. Which two approaches will help identify the issue? (Choose two.)

Question 22easymultiple choice
Read the full Troubleshooting explanation →

A user reports that a pod is stuck in 'ContainerCreating' state. Which command would you run first to diagnose the issue?

Question 23mediummultiple choice
Read the full Troubleshooting explanation →

A Node is reporting DiskPressure condition. Which action is most appropriate to resolve this without losing data?

Question 24hardmultiple choice
Read the full Troubleshooting explanation →

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?

Question 25hardmultiple choice
Read the full Troubleshooting explanation →

A pod is running but cannot be accessed via its ClusterIP service from another pod in the same namespace. The service endpoints list shows the pod's IP. What is the most likely cause?

Question 26mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see some pods in 'ImagePullBackOff' state. Which command would best help identify the root cause?

Question 27mediummulti select
Read the full Troubleshooting explanation →

Which of the following are valid methods to troubleshoot a Node that is 'NotReady'? (Select all that apply)

Question 28hardmulti select
Read the full Troubleshooting explanation →

You have a Deployment that is not scaling up beyond 1 replica despite setting replicas: 3. Which of the following could be the cause? (Select all that apply)

Question 29easymultiple choice
Read the full Troubleshooting explanation →

A node in your cluster is reporting a DiskPressure condition. Which kubectl command would you use to get details about the node's condition?

Question 30mediummultiple choice
Read the full Troubleshooting explanation →

A Pod is stuck in CrashLoopBackOff. You run `kubectl logs <pod-name>` but see no output. What is the most likely cause?

Question 31hardmultiple choice
Read the full Troubleshooting explanation →

A Service of type LoadBalancer is created but the EXTERNAL-IP remains <pending>. The cluster is running on-premises without a cloud load balancer integration. Which of the following is the most likely reason?

Question 32mediummulti select
Read the full Troubleshooting explanation →

A Pod is in ImagePullBackOff state. Which of the following are valid troubleshooting steps? (Select two.)

Question 33hardmulti select
Read the full Troubleshooting explanation →

A ClusterIP Service is not reachable from within the cluster. You verify that the Service has endpoints. Which of the following could be the cause? (Select three.)

Question 34mediumdrag order
Read the full Troubleshooting explanation →

Drag and drop the steps to back up and restore etcd data for a Kubernetes cluster into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 35mediumdrag order
Read the full Troubleshooting explanation →

Drag and drop the steps to set up a PersistentVolumeClaim for a pod into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 36mediummatching
Read the full Troubleshooting explanation →

Match each scheduling concept to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Simple label-based constraint

Expressive scheduling rules using labels

Repels Pods unless they tolerate the taint

Allows a Pod to be scheduled on a tainted Node

Determines scheduling precedence based on priority class

Question 37mediummatching
Read the full Troubleshooting explanation →

Match each logging/monitoring component to its role.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Log aggregator and forwarder

Metrics collection and alerting system

Dashboard and visualization tool

Exposes cluster object metrics

Provides resource usage metrics for autoscaling

Question 38easymultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod in 'ImagePullBackOff' state. What is the most likely cause?

Question 39mediummultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in 'Pending' state. Which command would you run FIRST to diagnose the issue?

Question 40mediummultiple choice
Read the full Troubleshooting explanation →

After deploying a new Deployment, you run 'kubectl get events' and see 'FailedScheduling' events. What is a possible cause?

Question 41hardmultiple choice
Read the full Troubleshooting explanation →

You have a multi-node cluster. One node shows 'NotReady'. You run 'journalctl -u kubelet' on that node and see 'network plugin is not ready'. What is the most likely cause?

Question 42mediummultiple choice
Read the full Troubleshooting explanation →

You want to check the logs of a container that previously crashed. Which command should you use?

Question 43hardmultiple choice
Read the full DNS explanation →

You are troubleshooting a DNS issue. From within a pod, you run 'nslookup kubernetes.default.svc.cluster.local' and get 'connection timed out; no servers could be reached'. What is the most likely cause?

Question 44easymultiple choice
Read the full Troubleshooting explanation →

Which command shows CPU and memory usage of nodes in the cluster?

Question 45mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod in 'CrashLoopBackOff'. What command would you run to see the reason for the crash?

Question 46hardmultiple choice
Read the full Troubleshooting explanation →

You want to test network connectivity from pod A to pod B in the same namespace. Which command would you run from within pod A?

Question 47mediummultiple choice
Read the full Troubleshooting explanation →

You see a pod in 'Pending' state. 'kubectl describe pod' shows '0/4 nodes are available: 1 node(s) had taint(s) that the pod didn't tolerate, 3 Insufficient cpu'. What should you do?

Question 48easymultiple choice
Read the full Troubleshooting explanation →

Which command would you use to check the status of the kube-apiserver on a control plane node managed by systemd?

Question 49mediummultiple choice
Read the full Troubleshooting explanation →

You deploy a pod with resource limits but no requests. The pod gets OOMKilled. What is the most likely reason?

Question 50mediummulti select
Read the full NAT/PAT explanation →

Which TWO of the following are valid methods to view the logs of a container that has terminated?

Question 51hardmulti select
Read the full Troubleshooting explanation →

Which THREE of the following are common causes for a pod to remain in 'Pending' state?

Question 52mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following commands are useful for debugging network connectivity between pods?

Question 53mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in CrashLoopBackOff. You run 'kubectl logs mypod --previous' and see 'Error: unable to connect to database'. What is the MOST likely cause?

Question 54easymultiple choice
Read the full Troubleshooting explanation →

Which command retrieves logs from a container that has crashed and restarted?

Question 55mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get nodes' and one node shows 'NotReady'. You SSH into the node and run 'systemctl status kubelet'. The output shows 'active (running)'. What should you check NEXT?

Question 56hardmultiple choice
Read the full Troubleshooting explanation →

A Deployment's pod is stuck in Pending state. 'kubectl describe pod' shows Events: '0/4 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate, 3 Insufficient memory'. What is the likely fix?

Question 57mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in ImagePullBackOff state. Which command is MOST useful to diagnose the issue?

Question 58easymultiple choice
Read the full Troubleshooting explanation →

You want to check the memory usage of nodes in your cluster. Which command should you use?

Question 59mediummultiple choice
Read the full DNS explanation →

A pod is unable to resolve DNS names. You exec into the pod and run 'nslookup kubernetes.default.svc.cluster.local'. The command hangs. What is the MOST likely cause?

Question 60hardmultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod in 'CrashLoopBackOff'. 'kubectl logs pod' shows no output, but 'kubectl logs --previous pod' shows an error. Why might the current logs be empty?

Question 61mediummultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in Pending state. 'kubectl describe pod' shows '0/2 nodes are available: 1 node(s) had taint that the pod didn't tolerate, 1 node(s) didn't match pod anti-affinity rules'. What should you check?

Question 62easymultiple choice
Read the full Troubleshooting explanation →

Which command shows all events in the cluster sorted by timestamp?

Question 63mediummultiple choice
Read the full Troubleshooting explanation →

You suspect that the kube-scheduler is not running. Which command checks the scheduler's health?

Question 64hardmultiple choice
Read the full Troubleshooting explanation →

A pod runs but you cannot connect to its container port from another pod in the same namespace. 'kubectl exec' into the pod and 'curl localhost:8080' works. What is the MOST likely cause?

Question 65mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid reasons for a pod to be in the Pending state? (Choose two)

Question 66hardmulti select
Read the full Troubleshooting explanation →

Which THREE of the following are valid steps to troubleshoot a Node in NotReady state? (Choose three)

Question 67mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are common causes of CrashLoopBackOff? (Choose two)

Question 68mediummultiple choice
Read the full Troubleshooting explanation →

A node in the cluster is reporting NotReady. You run 'journalctl -u kubelet' and see repeated errors: 'failed to get system container stats for "/system.slice/kubelet.service": failed to get cgroup stats'. What is the most likely cause?

Question 69easymultiple choice
Read the full Troubleshooting explanation →

You need to check the logs of a container that previously ran but has crashed. Which command would you use?

Question 70hardmultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in Pending state. 'kubectl describe pod' shows the event: '0/3 nodes are available: 3 node(s) didn't match pod anti-affinity rules'. What is the most likely cause?

Question 71mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in ImagePullBackOff state. Which command can you run to get more details about the underlying error?

Question 72easymultiple choice
Read the full Troubleshooting explanation →

You want to view the resource usage of all pods in the cluster. What command should you run?

Question 73mediummultiple choice
Read the full Troubleshooting explanation →

A pod named 'web-app' is crashing repeatedly. You run 'kubectl describe pod web-app' and see that the container exited with code 137. What does this indicate?

Question 74hardmultiple choice
Read the full Troubleshooting explanation →

You are troubleshooting a connectivity issue between two pods in the same cluster. Pod A cannot reach Pod B's IP. Which command would you run from Pod A to test connectivity?

Question 75mediummultiple choice
Read the full Troubleshooting explanation →

A pod has been in Pending state for a long time. 'kubectl describe pod' shows the event: '0/3 nodes are available: 1 node(s) had taint {node.kubernetes.io/not-ready: }, that the pod didn't tolerate, 2 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate.' What is the most likely cause?

Question 76easymultiple choice
Read the full Troubleshooting explanation →

You need to see the startup logs of the kubelet service. Which command should you use?

Question 77hardmultiple choice
Read the full NAT/PAT explanation →

You run 'kubectl get pods' and see a pod in CrashLoopBackOff. The pod has a single container. You want to see the last termination message from the container. Which command will provide that information?

Question 78mediummultiple choice
Read the full Troubleshooting explanation →

A pod is failing to start with the error 'CrashLoopBackOff'. You check the logs with 'kubectl logs pod' and see nothing. What is the most likely reason?

Question 79easymultiple choice
Read the full Troubleshooting explanation →

Which command shows all events in the cluster sorted by timestamp?

Question 80mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are common causes for a pod to be stuck in Pending state?

Question 81hardmulti select
Read the full DNS explanation →

Which THREE of the following are valid steps to troubleshoot a DNS issue within a Kubernetes cluster?

Question 82mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are correct methods to check the health of the kube-apiserver?

Question 83mediummultiple choice
Read the full Troubleshooting explanation →

A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and see the message: 'OOMKilled'. What is the MOST appropriate action to resolve this issue?

Question 84mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get nodes' and see that one node is in the 'NotReady' state. Which command would you use FIRST to investigate the kubelet status on that node?

Question 85easymultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in 'Pending' state. You run 'kubectl describe pod my-pod' and see the event: '0/4 nodes are available: 4 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate'. What is the likely cause?

Question 86hardmultiple choice
Read the full Troubleshooting explanation →

You need to check the logs of a container that previously crashed. The pod is currently running, but the previous instance of the container exited with an error. Which command will show you the logs from the crashed container?

Question 87mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod in 'ImagePullBackOff' state. Which of the following is NOT a common cause?

Question 88easymultiple choice
Read the full Troubleshooting explanation →

You need to verify if the kube-apiserver is running on the control plane node. Which command should you use?

Question 89mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in 'CrashLoopBackOff' state. You run 'kubectl logs my-pod' and see 'exec format error: exec: "/app": stat /app: no such file or directory'. What is the most likely cause?

Question 90hardmultiple choice
Read the full Troubleshooting explanation →

You want to check the current resource usage (CPU and memory) of pods in the 'default' namespace. Which kubectl command should you use?

Question 91mediummultiple choice
Read the full DNS explanation →

You are debugging a DNS issue from within a pod. The pod is running 'busybox'. Which command would you use to test DNS resolution for 'kubernetes.default.svc.cluster.local'?

Question 92easymultiple choice
Read the full Troubleshooting explanation →

You see events like 'Failed to pull image' when running 'kubectl get events'. Which command can you use to get more detailed information about a specific pod's events?

Question 93hardmultiple choice
Read the full Troubleshooting explanation →

A pod is not able to communicate with another pod in the same namespace. Both pods are running and have IP addresses. Which command can you use to test connectivity from the first pod to the second pod's IP?

Question 94mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get nodes' and see that a node is 'NotReady'. You SSH into the node and run 'systemctl status kubelet'. The output shows 'Active: inactive (dead)'. What is the most likely cause?

Question 95mediummulti select
Read the full Troubleshooting explanation →

A pod is stuck in 'Pending' state. Which TWO of the following are common causes?

Question 96hardmulti select
Read the full Troubleshooting explanation →

Which THREE of the following are valid methods to troubleshoot a CrashLoopBackOff pod?

Question 97easymulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid commands to check the status of control plane components?

Question 98mediummultiple choice
Read the full Troubleshooting explanation →

A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and see the message: 'OOMKilled'. What is the MOST appropriate action to resolve this issue?

Question 99easymultiple choice
Read the full Troubleshooting explanation →

Which kubectl command is used to view the logs of a container that has previously crashed in a pod?

Question 100easymultiple choice
Read the full Troubleshooting explanation →

You have a pod that is in 'Pending' state. Which command would you run to get more information about why the pod cannot be scheduled?

Question 101mediummultiple choice
Read the full Troubleshooting explanation →

A node in your cluster shows status 'NotReady'. You have SSH access to the node. What is the first command you should run to check the kubelet status?

Question 102mediummultiple choice
Read the full Troubleshooting explanation →

You create a Deployment with the following YAML:

apiVersion: apps/v1 kind: Deployment metadata: name: myapp spec: replicas: 3 selector: matchLabels: app: myapp template: metadata: labels: app: myapp spec: containers: - name: myapp image: myapp:latest resources: limits: cpu: "500m" memory: "256Mi" requests: cpu: "200m" memory: "128Mi"

After applying it, the pods are in 'CrashLoopBackOff'. You check logs and see 'Error: container process exited with error'. What is the MOST likely cause?

Question 103hardmultiple choice
Read the full Troubleshooting explanation →

You are troubleshooting a pod that cannot start. Running 'kubectl describe pod' shows the event: 'Failed to pull image "myregistry.io/myapp:1.0": rpc error: code = Unknown desc = Error response from daemon: manifest for myregistry.io/myapp:1.0 not found'. What is the MOST likely cause?

Question 104easymultiple choice
Read the full Troubleshooting explanation →

You need to check the current resource usage of nodes in your cluster. Which command should you use?

Question 105mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in 'ImagePullBackOff' state. You run 'kubectl describe pod' and see the event: 'Failed to pull image "nginx:latest": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 8.8.8.8:53: no such host'. What is the MOST likely cause?

Question 106hardmultiple choice
Read the full DNS explanation →

You have a multi-node cluster. One node is healthy but pods scheduled on another node are failing to resolve DNS names. You exec into a pod and run 'nslookup kubernetes.default.svc.cluster.local' and get 'server can't find kubernetes.default.svc.cluster.local: NXDOMAIN'. Running the same command on a pod on the healthy node works. What is the MOST likely cause?

Question 107mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod in 'CrashLoopBackOff'. You want to see the logs of the last crashed instance. Which command should you run?

Question 108easymultiple choice
Read the full Troubleshooting explanation →

Which command can you run to see the events related to a specific pod?

Question 109hardmultiple choice
Read the full Troubleshooting explanation →

You have a pod that is stuck in 'Pending' state. Running 'kubectl describe pod' shows the event: '0/3 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 2 node(s) didn't match pod anti-affinity rules.' What is the MOST likely solution?

Question 110mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid steps to troubleshoot a pod that is in 'CrashLoopBackOff'?

Question 111mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are possible reasons for a node being in 'NotReady' state?

Question 112hardmulti select
Read the full Troubleshooting explanation →

Which THREE of the following are possible causes for a pod to remain in 'Pending' state?

Question 113easymultiple choice
Read the full Troubleshooting explanation →

A node in your cluster is reporting 'NotReady' status. You log into the node and run 'systemctl status kubelet'. The kubelet service is not running. Which command should you use to start the kubelet and enable it to start on boot?

Question 114mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod in 'ImagePullBackOff' state. Which command would help you determine the exact reason for the image pull failure?

Question 115hardmultiple choice
Read the full NAT/PAT explanation →

A Pod is stuck in Pending state. 'kubectl describe pod' shows the event: '0/4 nodes are available: 1 node had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate, 3 Insufficient cpu.' Which of the following is the most likely combination of issues?

Question 116mediummultiple choice
Read the full Troubleshooting explanation →

A developer reports that a Pod named 'web-pod' in namespace 'frontend' is crashing repeatedly. You run 'kubectl logs web-pod -n frontend' but see no output. Which command should you run next to see the logs from the previous, crashed container instance?

Question 117hardmultiple choice
Read the full Troubleshooting explanation →

You have a Deployment with one replica. The Pod enters CrashLoopBackOff. 'kubectl describe pod' shows the container exits with code 137. What is the most likely cause?

Question 118easymultiple choice
Read the full Troubleshooting explanation →

You need to check the CPU and memory usage of all pods in the 'production' namespace. Which command should you use?

Question 119mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in 'Pending' state. After running 'kubectl describe pod', you see the event: '0/3 nodes are available: 3 PersistentVolumeClaim is not bound'. What is the most likely cause?

Question 120mediummultiple choice
Read the full DNS explanation →

You have a Service named 'my-svc' in namespace 'app'. A Pod in the same namespace cannot resolve the hostname 'my-svc' to an IP address. Which command should you run inside the Pod to test DNS name resolution?

Question 121hardmultiple choice
Read the full Troubleshooting explanation →

A Pod is in 'CrashLoopBackOff' state. You run 'kubectl logs <pod> --previous' and see an error about a missing environment variable. The Pod spec defines the environment variable in a ConfigMap. What is the best next step to diagnose the issue?

Question 122easymultiple choice
Read the full Troubleshooting explanation →

A Pod that was running fine is now showing 'OOMKilled' in its status. Which kubectl command would show you the memory limit and usage for the container?

Question 123mediummultiple choice
Read the full Troubleshooting explanation →

You have a Deployment with 3 replicas. One of the pods is in 'Pending' state. 'kubectl describe pod' shows: 'Warning FailedScheduling 0/4 nodes are available: 1 node(s) had taint {key1: value1}, that the pod didn't tolerate, 3 node(s) didn't match pod anti-affinity rules.' Which two issues are preventing the pod from being scheduled?

Question 124mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod with status 'Init:CrashLoopBackOff'. What does this indicate?

Question 125mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid methods to diagnose why a node is in 'NotReady' state?

Question 126hardmulti select
Read the full Troubleshooting explanation →

A pod is in 'CrashLoopBackOff' state. Which THREE of the following are possible causes?

Question 127easymulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid reasons a pod might be stuck in 'Pending' state?

Question 128mediummultiple choice
Read the full Troubleshooting explanation →

A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and see the message: 'OOMKilled'. What is the MOST appropriate action to resolve this issue?

Question 129easymultiple choice
Read the full Troubleshooting explanation →

You have a Pod that is stuck in Pending state. Which command should you use to get detailed information about why the Pod is not running?

Question 130mediummultiple choice
Read the full Troubleshooting explanation →

A node in the cluster is showing NotReady status. Which steps should you take to diagnose the issue? (Select the BEST initial step.)

Question 131mediummultiple choice
Read the full Troubleshooting explanation →

After deploying a new Deployment, you notice that the pods are stuck in ImagePullBackOff. What is the most common cause?

Question 132hardmultiple choice
Read the full Troubleshooting explanation →

You have a Pod that is stuck in Pending state. Running 'kubectl describe pod' shows events: '0/4 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/control-plane: }, 3 node(s) had taint {key: value}, that the pod didn't tolerate.' How can you resolve this issue?

Question 133easymultiple choice
Read the full Troubleshooting explanation →

Which command should you use to view the logs of a container that has previously crashed in a Pod?

Question 134mediummultiple choice
Read the full Troubleshooting explanation →

A Pod is in CrashLoopBackOff. You run 'kubectl describe pod' and see that the container fails with 'Error: container command not found'. What is the most likely cause?

Question 135hardmultiple choice
Read the full Troubleshooting explanation →

You have a Deployment with the following resource limits for containers: memory: 256Mi. The pod is repeatedly killed with OOMKilled. You need to change the limit to 512Mi. Which field should you modify in the Deployment YAML?

Question 136easymultiple choice
Read the full Troubleshooting explanation →

Which of the following is a valid command to check the status of the kubelet service on a node running systemd?

Question 137mediummultiple choice
Read the full Troubleshooting explanation →

You have two Pods in different namespaces. Pod A (namespace: frontend) cannot reach Pod B (namespace: backend) via the ClusterIP service 'backend-svc' in the backend namespace. Which command should you use from within Pod A to test connectivity?

Question 138mediummultiple choice
Read the full DNS explanation →

You are debugging a DNS issue in the cluster. Which of the following tools is commonly used to test DNS resolution from within a Pod?

Question 139hardmultiple choice
Read the full Troubleshooting explanation →

A Pod is running but cannot connect to a Service. You have verified that the Service endpoints are correct. Which of the following is the most likely cause if the Pod is using hostNetwork: true?

Question 140mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid commands to view cluster events sorted by timestamp?

Question 141mediummulti select
Read the full Troubleshooting explanation →

Which THREE of the following are common causes for a Pod to remain in Pending state? (Select THREE.)

Question 142hardmulti select
Read the full Troubleshooting explanation →

You have a Pod that is in CrashLoopBackOff. Which TWO of the following commands would be most helpful in diagnosing the issue?

Question 143mediummultiple choice
Read the full Troubleshooting explanation →

A node in your cluster is in the 'NotReady' state. You SSH into the node and run 'systemctl status kubelet' which shows the kubelet is active but not functioning correctly. Which command should you use to get detailed logs to troubleshoot the kubelet?

Question 144easymultiple choice
Read the full Troubleshooting explanation →

You have a pod named 'web-pod' that is in a CrashLoopBackOff state. To examine the logs from the previous instance of the container, which command should you use?

Question 145mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in the 'Pending' state for a long time. You run 'kubectl describe pod pending-pod' and see the event: '0/4 nodes are available: 1 node(s) had taint {node.kubernetes.io/not-ready: }, 3 node(s) had taint {node-role.kubernetes.io/control-plane: } that the pod didn't tolerate.' What is the MOST likely solution?

Question 146hardmultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod with status 'ImagePullBackOff'. Which of the following is a possible cause?

Question 147mediummultiple choice
Read the full Troubleshooting explanation →

You need to check the resource usage of nodes in your cluster. Which command should you run?

Question 148easymultiple choice
Read the full Troubleshooting explanation →

A pod named 'app' is not starting. You run 'kubectl describe pod app' and see the event: 'MountVolume.SetUp failed for volume "pvc-volume" : rpc error: code = NotFound desc = volume not found'. What is the most likely issue?

Question 149mediummultiple choice
Read the full DNS explanation →

You suspect a DNS issue inside a pod. Which command can you run to test DNS resolution from within a pod?

Question 150hardmultiple choice
Read the full Troubleshooting explanation →

You are troubleshooting a network connectivity issue between two pods in different namespaces. The pods have the following labels: pod-a in namespace 'foo' with labels {app: web}, pod-b in namespace 'bar' with labels {app: db}. You verify that both pods have IP addresses and can ping the Kubernetes service IP. However, pod-a cannot connect to pod-b on port 5432. What should you check first?

Question 151easymultiple choice
Read the full Troubleshooting explanation →

Which command shows all events in the cluster, sorted by timestamp?

Question 152mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod with status 'CrashLoopBackOff'. You check the logs with 'kubectl logs <pod> --previous' and see: 'Error: unable to connect to database at db-svc:5432 (connection refused)'. What is the most likely cause?

Question 153hardmultiple choice
Read the full NAT/PAT explanation →

You are debugging a CrashLoopBackOff. The pod YAML includes the following container spec:

```yaml containers: - name: app image: myapp:1.0 livenessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 3 periodSeconds: 3 ```

The application starts successfully but crashes after about 10 seconds. What is the most likely cause?

Question 154mediummultiple choice
Read the full Troubleshooting explanation →

You need to view the logs of the previous instance of a container in a pod. Which command is correct?

Question 155mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are common causes for a pod to be in the 'Pending' state?

Question 156hardmulti select
Read the full Troubleshooting explanation →

Which THREE of the following are valid steps to troubleshoot a node that is in 'NotReady' state?

Question 157easymulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid commands to check resource usage of pods?

Question 158easymultiple choice
Read the full Troubleshooting explanation →

You suspect the kubelet on a worker node is not functioning correctly. Which command should you use to check the kubelet service status?

Question 159mediummultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in Pending state. You run 'kubectl describe pod my-pod' and see the event: '0/4 nodes are available: 1 node(s) had taint {node.kubernetes.io/not-ready: }, 3 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate'. What is the most likely cause?

Question 160mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl logs my-pod -c my-container' and get no output, but you know the container produces logs. What should you do next to see previous container logs?

Question 161hardmultiple choice
Read the full Troubleshooting explanation →

You have a Deployment with 3 replicas. Two pods are Running, one is CrashLoopBackOff. You run 'kubectl logs pod-crash -c app' and see: 'Error: failed to connect to database at 10.0.0.5:5432'. The database is a separate Pod with a ClusterIP service. How should you verify network connectivity from the crashing pod to the database service?

Question 162easymultiple choice
Read the full Troubleshooting explanation →

A pod is in ImagePullBackOff state. Which command would give you the most information about why the image pull failed?

Question 163mediummultiple choice
Read the full Troubleshooting explanation →

You need to check the memory usage of all pods in the 'production' namespace. Which command fulfills this requirement?

Question 164hardmultiple choice
Read the full Troubleshooting explanation →

A node is NotReady. You ssh into the node and run 'systemctl status kubelet'. It shows 'Active: inactive (dead)'. What is the most appropriate next step?

Question 165mediummultiple choice
Read the full DNS explanation →

You are troubleshooting DNS resolution from a pod. You exec into the pod and run 'nslookup kubernetes.default.svc.cluster.local'. It fails with 'server can't find kubernetes.default.svc.cluster.local: NXDOMAIN'. What is the most likely cause?

Question 166easymultiple choice
Read the full Troubleshooting explanation →

You want to see events sorted by timestamp in the 'kube-system' namespace. Which command should you use?

Question 167mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in CrashLoopBackOff. You check the logs with 'kubectl logs my-pod --previous' and see 'Error: cannot connect to database at 10.0.0.1:3306'. The database service is named 'mysql' and runs on port 3306. What is the most likely cause?

Question 168mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl top nodes' and get an error: 'error: metrics not available yet'. What is the most likely cause?

Question 169hardmultiple choice
Read the full Troubleshooting explanation →

A pod is in Pending state. You run 'kubectl describe pod pending-pod' and see an event: '0/3 nodes are available: 3 Insufficient memory'. However, you believe there is enough memory across the cluster. What could be the issue?

Question 170mediummulti select
Read the full Troubleshooting explanation →

Which two commands can be used to view the logs of a container that has crashed? (Choose two.)

Question 171mediummulti select
Read the full Troubleshooting explanation →

Which three are possible reasons for a pod being in Pending state? (Choose three.)

Question 172hardmulti select
Read the full Troubleshooting explanation →

You have a pod that is in CrashLoopBackOff. Which two troubleshooting steps should you take first? (Choose two.)

Question 173mediummultiple choice
Read the full Troubleshooting explanation →

A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and see the message: 'OOMKilled'. What is the MOST appropriate action to resolve this issue?

Question 174easymultiple choice
Read the full Troubleshooting explanation →

You are troubleshooting a node that is in 'NotReady' state. Which command should you use to check the kubelet logs for errors?

Question 175easymultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in 'Pending' state. You run 'kubectl describe pod mypod' and see the event: '0/3 nodes are available: 1 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate, 2 Insufficient memory.' Which issue is causing the pod to be pending?

Question 176mediummultiple choice
Read the full Troubleshooting explanation →

You have a Deployment with 3 replicas. After updating the container image, the new pods are in 'ImagePullBackOff' state. You run 'kubectl describe pod <pod-name>' and see the event: 'Failed to pull image "myregistry/myapp:latest": rpc error: code = Unknown desc = Error response from daemon: manifest for myregistry/myapp:latest not found: manifest unknown: manifest unknown'. What is the MOST likely cause?

Question 177mediummultiple choice
Read the full Troubleshooting explanation →

You are trying to debug a network connectivity issue between two pods. Pod A can reach the internet but cannot reach Pod B's IP address. Which command should you use to test connectivity from within Pod A to Pod B's service?

Question 178hardmultiple choice
Read the full Troubleshooting explanation →

You are troubleshooting a pod that is in 'CrashLoopBackOff' state. You run 'kubectl logs mypod' and get no output. You then run 'kubectl logs mypod --previous' and see an error: 'Error: failed to start container: context deadline exceeded'. What is the MOST likely cause?

Question 179easymultiple choice
Read the full Troubleshooting explanation →

Which command can be used to view resource usage of nodes in a cluster?

Question 180mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get events --sort-by=.lastTimestamp' and see the following events for a pod: 'Warning FailedScheduling 0/3 nodes are available: 3 Insufficient cpu'. What is the most likely solution?

Question 181hardmultiple choice
Read the full Troubleshooting explanation →

A Pod is stuck in 'Pending' state. Upon inspection, you find that the PVC it references is also 'Pending'. Which of the following is NOT a common cause for a PVC to remain in Pending state?

Question 182mediummultiple choice
Read the full DNS explanation →

You are troubleshooting DNS resolution from within a pod. You exec into the pod and run 'nslookup kubernetes.default.svc.cluster.local'. The command fails with 'connection timed out; no servers could be reached'. However, 'kubectl get svc -n kube-system' shows the kube-dns service with a ClusterIP. What is the MOST likely cause?

Question 183easymultiple choice
Read the full Troubleshooting explanation →

You want to check the status of the kube-apiserver on a control plane node. Which commands should you use? (Select the best option)

Question 184mediummultiple choice
Read the full Troubleshooting explanation →

You deploy a pod with the following YAML:

apiVersion: v1 kind: Pod metadata: name: test-pod spec: containers: - name: test image: nginx resources: requests: memory: "64Mi" cpu: "250m" limits: memory: "128Mi" cpu: "500m"

The pod starts, but after a few minutes it is killed with OOMKilled. What is the MOST likely reason?

Question 185mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid reasons for a pod to be in 'CrashLoopBackOff' state? (Choose two.)

Question 186hardmulti select
Read the full Troubleshooting explanation →

You are troubleshooting a node that is 'NotReady'. Which THREE of the following are possible causes? (Choose three.)

Question 187easymulti select
Read the full Troubleshooting explanation →

Which TWO of the following kubectl commands can be used to view the logs of a container in a pod? (Choose two.)

Question 188mediummultiple choice
Read the full Troubleshooting explanation →

A pod in the 'production' namespace is in CrashLoopBackOff state. Running 'kubectl describe pod web-app -n production' shows the event 'OOMKilled'. What is the most appropriate action to resolve this issue?

Question 189mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods -n default' and see a pod named 'backend' in ImagePullBackOff state. What is the most likely cause?

Question 190easymultiple choice
Read the full Troubleshooting explanation →

Which command shows the logs of a pod that has crashed and restarted?

Question 191mediummultiple choice
Read the full Troubleshooting explanation →

A pod remains in Pending state. 'kubectl describe pod' shows '0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate'. What is the solution?

Question 192hardmultiple choice
Read the full Troubleshooting explanation →

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 'network plugin is not ready: cni config uninitialized'. What is the most likely cause?

Question 193mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl top nodes' but get 'error: metrics not available yet'. What is the most likely cause?

Question 194hardmultiple choice
Read the full Troubleshooting explanation →

A newly created Service of type ClusterIP is not accessible from within the cluster. You exec into a pod and run 'curl http://service-name:80' but get 'Connection refused'. What is the most likely cause?

Question 195easymultiple choice
Read the full Troubleshooting explanation →

Which command shows events sorted by timestamp for troubleshooting recent issues?

Question 196mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod named 'db' in CrashLoopBackOff. 'kubectl logs db' shows nothing. 'kubectl logs db --previous' shows 'Error: database connection failed'. What is the most likely cause?

Question 197easymultiple choice
Read the full Troubleshooting explanation →

A pod is in CrashLoopBackOff. You want to see the current container's logs. Which command do you use?

Question 198hardmultiple choice
Read the full Troubleshooting explanation →

You have a Deployment with 3 replicas. One pod is in CrashLoopBackOff. The other two are Running. You run 'kubectl get events' and see 'Liveness probe failed: HTTP probe failed with statuscode: 503'. What should you do?

Question 199mediummultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in Pending state. 'kubectl describe pod' shows '0/1 nodes are available: 1 node(s) had taint {key=value: NoSchedule}, 1 node(s) had taint {node.kubernetes.io/unreachable: }. What does this indicate?

Question 200mediummulti select
Read the full DNS explanation →

Which THREE are valid methods to debug DNS resolution inside a pod? (Select 3)

Question 201mediummulti select
Read the full Troubleshooting explanation →

A pod is in Pending state. Which TWO are possible causes? (Select 2)

Question 202hardmulti select
Read the full Troubleshooting explanation →

Which THREE are valid steps to troubleshoot a node that is in 'NotReady' state? (Select 3)

Question 203mediummultiple choice
Read the full Troubleshooting explanation →

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 command should you run on the node to check the kubelet logs?

Question 204easymultiple choice
Read the full Troubleshooting explanation →

You deploy a pod with the following YAML and it remains in 'Pending' state. What is the most likely cause?

```yaml apiVersion: v1 kind: Pod metadata: name: myapp spec: containers: - name: myapp image: nginx resources: requests: memory: "64Gi" ```

Question 205hardmultiple choice
Read the full Troubleshooting explanation →

A pod is in CrashLoopBackOff. 'kubectl logs my-pod --previous' shows: 'Error: failed to start: exec: "/app/start.sh": stat /app/start.sh: no such file or directory'. What is the most likely cause?

Question 206easymultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see that a pod named 'web' is in 'ImagePullBackOff' state. Which command would help you see the reason for the image pull failure?

Question 207mediummultiple choice
Read the full Troubleshooting explanation →

You have a Deployment that is failing to update. You run 'kubectl rollout status deployment/myapp' and it hangs. Which command should you run to see the status of individual ReplicaSets and pods?

Question 208hardmultiple choice
Read the full Troubleshooting explanation →

A user reports that they cannot access a service running in the cluster from within another pod. They run 'kubectl exec -it pod-a -- curl http://service-b:8080' and get a connection timeout. What is the first thing you should check?

Question 209easymultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get events --sort-by='.lastTimestamp'' and see repeated events: 'Failed to pull image "myimage:v2": rpc error: code = Unknown desc = Error response from daemon: manifest for myimage:v2 not found'. What is the issue?

Question 210mediummultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in 'Pending' state. You run 'kubectl describe pod mypod' and see: '0/4 nodes are available: 4 node(s) didn't match pod anti-affinity constraints'. What does this mean?

Question 211mediummultiple choice
Read the full Troubleshooting explanation →

You deploy a pod with a readiness probe that checks an HTTP endpoint. The probe fails and the pod is marked as 'NotReady'. Which command would you use to see the exact HTTP response from the probe?

Question 212easymultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl top nodes' and it returns an error: 'error: metrics not available yet'. What does this indicate?

Question 213hardmultiple choice
Read the full Troubleshooting explanation →

You have a Deployment with three replicas. After a rolling update, all pods are in 'CrashLoopBackOff'. You want to revert to the previous revision. Which command accomplishes this?

Question 214mediummultiple choice
Read the full Troubleshooting explanation →

You try to run 'kubectl logs mypod' and get the error: 'Error from server (BadRequest): container "myapp" in pod "mypod" is waiting to start: PodInitializing'. What does this mean?

Question 215mediummulti select
Read the full Troubleshooting explanation →

A pod is in 'Pending' state. 'kubectl describe pod' shows: '0/3 nodes are available: 1 Insufficient memory, 2 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate.' Which TWO actions would resolve the issue? (Choose two)

Question 216hardmulti select
Read the full Troubleshooting explanation →

You have a pod that is 'CrashLoopBackOff'. 'kubectl logs --previous mypod' shows: 'Liveness probe failed: HTTP probe failed with statuscode: 503'. Which THREE actions could potentially fix the issue? (Choose three)

Question 217mediummulti select
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see that a pod named 'db' is in 'CrashLoopBackOff'. Which TWO commands are most useful for diagnosing the issue? (Choose two)

Question 218easymultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in Pending state. You run 'kubectl describe pod my-pod' and see the event '0/1 nodes are available: 1 Insufficient cpu'. What is the most likely cause?

Question 219mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get nodes' and one node shows 'NotReady'. Which command should you run first to check the kubelet status on that node?

Question 220mediummultiple choice
Read the full NAT/PAT explanation →

A pod has been restarted multiple times. You want to see the logs from the previous (terminated) container instance. Which command should you use?

Question 221hardmultiple choice
Read the full Troubleshooting explanation →

A pod is in CrashLoopBackOff. The YAML for the initContainer is:

apiVersion: v1 kind: Pod metadata: name: myapp spec: initContainers: - name: init image: busybox command: ['sh', '-c', 'sleep 5 && exit 1'] containers: - name: app image: nginx

What is the most likely reason for the CrashLoopBackOff?

Question 222easymultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and one pod shows 'ImagePullBackOff'. Which command would help you diagnose the issue?

Question 223mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in Pending state. You see the event: '0/2 nodes are available: 2 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate'. What should you do to schedule the pod on one of the control-plane nodes?

Question 224mediummultiple choice
Read the full DNS explanation →

You need to test DNS resolution from within a pod. Which command should you run?

Question 225hardmultiple choice
Read the full Troubleshooting explanation →

A Deployment is configured with replicas: 3, but only 2 pods are running. 'kubectl describe deployment' shows 'Replicas: 3 desired | 2 current | 2 available'. What could be the reason for the missing pod?

Question 226easymultiple choice
Read the full Troubleshooting explanation →

Which command shows resource usage (CPU/memory) of all pods in the default namespace?

Question 227mediummultiple choice
Read the full Troubleshooting explanation →

You suspect the kube-apiserver is down. Which command should you run on the control-plane node to check its status?

Question 228hardmultiple choice
Read the full DNS explanation →

A pod is in Running state but cannot connect to a service by its DNS name. 'kubectl exec <pod> -- curl http://my-service' fails. Which is the most likely cause?

Question 229mediummultiple choice
Read the full Troubleshooting explanation →

Which command shows all recent events in the cluster, sorted by timestamp?

Question 230mediummulti select
Read the full Troubleshooting explanation →

Which TWO actions can help troubleshoot a service that is not reachable from within a pod?

Question 231hardmulti select
Read the full Troubleshooting explanation →

A node is NotReady. Which THREE conditions could cause this?

Question 232easymulti select
Read the full Troubleshooting explanation →

Which TWO commands can be used to view logs for a pod?

Question 233mediummultiple choice
Read the full Troubleshooting explanation →

A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and see the message: 'OOMKilled'. What is the MOST appropriate action to resolve this issue?

Question 234easymultiple choice
Read the full Troubleshooting explanation →

You have a pod that is in 'Pending' state. Which command would you use to view detailed information about the pod's status, including events that may indicate why it is not running?

Question 235hardmultiple choice
Read the full Troubleshooting explanation →

A node in your cluster is reporting 'NotReady'. You SSH into the node and run 'systemctl status kubelet'. The output shows 'Active: inactive (dead)'. Which command should you run FIRST to attempt to resolve this?

Question 236mediummultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in 'Pending' state. 'kubectl describe pod' shows the following event: '0/4 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 3 node(s) had taint {node.kubernetes.io/disk-pressure: }, that the pod didn't tolerate.' Which action would resolve the issue?

Question 237easymultiple choice
Read the full Troubleshooting explanation →

You have a pod that is in 'CrashLoopBackOff' state. Which command should you use to view the logs from the previous instance of the container?

Question 238mediummultiple choice
Read the full Troubleshooting explanation →

You attempt to schedule a pod but it remains 'Pending'. 'kubectl describe pod' shows the event: '0/3 nodes are available: 3 node(s) didn't match node selector.' What is the MOST likely cause?

Question 239hardmultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl top nodes' and get an error: 'error: metrics not available yet'. Which of the following is the MOST likely cause?

Question 240mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in 'ImagePullBackOff' state. Which of the following is NOT a common cause?

Question 241easymultiple choice
Read the full Troubleshooting explanation →

You need to check the logs of a kubelet on a node. Which command should you run on the node?

Question 242mediummultiple choice
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see that a pod is in 'CrashLoopBackOff'. You want to examine the container's previous exit code. Which command provides this information?

Question 243hardmultiple choice
Read the full DNS explanation →

You are troubleshooting a DNS issue in the cluster. You exec into a pod and run 'nslookup kubernetes.default.svc.cluster.local'. The command returns 'server can't find kubernetes.default.svc.cluster.local: NXDOMAIN'. What is the MOST likely cause?

Question 244easymultiple choice
Read the full Troubleshooting explanation →

You have a pod that is in 'Pending' state because it requires a PersistentVolumeClaim that is not bound. Which event would you see in 'kubectl describe pod'?

Question 245mediummulti select
Read the full Troubleshooting explanation →

A pod is in 'Pending' state. Which TWO of the following are possible causes? (Select 2)

Question 246hardmulti select
Read the full Troubleshooting explanation →

You are troubleshooting a scenario where a pod cannot communicate with another pod in the same namespace via service name. Which THREE steps would you take to diagnose the issue? (Select 3)

Question 247mediummulti select
Read the full Troubleshooting explanation →

A node is in 'NotReady' state. Which TWO of the following are common causes? (Select 2)

Question 248mediummultiple choice
Read the full Troubleshooting explanation →

A pod is stuck in Pending state. Running 'kubectl describe pod mypod' reveals the event '0/4 nodes are available: 3 Insufficient memory, 1 node(s) had taints that the pod didn't tolerate'. What is the most likely cause?

Question 249mediummultiple choice
Read the full Troubleshooting explanation →

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?

Question 250easymultiple choice
Read the full Troubleshooting explanation →

To view the logs of a specific container in a multi-container pod named 'web-pod', which command is correct?

Question 251hardmultiple choice
Read the full Troubleshooting explanation →

A Deployment has 3 replicas. One pod is in CrashLoopBackOff. You run 'kubectl logs <pod> --previous' and see only a single line: 'Error: failed to start container'. What is the most likely cause?

Question 252easymultiple choice
Read the full Troubleshooting explanation →

Which command shows resource usage for pods and nodes in the cluster?

Question 253mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in ImagePullBackOff state. You run 'kubectl describe pod mypod' and see 'Failed to pull image "myapp:latest": rpc error: code = Unknown desc = Error response from daemon: manifest for myapp:latest not found: manifest unknown'. What is the most likely cause?

Question 254hardmultiple choice
Read the full Troubleshooting explanation →

You have a Deployment with livenessProbe configured. The pod restarts every few minutes. 'kubectl describe pod' shows the liveness probe is failing with 'HTTP probe failed with statuscode: 503'. The application's /healthz endpoint returns 200 from within the pod using 'kubectl exec'. What could be the issue?

Question 255mediummultiple choice
Read the full DNS explanation →

You are unable to resolve a Service DNS name from within a pod. To test DNS resolution, which command should you run inside the pod?

Question 256easymultiple choice
Read the full Troubleshooting explanation →

Which command lists all events in the cluster sorted by timestamp?

Question 257mediummultiple choice
Read the full Troubleshooting explanation →

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 the issue?

Question 258hardmultiple choice
Read the full Troubleshooting explanation →

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", that the pod didn't tolerate'. What is the best approach to schedule the pod?

Question 259easymultiple choice
Read the full Troubleshooting explanation →

You want to see the last 50 lines of logs from a pod named 'api-pod' for the container 'api-container'. Which command accomplishes this?

Question 260mediummulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid causes for a pod to be in CrashLoopBackOff?

Question 261mediummulti select
Read the full DNS explanation →

Which THREE of the following are valid steps to troubleshoot DNS issues in a Kubernetes cluster?

Question 262hardmulti select
Read the full Troubleshooting explanation →

Which TWO of the following could cause a Node to be in NotReady state?

Question 263mediummultiple choice
Read the full Troubleshooting explanation →

A node in your cluster is marked as NotReady. You SSH into the node and run 'systemctl status kubelet'. The output shows the kubelet is inactive (dead). What should you do FIRST to restore the node?

Question 264easymultiple choice
Read the full Troubleshooting explanation →

Which command can you use to view the logs of a container that has crashed and been restarted?

Question 265mediummultiple choice
Read the full Troubleshooting explanation →

A Deployment named 'web' is failing to schedule pods. You run 'kubectl describe pod web-xyz' and see the event: '0/3 nodes are available: 3 Insufficient cpu.' What is the most likely cause?

Question 266hardmultiple choice
Read the full Troubleshooting explanation →

A pod remains in Pending state. You run 'kubectl describe pod mypod' and see the following event: '0/3 nodes are available: 2 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate, 1 node(s) didn't match pod anti-affinity rules.' What is the best action to schedule the pod?

Question 267mediummultiple choice
Read the full Troubleshooting explanation →

You deploy a pod with image 'nginx:1.21'. It stays in ImagePullBackOff. You run 'kubectl describe pod nginx-pod' and see the event: 'Failed to pull image "nginx:1.21": rpc error: code = Unknown desc = Error response from daemon: manifest for nginx:1.21 not found'. What is the most likely fix?

Question 268easymultiple choice
Read the full Troubleshooting explanation →

Which command shows resource usage (CPU and memory) for nodes in a cluster?

Question 269hardmultiple choice
Read the full DNS explanation →

You cannot reach a service by its DNS name from within a pod. Running 'kubectl exec -it dnsutils -- nslookup myservice' returns 'server can't find myservice: NXDOMAIN'. Which of the following is the MOST probable cause?

Question 270mediummultiple choice
Read the full Troubleshooting explanation →

The controller-manager logs show repeated errors: 'Failed to list *v1.Pod: connection refused'. What is the most likely cause?

Question 271mediummultiple choice
Read the full Troubleshooting explanation →

A pod is in CrashLoopBackOff. You run 'kubectl logs pod-name' and see nothing. You suspect the app is failing due to a missing environment variable. Which command can you use to verify environment variables inside the container?

Question 272easymultiple choice
Read the full Troubleshooting explanation →

Which command would you use to view all events in the cluster sorted by timestamp?

Question 273mediummulti select
Read the full Troubleshooting explanation →

A pod is in ImagePullBackOff. Which TWO of the following are possible causes? (Select 2)

Question 274mediummulti select
Read the full Troubleshooting explanation →

A pod is stuck in Pending state. Which TWO of the following could be causes? (Select 2)

Question 275hardmulti select
Read the full Troubleshooting explanation →

Which THREE of the following are valid commands to troubleshoot network connectivity between pods? (Select 3)

Question 276hardmulti select
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see that a pod is in CrashLoopBackOff. Which THREE of the following are valid next steps? (Select 3)

Question 277easymulti select
Read the full Troubleshooting explanation →

Which TWO of the following are valid ways to view the status of the kube-apiserver? (Select 2)

Question 278easymulti select
Read the full Troubleshooting explanation →

You are troubleshooting a node that shows 'NotReady' status. Which TWO commands can help you investigate the kubelet state?

Question 279mediummulti select
Read the full Troubleshooting explanation →

A pod is stuck in 'Pending' state. Which THREE are common causes for this?

Question 280mediummulti select
Read the full Troubleshooting explanation →

You run 'kubectl logs pod-name' and get no output. Which TWO steps should you take to troubleshoot further?

Question 281hardmulti select
Read the full DNS explanation →

You suspect a DNS issue within the cluster. Which TWO commands can you run from within a pod to test DNS resolution?

Question 282easymulti select
Read the full Troubleshooting explanation →

A pod is in 'ImagePullBackOff' state. Which TWO are valid first troubleshooting steps?

Question 283mediummulti select
Read the full Troubleshooting explanation →

You run 'kubectl get pods' and see a pod with status 'CrashLoopBackOff'. Which TWO commands can help you investigate the cause?

Question 284mediummulti select
Read the full Troubleshooting explanation →

A node is 'NotReady'. Which THREE steps should you take to troubleshoot?

Question 285mediummulti select
Read the full Troubleshooting explanation →

You want to check resource usage of pods and nodes. Which TWO commands should you use?

Question 286hardmulti select
Read the full Troubleshooting explanation →

You need to test network connectivity between two pods in different namespaces. Which TWO approaches are valid?

Question 287easymulti select
Read the full Troubleshooting explanation →

Which TWO commands show cluster events that can help in troubleshooting?

Question 288hardmulti select
Read the full Troubleshooting explanation →

You are troubleshooting a pod that is in 'Pending' state. 'kubectl describe pod' shows '0/1 nodes are available: 1 Insufficient memory, 1 node(s) had taint {node-role.kubernetes.io/control-plane: }, that the pod didn't tolerate'. Which TWO actions can resolve the issue?

Question 289mediummulti select
Read the full Troubleshooting explanation →

You need to check the status of control plane components. Which TWO commands are appropriate?

Question 290hardmulti select
Read the full Troubleshooting explanation →

A pod is repeatedly killed with 'OOMKilled'. The container's memory request is 256Mi and limit is 512Mi. Which THREE steps could help resolve the issue?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

CKA Practice Test 1 — 10 Questions→CKA Practice Test 2 — 10 Questions→CKA Practice Test 3 — 10 Questions→CKA Practice Test 4 — 10 Questions→CKA Practice Test 5 — 10 Questions→CKA Practice Exam 1 — 20 Questions→CKA Practice Exam 2 — 20 Questions→CKA Practice Exam 3 — 20 Questions→CKA Practice Exam 4 — 20 Questions→Free CKA Practice Test 1 — 30 Questions→Free CKA Practice Test 2 — 30 Questions→Free CKA Practice Test 3 — 30 Questions→CKA Practice Questions 1 — 50 Questions→CKA Practice Questions 2 — 50 Questions→CKA Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Cluster Architecture, Installation and ConfigurationServices and NetworkingWorkloads and SchedulingStorageTroubleshootingCluster Architecture, Installation & ConfigurationWorkloads & SchedulingServices & Networking

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Troubleshooting setsAll Troubleshooting questionsCKA Practice Hub