Docker Certified Associate (DCA) Practice Exams Set 4

Which of the following is NOT true about docker volumes?


Options are :

  • Volumes work on both Linux and Windows containers.
  • You can manage volumes using Docker CLI commands but not with Docker API.
  • New volumes can have their content pre-populated by a container.
  • Volumes are easier to back up or migrate than bind mounts.

Answer : You can manage volumes using Docker CLI commands but not with Docker API.

Which is the minimum recommended version for a docker-compose.yml file?



Options are :

  • 2
  • 3.1
  • 1

Answer : 2

Which of the Dockerfile options executes any commands in a new layer on top of the current image and commit the results?


Options are :

  • RUN
  • FROM
  • CMD
  • ONBUILD

Answer : RUN

Docker Certified Associate (DCA) Practice Exams Set 21

Which of the following is NOT backed up when performing a Docker Trusted backup operation?


Options are :

  • image blobs
  • repository metadata
  • DTR configurations
  • access control to repos and images

Answer : image blobs

For taking backup of taking UCP running with 5 masters - backup of how many masters need to be performed so that we can recover with minimal data loss during a disaster.


Options are :

  • 1
  • 5
  • 2
  • 3

Answer : 1

Which of the following is NOT true about docker stack?



Options are :

  • docker-compose.yaml file can be used by docker stack
  • docker stack is more suited for production environments
  • docker stack can be used to manage multiple services
  • docker stack can run without docker swarm

Answer : docker stack can run without docker swarm

Docker Certified Associate (DCA) Practice Exams Set 6

What is the 'build context' in a compose file supposed to do?



Options are :

  • The image in reference has to exist in a Docker Hub repo before being run.
  • docker-compose should build an image from the contect of the most recent image built in a previous compose file.
  • It is mean to specify where Dockerfile of the image is supposed to build from.
  • The build has occur before the run command.

Answer : It is mean to specify where Dockerfile of the image is supposed to build from.

How to initially begin a Swarm, activating Swarm Mode on a single node?



Options are :

  • docker swarm init
  • docker swarm join
  • docker swarm run
  • docker swarm start

Answer : docker swarm init

What is the default format of docker inspect output?



Options are :

  • yaml
  • html
  • xml
  • json

Answer : json

Docker Certified Associate (DCA) Practice Exams Set 8

Which of the following is NOT true about tmpfs_mounts?


Options are :

  • tmpfs mounts are available for both windows and linux.
  • As opposed to volumes and bind mounts, a tmpfs mount is temporary, and only persisted in the host memory.
  • When the container stops, the tmpfs mount is removed, and files written there won’t be persisted.
  • tmpfs mount increase the container’s performance by avoiding writing into the container’s writable layer.

Answer : tmpfs mounts are available for both windows and linux.

What Dockerfile option EXPOSE does?



Options are :

  • Expose defaults for an executing container
  • Informs Docker that the container listens on the specified network ports at runtime
  • Adds metadata to an image
  • Label a container that will run as an executable

Answer : Informs Docker that the container listens on the specified network ports at runtime

Docker security scan in DTR  can be started by all users including those with read-only access?




Options are :

  • False
  • True

Answer : False

Docker Certified Associate (DCA) Practice Exams Set 8

Which of the following commands can be used to check Entrypoint and CMD of a given docker image?


Options are :

  • docker image inspect
  • docker info image
  • docker image ls
  • docker image info

Answer : docker image inspect

Which of the following version of "docker-compose.yml" files can you use with "docker stack" command?


Options are :

  • version 3 and above
  • version 2 and above
  • Any version B
  • version 1 and above

Answer : version 3 and above

Which of the following statement below is NOT TRUE about docker-compose?


Options are :

  • docker-compose will bring up services as specified in docker-compose.yml
  • docker-compose is well suited for development environments .
  • docker-compose can be used with docker swarm to run services across different workers.
  • docker-compose can not be used to create new container images.

Answer : docker-compose can be used with docker swarm to run services across different workers.

Docker Certified Associate (DCA) Practice Exams Set 6

Once a node joins a swarm as a worker, it would have to leave the swarm and re-join to become a manager.


