Docker Certified Associate (DCA) Practice Exams Set 3

Which two new networks are created on a Docker host when you initialize a swarm or join a Docker host to an existing swarm? (select two)


Options are :

  • an overlay network called ingress
  • a host network called docker_hostbridge
  • a bridge network called docker_gwbridge
  • a none network call swarm_null

Answer : an overlay network called ingress a bridge network called docker_gwbridge

In the output below, what do the IDs next to the "Pull complete" message indicate?


$ docker pull ubuntu:15.0415.04:

Pulling from library/ubuntu

1ba8ac955b97: Pull complete

f157c4e5ede7: Pull complete

0b7e98f84c4c: Pull complete

a3ed95caeb02: Pull complete

Digest: sha256:5e279a9df07990286cce22e1b0f5b0490629ca6d187698746ae5e28e604a640e

Status: Downloaded newer image for ubuntu:15.04


Options are :

  • Layers of the image
  • File parts
  • Container IDs
  • Image IDs

Answer : Layers of the image

Docker Certified Associate (DCA) Practice Exams Set 17

In order to scale your app with docker stack deploy, it is required to tear down the existing stack first


Options are :

  • FALSE
  • TRUE

Answer : FALSE

If you want to create a services but prevent it from being deployed you should?


Options are :

  • Configure it in such a way that it remains in pending
  • Scale the service to 0

Answer : Scale the service to 0

The ucp-agent runs on both manager and worker nodes


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 9

Which of the following are valid values of the --restart flag for docker run?


Options are :

  • always
  • on-failure
  • no
  • unless-stopped
  • on-error
  • never

Answer : always on-failure no unless-stopped

By default Docker Swarm uses which default address pool?


Options are :

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16
  • 10.0.0.0/16

Answer : 10.0.0.0/8

On Linux systems the Docker daemon is configured using a JSON file, create a file at?


Options are :

  • /etc/docker/startup.json
  • /opt/docker/daemon.json
  • /etc/docker/daemon.json
  • /var/docker/daemon.json

Answer : /etc/docker/daemon.json

Docker Certified Associate (DCA) Practice Exams Set 25

Which 'docker create' option allows you to join a container to a network?


Options are :

  • --joinnetwork
  • --bindto
  • --network
  • -attachnet

Answer : --network

Docker CE is available on multiple platforms. Which of the following are not valid operating systems to run Docker CE Server?


Options are :

  • Centos
  • Ubuntu
  • Debian
  • Fedora
  • Windows Server 2012

Answer : Windows Server 2012

Docker can manage the block device for you, simplifying configuration of direct-lvm mode, when using the devicemapper storage driver


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 9

Which command builds a docker image from a dockerfile?


Options are :

  • docker build
  • docker create
  • docker make
  • docker image

Answer : docker build

Which command is used to see which nodes are running the service?


Options are :

  • docker ps
  • docker top
  • docker swarm ps
  • docker service ps

Answer : docker service ps

Docker has an enterprise-grade image storage solution that you can install behind your firewall so that you can securely store and manage the Docker images you use in your applications. What is it called?


Options are :

  • Docker Hub
  • Docker Image Repo
  • Docker Trusted Registry (DTR)
  • Docker Container Registry

Answer : Docker Trusted Registry (DTR)

Docker Certified Associate (DCA) Practice Exams Set 14

Which command is used to enable swarm mode and make the machine, where the command is run, the current machine a swarm manager?


Options are :

  • docker swarm -i
  • docker swarm init
  • docker swarm create
  • docker swarm zoom zoom

Answer : docker swarm init

In which model, does the swarm manager run one task for the service on every available node in the cluster?


Options are :

  • global
  • distributed
  • replicated
  • balanced

Answer : global

In which model, does the swarm manager distribute a specific number of replica tasks among the nodes based upon the scale you set in the desired state?


Options are :

  • replicated
  • balanced
  • distributed
  • global

Answer : replicated

Docker Certified Associate (DCA) Practice Exams Set 3

Which docker run flag should you use to configure the restart policy for a container?


Options are :

  • --restart-policy
  • --restart
  • --stayonline
  • --start

Answer : --restart

Which type of file defines how Docker containers should behave in production?


Options are :

  • Docker Template
  • Dockerflie
  • docker-compose.yml
  • Docker Service definition

Answer : docker-compose.yml

Docker CE is available on multiple platforms. Which of the following are valid operating systems to run Docker CE Desktop? (select two)


Options are :

  • MacOS
  • Windows 10
  • Linux
  • Windows 8

Answer : MacOS Windows 10

Docker Certified Associate (DCA) Practice Exams Set 3

Which of the following docker image commands display detailed information on one or more images?


Options are :

  • docker image detail
  • docker image history
  • docker image ls
  • docker image inspect

Answer : docker image inspect

Docker Certified Associate (DCA) Practice Exams Set 26

You want to ensure that a container doesn’t exceed memory usage than a specified amount. Which of the following will be used by default by docker to achieve that?


Options are :

  • cgroups
  • selinux
  • secomp
  • namespaces

Answer : cgroups

Which of the following commands can be used to see IPv4 subnet of a network


Options are :

  • docker network inspect
  • docker info network
  • docker network info
  • docker network ls

Answer : docker network inspect

Docker image is built up from a series of layers and each layer represents an instruction in the image's Dockerfile. True or false?



Options are :

  • FALSE
  • TRUE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 13

Which of the following is true about Entrypoint of an Image.


Options are :

  • It’s the script that anyone using the image must execute to initialize things z inside container .
  • It’s a command that will be executed anytime a container is created using the image.
  • It is defined while creating the image and cannot be overridden
  • Entrypoint must be a script.

Answer : It’s a command that will be executed anytime a container is created using the image.

