Docker Certified Associate (DCA) Practice Exams Set 15

You want to run a multi-container application with MySQL and WordPress containers running side-by-side. WordPress is dependent on MySQL database container. Which of the following mounts can be used to save the WordPress login credentials to MySQL database?


Options are :

  • volume
  • bind mount
  • tmpfs
  • all of the above

Answer : volume

Which of the following is NOT an argument of docker volume create command?


Options are :

  • --opt
  • --tag
  • --driver
  • --name

Answer : --tag

If you are using a Linux distribution to run Docker, which of the following storage drivers can NOT be used? 


Options are :

  • devicemapper
  • vfs
  • ext4
  • overlay2

Answer : ext4

Docker Certified Associate (DCA) Practice Exams Set 18

Which of the following provisions of Docker supports modifications on storage drivers?


Options are :

  • Docker for Linux Distributions
  • Docker Desktop for Mac
  • Docker Desktop for Windows
  • All of the above

Answer : Docker for Linux Distributions

Which of the following offerings are used to sign a Docker Image on DTR?


Options are :

  • QR code
  • trust metadata
  • image digest
  • CA certificate

Answer : trust metadata

Which of the following steps are essential to help UCP trust signed images in Docker?


Options are :

  • Delegate signing to the keys in UCP client bundle
  • Notary client configuration
  • Initialize trust metadata for the repository
  • All of the above.

Answer : All of the above.

Docker Certified Associate (DCA) Practice Exams Set 8

Which of the following tools allows users to implement RBAC? 


Options are :

  • Docker Hub
  • Docker Compose
  • Docker Universal Control Plane
  • Docker Swarm

Answer : Docker Universal Control Plane

True or False

Docker Secrets are available for standalone containers and swarm services.


Options are :

  • True
  • False

Answer : False

Which of the following is NOT a docker native network driver? 


Options are :

  • host
  • bridge
  • load balancer
  • macvlan

Answer : load balancer

Docker Certified Associate (DCA) Practice Exams Set 9

Which of the following networks removes the network isolation between container and docker host? 


Options are :

  • ingress
  • bridge
  • host
  • macvlan

Answer : host

You have a running busybox container in the development environment, which is connected to the default bridge network. The testing team connected the busybox container to a user-defined bridge network called "test-bridge". Now, how many endpoints will busybox container have?


Options are :

  • 1
  • 2
  • 3
  • 0

Answer : 2

Which of the following Linux technologies is responsible for the isolated nature of containers? 


Options are :

  • Isolated Networks
  • namespace
  • core isolation
  • cgroups

Answer : namespace

Docker Certified Associate (DCA) Practice Exams Set 8

Which of the following commands is used to connect the network to running container?


Options are :

  • docker connect
  • docker network join
  • docker network connect
  • None of the above

Answer : docker network connect

Which of the following editions are offered by Docker?


Options are :

  • Docker Console Edition & Docker Enterprise Edition
  • Docker Community Edition & Docker Extended Edition
  • Docker Community Edition & Docker Enterprise Edition
  • Docker Container Edition and Docker Enhanced Edition

Answer : Docker Community Edition & Docker Enterprise Edition

Which of the following is not an update channel type in Docker CE? 


Options are :

  • Stable
  • Scratch
  • Test
  • Nightly

Answer : Scratch

Docker Certified Associate (DCA) Practice Exams Set 9

Which of the following commands will you use to log a forced stack trace to troubleshoot an unresponsive docker daemon?


Options are :

  • $ sudo kill -SIGKILL $(pidof dockerd)
  • $ sudo kill -SIGTERM $(pidof dockerd)
  • $ sudo kill -SIGSTP $(pidof dockerd)
  • $ sudo kill -SIGUSR1 $(pidof dockerd)

Answer : $ sudo kill -SIGUSR1 $(pidof dockerd)

What is the default extension of Dockerfile ? 


Options are :

  • .txt
  • .dockerfile
  • .yaml
  • None of the above