Options are :

  • False
  • True

Answer : False

Which of the following statements is NOT TRUE about replicated service in docker?


Options are :

  • A service running in a replicated mode may not run in all nodes.
  • If you don’t specify a mode, the service defaults to replicated
  • For replicated services you can specify number of replica tasks
  • For replicated services, the scheduler places one task on each available node that meets the service’s placement constraints and resource requirements.

Answer : For replicated services, the scheduler places one task on each available node that meets the service’s placement constraints and resource requirements.

What is the recommended way to configure the daemon flags and environment variables for your Docker daemon in a platform independent way?



Options are :

  • set the configuration DOCKER_OPTS in '/etc/default/docker'
  • Using 'docker config' to set the configuration options
  • set the configuration options in '/etc/docker/daemon.json'
  • Set the configuration options using the ENV variable.

Answer : set the configuration options in '/etc/docker/daemon.json'

Docker Certified Associate (DCA) Practice Exams Set 9

A global service is a service that runs ____ task/tasks on every node that meet the placement and resource constraints?


Options are :

  • many
  • none
  • one
  • more than one

Answer : one

Which flag for a service would allow a container to consume more than 2 GB of memory only when there is no memory contention but would also prevent a container from consuming more than 4GB of memory, in any case?


Options are :

  • --limit-momory 4 GB --reserve-memory 2GB
  • --limit-momory 2 GB --reserve-memory 4 GB
  • --momory-swap 4GB --limit-memory 2GB
  • --momory-swap 2GB --limit-memory 4GB

Answer : --limit-momory 4 GB --reserve-memory 2GB

To scale up a service to multiple containers, which of the following commands would you use?


Options are :

  • docker service update --add-replicas #
  • docker service update --replicas #
  • This cannot be done in single command
  • docker service update --scale #

Answer : docker service update --replicas #

Docker Certified Associate (DCA) Practice Exams Set 4

After creating a new service named 'http', you notice that the new service is not registering as healthy. How do you view the list of historical tasks for that service by using the command line?


Options are :

  • docker ps http
  • docker service inspect http
  • docker inspect http
  • docker service pd http

Answer : docker service inspect http

What is used by the kernel to Isolate resources when running Docker containers?



Options are :

  • Overlay Networks
  • Cgroups (also known as Control groups)
  • Namespaces
  • Volumes

Answer : Namespaces

What is the image storage solution that is part of Docker Enterprise Edition called?


Options are :

  • Universal Control Plane
  • Docker Hub
  • Docker Registry
  • Docker Trusted Registry

Answer : Docker Trusted Registry

Docker Certified Associate (DCA) Practice Exams Set 5

What is the difference between “docker swarm” and “docker swarm mode” ?


Options are :

  • In docker swarm mode you cannot scale services whereas in docker swarm you can.
  • They are the same
  • Docker swarm is a tool outside docker engine which is used to connect multiple docker hosts and manage them as a cluster where as docker swarm mode is built inside docker engine which and does the same thing.
  • They are the same and In docker swarm mode you cannot scale services whereas in docker swarm you can.

Answer : Docker swarm is a tool outside docker engine which is used to connect multiple docker hosts and manage them as a cluster where as docker swarm mode is built inside docker engine which and does the same thing.

Which of the following is the correct command to store an image to a registry?



Options are :

  • docker upload [options] NAME[:TAG]
  • docker commit [options] NAME[:TAG]
  • docker push [options] NAME[:TAG]
  • docker store [options] NAME[:TAG]

Answer : docker push [options] NAME[:TAG]

Which of the following lvm mode should a production host using the devicemapper as a storage driver use?


Options are :

  • direct-lvm
  • zfs
  • loop-lvm
  • overlay

Answer : direct-lvm

Docker Certified Associate (DCA) Practice Exams Set 5

Danny did a fresh installation of docker on his new linux server. He hasn’t tinkered with anything and has just installed docker packages from official repository. He runs a new container with command “docker run -d nginx” , which logging driver will this container use?


Options are :

  • logentries
  • syslog
  • json-file
  • journald

Answer : json-file

