Google News
logo
Docker - Quiz(MCQ)
A)
Linus Torvalds, Mark Zuckerberg and Brendan Eich
B)
Kamel Founadi, Solomon Hykes, and Sebastien Pahl
C)
Brendan Eich, Sebastien Pahl and Greg Duffy
D)
Mike Cagney, Suhail Doshi and Chris Wanstrath

Correct Answer :   Kamel Founadi, Solomon Hykes, and Sebastien Pahl


Explanation : Docker Inc. was founded by Kamel Founadi, Solomon Hykes, and Sebastien Pahl during the Y Combinator Summer 2010 startup incubator group and launched in 2011. The startup was also one of the 12 startups in Founder's Den first cohort.

A)
March 20, 2003
B)
March 20, 2007
C)
March 20, 2010
D)
March 20, 2013

Correct Answer :   March 20, 2013


Explanation :

Docker debuted to the public in Santa Clara at PyCon in 2013. It was released as open-source in March 2013. At the time, it used LXC as its default execution environment.

One year later, with the release of version 0.9, Docker replaced LXC with its own component, libcontainer, which was written in the Go programming language.
 
In 2017, Docker created the Moby project for open research and development.

A)
XML
B)
HTML
C)
YAML
D)
JSON

Correct Answer :   YAML


Explanation : YAML stands for "YAML Ain't Markup Language." It is the structured, yet flexible syntax used to define how to configure a Docker image.

A)
C
B)
C++
C)
Go
D)
Java

Correct Answer :   Go


Explanation :

Go, also known as Golang, was the language used to code the implementation of the Docker container.
 
Go is a compiled programming language that was first released in 2009. As you may have guessed by the two letters in the name, it was created by a group of developers at Google.

5 .
Following Docker command:
docker build -t my_user/repo_name:1.0​
is used to:
A)
Build an image
B)
Access a running container
C)
Activate default VM machine
D)
Commit changes done in a Docker image

Correct Answer :   Build an image

A)
docker run -i : imagename
B)
docker run -p 5000:5000 flask_app:1.0
C)
docker run --expose 5000:5000 flask_app:1.0
D)
None of the above

Correct Answer :   docker run -p 5000:5000 flask_app:1.0


Explanation : -p is a short flag for --port option to map host port to container port.

A)
Scalabilty
B)
Better resource pooling
C)
Application portability guaranteed
D)
All of the options are features provided by

Correct Answer :   Application portability guaranteed

A)
Docker is an open platform based on Linux containers for developing, shipping, and running applications.
B)
Docker is a closed platform based on Linux containers for developing, designing and deploying.
C)
Docker is an open platform based on Windows containers for developing, shipping, and running applications.
D)
None of the above

Correct Answer :   Docker is an open platform based on Linux containers for developing, shipping, and running applications.

A)
True
B)
False
C)
Can not say
D)
--

Correct Answer :   True

A)
Build once, run twice
B)
Build once, run everywhere
C)
Easy to run, is much more fun
D)
All of the above

Correct Answer :   Build once, run everywhere

11 .
Following Docker command:
docker commit -m "My first update" container_ID user_name/repository_name
is used to :
A)
Build an image
B)
Access a running container
C)
Activate default VM machine
D)
Commit changes done in a Docker image

Correct Answer :   Commit changes done in a Docker image

12 .
Following Docker command:
docker push user_name/repository_name
is used to:
A)
Build an image
B)
Activate default VM machine
C)
Commit changes done in a Docker image.
D)
Push changes done in a docker image into Docker Hub.

Correct Answer :   Push changes done in a docker image into Docker Hub.

A)
Kubernetes
B)
Canonical's LXD
C)
CoreOS' rkt
D)
Windows Server Containers

Correct Answer :   CoreOS' rkt


Explanation : Kubernetes is an orchestration tool that manages Docker deployments, but it is not a Docker alternative. LXD, rkt and the Windows Server Containers are container implementation technologies that compete with Docker.

A)
Docker will pull the image from GitHub.
B)
Docker will return a 404: file not found message.
C)
Docker will return a 408: image not found message.
D)
Docker will pull the image from Docker Hub.

Correct Answer :   Docker will pull the image from Docker Hub.


Explanation : Docker will look at the local image repository when a container image is referenced in a Dockerfile. If one is not found on the host, Docker will search for an image with the same name and version number on Docker Hub.

A)
dockerimage
B)
Jenkinsfile
C)
Dockerfile
D)
docker-compose

Correct Answer :   Dockerfile


Explanation : The Docker naming convention recommends that users save information on how to build a container image in a file named Dockerfile.