Answer : None of the above

Which of the following instructions sets the base image for subsequent instructions in Dockerfile? 


Options are :

  • CMD
  • FROM
  • ARG
  • RUN

Answer : FROM

Docker Certified Associate (DCA) Practice Exams Set 27

True or False

FROM instruction can be used only ONCE in a single Dockerfile. 


Options are :

  • True
  • False

Answer : False

What is the functionality of RUN instruction in Dockerfile? 


Options are :

  • It runs the Dockerfile and creates a new Docker Image.
  • It executes the command on the writable layer of the container and commits the result.
  • It executes command in a new layer on top of the current image and commits the result.
  • None of the above,

Answer : It executes command in a new layer on top of the current image and commits the result.

Which of the following Dockerfile instructions is used to provide defaults for an executing container?


Options are :

  • CMD
  • ENTRYPOINT
  • ENV
  • FROM

Answer : CMD

Docker Certified Associate (DCA) Practice Exams Set 7

You want to create a Docker container which has Ubuntu as its base image. You have written 3 CMD instructions CMD-A, CMD-B, and CMD-C respectively in your Dockerfile and built Docker Image. Now, Which CMD instruction will be executed when the Ubuntu container starts running?


Options are :

  • CMD-A
  • CMD-B
  • CMD-C

Answer : CMD-C

Which of the following forms is the exec form of ENTRYPOINT Dockerfile instruction? 


Options are :

  • ENTRYPOINT [ “echo” : “$PATH” ]
  • ENTRYPOINT [ “echo”, $PATH ]
  • ENTRYPOINT [ “echo”, “$PATH” ]
  • ENTRYPOINT [ ‘echo’ : ‘$PATH’ ]

Answer : ENTRYPOINT [ “echo”, “$PATH” ]

How do ADD and COPY Dockerfile instructions differ from each other? 


Options are :

  • ADD only adds files to image file system, whereas COPY adds files as well as directories to image file-system.
  • ADD is used by single docker host whereas COPY is used by docker swarm clusters .
  • ADD supports local-tar extractions and remote URL downloads, whereas COPY supports only local file transfer.
  • All of the above.

Answer : ADD supports local-tar extractions and remote URL downloads, whereas COPY supports only local file transfer.

Docker Certified Associate (DCA) Practice Exams Set 2

What is the present working directory of the container based on the given Dockerfile?


Options are :

  • /hello-docker/messages
  • /tmp/hello-docker/messages
  • /messages
  • /home/tmp/hello-docker/messages

Answer : /tmp/hello-docker/messages

Which of the following commands is used to list out all the layers of a Docker Image? 


Options are :

  • docker images
  • docker list
  • docker history
  • docker inspect

Answer : docker history

Which of the following commands is used to backup Docker Images? 


Options are :

  • docker load
  • docker export
  • docker save
  • docker pull

Answer : docker save

Docker Certified Associate (DCA) Practice Exams Set 7

Which of the following commands is used to list out all the available docker images on the docker host? 


Options are :

  • docker image ls
  • docker list
  • docker image top
  • None of the above

Answer : docker image ls

Which of the following is the default storage driver in Docker CE? 


Options are :

  • overlay2
  • overlay
  • aufs
  • devicemapper

Answer : overlay2

How a running container can be interpreted on a Linux host? 


Options are :

  • an application
  • a program
  • a process
  • a file

Answer : a process

Docker Certified Associate (DCA) Practice Exams Set 4

What is the default container format of Docker containers? 


Options are :

  • libcontainer
  • Application Container Image (ACI)
  • LXD
  • None of the above

Answer : libcontainer

Which of the following commands is used to create a MySQL version 5.4 database container? 


Options are :

  • docker run --name database --image mysql:5.4
  • docker create --name database --image mysql:5.4
  • docker create --name database mysql:5.4
  • docker run --name database mysql:5.4

Answer : docker create --name database mysql:5.4

