Skip to main content

CKAD practice questions

The CKAD is a 2-hour hands-on exam in a terminal, based on Kubernetes v1.37. It has five domains:

DomainWeightQuestions here
Application Environment, Configuration and Security25%6
Application Design and Build20%5
Application Deployment20%5
Services and Networking20%5
Application Observability and Maintenance15%4

The questions are original and unofficial, not taken from the real exam. Domains and weights come from the official curriculum, as listed on Learning paths & certifications. The real exam asks you to write and fix manifests, so practice the commands in the Hands-on labs.

Application Environment, Configuration and Security (25%)​

  1. The app must get the value of key password from the Secret db-cred as the environment variable DB_PASSWORD. Which container field does that?
  2. A namespace has a ResourceQuota on requests.cpu and requests.memory. A Pod without resources is now rejected. What is the cleanest fix for all future Pods?
  3. Where do you drop all Linux capabilities for a container?
  4. A container with readOnlyRootFilesystem: true crashes because it writes temporary files to /tmp. How do you fix it without loosening the setting?
  5. A Pod never talks to the Kubernetes API. How do you keep a ServiceAccount token from being mounted into it?
  6. An operator installed the custom resource Backup. How do you see which fields its spec accepts?

Study: CRDs and Operators, How an API Request Gets Stored, Admission Policies with CEL and Webhooks, Requests and limits, Namespaces and Resource Quotas, Config and Secrets (ConfigMap · Secret), How a Pod Proves Who It Is (ServiceAccount Tokens), Pod Security Standards and securityContext

Application Design and Build (20%)​

  1. A Job must finish 6 work items, running at most 2 Pods at the same time. Which fields do you set?
  2. A CronJob runs every 5 minutes, but one run sometimes takes 8 minutes and two runs overlap. Which setting stops a new run while the last is still going?
  3. You need a log-shipping container that starts before the app, keeps running beside it and does not block a Job from completing. How do you declare it?
  4. A Pod shows STATUS Init:0/1 for several minutes. What does it tell you and what do you run next?
  5. Two containers in the same Pod must share files that only live as long as the Pod. Which volume fits?

Study: How an Image Is Built and Run, Workload Types, Run Once and Finish (Job · CronJob), Multi-container pods — init and sidecar (CKAD), How Storage Gets Attached (PVC·PV)

Application Deployment (20%)​

  1. A Deployment with 4 replicas uses maxSurge: 1 and maxUnavailable: 0. How does the rollout behave?
  2. For a blue/green release with plain Kubernetes objects, both Deployments run and the Service selects version: blue. How do you switch all traffic to green?
  3. Stable runs 9 replicas and canary runs 1. Both Deployments have the label app: shop, which is what the Service selects. About how much traffic does the canary get?
  4. Which command shows the revisions of the Helm release shop so you can pick one to roll back to?
  5. Your repo has base/ and overlays/prod/ with a kustomization.yaml. Which command deploys the prod version?

Study: Blue/green and canary with core primitives (CKAD), Zero-Downtime Deploys (Rolling Update), How a Helm Release Is Installed, Upgraded and Rolled Back, Per-environment deploys with Kustomize (CKA·CKAD)

Services and Networking (20%)​

  1. A NetworkPolicy ingress rule has one from entry that contains both namespaceSelector (team: web) and podSelector (app: frontend). Which Pods may connect?
  2. The Service api has endpoints, but connections are refused. The container listens on 8080 and the Service has port: 80, targetPort: 80. What do you change?
  3. You need a DNS name that returns the IPs of each Pod directly instead of one virtual IP, for example for a StatefulSet. What do you create?
  4. An Ingress path is /api with pathType: Prefix. Which request path matches it?
  5. Which command creates a ClusterIP Service for the Deployment web that listens on port 80 and sends to container port 8080?

Study: Blocking and Allowing Traffic (NetworkPolicy), Service Types (ClusterIP · NodePort · LoadBalancer), Finding Services by Name (Service·DNS), Ingress Rules and TLS

Application Observability and Maintenance (15%)​

  1. A Pod is Running with READY 0/1 and RESTARTS 0. Its readiness probe keeps failing. What does Kubernetes do?
  2. A Java app takes up to 2 minutes to start and its liveness probe kills it before it is ready. What is the right fix?
  3. The Pod web has two containers, app and proxy. How do you read the proxy logs?
  4. kubectl top pod fails with "Metrics API not available". What is missing?

Study: Health checks — alive, and ready for requests?, How Logs, Metrics and Traces Leave a Pod, Reading status in three layers and the troubleshooting order, Debugging a Running Pod with kubectl debug