Docker Certified Associate (DCA) Practice Exams Set 6

True or False?

Webhooks are GET requests used to request data from the URL defined in Docker Hub.


Options are :

  • True
  • False

Answer : False

Which of the following UCP services is used to collect Docker system information for troubleshooting?


Options are :

  • ucp-sysinfo
  • ucp-dockerinfo
  • ucp-dsdata
  • ucp-dsinfo

Answer : ucp-dsinfo

Docker and Containers: Commands Set 4

Which of the following ports is generally used for Kubernetes Networking in UCP?


Options are :

  • TCP 443
  • TCP 179
  • TCP 4789
  • TCP 6444

Answer : TCP 179

Which of the following commands is used to create a backup of a UCP manager node?


Options are :

  • docker container run \ --name ucp \ --volume /var/run/docker.sock:/var/run/docker.sock \ docker/ucp \ backup [command options] > backup.tar
  • docker container commit \ --name ucp \ --volume /var/run/docker.sock:/var/run/docker.sock \ docker/ucp \ backup [command options] > backup.tar
  • docker container create \ --name ucp \ --volume /var/run/docker.sock:/var/run/docker.sock \ docker/ucp \ backup [command options] > backup.tar
  • docker container backup \ --name ucp \ --volume /var/run/docker.sock:/var/run/docker.sock \ docker/ucp \ backup [command options] > backup.tar

Answer : docker container run \ --name ucp \ --volume /var/run/docker.sock:/var/run/docker.sock \ docker/ucp \ backup [command options] > backup.tar

Which of the following is the most suitable way to process the repository tag limits in DTR?


Options are :

  • Last Input First Output
  • First Input First Output
  • Single Input Single Output
  • Multiple Input Multiple Output

Answer : First Input First Output

Docker Certified Associate (DCA) Practice Tests Set 11

Which of the following in Docker content trust provides control over the image tag signing process?


Options are :

  • Root certificates
  • Delegations
  • Docker Daemon
  • Docker Client

Answer : Delegations

True or False?

Docker files scanned by antivirus software can hang the execution of Docker commands.


Options are :

  • True
  • False

Answer : True

Given below is a tiny Dockerfile based on the "scratch" image. If we build a docker image based on this Dockerfile, what will be the first filesystem layer of that docker image?


Options are :

  • scratch
  • baserc
  • ADD
  • CMD

Answer : ADD

Docker Certified Associate (DCA) Practice Exams Set 7

Which of the following commands is used to target a specific build stage out of multi-stage builds?


Options are :

  • docker build --target -t
  • docker build --source -t
  • docker build --build-stage -t
  • docker build --tag -t

Answer : docker build --target -t

Which of the following commands is used to disable container networking for a swarm service?


Options are :

  • docker run --rm -itd \ --network none \ --name alpine-net \ alpine:latest
  • docker service create \ --replicas 3 \ --network none \ --name alpine-net \ alpine:latest
  • docker swarm create \ --network none \ --name alpine-net \ alpine:latest
  • None of the above.

Answer : None of the above.

In which of the following modes can the macvlan network be created?


Options are :

  • local mode
  • bridge mode
  • host mode
  • 802.3q trunk bridge mode

Answer : bridge mode

Docker Certified Associate (DCA) Practice Exams Set 22

What kind of encryption method is used to encrypt swarm service management traffic?


Options are :

  • AES-SGCM
  • AES-CCM
  • AES-GCM
  • DES-CWC

Answer : AES-GCM

In which of the following networks does port mapping not take effect?


Options are :

  • macvlan
  • overlay
  • bridge
  • host

Answer : host

True or False?

The container is assigned a single IP address for every Docker network it connects to.


Options are :

  • True
  • False

Answer : False

Docker Certified Associate (DCA) Practice Tests Set 11

By default, How many IP addresses can be allocated to a single overlay network?


Options are :

  • 256
  • 512
  • 64
  • 128

Answer : 256

Which of the following docker daemon flags can be used as an equivalent of com.docker.network.bridge.host_binding_ipv4 option while creating a custom bridge network?


Options are :

  • --name
  • --ipv4
  • --ip
  • --network

Answer : --ip

Which of the following JSON encoding properties specifies the default format for the output of docker ps command?


Options are :

  • pstatesFormat
  • statsFormat
  • pslistFormat
  • psFormat

Answer : psFormat

Docker Certified Associate (DCA) Practice Tests Set 3

What is the default value of the delay between two reset occurrences of a container?


Options are :

  • 300 ms
  • 400 ms
  • 100 ms
  • 1000 ms

Answer : 100 ms

Which of the following isolation technologies is used in Docker Desktop for Windows?


Options are :

  • namespace
  • hypervisor
  • cgroups
  • users.

Answer : hypervisor

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


Options are :

  • The contents in DEST_PATH will be overwritten by the source file's content.
  • The contents of each file of SRC_PATH will be copied into separate files into the DEST_PATH.
  • DEST_PATH will be created as a directory and all the contents of the SRC_PATH will be copied into this directory.
  • An error will occur that it cannot copy a directory to a file.

Answer : An error will occur that it cannot copy a directory to a file.

Docker Certified Associate (DCA) Practice Exams Set 1

Which of the following filesystem changes (in a file or directory) are tracked with docker diff command?


Options are :

  • A file or directory was added.
  • A file or directory was renamed.
  • A file or directory was changed.
  • A file or directory was disabled.

Answer : A file or directory was added. A file or directory was changed.

Which of the following commands is used to display system-wide information of Docker?


Options are :

  • docker info
  • docker inspect
  • docker engine
  • docker --about

Answer : docker info

True or False?

Docker secrets are available for standalone containers as well as for swarm services.


Options are :

  • True
  • False

Answer : False

Docker Certified Associate (DCA) Practice Exams Set 7

Which of the following is used to store the non-sensitive information outside the service's image or running containers in Docker?


Options are :

  • docker stats
  • docker locker
  • docker secrets
  • docker config

Answer : docker config

Which of the following commands is used to create config from a file or STDIN?


Options are :

  • docker create --config
  • docker config create
  • docker config run
  • docker run --config

Answer : docker config create

Which of the following logging drivers are mandatory for docker log command to successfully function?


Options are :

  • splunk
  • journald
  • json-file
  • fluentd

Answer : journald json-file

Docker Certified Associate (DCA) Practice Exams Set 10

By default, how many layers of docker image does docker daemon pull from the docker registry at a time?


Options are :

  • 1
  • 2
  • 3
  • 4

Answer : 3

Which of the following image layer storage drivers is used for Windows Images?


Options are :

  • overlay2
  • aufs
  • windowsfilter
  • zfs

Answer : windowsfilter

A container named app-env-db is serving the application environment for your upcoming app and it is ready to be deployed. You need to commit the container and push the resulting docker image to the organization's registry—dbstore, serving on port 32033. Which of the following commands will help you to fulfil this task?

(Note: All the prerequisites to push the docker image to docker hub have already been fulfilled.)


Options are :

  • docker commit app-env-db test-env docker tag dbstore:32033/test-env:latest test-env docker push dbstore:32033/test-env:latest
  • docker commit app-env-db test-ENV docker tag test-ENV dbstore:32033/test-ENV:latest docker push dbstore:32033/test-ENV:latest
  • docker commit app-env-db test-env docker tag test-env dbstore:32033/test-env:latest docker push dbstore:32033/test-env:latest
  • docker commit app-env-db test-env docker tag test-env dbstore/test-env:latest docker push dbstore/img-env-db:latest

Answer : docker commit app-env-db test-env docker tag test-env dbstore:32033/test-env:latest docker push dbstore:32033/test-env:latest

Docker Certified Associate 2020 - Practice Exams - NEW Set 10