Given Dockerfile

FROM ubuntu

ENTRYPOINT [“exec_entry”, “p1_entry”]

CMD exec-cmd p1_cmd

What is the command that gets executed when someone runs the image built using this Dockerfile?


Options are :

  • /bin/sh -c “ exec-cmd p1_cmd “
  • exec_entry p1_entry /bin/sh -c “ exec-cmd p1_cmd “
  • exec_entry p1_entry z exec_cmd p1_cmd B
  • exec_entry p1_entry
  • /bin/sh -c “exec_entry p1_entry” /bin/sh -c “ exec-cmd p1_cmd “

Answer : exec_entry p1_entry /bin/sh -c “ exec-cmd p1_cmd “

Which statement is true about DTR garbage collection?



Options are :

  • Garbage collection removes containers from cluster nodes.
  • Garbage collection removes DTR images that are older than a configurable of days.
  • Garbage collection removes unused volumes from cluster node.
  • Garbage collection removes unreferenced image layers from DTR backend storage.

Answer : Garbage collection removes unreferenced image layers from DTR backend storage.

Docker Certified Associate (DCA) Practice Exams Set 9

What is the difference between the ADD and COPY dockerfile instructions? (select 2)


Options are :

  • COPY supports regular expression handling while ADD does not.
  • ADD supports compression format handling while COPY does not.
  • ADD supports regular expression handling while COPY does not.
  • COPY supports compression format handling while ADD does not.
  • ADD supports remote URL handling while COPY does not.

Answer : ADD supports compression format handling while COPY does not. ADD supports remote URL handling while COPY does not.

When using the Docker client to push an image to a registry, what environment variable is used to instruct the client to perform signing of the image?


Options are :

  • NOTARY_ENABLE=1
  • DOCKER_CONTENT_TRUST=1
  • DOCKER_IMAGE_CERTS=1
  • DOCKER_PUSH_SIGN=1

Answer : DOCKER_CONTENT_TRUST=1

What is the default address pool used by docker swarm for global scope overlay network?


Options are :

  • 172.0.0.1/8
  • 10.0.0.1/16
  • 10.0.0.1/8
  • 172.0.0.1/16

Answer : 10.0.0.1/8

Docker Certified Associate (DCA) Practice Exams Set 18

Each container shares common writable container layer ?



Options are :

  • TRUE
  • FALSE

Answer : FALSE

To Grants in UCP are made up of which of the following?



Options are :

  • nodes, role and containers
  • subject, node and containers
  • images, containers and nodes
  • subject, role and resource set
  • subject, role and containers

Answer : subject, role and resource set

Which of the following does "docker-compose up" automatically create, even if not manually specified in the compose file?


Options are :

  • backup
  • Restore
  • Network
  • Registry

Answer : Network

Docker Certified Associate (DCA) Practice Exams Set 11

The feature of limiting memory while running a container is provided by which of the following?


Options are :

  • systemd
  • namespaces
  • selinux
  • cgroups

Answer : cgroups

Which of the following gives a web dashboard to manage docker cluster?


Options are :

  • Docker UCP
  • DTR
  • Docker Compose
  • Docker Swarm Mode

Answer : Docker UCP

Which one is a valid command to run a global service in docker swarm?


Options are :

  • docker service create --mode global
  • docker swarm create --mode global
  • docker swarm create --global
  • docker service create --global

Answer : docker service create --mode global

Docker Certified Associate (DCA) Practice Exams Set 9

What is the docker command to pull an image or a repository from a registry?


Options are :

  • docker checkout
  • docker build
  • docker deploy
  • docker pull

Answer : docker pull

Which of the following is NOT true about control group?


Options are :

  • They also help ensure that each container gets its fair share of memory, CPU, disk I/O.
  • They ensure that a single container cannot bring the system down by exhausting one z of those resources.
  • They implement resource accounting and limiting.
  • Cgroups is a kernel level feature provided by docker.

Answer : Cgroups is a kernel level feature provided by docker.

Dockerfile option EXPOSE publish the port to external systems.?


Options are :

  • TRUE
  • FALSE

Answer : FALSE

Docker Certified Associate (DCA) Practice Exams Set 17

You created a docker swarm cluster using “docker swarm init” command. After creating the swarm cluster you got a command using which you could add a worker to your cluster. But you have lost that command and now you want to add new workers to your cluster. How would you do that?


Options are :

  • docker swarm join-token manager
  • docker swarm init-token manager
  • docker swarm init-token worker
  • docker swarm join-token worker

Answer : docker swarm join-token worker

What is the docker command for displaying layers of a Docker image?



Options are :

  • docker image layers
  • docker history
  • docker info
  • docker layers

Answer : docker history

Which of the following flags can be used with “docker build” command so that it never uses cached layer during the build steps.


Options are :

  • --compress
  • --no-cache
  • -f
  • --rm

Answer : --no-cache

Docker Certified Associate (DCA) Practice Exams Set 4

You a running a service called 'webserver'. You need to increase the number of replicas of that service to 5. Which of the following commands would achieve that?


Options are :

  • docker swarm --replicas=5 webserver
  • docker service scale webserver=5
  • docker swarm scale webserver=5
  • docker service --replicas=5 webserver

Answer : docker service scale webserver=5

Which set of commands can identify the published port(s) for a container?


Options are :

  • docker network inspect docker port
  • docker container inspect docker port
  • docker port inspect docker container inspect
  • https://docs.docker.com/engine/reference/commandline/inspect/
  • docker info docker network inspect

Answer : docker container inspect docker port

What is the docker command to remove one or more images?



Options are :

  • docker delete
  • docker image delete
  • docker remove
  • docker image rm

Answer : docker image rm

Docker Certified Associate (DCA) Practice Exams Set 7

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions