Docker Certified Associate (DCA) Practice Tests Set 8

Which of the following docker command can you use to connect a running container to an existing user-defined bridge?


Options are :

  • docker network attach
  • docker network join
  • docker network connect (Correct)
  • docker connect network

Answer :docker network connect

Docker Certified Associate 2020 - Practice Exams - NEW Set 3

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


Options are :

  • docker network status
  • docker inspect network
  • docker network display
  • docker network inspect (Correct)

Answer :docker network inspect

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


Options are :

  • docker container create --set-dns=IP_ADDRESS
  • docker container create --dns=IP_ADDRESS (Correct)
  • docker container create --add-dns=IP_ADDRESS
  • docker container create --cusom-dns=IP_ADDRESS

Answer :docker container create --dns=IP_ADDRESS

Which of the following statement is false about Virtual IP (VIP)?


Options are :

  • There are multiple VIP for a service, one for each task. (Correct)
  • Traffic to the VIP is automatically sent to all healthy tasks of that service across the overlay network.
  • When resolving the service's name, a VIP is returned.
  • When services are created in a Docker swarm cluster, they are automatically assigned a VIP that is part of the service's network.

Answer :There are multiple VIP for a service, one for each task.

Docker Certified Associate 2020 - Practice Exams - NEW Set 11

When you publish a port of a service in swarm mode it is published on every node in the cluster by default? True or false


Options are :

  • FALSE
  • TRUE (Correct)

Answer :TRUE

Which of the following differences between user-defined bridge networks and the default bridge network is FALSE?


Options are :

  • User-defined bridges provide better isolation and interoperability between containerized applications.
  • Linked containers on the default bridge network share environment variables.
  • Containers can be attached and detached from the default bridge network on the fly. (Correct)
  • User-defined bridges provide automatic DNS resolution between containers.

Answer :Containers can be attached and detached from the default bridge network on the fly.

Which address pool is used by Docker Swarm by default?


Options are :

  • 192.168.0.0/16
  • 10.0.0.0/16
  • 10.0.0.0/8 (Correct)
  • 172.16.0.0/12

Answer :10.0.0.0/8

Docker Certified Associate (DCA) Practice Tests Set 10

Which option is true about using the -P flag when creating a new container?


Options are :

  • Docker binds each exposed container port with the same port on the host.
  • Docker gives extended privileges to the container.
  • Docker binds each exposed container port to a random port on all the host's interface. (Correct)
  • Docker binds each exposed container port to a random port on a specified host interface.

Answer :Docker binds each exposed container port to a random port on all the host's interface.

When running network in 'host' mode, what option of ‘docker run’ can you use to override the hostname of the container?


Options are :

  • --hostname (Correct)
  • -n
  • --name
  • -host

Answer :--hostname

Which of the following provides supports for host networking?


Options are :

  • Docker Desktop for Windows
  • Docker EE for Windows Server
  • Docker Desktop for Mac
  • Docker for Linux Distributions (Correct)

Answer :Docker for Linux Distributions

Docker Certified Associate (DCA) Practice Exams Set 7

Which of the following components is used to track IP addresses and to provide default subnets or IP addresses for the networks and endpoints?


Options are :

  • MACVLAN
  • libnetwork
  • IPAM drivers (Correct)
  • Network Sandbox

Answer :IPAM drivers

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


Options are :

  • host (Correct)
  • bridge
  • macvlan
  • overlay

Answer :host

Ingress network is a type of _____ network?


Options are :

  • overlay network (Correct)
  • bridge network
  • macvlan network
  • host network

Answer :overlay network

Docker Certified Associate (DCA) Practice Exams Set 8

You have created a Docker bridge network on a host with three containers attached. How can you make these containers accessible outside of the host?


Options are :

  • Use --link
  • Use network connect
  • Use EXPOSE together with --publish-all (Correct)
  • Use network attach

Answer :Use EXPOSE together with --publish-all

Which type of network driver 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 :

  • Macvlan networks
  • Overlay networks
  • Host networks (Correct)
  • User-defined bridge networks

Answer :Host networks

Which type of network driver is best when you need multiple containers to communicate on the same Docker host?


