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. FresherKubernetes Architecture

    What is a namespace in Kubernetes?

    • A container image repository inside the cluster
    • A Linux network namespace that all nodes share
    • A named group that divides one cluster's objects, for example per team
    • A separate physical cluster with its own control plane
    Show the answer

    Answer: A named group that divides one cluster's objects, for example per team. Namespaces scope object names and are where RBAC rules, resource quotas and limits apply. They do not isolate network traffic by themselves and do not create a separate control plane.

  2. Intermediate (1-5 years)Troubleshooting

    kubectl rollout status deployment/web hangs. The new pods are Running but show 0/1 READY. What is the most likely reason?

    • The Service in front of the pods is of type ClusterIP
    • The new pods' readiness probe fails, so the rollout cannot go on
    • The new image cannot be pulled from the registry
    • The old pods are being OOMKilled one after another
    Show the answer

    Answer: The new pods' readiness probe fails, so the rollout cannot go on. A rolling update waits for new pods to become ready before removing more old ones. If readiness never passes, the rollout stalls and, after progressDeadlineSeconds (600 by default), reports ProgressDeadlineExceeded.

  3. Experienced (5+ years)Images and Containers

    A container runs with --memory=512m --memory-swap=512m. What does setting both to the same value do?

    • It stops the container from using any swap
    • It turns the memory limit into a soft limit only
    • It gives the container 512m of RAM plus 512m of swap
    • It lets the container use as much swap as the host has
    Show the answer

    Answer: It stops the container from using any swap. --memory-swap is memory plus swap, so equal values leave zero swap and the container is OOM-killed at 512m instead of slowing down in swap. If --memory-swap is unset, it may use as much swap as its memory limit.

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