
Docker Knowledge Quiz
Authored by Amine Barrak
Instructional Technology
KG
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you modify a file listed in a Dockerfile after building an image?
Docker rebuilds the entire image from scratch
Docker updates only the running containers
Docker rebuilds from the modified instruction onward using cached layers
Docker ignores the modification completely
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which file must you edit to exclude specific files/directories from the Docker build context?
docker-compose.yml
.gitignore
Dockerfile
.dockerignore
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What Docker feature enables persistent data sharing between containers?
Docker Volumes
Docker Images
Dockerfile
Docker Networks
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a Docker network type that allows containers to communicate across different Docker daemons securely?
Overlay network
Host network
MACVLAN network
Bridge network
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you efficiently handle node modules or dependencies to minimize build time in Docker?
Always rebuild images completely
Use Docker caching with strategic ordering in Dockerfile
Manually copy dependencies each time
Store dependencies externally outside Docker
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you access the shell of a running Docker container?
docker inspect
docker exec -it
docker run
docker build
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which scenario best fits Docker Compose usage?
Network troubleshooting
Defining and running multi-container Docker applications
Managing single Docker images
System-wide Docker configurations
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?