CoreHRx Jobs

Apply in one click, save jobs and take free mock tests.

Register free Log in
Hiring? Post jobs with CoreHRx
My account
user

View & update profile

Docker and Kubernetes mock test: free online practice

15 to 30 random questions in 15 to 30 minutes, by the level you choose: dockerfiles, compose, pods, services, probes, scaling, helm, security. After you submit you get your score, your strong and weak topics, and the right answer with an explanation for every question.

Want to revise first? Read the Docker and Kubernetes interview questions and answers.

Choose your experience

Free with a CoreHRx Jobs account: you will be asked to sign in or create one first.

What does the Docker and Kubernetes mock test cover?

The test covers 14 topics across three levels. Each attempt picks 15 to 30 questions at random, by the level you choose, so every attempt is different.

  • Pods and Deployments
  • Dockerfile and Layers
  • Kubernetes Architecture
  • Services and Ingress
  • Troubleshooting
  • Images and Containers
  • Docker Compose
  • Resources and Autoscaling
  • Security
  • Volumes and Networks
  • ConfigMaps and Secrets
  • Health Probes
  • Helm Basics
  • Multi-stage Builds

Sample Docker and Kubernetes mock test questions

One question from each level, the way they appear in the test. A new set comes on the 1st of every month. Try it, then open the answer.

  1. FresherResources and Autoscaling

    What is a HorizontalPodAutoscaler (HPA)?

    • An object that gives running containers more CPU and memory when busy
    • An object that changes the replica count based on metrics such as CPU
    • An add-on that adds nodes when pods are pending
    • A rule that spreads pods evenly across zones
    Show the answer

    Answer: An object that changes the replica count based on metrics such as CPU. An HPA scales a Deployment or StatefulSet out and in by changing its replica count. Giving pods bigger resources is vertical scaling (VPA), and adding nodes is the job of a cluster autoscaler.

  2. Intermediate (1-5 years)Docker Compose

    Pooja's compose file starts with version: "3.8". What does that line do in Docker Compose v2?

    • It makes Compose v2 hand the file to the old docker-compose v1
    • It is required, and the file is rejected without it
    • Nothing; the field is obsolete and Compose only warns about it
    • It limits the file to the Compose features that existed in 2020
    Show the answer

    Answer: Nothing; the field is obsolete and Compose only warns about it. Compose v2 follows the Compose Specification, where version is informative only. Compose always uses the latest schema and prints a warning that the attribute is obsolete, so the line can be deleted.

  3. Experienced (5+ years)Multi-stage Builds

    The production image is built FROM a distroless base with no shell. What is the sound way to debug it when an incident happens?

    • Use an ephemeral debug container or a separate debug target
    • docker commit the running container after installing the tools
    • Add sshd to the final stage so that engineers can log in
    • Switch production to the full SDK image for good
    Show the answer

    Answer: Use an ephemeral debug container or a separate debug target. Minimal final stages have no shell on purpose. Debug them with an ephemeral container that shares the pod's namespaces, or keep a debug stage built with --target, so the shipped image stays small and hard to abuse.

Take the full Docker and Kubernetes mock test: 15 to 30 questions and 15 to 30 minutes, by level.

How is the Docker and Kubernetes mock test scored?

A question counts as right only when you pick exactly the right option, or all the right options where it says so; a question left blank counts as wrong. Your score is the share of the test's questions you got right (15 to 30, by level). The result also scores every topic, so you know what to revise before the interview.

  • 75% or more in a topica strength
  • 50% to 74%worth a revision
  • Under 50%a topic to work on

Docker and Kubernetes mock test: questions people ask

Is the Docker and Kubernetes mock test free?

Yes. The Docker and Kubernetes mock test is free. You need a free CoreHRx Jobs account to start it, so your score and the topics to work on are saved.

How many questions are in the Docker and Kubernetes mock test?

It depends on the level: Fresher has 15 questions in 15 minutes, Intermediate has 20 questions in 20 minutes, Experienced has 30 questions in 30 minutes. They are multiple-choice questions picked at random from a larger bank of Docker and Kubernetes questions at your level, so every attempt is different.

Which Docker and Kubernetes topics does the test cover?

The questions cover Pods and Deployments, Dockerfile and Layers, Kubernetes Architecture, Services and Ingress, Troubleshooting, Images and Containers, Docker Compose, Resources and Autoscaling, Security, Volumes and Networks, ConfigMaps and Secrets, Health Probes, Helm Basics, Multi-stage Builds. Your result shows how you did in each topic.

Which level should I choose?

Fresher if you are a student or have less than a year of experience, Intermediate for 1 to 5 years at work, and Experienced for 5 years or more.

Can employers see my Docker and Kubernetes score?

Only your best Docker and Kubernetes score, and only when it is 60% or more. It shows on the job applications you send on CoreHRx. Lower scores stay private.

Can I take the Docker and Kubernetes mock test again?

Yes, up to 10 tests a day. Each attempt picks questions you have not seen recently first.

All mock tests