Docker Certified Associate (DCA) Practice Exams Set 14

Which of the following units of the swarm passes a task to its corresponding node using HTTP request/response? 


Options are :

  • Dispatcher
  • Orchestrator
  • Allocator
  • Scheduler

Answer : Orchestrator

In order to configure Docker daemon to start as the system boots up, which of the following commands is correct for most Linux distributions?


Options are :

  • sudo systemctl start docker
  • sudo systemctl enable docker
  • sudo systemctl up docker
  • sudo systemctl default docker

Answer : sudo systemctl enable docker

Docker Certified Associate (DCA) Practice Exams Set 14

Where does the docker daemon persist all docker related data on host machine?


Options are :

  • /var/lib/docker
  • /var/lib/docker-ce
  • none
  • /etc/docker

Answer : /var/lib/docker

You want to search for a BusyBox official Docker Image with minimum rating of 30 stars. Which of the following commands will provide you the correct results?


Options are :

  • docker search --filter “is-official=true” --filter “stars=30” busybox
  • docker search --filter “is-official” --filer “stars=30” busybox
  • docker search --filter “is-official=True” --filter “stars=30” busybox
  • docker search --filter “is-official=true, stars=30” busybox

Answer : docker search --filter “is-official=true” --filter “stars=30” busybox

Which of the following use cases is more suitable for ingress? 


Options are :

  • a few dozen nginx replicas hosted on a swarm cluster with custom load balancing.
  • static landing page on single container nginx web-server.
  • a few nginx web-server container replicas on a single host.
  • Super Mario flash game on Windows XP machine locally.

Answer : a few dozen nginx replicas hosted on a swarm cluster with custom load balancing.

Docker and Containers: Commands Set 4

Which of the following flags is not supported by docker service create command? 


Options are :

  • -p
  • -l
  • -v
  • -t

Answer : -v

How does UCP provide authorized client certificate? 


Options are :

  • As a Client Bundle (zip file)
  • None of the above
  • As pop-up dialog box (zip file download link)
  • As a QR code

Answer : As a Client Bundle (zip file)

Which of the following commands is used by nodes to join the swarm cluster as worker node? 


Options are :

  • docker swarm join --token
  • docker swarm --join --token
  • docker swarm join worker
  • None of the above

Answer : docker swarm join --token

Docker Certified Associate (DCA) Practice Exams Set 27

Which of the following is NOT Docker Certified Infrastructure?


Options are :

  • DigitalOcean
  • Microsoft Azure
  • VMware
  • Amazon Web Services

Answer : DigitalOcean

Which of the following statements are true for Docker Image? 


Options are :

  • All the layers of docker image are read-only.
  • All the layers of a Docker Image are delta of the previous layer.
  • Docker Image layers are downloaded as a tar file and stored at /var/lib/docker/aufs/
  • Docker Images are created using Docker Compose.

Answer : All the layers of docker image are read-only. All the layers of a Docker Image are delta of the previous layer.

Which of the following commands is used to start a docker daemon manually? 


Options are :

  • sudo docker daemon start
  • docker start --daemon
  • dockerd
  • docker daemon start

Answer : dockerd

Docker Certified Associate (DCA) Practice Exams Set 27

Which of the following network drivers connects the container' s network stack directly to Docker Host?


Options are :

  • overlay
  • macvlan
  • bridge
  • host

Answer : host

What is the default network for swarm services?


Options are :

  • bridge
  • ingress
  • host
  • none

Answer : ingress

Which of the following is the application of Universal Control Plane ? 


Options are :

  • To configure docker on a Linux host
  • To provide an integrated application management platform
  • To create a docker swarm cluster
  • To control all the running container processes

Answer : To provide an integrated application management platform

Docker Certified Associate (DCA) Practice Exams Set 22

Which of the following commands is used to pretty-print the containers’ IDs, names and statuses in tabular form? 


Options are :

  • docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}"
  • docker ps --format table “{{.ID}}\t{{.Names}}\t{{.Status}}”
  • docker ps -format "table {{.ID}}\t{{.Names}}\t{{.Status}}"
  • docker ps --format "{{.ID}}\t{{.Names}}\t{{.Status}}"

