Docker Certified Associate (DCA) Practice Exams Set 18

Which of the following namespaces is disabled by default and must be enabled at Docker engine runtime in order to be used?


Options are :

  • user
  • net
  • mnt
  • pid

Answer : user

Publishing a service's port using the routing mesh makes the service accessible at the published port on every swarm node. True or false?


Options are :

  • FALSE
  • TRUE

Answer : TRUE

Which network driver type is best when the network stack should not be isolated from the Docker host, but you want other aspects of the container to be isolated?


Options are :

  • Overlay networks
  • Host networks
  • User-defined bridge networks
  • Macvlan networks

Answer : Host networks

Docker Certified Associate (DCA) Practice Exams Set 26

What is the difference between a replicated and a global service?


Options are :

  • Replicated service can only be deployed on manager node. Global service can be deployed on both manager and worker node.
  • Replicated service runs one task on every node. Global service runs multiple task on every node.
  • Number of identical tasks can be specified for a replicated service. There is no pre-specified number of tasks for global service.
  • Good candidates for replicated service are monitoring agents that you want.

Answer : Number of identical tasks can be specified for a replicated service. There is no pre-specified number of tasks for global service.

Which one of the following commands will show a list of volumes for a specific container?


Options are :

  • 'docker volume logs nginx --containers'
  • 'docker container inspect nginx'
  • 'docker volume inspect nginx'
  • 'docker container logs nginx --volumes'

Answer : 'docker container inspect nginx'

Which of the following commands will automatically create a volume when a container is started?


Options are :

  • 'docker container run --name nginxtest --volumes myvol:/app:new nginx'
  • 'docker container run --name nginxtest -v myvol:/app nginx'
  • 'docker container run --name nginxtest -v /app:mount nginx'
  • 'docker container run --name nginxtest --volumes=/app nginx'

Answer : 'docker container run --name nginxtest -v /app:mount nginx'

Docker Certified Associate (DCA) Practice Exams Set 2

Which command interactively monitors all container activity in the Docker engine?


Options are :

  • docker system events
  • docker system logs
  • docker container events
  • docker container logs

Answer : docker system events

You have deployed a service to swarm. Which command uses the Docker CLI to set the number of tasks of the services to 5? (Choose 2)


Options are :

  • 'docker replica update =5'
  • docker update service =5'
  • docker service update --replicas=5 '
  • 'docker service replicas =5'
  • docker service scale = 5''

Answer : docker service update --replicas=5 ' docker service scale = 5''

What docker image prune command does?


Options are :

  • Show the history of an image
  • Remove one or more images
  • Display detailed information on one or more images
  • Remove unused images

Answer : Remove unused images

Docker Certified Associate (DCA) Practice Exams Set 11

What is the docker command to see the storage driver Docker is currently using?


Options are :

  • docker status
  • docker info
  • docker config
  • docker inspect

Answer : docker info

Which network driver type is best when you need containers running on different Docker hosts to communicate, or when multiple applications work together using swarm services? A.  B.  C.  D.


Options are :

  • User-defined bridge networks
  • Overlay networks
  • Macvlan networks
  • Host networks

Answer : Overlay networks

What is the docker command to add or update a node label?


Options are :

  • docker node update --set-label
  • docker node update --label-add
  • docker node add --label
  • docker node modify --set-label

Answer : docker node update --label-add

Docker Certified Associate (DCA) Practice Exams Set 5

What is the docker command to setup a swarm?


Options are :

  • docker swarm create
  • docker swarm init
  • docker init swarm
  • docker create swarm

Answer : docker swarm init

Which of the followings are Docker Engine Security features? (Select all that apply)


Options are :

  • You can configure secure computing mode (Seccomp) policies to secure system calls in a container.
  • You can use certificate-based client-server authentication to verify a Docker daemon has the rights to access images on a registry.
  • You can configure Dockerís trust features so that your users can push and pull trusted images.
  • You can protect the Docker daemon socket and ensure only trusted Docker client connections.

Answer : You can configure secure computing mode (Seccomp) policies to secure system calls in a container. You can use certificate-based client-server authentication to verify a Docker daemon has the rights to access images on a registry. You can configure Dockerís trust features so that your users can push and pull trusted images. You can protect the Docker daemon socket and ensure only trusted Docker client connections.

Which of the following commands is used to display system-wide Docker configuration on a host


Options are :

  • docker system
  • docker inspect
  • docker info
  • docker status

Answer : docker info

Docker Certified Associate (DCA) Practice Exams Set 21

What is the docker command to roll back to the previous version of a service?


Options are :

  • docker service update --rollback-version
  • docker service --rollback-version
  • docker service update --rollback
  • docker service --rollback

Answer : docker service update --rollback

What type of network is ingress network?   


Options are :

  • overlay network
  • bridge network
  • macvlan network
  • host network

Answer : overlay network

What is the docker command to add or update a placement constraint?


Options are :

  • docker service update --constraint-add
  • docker service update --pref-add
  • docker service update --placement-pref-add
  • docker service update --placement-constraint-add

Answer : docker service update --constraint-add

Docker Certified Associate (DCA) Practice Exams Set 26

Which of the following is how to configure the Docker daemon to start on boot? (Select two)


Options are :

  • Use upstart for Ubuntu 14.10 and below
  • Use crond for Ubuntu 14.10 and below
  • Use systemd for most current Linux distributions (RHEL, CentOS, Fedora, Ubuntu 16.04 and higher)
  • Use startup for most current Linux distributions (RHEL, CentOS, Fedora, Ubuntu 16.04 and higher)

Answer : Use upstart for Ubuntu 14.10 and below Use systemd for most current Linux distributions (RHEL, CentOS, Fedora, Ubuntu 16.04 and higher)

Which of the following docker command can be used to find out all the ports mapped? (Select three)


Options are :

  • docker ps
  • docker inspect
  • docker network ls
  • docker port

Answer : docker ps docker inspect docker port

What does docker image rm command do?


Options are :

  • Show the history of an image
  • Remove one or more images
  • Display detailed information on one or more images
  • Remove unused images

Answer : Remove one or more images

Docker Certified Associate (DCA) Practice Exams Set 24

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 :

  • ONBUILD
  • VOLUME
  • RUN
  • WORKDIR

Answer : VOLUME

What is the docker command to display detailed information on one or more networks?


Options are :

  • docker network display
  • docker inspect network
  • docker network inspect
  • docker network status

Answer : docker network inspect

What is the docker command to add or update a mount on a service?


Options are :

  • docker service set --add-update-mount
  • docker service update --mount-add
  • docker service --add-update-mount
  • docker service --mount-volume

Answer : docker service update --mount-add

Docker Certified Associate (DCA) Practice Exams Set 7

Which of the following instruction can be used to inform Docker that containers listen on specific ports?


Options are :

  • EXPOSE
  • ENV
  • Both of the above

Answer : EXPOSE

Docker Certified Associate (DCA) Practice Exams Set 7

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 :

  • ONBUILD
  • RUN
  • WORKDIR
  • VOLUME

Answer : VOLUME

What is the endpoint that we can use to check the health of a single UCP manager node?


Options are :

  • https:///_health
  • https:///_status
  • https:///_ping
  • https:///_heartbeat

Answer : https:///_ping

Both RUN and CMD instruction can be used interchangeably in the Dockerfile as they do the similar thing.


Options are :

  • TRUE
  • FALSE

Answer : FALSE

Docker Certified Associate (DCA) Practice Exams Set 7

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


Options are :

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

Answer : export DOCKER_CONTENT_TRUST=1

It is OK to have more than one CMD instruction in the Docker file.


Options are :

  • TRUE
  • FALSE

Answer : FALSE

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


Options are :

  • Approve image sign on UCP Prakash, Chandra. Docker Certified Associate (DCA) Practice Tests 2019: 100% Pass Guarantee, Over 130 Unique Questions (Kindle Locations 22-25). Kindle Edition.
  • Delegate signing to the keys in your UCP client bundle
  • Initialize trust metadata for the repository
  • Configure Notary client

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

Docker Certified Associate (DCA) Practice Exams Set 27

Docker builds the image using the context which is _________.


Options are :

  • Dockerfile found in a specific path or URL
  • All the files found in a specific path or URL

Answer : All the files found in a specific path or URL

FROM keyword can only appear once at the start of the Dockerfile.


Options are :

  • FALSE
  • TRUE

Answer : FALSE

What is the docker command to create a container with custom DNS server(s)?


Options are :

  • docker container create --add-dns=IP_ADDRESS
  • docker container create --dns=IP_ADDRESS
  • docker container create --custom-dns=IP_ADDRESS
  • docker container create --set-dns=IP_ADDRESS

Answer : docker container create --dns=IP_ADDRESS

Docker Certified Associate (DCA) Practice Exams Set 6

A Dockerfile can start with any command.


Options are :

  • TRUE
  • FALSE

Answer : FALSE

Which of the following is NOT how to create an efficient image via a Dockerfile?


Options are :

  • Use multi-stage builds
  • Combine multiple applications into a single container
  • Start with an appropriate base image
  • Avoid installing unnecessary packages

Answer : Combine multiple applications into a single container

What is the docker command to find the current logging driver for a running container?


Options are :

  • docker info
  • docker inspect
  • docker status
  • docker config

Answer : docker inspect

Docker Certified Associate (DCA) Practice Exams Set 9

What is the command to set DNS server for all Docker containers?


Options are :

  • dockerd --dns IP_ADDRESS
  • dockerd --set-dns IP_ADDRESS
  • dockerd --dns-update IP_ADDRESS
  • dockerd --dns-server IP_ADDRESS

Answer : dockerd --dns IP_ADDRESS

What is the correct order to backup Docker EE components?


Options are :

  • Back up UCP, swarm, and then DTR
  • Back up swarm, DTR, and then UCP
  • Back up swarm, UCP, and then DTR
  • Back up DTR, UCP, and then swarm

Answer : Back up swarm, UCP, and then DTR

It is OK to have more than one RUN instruction in the Docker file.


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 3

Which of the following docker image commands display detailed information on one or more images?


Options are :

  • docker image inspect
  • docker image history
  • docker image detail
  • docker image ls

Answer : docker image inspect

What is the docker command to see container logs?


Options are :

  • docker logs
  • docker dump-logs
  • docker debug
  • docker fetch-logs

Answer : docker logs

Which of the following items need to be considered before installing Docker Enterprise?


Options are :

  • Network ports
  • Disk space
  • Docker Engine, DTR, and UCP version compatibility
  • Time Synchronization
  • All of the options

Answer : All of the options

Docker Certified Associate (DCA) Practice Exams Set 3

Which of the following option is used to specify a repository and a tag for saving the image after the build is done?


Options are :

  • -f
  • -m
  • -t
  • -p

Answer : -t

ARG variables are persisted into the built image as like the ENV variables.


Options are :

  • FALSE
  • TRUE

Answer : FALSE

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions
  • User
    Which of the following commands will automatically create a volume when a container is started?
    
    
    Options are :
    
    'docker container run --name nginxtest --volumes myvol:/app:new nginx'
    'docker container run --name nginxtest -v myvol:/app nginx' --> good answer
    'docker container run --name nginxtest -v /app:mount nginx'
    'docker container run --name nginxtest --volumes=/app nginx'
    
    https://docs.docker.com/storage/volumes/#start-a-container-with-a-volume
    Reply