Docker Intermediate Quiz
Explore networking, volumes, Docker Compose, multi-stage builds, and container orchestration
Start the quizSample questions from this quiz
A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.
1. What is a Docker volume?
- A memory allocation
- A container backup
- A persistent data storage mechanism
- A network volume
Show answer
Answer: A persistent data storage mechanism. Docker volumes are the preferred mechanism for persisting data generated and used by Docker containers. They are managed by Docker and exist outside the container lifecycle.
2. Which command creates a Docker volume?
- docker volume new
- docker volume create
- docker make volume
- docker create volume
Show answer
Answer: docker volume create. `docker volume create` creates a new volume. Volumes can also be created automatically when mounting with `-v` flag.
3. What is the difference between a volume and a bind mount?
- Volumes are faster
- No difference
- Volumes are managed by Docker, bind mounts link to host filesystem
- Bind mounts are deprecated
Show answer
Answer: Volumes are managed by Docker, bind mounts link to host filesystem. Volumes are stored in Docker-managed space and are isolated from host. Bind mounts directly map host filesystem paths into containers.
Frequently asked questions
How many questions are in this Docker quiz?+
30 questions, with a 60-minute time limit. Every question includes a written explanation of the correct answer.
Is this Docker quiz free?+
Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.
What level is the intermediate quiz aimed at?+
Explore networking, volumes, Docker Compose, multi-stage builds, and container orchestration
Can I use this to prepare for a Docker interview?+
Yes. The questions cover the topics that come up in Docker technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.
Ready to test your Docker?
30 questions, 60 minutes. Free, no sign-up.
Start now