Question 1 of 5
Need a teammate, not a test?
Build something great with a Docker expert.
Study guide
Docker quiz questions and answers
Review all 5 questions at your own pace. Open each answer to see the correct response and a concise explanation of the concept.
1What is a Docker image?
Correct answer
A packaged filesystem and instructions for containers
Images contain the application, dependencies, and metadata needed to run containers.
2What does a Dockerfile define?
Correct answer
How to build an image
A Dockerfile contains build steps such as base image, copied files, and run commands.
3What are Docker volumes commonly used for?
Correct answer
Persisting data outside the container lifecycle
Volumes keep data even when containers are recreated.
4What is Docker Compose useful for?
Correct answer
Running multi-container applications
Compose defines services, networks, and volumes for local or simple multi-container setups.
5Why should production images be kept small?
Correct answer
Faster pulls and smaller attack surface
Smaller images deploy faster and include fewer unnecessary packages.