Docker Certified Associate (DCA) Practice Exams Set 20

You can create a volume dynamically using which command?


Options are :

  • docker create volume
  • docker make volume
  • Volumes cannot be created after container creation
  • docker volume create

Answer : docker volume create

Docker Certified Associate (DCA) Practice Exams Set 4

Which docker feature allows you to control whether your containers start automatically when they exit, or when Docker restarts, and that they are started in the correct order


Options are :

  • startup rules
  • restart policies
  • placement rules
  • startup policies

Answer : restart policies

Docker's default container format is called?


Options are :

  • dockertainer
  • libcontainer
  • dockerformat
  • containerd

Answer : libcontainer

If the manager in a single-manager swarm fails, your services continue to run, but you need to create a new cluster to recover.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 8

The docker daemon is called?


Options are :

  • docker_d
  • dockerd
  • docker_engine
  • docker_run

Answer : dockerd

Docker regularly cleans up unused objects, such as images, containers, volumes, and networks


Options are :

  • TRUE
  • FALSE

Answer : FALSE

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


Options are :

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

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

Docker Certified Associate (DCA) Practice Exams Set 16

To bypass the routing mesh, you can start a service using DNS Round Robin (DNSRR) mode,


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Which command can you use to clean up multiple types of objects (images, containers, and networks) at once?


Options are :

  • docker system purge
  • docker cleanup
  • docker clean all
  • docker system prune

Answer : docker system prune

Which instruction specifies the Base Image from which you are building?


Options are :

  • FROM
  • CMD
  • RUN
  • EXPOSE

Answer : FROM

Docker Certified Associate (DCA) Practice Exams Set 7

Docker Engine uses which file system to provide the building blocks for containers?


Options are :

  • NTFS
  • EXT2
  • UnionFS
  • XFS

Answer : UnionFS

After joining a swarm, machines that are running Docker, are referred to as?


Options are :

  • Pods
  • Nodes
  • Instances
  • Hosts

Answer : Nodes

Docker EE is available on multiple platforms. Which of the following are not valid hardware platforms to run Docker EE?


Options are :

  • IBM Z (s390x)
  • Sun/Oracle SPARC
  • X86_64/AMD 64
  • IBM Power (ppc64le)

Answer : Sun/Oracle SPARC

Docker Certified Associate (DCA) Practice Exams Set 3

Build-time variable values are not visible to anyone so it is OK to pass secret keys, user credentials, etc


Options are :

  • TRUE
  • FALSE

Answer : FALSE

Single sign-on (SSO) with UCP can only be configured at installation


Options are :

  • FALSE
  • TRUE

Answer : FALSE

DTR only allows deleting images if that image hasn’t been signed.


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 22

Which command is used to join a swarm as a worker?


Options are :

  • docker swarm -j
  • docker join the swarm
  • docker worker init
  • docker swarm join

Answer : docker swarm join

Which command can you run on a manager node to retrieve the join command for a worker?


Options are :

  • docker swarm get-token worker
  • docker swarm join worker
  • docker swarm show join-token
  • docker swarm join-token worker

Answer : docker swarm join-token worker

Which instruction copies new files, directories or remote file URLs from <src> and adds them to the filesystem of the image at the path <dest>?


Options are :

  • ENV
  • ADD
  • LABEL
  • TAG

Answer : ADD

Docker Certified Associate (DCA) Practice Exams Set 27

Which command is used to create an overlay network that can be used with swarm services?


Options are :

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

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

Which instruction is required if no executable is specified in the CMD instruction?


Options are :

  • EXEC
  • CMD
  • ENTRYPOINT
  • RUN

Answer : ENTRYPOINT

Which 'docker service update' flags are used to update the published ports of existing services? (select two)


Options are :

  • -port-remove
  • --publish-add
  • --port-add
  • --publish-rm

Answer : --publish-add --publish-rm

Docker Certified Associate (DCA) Practice Exams Set 7

You can specify multiple labels for an object, but each key-value pair must be unique within an object.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

The devicemapper can only use a single block device when using direct-lvm mode.


Options are :

  • TRUE
  • FALSE

Answer : FALSE

Which of the following is an advantage of volumes over bind mounts?


Options are :

  • New volumes can have their content pre-populated by a container.
  • You can manage volumes using Docker CLI commands or the Docker API.
  • All of these are advantages of volumes over bind mounts
  • Volumes can be more safely shared among multiple containers.
  • Volumes are easier to back up or migrate than bind mounts.

Answer : All of these are advantages of volumes over bind mounts

Docker Certified Associate (DCA) Practice Exams Set 9

Which flag should be specified for 'docker/dtr install' to configure DTR to have single sign-on (SSO) with UCP?


Options are :

  • --dtr-external-url
  • --url
  • --sso-url
  • --dtr-sso-url

Answer : --dtr-external-url

Which option allows you to override the default Docker directory (/var/lib/docker) on Linux?


Options are :

  • docker-path
  • install-root
  • data-root
  • docker-root

Answer : data-root

Which command should you run to show all the nodes in a swarm?


Options are :

  • docker swarm list
  • docker node ls
  • docker node list
  • docker swarm ls

Answer : docker node ls

Docker Certified Associate (DCA) Practice Exams Set 9

Restart policies only apply to containers, not swarm services.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Which command is used to remove a user-defined bridge network?


Options are :

  • docker network 'network name' rm
  • docker network rm 'network name'
  • docker-network rm 'network name'
  • docker delete network 'network name'

Answer : docker network rm 'network name'

To bypass the routing mesh, you must use the long --publish service and set mode to host


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 4

Which flag of 'docker service create' determines how many tasks are started for the service?


Options are :

  • --tasks
  • --numtasks
  • --numjobs
  • --replicas

Answer : --replicas

Which Docker Tool/Features is used to provision and manage multiple remote Docker hosts or Swarm Clusters?


Options are :

  • Docker swarm
  • Docker deploy
  • Docker Machine
  • Docker rollout

Answer : Docker Machine

Docker Certified Associate (DCA) Practice Exams Set 3

Which two commands can get an image from a registry? (select two)


Options are :

  • docker pull
  • docker get
  • docker download
  • docker run

Answer : docker pull docker run

Which ports have to be opened to allow traffic to, and from, docker hosts that will be part of an overlay network? (select three)


Options are :

  • TCP and UDP port 8999 for data transfer
  • TCP port 2377 for cluster management communications
  • TCP Port 1999 for heartbeats
  • UDP port 4789 for overlay network traffic
  • TCP and UDP port 7946 for communication among nodes

Answer : TCP port 2377 for cluster management communications UDP port 4789 for overlay network traffic TCP and UDP port 7946 for communication among nodes

Which storage driver uses block devices dedicated to Docker and operates at the block level, rather than the file level?


Options are :

  • BlockDeviceMap
  • OverlayFS
  • devicemapper
  • BlockDriver

Answer : devicemapper

Docker Certified Associate (DCA) Practice Exams Set 13

It is possible to take a backup while the manager is running (a “hot” backup), but this is not recommended and your results are less predictable when restoring.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

By default manager nodes also run services as worker nodes, but you can configure them to run manager tasks exclusively and be manager-only nodes.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

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


Options are :

  • docker swarm promote
  • docker node make manager
  • docker node promote
  • docker node upgrade

Answer : docker node promote

Docker Certified Associate (DCA) Practice Exams Set 5

If you manually stop a container, its restart policy is ignored until the Docker daemon restarts or the container is manually restarted


Options are :

  • TRUE
  • FALSE

Answer : TRUE

When running network in 'host' mode you can override the dns related settings of the host by using which options of 'docker run'? (select two)


Options are :

  • --dns-domain
  • --dns
  • --dns-search
  • --dns_server

Answer : --dns --dns-search

Which command is used to create an overlay network that can be used with swarm services or standalone containers to communicate with other standalone containers running on other Docker daemons?


Options are :

  • docker network create -d overlay --attachable 'network name'
  • docker-network create 'network name'
  • docker make attachable overlay network 'network name'
  • docker network 'network name' create -d overlay --attachable

Answer : docker network create -d overlay --attachable 'network name'

Docker Certified Associate (DCA) Practice Exams Set 3

Which file is used to configure the default logging driver?


Options are :

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

Answer : /etc/docker/daemon.json

Changing the storage driver makes any containers you have already created inaccessible on the local system.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

If you bind-mount into a non-empty directory on the container, the directory’s existing contents are obscured by the bind mount.


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 3

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions