WebMagicInformatica
CKAD practice exams

Kubernetes: CKAD: mock tests

Find out if you're ready before you pay for the real exam. Start with a free 15-question readiness check, then practise with 2 full-length timed exams, every answer explained.

  • 2full exams
  • 80questions
  • 90 minper exam
  • 66%pass mark

Included in Premium

All 2 full exams, an AI tutor and a study plan

Plus every other certification mock test and the career tools.

Get Premium · ₹399 / 30 days

Free readiness check

15 questions across every domain, 20 minutes. See where you stand before you book.

Sign up free to take the check

Have an account? Log in

  • 2 full-length exams, 40 questions each
  • 90 minutes per exam, timed like the real thing
  • Every answer explained, with official documentation links
  • AI tutor on every question you get wrong
  • A study plan after every exam
  • Score by domain against the 66% pass mark

How it works

  1. 1Free readiness check15 questions from every domain in 20 minutes. Free with an account.
  2. 2Full timed exams2 × 40 questions in 90 minutes, included in Premium.
  3. 3Fix your weak spotsAn AI tutor explains each mistake and a study plan links the lessons to study.

What the exam covers

  • Application Design and Build20% of the exam
  • Application Deployment20% of the exam
  • Application Observability and Maintenance15% of the exam
  • Application Environment, Configuration and Security25% of the exam
  • Services and Networking20% of the exam

Every exam and the readiness check follow these weights.

Full exams

  • Practice Exam 1

    40 questions · 90 min

    Included in Premium
  • Practice Exam 2

    40 questions · 90 min

    Included in Premium

5 free CKAD sample questions

The same style and difficulty as the full exams. Try each one, then check the answer.

Sample question 1Application Environment, Configuration and Security

A ConfigMap web-conf has the key nginx.conf. You want to place only that file at /etc/nginx/nginx.conf without hiding the other files in /etc/nginx. Which container volume mount does this?

  1. A.
    volumeMounts:
    - name: conf
      mountPath: /etc/nginx
  2. B.
    volumeMounts:
    - name: conf
      mountPath: /etc/nginx/nginx.conf
      subPath: nginx.conf
  3. C.
    volumeMounts:
    - name: conf
      mountPath: /etc/nginx/nginx.conf
  4. D.
    volumeMounts:
    - name: conf
      mountPath: /etc/nginx
      subPath: nginx.conf
Show answer and explanation

Answer: B

subPath mounts a single file from the volume at the exact mountPath, leaving the rest of the directory intact. (Files mounted with subPath do not receive ConfigMap updates.)

  • Mounting the whole volume on /etc/nginx hides the existing directory contents.
  • Without subPath, /etc/nginx/nginx.conf becomes a directory containing the key.
  • The last option mounts the file at the directory path.
Sample question 2Application Design and Build

You want the smallest possible runtime image for a compiled Go service, without the Go toolchain inside it. Which Dockerfile approach achieves this?

  1. A.

    A single stage based on golang that runs the binary with go run.

  2. B.

    A single stage that installs the compiler, builds, then runs RUN apt-get remove on the compiler.

  3. C.

    A multi-stage build: compile in a golang stage (FROM golang AS build), then COPY --from=build only the binary into a minimal final image such as distroless.

  4. D.

    Building with docker build --squash on a golang base image.

Show answer and explanation

Answer: C

Each stage in a multi-stage build starts from a fresh image; only what you COPY --from reaches the final image, leaving the toolchain behind.

  • go run keeps the whole toolchain in the image.
  • Removing packages in a later layer does not shrink earlier layers.
  • Squashing merges layers but the compiler content remains in the base image.
Sample question 3Application Deployment

You want to change both the image and the resource limits of deployment/web but trigger only one rollout. Which sequence achieves this?

  1. A.

    kubectl scale deployment/web --replicas=0, apply both changes, then scale back up.

  2. B.

    kubectl rollout pause deployment/web, apply both changes, then kubectl rollout resume deployment/web.

  3. C.

    Run both changes with kubectl set back to back without pausing; Kubernetes always batches them.

  4. D.

    kubectl rollout undo deployment/web, then apply both changes.

Show answer and explanation

Answer: B

While a Deployment is paused, template changes do not trigger rollouts. Resuming rolls out all accumulated changes at once.

  • Scaling to zero causes downtime.
  • Without pausing, each template change can start its own rollout.
  • undo returns to the previous revision.
Sample question 4Services and NetworkingChoose 2

A Service selects three Pods, but kubectl get endpoints lists only two addresses. Which TWO causes are possible? (Choose two.)

  1. A.

    The third Pod is not Ready because its readiness probe is failing.

  2. B.

    The Pod is running a different container image tag.

  3. C.

    The third Pod's labels do not match the Service selector.

  4. D.

    The Service port is different from the container port.

  5. E.

    The Service type is ClusterIP.

Show answer and explanation

Answer: A and C

Endpoints contain only Pods that match the selector and are Ready.

  • ClusterIP Services have endpoints as usual.
  • A port mismatch affects connectivity, not membership.
  • The image tag has no influence on endpoint membership.
Sample question 5Application Observability and Maintenance

You need to copy the file /var/log/app.log from the container app of Pod web-1 to your current local directory. Which command?

  1. A.

    kubectl cp ./app.log web-1:/var/log/app.log -c app

  2. B.

    kubectl copy web-1/var/log/app.log .

  3. C.

    kubectl logs web-1 -c app --file=/var/log/app.log

  4. D.

    kubectl cp web-1:/var/log/app.log ./app.log -c app

Show answer and explanation

Answer: D

kubectl cp <pod>:<path> <local> copies from the Pod (the tar binary must exist in the image); -c selects the container.

  • The first alternative copies in the opposite direction.
  • kubectl copy does not exist.
  • logs has no --file option.

Courses that prepare you

Questions

Is the CKAD readiness check really free?

Yes. Sign up free and take a 15-question, 20-minute check drawn from every exam domain. You get your readiness score, a score per domain and three questions explained. You can retake it every 7 days.

What do I get with Premium?

All 2 full-length CKAD exams (40 questions, 90 minutes each) with every answer explained, an AI tutor that explains your mistakes, and a study plan after every exam. Premium also includes every other certification mock test and our career tools.

Are these real exam questions?

No. They are original practice questions written from the official exam guide and its domain weights. They are never copied from the real exam.

How is my score worked out?

A question counts only if you pick exactly the right options. Your percentage is compared with a 66% pass mark, and each domain is scored separately so you know what to study next.

Independent practice material written from the official exam guide. Not affiliated with or endorsed by the exam provider.