Options are :

  • Host networks
  • Overlay networks
  • User-defined bridge networks (Correct)
  • Macvlan networks

Answer :User-defined bridge networks

Docker Certified Associate (DCA) Practice Exams Set 26

Which type of network driver is best when you are migrating from a VM setup or need your containers to look like physical hosts on your network, each with a unique MAC address?


Options are :

  • User-defined bridge networks
  • Macvlan networks (Correct)
  • Host networks
  • Overlay networks

Answer :Macvlan networks

Which option for exposing a service is best if your service is normally accessed via HTTP/HTTPS?


Options are :

  • ClusterIP
  • LoadBalancer
  • Ingress (Correct)
  • NodePort

Answer :Ingress

In Docker swarm, traffic can be routed to services based on hostname. True or false?


Options are :

  • TRUE (Correct)
  • FALSE

Answer :TRUE

Docker Certified Associate (DCA) Practice Exams Set 12

Which of the following network drivers uses VXLAN data plane to decouple docker network from the underlay physical network?


Options are :

  • bridge
  • macvlan
  • host
  • overlay (Correct)

Answer :overlay

Which of the following is incorrect about overlay networks?


Options are :

  • Docker transparently handles routing of each packet to and from the correct Docker daemon host and the correct destination container.
  • Service management traffic is encrypted by default, but application data traffic can be encrypted as well
  • Overlay networks are only created on the manager nodes. (Correct)
  • Overlay networks use VXLAN data plane to decouples the container network from the underlying physical network (the underlay).

Answer :Overlay networks are only created on the manager nodes.

Which docker run option can you use to publish a port so that an application is accessible externally?


Options are :

  • docker run --publish-port
  • docker run --expose
  • docker run --publish (Correct)
  • docker run --open-port

Answer :docker run --publish

Docker Certified Associate (DCA) Practice Test Set 3

Which docker network is used to connect the individual Docker daemon to the other daemons participating in the swarm?


Options are :

  • docker_gwbridge (Correct)
  • bridge
  • overlay
  • ingress

Answer :docker_gwbridge

In which of the following modes can you create Macvlan networks? (select two)


Options are :

  • 802.1q trunk bridge mode (Correct)
  • Bridge mode (Correct)
  • Promiscuous mode
  • Direct mode

Answer :802.1q trunk bridge mode Bridge mode

By default, in which mode are services running when using the routing mesh?


Options are :

  • Swarm mode
  • DNSRR mode
  • Global mode
  • Virtual IP mode (Correct)

Answer :Virtual IP mode

Docker Certified Associate (DCA) Practice Exams Set 13

Which of the following networks is used as the default network for Kubernetes by Universal Control Plane?


Options are :

  • Calico (Correct)
  • Weave net
  • Flannel
  • Romana

Answer :Calico

Which of the following statements is false?


Options are :

  • Linked containers on the user-defined networks can share environment variables (Correct)
  • Containers can be attached and detached from user-defined networks on the fly
  • Each user-defined network creates a configurable bridge
  • User-defined bridges provide better isolation and interoperability between containerized applications

Answer :Linked containers on the user-defined networks can share environment variables

Which of the following commands can you use to create a bridge network?


Options are :

  • docker network add
  • docker create network
  • docker network deploy
  • docker network create (Correct)

Answer :docker network create

Docker Certified Associate (DCA) Practice Exams Set 25

Which is the default method of exposing a service internally in Docker Kubernetes Service?


Options are :

  • LoadBalancer
  • ClusterIP (Correct)
  • NodePort
  • Ingress

Answer :ClusterIP

You want to run an nginx web-server container as a background process. Which of the following is the correct command to make sure that the port 80 of the container is mapped to port 8080 on localhost machine?


Options are :

  • docker run -itd --name web-server -P nginx:latest
  • docker run --name web-server -p 8080:80 nginx:latest
  • docker run -itd --name web-server -p 8080:80 nginx:latest (Correct)
  • docker run -itd --name web-server -p 80:8080 nginx:latest

Answer :docker run -itd --name web-server -p 8080:80 nginx:latest

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions