1.
Docker containers are based on open standard________________________.
Correct Answer
C. Allowing containers to run on all major Linux distributions and Microsoft operating systems
Explanation
Docker containers are based on an open standard, which means that they can be run on all major Linux distributions and Microsoft operating systems. This open standard ensures compatibility and flexibility, allowing containers to be easily deployed and run across different platforms without any compatibility issues.
2.
Containers running on a single machine all share the same operating system kernel, so they start instantly and make more efficient use of RAM.
Correct Answer
A. True
Explanation
Containers running on a single machine share the same operating system kernel, which allows them to start instantly and use RAM more efficiently. This is because containers do not require a separate operating system instance for each container, unlike virtual machines. Instead, they utilize the host machine's operating system, resulting in faster startup times and optimized resource utilization. Therefore, the statement is true.
3.
Each virtual machine includes the application, the necessary binaries and libraries, and an entire guest operating system - All of which may be tens of GBs in size.
Correct Answer
A. True
Explanation
The statement is true because virtual machines are self-contained environments that include all the necessary components to run an application, including the application itself, binaries, libraries, and a guest operating system. These components can take up a significant amount of storage space, often totaling tens of gigabytes in size.
4.
Containers include the application and all of its dependencies but share the kernel with other containers. They run as an isolated process in the userspace on the host operating system. They’re also not tied to any specific infrastructure – Docker containers run on any computer, on any infrastructure, and in any cloud.
Correct Answer
A. True
Explanation
Containers are a lightweight form of virtualization that includes the application and all its dependencies. They operate in isolation from other containers and run as isolated processes in userspace on the host operating system. Unlike traditional virtual machines, containers share the same kernel with other containers, making them more efficient and lightweight. Additionally, containers are platform-agnostic and can run on any computer, infrastructure, or cloud platform. Therefore, the statement that containers are not tied to any specific infrastructure and can run on any computer, infrastructure, and in any cloud is true.
5.
________is a cloud-hosted service from Docker that provides registry capabilities for public and private content.
Correct Answer
B. Docker Hub
Explanation
Docker Hub is a cloud-hosted service from Docker that provides registry capabilities for public and private content. It allows users to store and share Docker images, making it easier to distribute and deploy containerized applications. With Docker Hub, developers can access a vast library of pre-built images and collaborate with others in the Docker community.
6.
________is a tool for defining and running multi-container Docker applications.
Correct Answer
D. Docker Compose
Explanation
Docker Compose is a tool used to define and run multi-container Docker applications. It allows users to define the services, networks, and volumes required for an application in a YAML file, and then use a single command to start and stop all the containers defined in the file. Docker Compose simplifies the process of managing and coordinating multiple containers, making it easier to deploy and scale complex applications.
7.
________is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual Docker host.
Correct Answer
A. Docker Swarm
Explanation
Docker Swarm is a native clustering solution for Docker that allows users to create and manage a swarm of Docker nodes, turning them into a single, virtual Docker host. This enables users to easily scale their applications across multiple Docker hosts, improving availability and performance. Docker Swarm provides features such as load balancing, service discovery, and fault tolerance, making it a powerful tool for managing and orchestrating containers in a distributed environment.
8.
________is the enterprise-grade cluster management solution from Docker. It manages your whole cluster from a single place.
Correct Answer
C. Docker Universal Control Plane
Explanation
Docker Universal Control Plane is the correct answer because it is the enterprise-grade cluster management solution provided by Docker. It allows users to manage their entire cluster from a centralized location, providing a comprehensive solution for managing Docker containers and resources. Docker Swarm is a clustering and orchestration tool, Docker Hub is a cloud-based repository for Docker images, and Docker Compose is a tool for defining and running multi-container Docker applications. However, neither of these options fully matches the description of an enterprise-grade cluster management solution.
9.
________is a hosted service that provides a Registry with build and testing facilities for Dockerized application images, tools to help you set up and manage your host infrastructure, and deployment features to help you automate deploying your images to your infrastructure.
Correct Answer
A. Docker Cloud
Explanation
Docker Cloud is a hosted service that offers a range of features to support the development and deployment of Dockerized application images. It provides a Registry where users can store and manage their Docker images, along with build and testing facilities. Docker Cloud also includes tools to assist with setting up and managing host infrastructure, making it easier to deploy and scale applications. Additionally, it offers deployment features that automate the process of deploying Docker images to the desired infrastructure.
10.
Docker Toolbox is an installer for quick setup and launch of a Docker environment on Mac and Windows systems.
The toolbox includes these Docker tools:
Correct Answer(s)
A. Docker Machine for running docker-machine commands.
B. Docker Engine for running the docker commands.
C. Docker Compose for running the docker-compose commands.
D. Kitematic, the Docker GUI.
E. A shell pre-configured for a Docker command-line environment
F. Oracle VirtualBox
Explanation
Docker Toolbox is an installer that provides a complete Docker environment on Mac and Windows systems. It includes several tools such as Docker Machine, Docker Engine, Docker Compose, Kitematic (a Docker GUI), a pre-configured shell for Docker command-line environment, and Oracle VirtualBox. These tools collectively allow users to easily set up, manage, and run Docker containers on their machines.
11.
________is an open-source project built to simplify and streamline using Docker on a Mac or Windows. This tool automates the Docker installation and setup process and provides an intuitive graphical user interface (GUI) for running Docker containers.
Correct Answer
B. Docker Kitematic
Explanation
Docker Kitematic is the correct answer because it is an open-source project designed to simplify and streamline the use of Docker on Mac or Windows. It automates the installation and setup process of Docker and provides a user-friendly graphical interface for managing Docker containers. Docker Cloud, Docker Universal Control Plane, and Docker Compose are not specifically focused on simplifying and streamlining Docker usage on Mac or Windows.
12.
You can install Docker Engine directly to servers you have on cloud providers. The providers supported are:
Correct Answer(s)
A. Amazon Web Services (AWS)
B. Microsoft Azure
C. Digital Ocean
Explanation
Docker Engine can be installed directly on servers provided by Amazon Web Services (AWS), Microsoft Azure, and Digital Ocean. These cloud providers support the installation and use of Docker Engine, allowing users to easily deploy and manage containers on their cloud infrastructure.
13.
________is a text document that contains all the commands a user could call on the command line to assemble an image.
Correct Answer
C. Dockerfile
Explanation
A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. It is used to automate the creation of Docker images by specifying the base image, adding dependencies, and configuring the environment. The Dockerfile can be used to build the image using the "docker build" command, which reads the instructions from the Dockerfile and creates a new image based on those instructions.
14.
On Docker Hub, you get ten private repositories for free with your Docker Hub user account. If you need more accounts, you can upgrade your Docker Hub plan.
Correct Answer
B. False
Explanation
The statement is false. On Docker Hub, you do not get ten private repositories for free with your Docker Hub user account. Instead, you only get one private repository for free. If you need more private repositories, you will have to upgrade your Docker Hub plan.
15.
Docker host’s IP address by default is 192.168.99.100
Correct Answer
A. True
Explanation
The default IP address for a Docker host is 192.168.99.100.
16.
Following Docker command:
eval $(docker-machine env default)
is used to:
Correct Answer
A. Activate default VM machine
Explanation
The given Docker command "eval $(docker-machine env default)" is used to activate the default VM machine. This command sets the environment variables required to connect the Docker client to the Docker host running inside the default VM machine.
17.
Following Docker command:
docker exec -it container_id bash
is used to:
Correct Answer
B. Access a running container
Explanation
The "docker exec -it container_id bash" command is used to access a running container. By executing this command, we can enter into the shell of the specified container and interact with it. This allows us to run commands and perform various operations within the container's environment.
18.
Following Docker command:
docker build -t my_user/repo_name:1.0
is used to:
Correct Answer
C. Build an image
Explanation
The given Docker command "docker build -t my_user/repo_name:1.0" is used to build an image. The "-t" flag is used to tag the image with a name and version number. The "my_user/repo_name:1.0" represents the name and version of the image being built.
19.
Following Docker command:
docker commit -m “My first update” container_ID user_name/repository_name
is used to:
Correct Answer
D. Commit changes done in a Docker image
Explanation
The given Docker command "docker commit -m “My first update” container_ID user_name/repository_name" is used to commit changes done in a Docker image. This command creates a new image from the changes made in a container. The -m flag is used to add a commit message to describe the changes made. The container_ID specifies the ID of the container from which the changes are being committed. The user_name/repository_name specifies the name and repository where the new image will be saved.
20.
Following Docker command:
docker push user_name/repository_name
is used to:
Correct Answer
B. Push changes done in a docker image into Docker Hub.
Explanation
The given Docker command "docker push user_name/repository_name" is used to push changes done in a Docker image into Docker Hub. Docker Hub is a cloud-based registry service that allows users to store and share Docker images. By using this command, the user can upload their Docker image to Docker Hub, making it accessible to others.