While updating a swarm service, which of the following flags is used to configure the maximum number of service tasks that a scheduler can update simultaneously?


Options are :

  • --update-order
  • --update-parallelism
  • --update-max
  • --update-max-failure-ratio

Answer : --update-parallelism

Which of the following flags can be passed to make docker daemon listen to a specific IP or port?


Options are :

  • -p
  • -H
  • -l
  • -D

Answer : -H

What is "live restore" in containers?


Options are :

  • A configuration to backup and restore the live containers' states in a named volume on the Docker host.
  • A configuration to keep containers alive while docker daemon is unavailable.
  • A configuration to backup and restore the swarm cluster's current state on the docker host.
  • A configuration to revive deleted containers on the Docker host.

Answer : A configuration to keep containers alive while docker daemon is unavailable.

Docker Certified Associate 2020 - Practice Exams - NEW Set 2

Which of the following is a pseudo-file containing the CPU usage accumulated by the processes of a container?


Options are :

  • cpuusage.stat
  • cpuacct.stat
  • cpushares.stat
  • cpus.stat

Answer : cpuacct.stat

Which of the following octal values represents the world-writable file mode for tmpfs storage?


Options are :

  • 700
  • 0770
  • 1777
  • 0077

Answer : 1777

Which of the following are the supported backing filesystems of overlay2 storage driver?


Options are :

  • ext4
  • xfs with ftype=1
  • zfs
  • direct-lvm

Answer : ext4 xfs with ftype=1

Docker Certified Associate (DCA) Practice Test Set 3

How many lower OverlayFS layers does overlay2 natively support?


Options are :

  • 8
  • 32
  • 64
  • 128

Answer : 128

Which operation does overlay/overlay2 storage driver perform to copy a file from lowerdir (image) to the upperdir (container)?


Options are :

  • copy_uplayer
  • copy_up
  • copy_upperdir
  • copy_dn

Answer : copy_up

True or False?

By default, Docker runs through a non-networked UNIX socket.


Options are :

  • True
  • False

Answer : True

Docker Certified Associate (DCA) Practice Exams Set 4

Which of the following commands is used to get the state of tasks in the swarm cluster?


Options are :

  • docker service ls
  • docker service ps
  • docker service stats
  • docker service describe

Answer : docker service ps

Which of the following commands is used to generate a new root CA certificate and root CA key for the swarm cluster?


Options are :

  • docker swarm ca
  • docker swarm ca --ca-generate
  • docker swarm ca --rotate
  • docker swarm ca --ca-generate --rotate

Answer : docker swarm ca --rotate

Which of the following options can compose a Kubernetes grant?


Options are :

  • role
  • subject
  • resource
  • namespace

Answer : role subject namespace

Docker Certified Associate (DCA) Practice Exams Set 15

Which of the following orchestrators are supported by Docker?


Options are :

  • Swarm
  • Kubernetes
  • Mixed
  • vSphere

Answer : Swarm Kubernetes Mixed

What will be the orchestrator type of a newly promoted worker node?


Options are :

  • Swarm
  • Kubernetes
  • Mixed
  • It does not change.

Answer : Mixed

Which of the following commands is used to schedule kubernetes workloads on a node?


Options are :

  • docker node update \ --label-add com.docker.ucp.orchestrator.kubernetes=true
  • docker node update \ --label-add com.docker.orchestrator.kubernetes=true
  • docker node update \ --label-add com.docker.orchestrator.ucp.kubernetes=true
  • docker node update \ --add-label com.docker.orchestrator.ucp.kubernetes=true

Answer : docker node update \ --label-add com.docker.ucp.orchestrator.kubernetes=true

Docker Certified Associate (DCA) Practice Tests Set 10

Which of the following commands is used to access audit logs of Universal Control Plane?


Options are :

  • docker logs ucp-agent
  • docker logs ucp
  • docker logs ucp --audit
  • docker logs ucp-controller

Answer : docker logs ucp-controller

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions