Docker Fundamentals Quiz¶
## Question 1
**What is Docker?**
- [ ] A virtual machine platform
- [x] A platform for developing, shipping, and running applications using containers
- [ ] A cloud storage system
- [ ] A network monitoring tool
## Question 2
**Which of the following are benefits of Docker? (Select all that apply)**
- [x] Speed
- [x] Simplicity
- [x] Density
- [ ] Closed source
## Question 3
**What type of architecture does Docker use?**
- [ ] Peer-to-peer
- [x] Client-server
- [ ] Single-tier
- [ ] Monolithic
## Question 4
**What is a Docker image?**
- [ ] A running container process
- [x] A read-only template used to create containers
- [ ] A container log file
- [ ] A network interface
## Question 5
**Where are Docker images stored?**
- [ ] Only on local machines
- [x] In registries
- [ ] In GitHub repositories
- [ ] In container logs
## Question 6
**Which command runs a container from an image?**
- [ ] docker exec
- [x] docker run
- [ ] docker build
- [ ] docker ps
## Question 7
**Which command shows all containers, including stopped ones?**
- [ ] docker ps
- [x] docker ps -a
- [ ] docker container prune
- [ ] docker image ls
## Question 8
**What is the difference between CMD and RUN?**
- [ ] CMD executes during build time, RUN during container start
- [x] RUN executes during build time, CMD defines the default command for container start
- [ ] There is no difference
- [ ] CMD is used only on Windows images