Which of the following Dockerfile options creates a mount point with the specified name and marks it as holding externally mounted volumes from native host or other containers?



Options are :

  • VOLUME
  • RUN
  • ONBUILD
  • WORKDIR

Answer : VOLUME

A container named "analytics" that stores results in a volume called "data" was created. docker run -d --name=analytics -v data:/data app1 How are the results accessed in "data" with another container called "app2"?


Options are :

  • docker run -d --name=reports --volumes-from=analytics app2
  • docker run -d --name=reports --mount=app1 app2
  • docker run -d --name=reports --volume=app1 app2
  • docker run -d --name=reports --volume=data app2

Answer : docker run -d --name=reports --volumes-from=analytics app2

Docker Certified Associate (DCA) Practice Exams Set 9

Which of the following platforms supports IPv6 networking in Docker?


Options are :

  • Docker Desktop for Mac
  • Linux
  • Docker Desktop for Windows
  • Docker for iOS

Answer : Linux

Docker Certified Associate (DCA) Practice Exams Set 21

True or False?

Containers connected to a default bridge network do not forward their network traffic to the outside world.


Options are :

  • True
  • False

Answer : True

Which of the following containers manages the DTR authentication?


Options are :

  • dtr-auth-
  • dtr-sign-
  • dtr-garant-
  • dtr-allow-

Answer : dtr-garant-

How many sub-networks can be created on the default bridge network?


Options are :

  • 2
  • 4
  • 1
  • 3

Answer : 1

Docker Certified Associate (DCA) Practice Exams Set 9

Which of the following ways is not used for container identification?


Options are :

  • Container name
  • UUID long identifier
  • UUID short identifier
  • Uniform Resource Identifier

Answer : Uniform Resource Identifier

The output of the following docker run command returned non-zero exit code. What could be the possible reason?

$ docker run --foo alpine echo $?


Options are :

  • The container is Out-of-memory.
  • The container’s process has been terminated by CTRL+C.
  • The default command of the container could not be invoked.
  • There is an error with docker daemon.

Answer : There is an error with docker daemon.

After pressing the key sequence CTRL+C, which of the following signals is sent to stop a running container?


Options are :

  • SIGTERM
  • SIGINT
  • SIGKILL
  • COPY

Answer : SIGKILL

Docker Certified Associate (DCA) Practice Exams Set 7

What will be the outcome of a docker cp command if the SRC_PATH is a file and the DEST_PATH is a directory?


Options are :

  • It will create a new file into DEST_PATH and copy the content of source file in it.
  • The DEST_PATH will be overwritten with the contents of the source file.
  • The source file will be copied into DEST_PATH and will be saved as the basename from SRC_PATH.
  • An error will pop up to indicate that source and destination types need to be the same.

Answer : The source file will be copied into DEST_PATH and will be saved as the basename from SRC_PATH.

True or False?

docker exec command only runs if the container’s primary process is running.


Options are :

  • True
  • False

Answer : True

Which of the following commands is used to display the total disk space used by docker daemon?


Options are :

  • docker stats
  • dockerd info
  • docker disk use
  • docker system df

Answer : docker system df

Docker Certified Associate (DCA) Practice Exams Set 9

Which of the following is the default mount point for a decrypted secret in a Linux container?


Options are :

  • /run/secrets/
  • /var/lib/docker/secrets/
  • /run/internal/secrets/
  • /var/lib/docker/internal/secrets/

Answer : /run/secrets/

Which of the following commands is used to login into Docker registry?


Options are :

  • docker hub login
  • docker login
  • docker registry login
  • docker client login

Answer : docker login

True or False?

Docker configs are encrypted and stored inside the container’s RAM.


Options are :

  • True
  • False

Answer : False

Docker Certified Associate (DCA) Practice Exams Set 15

Which of the following sockets are used by docker daemon to listen to Docker Engine API requests?


Options are :

  • tcp
  • fd
  • unix
  • http

Answer : tcp fd unix

By default, how many layers of a docker image does docker daemon push to the Docker registry at a time?


Options are :

  • 3
  • 4
  • 1
  • 5

Answer : 5

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions