
[100% Off] Docker Mastery: Tricky Mcq Practice Tests
200 tricky Docker questions on Dockerfiles, BuildKit, networking, volumes, Compose, security and logging
What you’ll learn
- Predict exactly what each Dockerfile instruction puts into an image
- including CMD and ENTRYPOINT forms and ARG and ENV scope.,Write fast
- small and safe builds with layer ordering
- BuildKit cache and secret mounts
- multi-stage builds and multi-platform output.,Stop and restart containers predictably by understanding signals
- PID 1
- exit codes and restart policies.,Choose the right volume
- bind mount or tmpfs and connect containers through bridges
- DNS and published ports on purpose.,Build Compose files whose dependencies
- profiles
- variables and overrides behave the same on every machine.,Run containers safely and diagnose them with capabilities
- rootless mode
- resource limits and logging drivers.
Requirements
- Hands-on Docker experience: you have built images and run containers from the command line.,Basic Linux command-line knowledge; nothing needs to be installed to take the tests.,A computer
- tablet or phone with a web browser. A machine with Docker is useful for trying the examples yourself.
Description
Test How Well You Really Know Docker
Docker is easy to start with and full of surprises later. Why does docker stop take ten seconds and end with exit code 137? Why does a container on the default bridge fail to find db by name? Why did changing one source file throw away the cached npm install? Why does a value in .env never reach the container, and why does your firewall not block a published port? These practice tests check how well you can predict what Docker really does, one Dockerfile, Compose file or command at a time.
What this practice test course offers:
- 200 original multiple-choice questions in 4 practice tests of 50, grouped by topic and moving from images to production operations
- Dockerfiles, Compose files and commands to reason about: what ends up in the image, which value wins, what the container sees, or why it fails
- An explanation for every answer option, plus an overall explanation of the rule behind it
- Answers checked against the official Docker documentation and the Compose Specification, and many Dockerfile and Compose answers also confirmed with the same Dockerfile parser and Compose loader that Docker uses
Topics covered:
- Images, layers, tags, digests, registries, pruning and the containerd image store
- Dockerfile instructions: CMD and ENTRYPOINT forms, ARG and ENV scope, COPY and ADD rules, WORKDIR, USER, EXPOSE, SHELL, ONBUILD and VOLUME
- Build cache, multi-stage builds and BuildKit: cache and secret mounts, .dockerignore, here-documents, TARGETARCH and multi-platform builds with buildx
- Container lifecycle, signals and PID 1, –init, exit codes, restart policies and everyday CLI behaviour
- Volumes, bind mounts, tmpfs and image mounts
- Networking: default and user-defined bridges, embedded DNS, internal networks, port publishing and host firewalls
- Docker Compose: depends_on conditions, healthchecks, profiles, variable interpolation and precedence, override files and merge rules, project names
- Security, resource limits, logging and troubleshooting: capabilities, rootless mode, read-only containers, seccomp, secrets, memory and CPU limits, OOM kills, logging drivers and rotation
Assumed environment: Docker Engine 29 on Linux with BuildKit, the default builder, and the docker compose CLI plugin (Compose v5, which follows the Compose Specification). Swarm, Kubernetes and Docker Desktop specifics are out of scope.
Who should take this course?
- Developers who build and run their applications in containers every day
- DevOps, platform and SRE engineers who maintain Dockerfiles, Compose stacks and CI pipelines
- Candidates preparing for DevOps interviews or container certifications who want challenging, hands-on practice
If you have never built an image or run a container, start with a Docker fundamentals course and come back here to test yourself.
How to use the tests: take one test at a time, then read every explanation, including the ones for questions you answered correctly. Try the examples on your own machine, then retake a test a few days later to check that the rules have stuck.
This course is independent and is not affiliated with or endorsed by Docker, Inc.