Which process’s output will be available on terminal as standard output as a result of docker attach command? 


Options are :

  • RUN
  • ENTRYPOINT/CMD
  • EXPOSE
  • FROM

Answer : ENTRYPOINT/CMD

Docker Certified Associate (DCA) Practice Exams Set 24

What will be the output of the following docker command? 

docker exec -it test-ubuntu "sudo apt-get update -y" 


Options are :

  • It will execute the update command in a running container.
  • It will overwrite the default CMD command with “sudo apt-get update” command in running container.
  • The command format is not supported.
  • None of the above.

Answer : The command format is not supported.

Which of the following commands is used to backup Docker containers? 


Options are :

  • docker save
  • docker export
  • docker tar -cvf
  • None of the above

Answer : docker export

Which of the following is NOT a node type in Docker Swarm? 


Options are :

  • manager
  • worker
  • master
  • None of the above

Answer : master

Docker Certified Associate (DCA) Practice Exams Set 24

Which of the following components of the swarm allocates IP addresses to all running tasks? 


Options are :

  • Dispatcher
  • Allocator
  • Orchestrator
  • Scheduler

Answer : Allocator

You have a five node swarm cluster deployed on your local system. What will happen if the only manage node of the cluster fails?


Options are :

  • swarm services will continue to run.
  • all member nodes will perform a re-election among them to elect a new manager
  • swarm cluster will stop all the processes until user configures a new manager of the cluster.
  • no action will be taken.

Answer : swarm services will continue to run.

You have a swarm cluster which consists of 27 active nodes. Out of which, 9 nodes are managers and one node is the leader. What will be the fault tolerance and quorum of this swarm cluster respectively? 


Options are :

  • 14, 13
  • 4, 5
  • 13, 14
  • 5, 4

Answer : 4, 5

Docker Certified Associate (DCA) Practice Exams Set 19

Docker security scan result is available in both UCP and DTR. True or false?


Options are :

  • FALSE
  • TRUE

Answer : FALSE

Docker Certified Associate (DCA) Practice Exams Set 5

What is the command that need to be executed to sign an image before pushing it to repository?


Options are :

  • export TRUST_DOCKER_CONTENT=1
  • export TRUST_DOCKER_IMAGE=1
  • export SIGN_DOCKER_IMAGE=1
  • export DOCKER_CONTENT_TRUST=1

Answer : export DOCKER_CONTENT_TRUST=1

What are the steps needed to sign images in a way that UCP trusts them? (select three)


Options are :

  • Delegate signing to the keys in your UCP client bundle
  • Approve image sign on UCP
  • Configure Notary client
  • Initialize trust metadata for the repository

Answer : Delegate signing to the keys in your UCP client bundle Configure Notary client Initialize trust metadata for the repository

What are the requirements to install Docker Trusted Registry (DTR)? (Select all that apply)


Options are :

  • All nodes must be a worker node managed by Universal Control Plan
  • Make sure the port 8080 and 8443 are open on the node
  • All nodes must have a fixed hostname
  • DTR can be installed on-premises or on a cloud provider

Answer : All nodes must be a worker node managed by Universal Control Plan All nodes must have a fixed hostname DTR can be installed on-premises or on a cloud provider

Docker Certified Associate (DCA) Practice Exams Set 2

Where do you create Docker Role Based Access Controls (RBAC)?


Options are :

  • Docker Trusted Registry
  • Docker Machine
  • Universal Control Plane
  • Docker Compose

Answer : Universal Control Plane

Which of the following tool to use to create users and teams?


Options are :

  • Docker Trusted Registry (DTR)
  • Docker Compose
  • Universal Control Plane (UCP)
  • Docker Machine

Answer : Universal Control Plane (UCP)

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions
  • Which of the following commands is used to backup Docker containers? 
    
    
    Options are :   <------------------- this should be answer
    
    docker save
    docker export
    docker tar -cvf
    None of the above
    Reply
    • Correct: docker export
      Reply