Docker Advanced Quiz¶
## Question 1
**This Docker tool provides cluster management and lets you orchestrate, scale and load balance Docker Containers across multiple nodes.**
- [ ] Docker Engine
- [ ] Docker Compose
- [ ] Notary
- [x] Docker Swarm
- [ ] Docker Hub
- [ ] Docker Machine
- [ ] Docker Cloud
- [ ] Docker Desktop
## Question 2
**This Docker tool allows you to store, distribute and even scan your Public and Private Docker images.**
- [ ] Docker Engine
- [ ] Docker Compose
- [ ] Notary
- [ ] Docker Swarm
- [x] Docker Hub
- [ ] Docker Machine
- [ ] Docker Cloud
- [ ] Docker Desktop
## Question 3
**This Docker tool that has been donated to CNCF lets you implement secure software distribution by ensuring that all pulled docker images are signed, correct and untampered, which is one of the major security concerns for Docker-based deployments.**
- [ ] Docker Engine
- [ ] Docker Compose
- [x] Notary
- [ ] Docker Swarm
- [ ] Docker Hub
- [ ] Docker Machine
- [ ] Docker Cloud
- [ ] Docker Desktop
## Question 4
**This Docker tool lets you create and start one or more containers for each dependency specified in the manifest with a single command, and thus can be used in automated testing or quick local development environment deployment use cases.**
- [ ] Docker Engine
- [x] Docker Compose
- [ ] Notary
- [ ] Docker Swarm
- [ ] Docker Hub
- [ ] Docker Machine
- [ ] Docker Cloud
- [ ] Docker Desktop
## Question 5
**This Docker tool let you easily deploy docker engine, compose and kubernetes on your laptop and let you build, share and deploy containerized applications on your local Windows, Mac machines.**
- [ ] Docker Engine
- [ ] Docker Compose
- [ ] Notary
- [ ] Docker Swarm
- [ ] Docker Hub
- [ ] Docker Machine
- [ ] Docker Cloud
- [x] Docker Desktop
## Question 6
**This Docker tool let you build and deploy Docker Containers on a single host using docker CLI:**
- [x] Docker Engine
- [ ] Docker Compose
- [ ] Notary
- [ ] Docker Swarm
- [ ] Docker Hub
- [ ] Docker Machine
- [ ] Docker Cloud
- [ ] Docker Desktop
## Question 7
**In what language is Docker written in?**
- [ ] Java
- [ ] Python
- [x] Go
- [ ] Rust
- [ ] .NET Core
- [ ] All above
## Question 8
**What is the high level container runtime used by Docker Engine?**
- [ ] Docker
- [x] Containerd
- [ ] Runc
- [ ] CRI-O
## Question 9
**What is the host port on which the web application will be exposed?**

- [ ] 80
- [x] 8080
- [ ] v1
- [ ] foobar
## Question 10
**Which of the following statements are true?**

- [ ] All of the web, redis and db images will be built before deploying containers.
- [ ] The redis image will be built and the web image will be pulled from Dockerhub if it doesn’t already exist on the host.
- [x] The web image will be built and the redis image will be pulled from Dockerhub if it doesn’t already exist on the host.
- [ ] All images will be pulled from Dockerhub.
## Question 11
**Which is the correct statement referring to the following Compose file?**

- [ ] The depends_on configuration is not supported in Compose version 3
- [x] db and redis services will be started before web service
- [ ] web service will be started before db and redis services
- [ ] None of the above
## Question 12
**Which command can be used to create and start containers in background or in detached mode in compose using the existing docker-compose.yml?**
- [ ] docker-compose up
- [ ] docker-compose up --background
- [ ] docker-compose up -t
- [x] docker-compose up -d
## Question 13
**Which command can be used to stop (only and not delete) the whole stack of containers created by a compose file?**
- [ ] docker-compose down
- [x] docker-compose stop
- [ ] docker-compose destroy
- [ ] docker-compose halt
## Question 14
**Select the right answer. Which command can be used to delete the application stack created using a compose file?**
- [ ] docker-compose rm
- [ ] docker-compose stop
- [x] docker-compose down
- [ ] docker-compose destroy
## Question 15
**With the docker-compose up command, we can run containers on multiple docker hosts.**
- [ ] True
- [x] False
## Question 16
**Using Docker Compose, we can configure containers and the communication between them in a declarative way.**
- [x] True
- [ ] False
## Question 17
**What is the default public registry for docker?**
- [x] Docker Hub
- [ ] Amazon Container Registry
- [ ] Google Container Registry
- [ ] Docker Trusted Registry
## Question 18
**If we do not specify a tag when building an image, what is the default tag that will be used?**
- [ ] none
- [ ] default
- [x] Latest
- [ ] v1
## Question 19
**Which of the following commands we can use to run an ubuntu container with the trusty tag.**
- [ ] docker run ubuntu
- [ ] docker run ubuntu:latest
- [x] docker run ubuntu:trusty
- [ ] docker run ubuntu -t trusty
## Question 20
**Which of the following commands you would use to download an nginx image from the Google Container Registry.**
- [ ] docker image pull nginx
- [ ] docker image build nginx
- [ ] docker image load nginx
- [x] docker pull gcr.io/google-containers/nginx
## Question 21
**How did cgroups enable containers in their current shape?**
- [ ] cgroups allow isolating processes in their own namespaces
- [ ] cgroups allow controlling Linux capabilities for the processes
- [x] cgroups allow setting resource limits and constraints for the processes
- [ ] cgroups wrap the PID of a process preventing other processes from accessing it