Docker Certified Associate (DCA) Practice Exams Set 23

Which of the following configurations would be best for enabling direct-lvm mode with devicemapper ?


Options are :

  • Set dm.mode=direct-lvm in /etc/docker/daemon.json .
  • Set dm.direct-lvm=true in /etc/docker/daemon.json .
  • Set dm.loop-lvm=false in /etc/docker/daemon.json .
  • Set dm.directlvm_device in /etc/docker/daemon.json .

Answer : Set dm.directlvm_device in /etc/docker/daemon.json .

What is the correct order to upgrade a Docker cluster?


Options are :

  • Upgrade UCP, DTR, then engine and kernel
  • Upgrade engine and kernel, DTR, and then UCP
  • Upgrade DTR, UCP, then engine and kernel
  • Upgrade engine and kernel, UCP, and then DTR

Answer : Upgrade engine and kernel, UCP, and then DTR

Docker Certified Associate (DCA) Practice Exams Set 9

Which network driver type is best when you are migrating from a VM setup or need your containers to look like physical hosts on your network, each with a unique MAC address?


Options are :

  • Host networks
  • User-defined bridge networks
  • Macvlan networks
  • Overlay networks

Answer : Macvlan networks

Which command is used to deploy a new stack or update an existing stack.



Options are :

  • docker stack deploy
  • docker service create
  • docker stack deploy update:
  • docker stack create

Answer : docker stack deploy

Which network driver type is best when you need multiple containers to communicate on the same Docker host?


Options are :

  • Macvlan networks
  • Overlay networks
  • User-defined bridge networks
  • Host networks

Answer : User-defined bridge networks

Docker Certified Associate (DCA) Practice Exams Set 3

How many layers would the image contain given the docker file below?


FROM ubuntu:15.04

COPY . /app

RUN make /app

CMD python /app/app.py


Options are :

  • 1
  • 2
  • 4
  • 3

Answer : 4

Docker Certified Associate (DCA) Practice Exams Set 5

Which column of the 'docker node ls' command shows shows node participation in the Raft consensus?


Options are :

  • AVAILABILITY
  • MANAGER STATUS
  • STATE
  • STATUS

Answer : MANAGER STATUS

A ____ is a running container which is part of a swarm service and managed by a swarm manager, as opposed to a standalone container


Options are :

  • instance
  • node
  • task
  • image

Answer : task

You can modify a serviceís configuration, including the networks and volumes it is connected to, without the need to manually restart the service


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 6

If you use -v or --volume to bind-mount a file or directory that does not yet exist on the Docker host, Docker does not automatically create it for you, but generates an error.


Options are :

  • TRUE
  • FALSE

Answer : FALSE

Which of the following are valid options for the '--update-failure-action' of the 'docker service create' and 'docker service update' commands?


Options are :

  • continue
  • stop
  • pause
  • retry
  • rollback

Answer : continue pause rollback

Which command should you run to disconnect a running container from an existing user-defined bridge


Options are :

  • docker network 'network name' disconnect 'container name'
  • docker network disconnect 'network name'
  • docker network dettach 'network name' 'container name'
  • docker network disconnect 'network name' 'container name'

Answer : docker network disconnect 'network name' 'container name'

Docker Certified Associate (DCA) Practice Exams Set 9

To verify that the daemon is using the devicemapper storage driver you should?


Options are :

  • Check the "storage-driver": "devicemapper" entry in the daemon.json file
  • Use the docker info command and verify the Storage Driver is shown as devicemapper

Answer : Use the docker info command and verify the Storage Driver is shown as devicemapper

FROM can only appear once in a single dockerfile


Options are :

  • FALSE
  • TRUE

Answer : FALSE

If you use --mount to bind-mount a file or directory that does not yet exist on the Docker host, Docker does not automatically create it for you, but generates an error.


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 4

A group of machines that are running Docker and joined into a cluster is called a?


Options are :

  • Swarm
  • Hive
  • Herd
  • School

Answer : Swarm

Docker Trusted Registry (DTR) has to be installed on UCP


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Which command removes all images which are not used by existing containers?


Options are :

  • docker image rm -a
  • docker image prune -rm_all
  • docker image prune -a
  • docker image prune

Answer : docker image prune -a

Docker Certified Associate (DCA) Practice Exams Set 20

With which type of mount is the data stored in a part of the host filesystem which is managed by Docker (/var/lib/docker/volumes/ on Linux)?


Options are :

  • bind mounts
  • volumes
  • Regular
  • tempfs

Answer : volumes

You can use the 'docker swarm join-token' command to generate which types of tokens? (select two)


Options are :

  • manager
  • worker
  • CA
  • node

Answer : manager worker

Which command is used on a node to remove it from the swarm?


Options are :

  • docker node exit
  • docker swarm leave
  • docker swarm retire
  • docker swarm exit

Answer : docker swarm leave