A)
Docker Cloud
B)
Docker Hub
C)
Docker Swarm
D)
Docker Compose

Correct Answer :   Docker Hub

A)
Docker Cloud
B)
Docker Hub
C)
Docker Swarn
D)
Docker Compose

Correct Answer :   Docker Compose

A)
Fast, Scalable, Reliable
B)
Lightweight, Standard, Secure
C)
Lightweight, Scalable, Fast
D)
Lightweight, Sociable, Secure

Correct Answer :   Lightweight, Standard, Secure

A)
Image, Container, VM, App Manager
B)
Image, Container, Engine, App Manager
C)
Image, Container, Engine, Registry, Control Plane
D)
None of the above

Correct Answer :   Image, Container, Engine, Registry, Control Plane

A)
True
B)
False
C)
Can not say
D)
--

Correct Answer :   False

A)
Docker Swarm
B)
Docker Cloud
C)
Docker Hub
D)
Docker Compose

Correct Answer :   Docker Swarm

A)
Docker Hub
B)
Docker Swarm
C)
Docker Compose
D)
Docker Universal Control Plane

Correct Answer :   Docker Universal Control Plane

A)
True
B)
False
C)
Can not say
D)
--

Correct Answer :   True


Explanation :

You don’t, they’re different. (“localhost” always resolves to 127.0.0.1 and it’s a very magical IP address.)
 
If you’re seeing an IP address of 192.168.99.100 you’re probably using Docker Toolbox or Docker Machine, which is running Docker on a Linux VM, and that’s the default IP address of that VM. If you’re using one of these options to run Docker then you have to use the $(docker-machine ip) address, usually 192.168.99.100. If you really want it to be “localhost” then you need to switch to the desktop-based Docker for Mac, or Docker for Windows, or just running Docker directly on your Linux host, as appropriate.

Source : Docker

A)
Docker allows you to run and build images.
B)
Docker allows you to run and build containers.
C)
Docker allows you to run containers and build images.
D)
Docker allows you to run images and build containers.

Correct Answer :   Docker allows you to run containers and build images.


Explanation : When a process based on a Docker image is started, it is referred to as a container. In contrast with containers, Docker images are built. And it is the container, which is based on the image, that is run.

A)
a butler
B)
a whale
C)
a sailboat
D)
an Octocat

Correct Answer :   a whale


Explanation :

This may seem like a silly question, but when you find out that Kubernetes refers to a group of Docker containers as a "pod," some of the cloud-native naming patterns start to make sense.
 
A butler is the Jenkins logo. The sailboat goes with Jakarta EE. And the Octocat is the GitHub logo.

A)
Digital Ocean
B)
Microsoft Azure
C)
Amazon Web Services (AWS)
D)
All of the above

Correct Answer :   All of the above

A)
Containers are an improvement compared with VMs
B)
A container image is a lightweight, stand-alone, executable package of a piece of software
C)
A Container includes everything it needs to run: code, runtime, system tools, system libraries, settings.
D)
All of them are right

Correct Answer :   All of them are right

A)
Allowing containers to run on all major Linux distributions only
B)
Allowing containers to run on all Microsoft operating systems only
C)
Allowing containers to run on all major Linux distributions and Microsoft operating systems
D)
All of the above

Correct Answer :   Allowing containers to run on all major Linux distributions and Microsoft operating systems

33 .
Following Docker command:
eval $(docker-machine env default)
is used to:
A)
Activate default VM machine
B)
Build an image
C)
Access a running container
D)
Commit changes done in a Docker image

Correct Answer :   Activate default VM machine

A)
namespaces
B)
Kubernetes
C)
control groups
D)
security groups

Correct Answer :   namespaces


Explanation :

Namespaces make the isolation of the process that runs a Docker container possible.
 
Control groups are what make it possible to limit the amount of CPU time and memory allocated to a given container.
 
Security groups are typically associated with AWS configurations, and Kubernetes is a container orchestration tool.

A)
MacOS
B)
Linux
C)
Windows
D)
Android

Correct Answer :   Linux


Explanation : Linux added two features to its kernel, namely control groups and namespaces, that made it possible to run software in isolated containers. These two changes made the container revolution possible.

A)
DevOps
B)
microservices
C)
cloud computing
D)
virtual machines

Correct Answer :   virtual machines


Explanation :

Docker containers are often compared to VMs, as both provide the ability to deploy and run multiple, independent applications on the same physical machine.
 
Docker containers are less resource intensive, as they provide process-level virtualization as opposed to full OS virtualization provided by a VM, which is one of the reasons the industry has shifted toward containers.