Sample questions
Certified Kubernetes Application Developer CKAD practice questions
You have a Service that exposes a Deployment. Some pods are not receiving traffic. 'kubectl get endpoints my-service' shows only 2 out of 3 pod IPs. What is the most likely cause?
Which TWO of the following are valid uses of Kubernetes Annotations? (Select two.)
When performing a rolling update of a Deployment, which field in the Deployment spec controls the maximum number of Pods that can be created above the desired replicas during the u…
You run 'kubectl rollout undo deployment/app'. What happens?
A developer creates a Role and RoleBinding in the namespace 'development' to grant list pods permission to a service account. Which manifest snippet correctly defines the Role?
Application Environment, Configuration and SecuritymediumSee the answer and why each option is right or wrong →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 is stuck in 'Pending' state. You run 'kubectl describe pod mypod' and see the event: '0/4 nodes are available: 4 Insufficient memory'. Which action will resolve the issue?
You want to run a command inside a running container to check environment variables. Which command should you use?
Application Observability and MaintenancemediumSee the answer and why each option is right or wrong →A Job has the following spec: apiVersion: batch/v1 kind: Job metadata: name: pi spec: template: spec: containers: - name: pi image: perl command…
A developer creates a Secret using the command: 'kubectl create secret generic db-secret --from-literal=password=myPass'. Which way to consume this Secret in a pod is CORRECT?
Application Environment, Configuration and SecuritymediumSee the answer and why each option is right or wrong →Which THREE of the following are correct about the .dockerignore file? (Select 3)
A NetworkPolicy allows egress traffic to pods with label 'db: mysql' in the same namespace. Which egress rule is correct?
Which instruction in a Dockerfile sets the default command to run when the container starts, but allows overriding?
You need to create a NetworkPolicy that denies all ingress traffic to pods with label 'app: db' in namespace 'prod'. Which YAML snippet correctly implements this?
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…
You need to scale a Deployment named 'api' to 10 replicas instantly. Which command should you use?
A CronJob is configured with concurrencyPolicy: Replace and a job execution takes 10 minutes. The schedule is */5 * * * *. Which statement is true about job executions?
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…
A developer wants to ensure a container runs as a non-root user with user ID 1000 and group ID 2000. Which SecurityContext fields should be set?
Application Environment, Configuration and SecuritymediumSee the answer and why each option is right or wrong →You need to create a Secret of type 'kubernetes.io/tls' for ingress. Which command is correct?
Application Environment, Configuration and SecurityhardSee the answer and why each option is right or wrong →Which command lists all Helm releases in the current namespace?
You want to perform a rolling update of a Deployment. The Deployment has a maxSurge=1 and maxUnavailable=0. How many extra pods can be created above the desired count during the up…
Which TWO statements about Kubernetes DNS are correct?
A Pod spec includes 'securityContext' with 'runAsUser: 1000' and 'runAsGroup: 3000'. The container process inside the pod is expected to write to a mounted volume. Which securityCo…
Application Environment, Configuration and SecuritymediumSee the answer and why each option is right or wrong →