Sample questions
Certified Kubernetes Application Developer CKAD practice questions
You are designing a Pod that must run a diagnostic tool to collect network logs before the main application starts. The diagnostic tool should run to completion, then the main appl…
A Pod named `my-pod` in namespace `ns1` tries to resolve `svc-a.ns2.svc.cluster.local`. The DNS query fails. The Service `svc-a` exists in namespace `ns2`. What is the most likely…
Which FOUR of the following are valid probe handlers in Kubernetes?
Application Observability and MaintenancemediumSee the answer and why each option is right or wrong →Which THREE are valid patterns for multi-container Pods?
A ClusterRole named 'pod-reader' allows get, list, and watch on pods. A RoleBinding 'read-pods' in namespace 'default' binds this ClusterRole to user 'jane'. Which statement is tru…
Application Environment, Configuration and SecuritymediumSee the answer and why each option is right or wrong →A developer needs to view the logs of a pod named 'web-app-84b7f6f5b6-abcde' that crashed and has been restarted. Which kubectl command should they use to see the logs from the pre…
An Ingress resource has the following spec. What is the effect? spec: tls: - hosts: - myapp.example.com secretName: myapp-tls rules: - host: myapp.example.com…
A developer wants to view the resource usage of all containers in a specific pod. Which command should they use?
Which Dockerfile instruction is used to specify the base image for a container image?
You need to access a database pod 'db-pod' on port 5432 from your local machine. Which command forwards local port 15432 to the pod's port 5432?
A developer reports that a container in a pod is not responding correctly. You need to get an interactive shell in the container to investigate. Which command should you run?
Which field in the container spec controls the time Kubernetes waits after sending SIGTERM before sending SIGKILL during pod shutdown?
Application Observability and MaintenancemediumSee the answer and why each option is right or wrong →You want to see all events in the default namespace sorted by timestamp. Which command should you use?
You have a pod that takes 2 minutes to start its application. You want to avoid the liveness probe from killing the pod during startup, but still have it active afterward. Which pr…
Which command exposes a deployment named 'web' as a ClusterIP service on port 80?
Which of the following is true about Istio as a service mesh?
A user runs 'kubectl get endpoints my-service' and sees no endpoints listed. The service has a selector 'app: my-app'. Pods with that label exist and are running. What is the most…
You need to forward a local port to port 8080 on a pod named 'my-pod' in the 'default' namespace. Which kubectl command should you use?
You need to perform a canary deployment where 10% of traffic goes to the new version. You have a Deployment 'app-v1' with 9 replicas and 'app-v2' with 1 replica. What must be true…
Which of the following commands creates a deployment named 'webapp' that runs the image 'nginx:1.25' with 3 replicas?
You run the following command: 'kubectl run nginx --image=nginx --restart=Never'. What Kubernetes resource is created?
In a Dockerfile, what is the difference between CMD and ENTRYPOINT?
A pod named 'webapp' is stuck in 'Pending' state. 'kubectl describe pod webapp' shows '0/1 nodes are available: 1 Insufficient memory'. What is the most likely cause?
You have a Deployment named 'web-app' with 5 replicas. You run 'kubectl set image deployment/web-app app=nginx:1.21'. What is the effect of this command?