Answer : docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}"

Which of the following Dockerfile instructions informs Docker about the port on which container is listening? 


Options are :

  • EXPOSE
  • PORT
  • LABEL
  • ENV

Answer : EXPOSE

What is the scope of the overlay network driver in Docker? 


Options are :

  • global
  • swarm
  • service
  • local

Answer : swarm

Docker Certified Associate (DCA) Practice Exams Set 3

Which of the following commands is used by worker nodes to leave swarm cluster gracefully? 


Options are :

  • None of the above
  • docker swarm leave
  • docker swarm exit
  • docker node rm worker

Answer : docker swarm leave

Which of the following file-systems is NOT supported by docker to serve as its backend of storage drivers? 


Options are :

  • overlay2
  • brtfs
  • zfs
  • ext4

Answer : overlay2

Which of the following are the supported orchestrators in Docker EE?


Options are :

  • Swarmkit
  • Docker Swarm
  • Kubernetes
  • All of the above

Answer : All of the above

Docker Certified Associate (DCA) Practice Exams Set 23

Which of the following vulnerabilities requires you to change the docker image layer entirely? 


Options are :

  • Command under CMD layer creates permission conflicts.
  • Components of base image have critical vulnerabilities.
  • All of the above
  • File under ADD layer has bad Hex objects.

Answer : Components of base image have critical vulnerabilities.

Which of the following commands is used to list out tasks of one or more services in swarm? 


Options are :

  • docker services
  • docker service ls
  • docker service ps
  • docker ps

Answer : docker service ps

Which of the following Dockerfile instructions is used to add metadata to the docker image? 


Options are :

  • METADATA
  • ARG
  • LABEL
  • ADD

Answer : LABEL

Docker Certified Associate (DCA) Practice Exams Set 19

Which of the following are the supported team permission levels in Docker Trusted Registry?


Options are :

  • Manager
  • Read & Write
  • none of the above
  • Read only

Answer : Read & Write Read only

Which of the following orders is recommended to backup the components of Docker EE?


Options are :

  • DTR > docker swarm >UCP
  • UCP > DTR > docker swarm
  • docker swarm > UCP > DTR
  • docker swarm > DTR > UCP

Answer : docker swarm > UCP > DTR

True or False

Task is a unidirectional mechanism. 


Options are :

  • True
  • False

Answer : True

Docker Certified Associate (DCA) Practice Exams Set 6

 What is a Dockerfile? 


Options are :

  • Executable file to install docker
  • Readme file for docker
  • None of the above
  • sequential set of instructions to build a docker image.

Answer : sequential set of instructions to build a docker image.

You want to initialise scan of your repository for vulnerabilities. But you are unable to do so. What could be the reason? 


Options are :

  • Security Scanning in not enabled in DTR.
  • All of the above.
  • You are using Docker Community Edition.
  • You do not have the authority to download the security scanning licence for DTR.

Answer : All of the above.

Which of the following commands returns a detailed information on Docker objects for a Docker Image? 


Options are :

  • docker image inspect
  • docker image history
  • docker image info
  • docker image stats

Answer : docker image inspect

Docker Certified Associate (DCA) Practice Exams Set 25

You have been assigned a task to host your organization's event blog using WordPress and MySQL database on a 25 active nodes swarm cluster. Make sure that one task of MySQL database service is deployed on each active node in swarm cluster. Which of the following commands will achieve your purpose? 


Options are :

  • docker service create --name mySQL --global mysql docker service create --name wordpress --replicas=25 wordpress
  • docker service create --name mySQL --mode global mysql docker service create --name wordpress --replicas=25 wordpress
  • docker service create --name mySQL --config global mysql docker service create --name wordpress --replicas=25 wordpress
  • None of the above

Answer : docker service create --name mySQL --mode global mysql docker service create --name wordpress --replicas=25 wordpress

Docker Certified Associate (DCA) Practice Exams Set 2

Which of the following mechanisms tries to place services evenly on appropriate nodes in a swarm cluster?


Options are :

  • Placement Constraint
  • Placement Preference
  • Replicated Mode
  • Routing Mesh

Answer : Placement Preference

Which of the following mechanisms is used to configure services to run only on nodes with specific metadata set?


Options are :

  • Placement Preference
  • Placement Constraints
  • Routing Mesh
  • None of the above.

Answer : Placement Constraints

Which of the following ports on Docker Host is used to allow overlay network traffic in swarm mode?


Options are :

  • TCP port 443
  • UDP port 7946
  • TCP port 2377
  • UDP port 4789

Answer : UDP port 4789

Docker Certified Associate (DCA) Practice Exams Set 9

Which of the following statements about services is NOT correct? 


Options are :

  • A single service runs only one docker image.
  • HTTP server is an example of service.
  • Services are different blocks of a centralized computing application.
  • None of the above.

Answer : Services are different blocks of a centralized computing application.

Which of the following flags is used to publish container’s port(s) on an existing service in swarm?


Options are :

  • --publish
  • --publish-add
  • --publish-all
  • None of the above.

Answer : --publish-add

What is the limitation of docker service scale command in swarm mode? 


Options are :

  • It can only scale UP the service.
  • It can only be applied on replicated services.
  • It can only scale one service at a time.
  • All of the above

Answer : It can only be applied on replicated services.

Docker Certified Associate (DCA) Practice Exams Set 3

Which of the following commands is used to revoke cluster management and orchestrating privileges from manager node? 


Options are :

  • docker node down
  • docker node rm
  • docker node demote
  • None of the above

Answer : docker node demote

Which of the following commands is used to provide cluster management and orchestrating privileges to worker node?


Options are :

  • docker node up
  • docker node promote
  • docker node demote
  • None of the above

Answer : docker node promote

You have a 35 nodes swarm cluster. Out of which, 11 nodes are manager nodes. In order to avoid failure of set of machines or to perform periodic maintenance tasks, Which one of the following is the optimal distribution of manager nodes?


Options are :

  • 6-4-1
  • 5-5-1
  • 5-2-4
  • 4-4-3

Answer : 4-4-3

Docker Certified Associate (DCA) Practice Exams Set 2

Which of the following paths on docker Host is used by manager nodes to store swarm state and manager logs?


Options are :

  • /var/log/docker/swarm
  • /var/lib/docker/swarm
  • /etc/docker/swarm
  • None of the above

Answer : /var/lib/docker/swarm

Which of the following tools is used to provision and manage Docker Engine on one or more virtual hosts?


Options are :

  • docker toolbox
  • docker client
  • docker-machine
  • None of the above

Answer : docker-machine

Which of the following is the functionality of a storage driver?


Options are :

  • To back-up docker image layers' data on Docker Daemon.
  • To write docker image layers' data on Docker Host
  • To manage the contents of image layers and writable container layers.
  • All of the above.

Answer : To manage the contents of image layers and writable container layers.

Docker Certified Associate (DCA) Practice Exams Set 6

True or False

Choice of storage mount options can affect the representation of data in the container.


Options are :

  • True
  • False

Answer : False

Which of the following is the scope of uniqueness for auto-generated anonymous volume name? 


Options are :

  • docker hub
  • docker host
  • docker swarm cluster
  • none of the above

Answer : docker host

Which of the following mounts can grant read/write permissions on host file system to a process running inside a container?


Options are :

  • volume
  • bind mount
  • tmpfs
  • docker-cloud remote storage driver

Answer : bind mount

Docker Certified Associate (DCA) Practice Exams Set 23

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions
  • Which of the following units of the swarm passes a task to its corresponding node using HTTP request/response? 
    
    
    Options are :
    
    Dispatcher  ---> correct answer
    Orchestrator
    Allocator
    Scheduler
    Reply
  • In order to configure Docker daemon to start as the system boots up, which of the following commands is correct for most Linux distributions?
    
    
    Options are :
    
    sudo systemctl start docker <------------------ this should be correct answer
    sudo systemctl enable docker
    sudo systemctl up docker
    sudo systemctl default docker
    Answer : sudo systemctl enable docker
    Reply