Correct Answer:
Allows orchestration of Docker containers natively
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
spread
random
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
How wll manager nodes handle cluster management tasks? (choose all that apply)
Correct Answer:
maintaining cluster state
serving swarm mode HTTP API endpoints
scheduling services
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
A fast way to remove a dangling image is to use the following command:
Correct Answer:
$ docker rmi -f $(docker images -q -a -f dangling=true)
Note: This Question is unanswered, help us to find answer for this one
Swarm supports the following backend discovery services?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Which statement is True of Docker swarm?
Correct Answer:
A clustering tool for docker
Note: This Question is unanswered, help us to find answer for this one
Which statement is correct about Service discovery?
Correct Answer:
Swarm manager nodes assign each service in the swarm a unique DNS name and load balances running containers
Note: This Question is unanswered, help us to find answer for this one
How can you configure the LDAP integration?
Correct Answer:
Go to the UCP web UI, navigate to the Settings page, and click the Auth tab
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement to describe the contents directory found under the filesystem location shown below. /var/lib/docker
Correct Answer:
A collection of two files consisting of metadata in json, number of layers, and a subdirectory with the root filesystem for the image.
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement to describe the Docker Hub in the Docker Workflow.
Correct Answer:
Docker Hub provides both public and private storage for images, where images can be searched for and can be downloaded
Note: This Question is unanswered, help us to find answer for this one
The Docker zfs storage driver makes extensive use of the following ZFS datasets:
Correct Answer:
snapshots
clones
filesystems
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement for Automated Builds in the Docker Workflow.
Correct Answer:
Docker Hub supports GitHub and BitBucket for Automated Build via a Web commit hook.
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement to describe the Docker File entry below. FROM ubuntu
Correct Answer:
Includes the Ubuntu image as the base layer for the Docker File build.
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement to describe Docker.
Correct Answer:
Docker containers run processes with guarantees of isolation.
Note: This Question is unanswered, help us to find answer for this one
For the following 'docker-compose.yml' fragment scala: build: ./scala expose: - 40000-50000 ports: - 9000:9000 - 4040:4040 links: - mongo volumes: - ../../:/root/cardio - ~/.ivy2:/root/.ivy2 - ~/.sbt:/root/.sbt stdin_open: true Choose the correct statement to describe the 'expose' command as used in the code.
Correct Answer:
The 'expose' instruction indicates the ports on which a container will listen for connections
Note: This Question is unanswered, help us to find answer for this one
How can you create a hashtable with the settings for your container?
Correct Answer:
$webContainer = @{Name="web"; Image="anweiss/docker-platynem"; Port="80:80"}
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement to describe the ENTRYPOINT argument In Dockerfiles.
Correct Answer:
The ENTRYPOINT specifies a command that will always be executed when the container starts.
Note: This Question is unanswered, help us to find answer for this one
You can use the Docker repository and its __ to create a Docker image, run a Docker container, and develop code in the container?
Correct Answer:
Dockerfile
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement for Webhooks in the Docker Workflow.
Correct Answer:
Webhooks are configured on a per-repository basis to allow automated builds of your Docker image
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement to describe the CMD command for Dockerfiles.
Correct Answer:
The CMD command can be used for executing a specific command when docker container runs.
Note: This Question is unanswered, help us to find answer for this one
Which command is True for applications to run in containers?
Correct Answer:
docker run [OPTIONS] IMAGE [COMMAND] [ARG…]
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement to describe Docker container namespaces.
Correct Answer:
To give a container a docker namespace you have to run an ssh daemon in each container.
Note: This Question is unanswered, help us to find answer for this one
What are the node filters?
Correct Answer:
containerslots
constraint
port
health
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following are true? Check all that apply.
Correct Answer:
Docker container is the runtime instance of docker image.
A Docker image is a read-only template.
Each container is an isolated and secure application platform.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
The
Correct Answer:
A globbing pattern, for example, abc*
A regular expression in the form of /regexp/. See re2 syntax for the supported regex syntax
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
___ is a portable, lightweight runtime and packaging tool.
Correct Answer:
Docker Engine
Note: This Question is unanswered, help us to find answer for this one
An external CA is a trusted 3rd party company that provides a means of _____ , and otherwise managing certificates?
Correct Answer:
creating, issuing, revoking
Note: This Question is unanswered, help us to find answer for this one
Which statement best describes the difference between the COPY and ADD commands in a Dockerfile.
Correct Answer:
COPY only supports the basic copying of local files into the container, while ADD has some features (like local-only tar extraction and remote URL support)
Note: This Question is unanswered, help us to find answer for this one
Choose the most correct statement to describe Docker 'cgroups'.
Correct Answer:
Docker 'cgroups' control resource usage
Note: This Question is unanswered, help us to find answer for this one
The dockerd options that support the overlay network are?
Correct Answer:
--cluster-store-opt
--cluster-store
--cluster-advertise
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
How can you run services in the background with docker compose?
Correct Answer:
docker-compose up -d
Note: This Question is unanswered, help us to find answer for this one
The legacy link provided following major functionalities to the default bridge network?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Garbage collection can be run using the following command?
Correct Answer:
bin/registry garbage-collect [--dry-run] /path/to/config.yml
Note: This Question is unanswered, help us to find answer for this one
The cluster management and orchestration features embedded in the Docker Engine are built using?
Correct Answer:
SwarmKit
Note: This Question is unanswered, help us to find answer for this one
Which command is used to list services in a swarm?
Correct Answer:
service ls
Note: This Question is unanswered, help us to find answer for this one
At a high-level, which of the following steps will you use to integrate UCP with DRT?
Correct Answer:
Configure the Docker Engine running on each UCP node to trust DTR
Configure UCP to know about DTR
Configure DTR to trust UCP
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Using the following command to create a new swarm?
Correct Answer:
docker swarm init --advertise-addr <MANAGER-IP>
Note: This Question is unanswered, help us to find answer for this one
___ is a cloud service for sharing applications and automating workflows.
Correct Answer:
Docker Hub
Note: This Question is unanswered, help us to find answer for this one
Which of the following statement True of Docker Machine?
Correct Answer:
a tool for provisioning and managing your Dockerized hosts
Note: This Question is unanswered, help us to find answer for this one
What does the docker swarm command “swarm join” do?
Correct Answer:
Join a swarm as a manager node or worker node
Note: This Question is unanswered, help us to find answer for this one
Which of the following is True? In Docker, when a container is exited
Correct Answer:
The state of the filesystem is stored but the processes are not
Note: This Question is unanswered, help us to find answer for this one
Swarm agents are responsible for hosting containers. They are regular docker daemons and you can communicate with them using the ___?
Correct Answer:
None of the above
Note: This Question is unanswered, help us to find answer for this one
For the 'docker-compose.yml' fragment below
scala:
build: ./scala
expose:
- 40000-50000
ports:
- 9000:9000
- 4040:4040
links:
- mongo
volumes:
- ../../:/root/cardio
- ~/.ivy2:/root/.ivy2
- ~/.sbt:/root/.sbt
stdin_open: true
mongo:
image: mongo
volumes_from:
- data
ports:
- "27017:27017"
Choose the most correct statement to describe the 'links' block
Correct Answer:
Allows the container to be linked with ALL instances of the mongo service , but each with different alias
Note: This Question is unanswered, help us to find answer for this one
Docker containers can be
Correct Answer:
run, started, stopped, moved, and deleted
Note: This Question is unanswered, help us to find answer for this one
Choose the best description of the difference between a Docker container and a Linux process.
Correct Answer:
The diference between a container over a process is some extra kernel resources to manage namespaces, file systems and control groups
Note: This Question is unanswered, help us to find answer for this one
Multiple containers share the same kernel, but each container can be constrained to only use a defined amount of resources such as _____ , memory and I/O?
Correct Answer:
CPU
Note: This Question is unanswered, help us to find answer for this one
The default Engine and Swarm ports for TLS are?
Correct Answer:
Swarm manager: 3376/tcp
Engine daemon: 2376/tcp
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Can data volume containers be used/mounted in containers residing on other hosts within a docker swarm?
Correct Answer:
Docker, by itself, does not provide any facility for either migrating data or sharing data between hosts in a cluster
Note: This Question is unanswered, help us to find answer for this one
Which statement correctly describes a ‘docker.sock’.
Correct Answer:
The docker command line tool contacts the docker daemon process via a UNIX domain socket socket at /var/run/docker.sock
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement for Docker Swarm
Correct Answer:
Docker Swarm provides a common interface onto the many orchestration and scheduling frameworks.
Note: This Question is unanswered, help us to find answer for this one
Docker is an open platform for developers and __ to build, ship, and run distributed application?
Correct Answer:
sysadmins
Note: This Question is unanswered, help us to find answer for this one
In docker, a union file system is the union of ?
Correct Answer:
Read-write layer and all read-only layers
Note: This Question is unanswered, help us to find answer for this one
Docker diff command has 3 events listed in it. They are
Correct Answer:
A-Add; D-Delete; C-Change;
Note: This Question is unanswered, help us to find answer for this one
The Docker client and daemon can communicate via?
Correct Answer:
Both1 and 2
Note: This Question is unanswered, help us to find answer for this one
What are the two major Docker components?
Correct Answer:
Docker and docker-hub
Note: This Question is unanswered, help us to find answer for this one
How will a server running multiple Docker containers handle the TCP limitation?
Correct Answer:
The total cap of TCP connections will be capped by the Docker host
Note: This Question is unanswered, help us to find answer for this one
When using 'systemd' your docker containers start but get shut down instantly. Choose the best explanation for why this may be happening.
Correct Answer:
You have not specified a Type in your systemd unit file
Note: This Question is unanswered, help us to find answer for this one
Which statement best describes how Docker's Containers are different to Virtual Machines?
Correct Answer:
A Docker containers runs in the same kernel as it's host. A Virtual Machine gets it's own kernel.
Note: This Question is unanswered, help us to find answer for this one
Which of the following is true?
Correct Answer:
Processes running within a container cannot see, and even less affect, processes running in another container, or in the host system.
Note: This Question is unanswered, help us to find answer for this one
Docker can be integrated into various infrastructure tools, including?
Correct Answer:
Amazon Web Services
Google Cloud Platform
IBM Bluemix
Microsoft Azure
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Custom, cross-host container networks are?
Correct Answer:
Inbound 7946/tcp
Inbound 7946/udp
Inbound
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
The container configuration filters are?
Correct Answer:
affinity
dependency
port
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
The “exec” command in docker is used to
Correct Answer:
Run a command in a running container
Note: This Question is unanswered, help us to find answer for this one
Docker Universal Control Plane (UCP) is the enterprise-grade cluster management solution from?
Correct Answer:
Docker
Note: This Question is unanswered, help us to find answer for this one
Containers on the network ___ DNS mappings for the service via gossip so any container on the network can access the service via its service name?
Correct Answer:
share
Note: This Question is unanswered, help us to find answer for this one
Which statement best describes Docker as a technology innovation.
Correct Answer:
Docker allows developers to pack, ship, and run any application to a lightweight, portable, self sufficient consistent production environment.
Note: This Question is unanswered, help us to find answer for this one
Docker is
Correct Answer:
a software containerization platform
Note: This Question is unanswered, help us to find answer for this one
Scheduling strategies are how Swarm decides which nodes on a cluster to start containers on. Swarm supports the following strategies?
Correct Answer:
binpack
random
spread
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
For the following 'docker-compose.yml' fragement scala: build: ./scala expose: - 40000-50000 ports: - 9000:9000 - 4040:4040 links: - mongo volumes: - ../../:/root/cardio - ~/.ivy2:/root/.ivy2 - ~/.sbt:/root/.sbt stdin_open: true Choose the most correct statement to describe the ' volumes' command as it appears in the code.
Correct Answer:
The ' volumes' command is used here to enable access from your container to a directory on the host machine.
Note: This Question is unanswered, help us to find answer for this one
Which command is used to show all running containers?
Correct Answer:
docker ps
Note: This Question is unanswered, help us to find answer for this one
The docker compose sub-command “up” is used to?
Correct Answer:
C)Both A and B
Note: This Question is unanswered, help us to find answer for this one
Can an individual Docker container, for example a web server, that exposes (listens on) a port be started using systemd's socket activation feature?
Correct Answer:
It is not possible using default docker implementation
Note: This Question is unanswered, help us to find answer for this one
How do links and scaling work together in docker compose?
Correct Answer:
When scaling a container from a compose application you need to use the new multi-host networking functionality to connect containers across different physical or virtual hosts
Note: This Question is unanswered, help us to find answer for this one
What does the docker management command dockerd do?
Correct Answer:
Launch the Docker daemon
Note: This Question is unanswered, help us to find answer for this one
What format of compose files are supported by docker?
Correct Answer:
Both YAML and JSON
Note: This Question is unanswered, help us to find answer for this one
What is the command used to convert a container into an image?
Correct Answer:
docker commit
Note: This Question is unanswered, help us to find answer for this one
Which statement best describes the possible security implications of public docker images
Correct Answer:
If you accidentally publish a credential(s), Delete the public image and update the credentials on whatever system(s) it has compromised
Note: This Question is unanswered, help us to find answer for this one
Which of the following is NOT a valid docker command for images?
Correct Answer:
pause
Note: This Question is unanswered, help us to find answer for this one
Which of the following is NOT true?
Correct Answer:
JSON format can be used for dockerfiles.
Note: This Question is unanswered, help us to find answer for this one
The command to list all currently available images is?
Correct Answer:
docker images
Note: This Question is unanswered, help us to find answer for this one
Signed manifests include an image manifest and a list of signatures generated by libtrust. A signature consists of the following fields?
Correct Answer:
signature
header
protected
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement to describe the Docker repository
Correct Answer:
You can tag an image, and store multiple versions of that image with different GUIDs in a single named repository
Note: This Question is unanswered, help us to find answer for this one
Which statement correctly describes a docker image.
Correct Answer:
An image is a read only layer used to build a container. They do not change
Note: This Question is unanswered, help us to find answer for this one
Choose the correct statement
Correct Answer:
The command 'docker rmi' removes an image
Note: This Question is unanswered, help us to find answer for this one
The “rmi” command in docker is used to?
Correct Answer:
Remove one or more docker images
Note: This Question is unanswered, help us to find answer for this one
Docker MCQs | Topic-wise