Docker Certified Associate (DCA) Practice Exams Set 5

Which instruction's main purpose is to provide defaults for an executing container?


Options are :

  • EXEC
  • CMD
  • EXPOSE
  • RUN

Answer : CMD

Which command is used to live stream a containerís runtime metrics?


Options are :

  • docker mon
  • docker top
  • docker ps -ef
  • docker stats

Answer : docker stats

Which command is used to demote a manager node to be a worker?


Options are :

  • docker node downgrade
  • docker swarm demote
  • docker node remove manager
  • docker node demote

Answer : docker node demote

Docker Certified Associate (DCA) Practice Exams Set 4

Which command is used to create a service in a swarm?


Options are :

  • docker service init
  • docker swarm service init
  • docker service create
  • docker swarm service create

Answer : docker service create

A container is launched by running which of the following?


Options are :

  • Virtual machines
  • Templates
  • Instructions
  • Images

Answer : Images

Which of the following commands can be used to create a volume? (select three)


Options are :

  • docker run -d --name test --mount source=testvol,target=/testvol ubuntu:latest
  • docker run -d --name test -v testvol:/testvol ubuntu:latest
  • docker volume create testvol
  • docker volume make testvol

Answer : docker run -d --name test --mount source=testvol,target=/testvol ubuntu:latest docker run -d --name test -v testvol:/testvol ubuntu:latest docker volume create testvol

Docker Certified Associate (DCA) Practice Exams Set 9

Which two file persistence options are available in Docker? (File persistence allows containers to store files in the host machine, so that they are available even after the container stops) (select two)


Options are :

  • volumes
  • tempfs
  • ramdisk
  • bind mounts

Answer : volumes bind mounts

Which dockerd flag allows you to keep your containers running during a Docker upgrade, though networking and user input are interrupted?


Options are :

  • --stayonline
  • --live-restore
  • --no-restart
  • --maintenance-mode

Answer : --live-restore

Running 'docker/dtr backup' will backup your DTR Metadata and Image Content


Options are :

  • FALSE
  • TRUE

Answer : FALSE

Docker Certified Associate (DCA) Practice Exams Set 9

Besides the readonly image and the writable container layer, which other ways can containers take up disk space? (select three)


Options are :

  • Data stored in tmpfs
  • Disk space used for log files if you use the json-file logging driver.
  • Disk space used for the containerís configuration files, which are typically small.
  • Volumes and bind mounts used by the container.

Answer : Disk space used for log files if you use the json-file logging driver. Disk space used for the containerís configuration files, which are typically small. Volumes and bind mounts used by the container.

Each layer is stored in its own directory inside the Docker hostís local storage area.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Which command is used to create an overlay network capable of encrypting application data?


Options are :

  • docker make encrypted overlay network 'network name'
  • docker network 'network name' create -d overlay --encrypted
  • docker network create -d overlay --opt encrypted 'network name'
  • docker-network create 'network name'

Answer : docker network create -d overlay --opt encrypted 'network name'

Docker Certified Associate (DCA) Practice Exams Set 8

Which mechanism is used exclude files and directories from the context that docker CLI uses to create an IMAGE


Options are :

  • .dockerexclude file
  • IGNORE instruction
  • EXCLUDE instruction
  • .dockerignore file

Answer : .dockerignore file

Which network driver removes network isolation between the container and the Docker host, and uses the hostís networking directly?


Options are :

  • macvlan
  • bridge
  • overlay
  • host
  • none

Answer : host

Swarm management commands like docker node ls only work on manager nodes.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 5

A _______ is the definition of the tasks to execute on the manager or worker nodes.


Options are :

  • node
  • cluster
  • service
  • manager

Answer : service

Which command is used to see details about the service running in the swarm AND provide the output in easily readable format?


Options are :

  • docker service inspect --printformat
  • docker service inspect
  • docker service inspect --pretty
  • docker service inspect --easyread

Answer : docker service inspect --pretty

What is the maximum recommended number of managers for a swarm?


Options are :

  • 7
  • 3
  • 5
  • 4

Answer : 7

Docker Certified Associate (DCA) Practice Exams Set 23

Which flag of docker run allows you to use a different container logging driver than the Docker daemonís default?


Options are :

  • --log-driver
  • --dumpdriver
  • --logging
  • --logger

Answer : --log-driver

To enable high-availability for Docker Trusted Registry (DTR) you can deploy multiple DTR replicas on different UCP workers.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

The host networking driver is supported on which of the following?


Options are :

  • Docker EE for Windows Server
  • Docker for Windows
  • Linux hosts
  • Docker for Mac

Answer : Linux hosts

Docker Certified Associate (DCA) Practice Exams Set 24

Dockerfile should specify at least one of CMD or ENTRYPOINT commands.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

a containerís hostname defaults to be the containerís ID in Docker


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Docker runs instructions in a dockerfile in sequential order


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 24

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions