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…
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 streams logs from a pod in real-time?
Which THREE configurations are part of Pod Security Admission's 'restricted' profile? (Select THREE.)
Application Environment, Configuration and SecurityhardSee the answer and why each option is right or wrong →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…
Application Observability and MaintenancemediumSee the answer and why each option is right or wrong →Which THREE components are essential for setting up Horizontal Pod Autoscaling (HPA) based on CPU utilization? (Select three)
Which THREE of the following are valid fields in a LimitRange resource to enforce resource constraints at the container level? (Choose three.)
Application Environment, Configuration and SecurityhardSee the answer and why each option is right or wrong →You want to view the logs of a pod named 'web-pod' that has two containers: 'nginx' and 'sidecar'. Which command correctly retrieves the logs from the 'nginx' container?
Which Dockerfile instruction sets a command that can be overridden when running the container?
A pod has a startup probe with failureThreshold: 30 and periodSeconds: 10. The application takes up to 5 minutes to start. What should be changed to ensure the startup probe does n…
You have a Pod with two containers: a main application and a sidecar that handles logging. The sidecar needs access to the same log files as the main application. Which volume type…
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 →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…
You have a ConfigMap named 'app-config' with key 'database.url'. Which environment variable definition correctly injects this value into a pod using a configMapKeyRef?
Application Environment, Configuration and SecurityeasySee the answer and why each option is right or wrong →You have a Deployment with a liveness probe that fails intermittently, causing the pod to restart. You want to reduce the sensitivity of the probe so that it only restarts after 3…
You have a pod with two containers: one runs a web server, and the other is a sidecar that logs the web server's output to a central logging system. Which pattern does this represe…
You need to debug a pod that is running but not serving traffic. You want to add a temporary container with networking tools to the pod. Which command should you use?
You are tasked with running a batch job that processes 100 items in parallel, using a Kubernetes Job. The Job should ensure that all items are processed even if some pods fail, and…
You need to debug a pod that has no running containers because it is in a CrashLoopBackOff state. You want to start an ephemeral container with debugging tools in the same namespac…
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…
Application Observability and MaintenancemediumSee the answer and why each option is right or wrong →A Pod is running in a namespace with a ResourceQuota that sets 'limits.memory: 2Gi'. The pod's container spec has 'resources.limits.memory: 1Gi' and 'resources.requests.memory: 512…
Application Environment, Configuration and SecuritymediumSee the answer and why each option is right or wrong →An Ingress resource is created with the following YAML: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: my-ingress spec: rules: - host: example.com http:…
You are performing a canary deployment using two Deployments: 'app-stable' (replicas: 9) and 'app-canary' (replicas: 1), both with label 'app: myapp'. A Service selects pods with '…
An Ingress resource is configured with TLS termination. The secret referenced in the Ingress is present, but the Ingress controller returns 404. What is the most likely cause?