- What concept in the Docker Container Network Model (CNM) refers to an isolated unit containing all networking components associated with a single container?
(A) Network driver (B) Network (C) Endpoint (D) Sandbox
- Which of the following is true of a service that has a port published in ingress mode?
(A) The service will only listen on worker nodes that are running the service's tasks and manager nodes. (B) The service will only listen on nodes that are running tasks associated with the service. (C) The service will listen on all nodes on the cluster. (D) The service will only listen on a manager.
- Which of the following statements about the none network driver is accurate?
(A) The none driver implements communication between containers. (B) The none driver implements sandboxes. (C) The none driver does not provide network isolation between containers. (D) The none driver is the default when no driver is selected.
- When creating an overlay network, what flag can we use to allow containers to attach to the network after it is created?
(A) --attach=true (B) --open true (C) --attachable (D) --network-driver attachable
- Which of the following tasks can we perform to set a custom DNS server for a container?
(A) We can use the —-nameserver flag with docker run. (B) We can set "dns" in /etc/docker/daemon. json. (C) We can use the —-dns flag with docker run. (D) We can use the —-dns-override flag with docker run.
- Which of the following is a valid method that we can use for setting the default DNS server for all containers on a host?
(A) We can edit the /etc/hosts file on the host. (B) We can use docker config set dns. (C) We can use the —-dns flag with docker run. (D) We can set "dns" in /etc/docker/daemon. json.
- What component of the Docker Container Networking Model (CNM) refers to a collection of endpoints that can communicate with one another?
(A) Network (B) Sandbox (C) Network device (D) IP Address Management (IPAM) Driver
-
Amanda is having some network issues and needs to do some troubleshooting. How can she inject a nicolaka/netshoot container into the sandbox of an existing container called nginx-container ? (A) Amanda can use docker run --network nginx-container nicolaka/netshoot . (B) Amanda can use docker run --inject-container nginx-container nicolaka/netshoot . (C) Amanda can use docker run -—-network-debug nginx-—container nicolaka/netshoot . (D) Amanda can use docker run -—-network container:nginx-container nicolaka/netshoot .
-
Which of the following statements about the overlay network driver is accurate? (A) The network is set up on every node in the cluster as soon as the network faces creation. (B) Networking components are created on nodes dynamically when tasks get scheduled on the node. (C) The overlay driver only allows communication between containers running on the same host. (D) The network must be set up manually on each node.
-
Which of the following commands would we use to view a container's logs? (A) docker logs (B) docker service logs (C) docker container get-—log (D) sudo journalctl -u docker
11: 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 Macvlan networks B Overlay networks C User-defined bridge networks D Host networks
12: Which of the following statements is false? A Linked containers on the default bridge network share environment variables B User-defined bridges provide better isolation and interoperability between containerized applications C Containers can NOT be attached and detached from user-defined networks on the fly D Each user-defined network creates a configurable bridge E User-defined bridges provide automatic DNS resolution between containers
13: Which of the following docker command can be used to find out all the ports mapped? (select three) A docker ps B docker port C docker network ls D docker inspect
14: Which network driver type is best when you need multiple containers to communicate on the same Docker host? A Macvlan networks B User-defined bridge networks C Host networks D Overlay networks
15: What is the docker run option to publish a port so that an application is accessible externally? A docker run --publish-port B docker run --open-port C docker run --expose D docker run --publish
16: What is the docker command to connect a running container to an existing user-defined bridge? A docker network connect B docker network join C docker network attach D docker connect network
17: What is the docker command to display detailed information on one or more networks? A docker inspect network B docker network status C docker network inspect D docker network display
18: What is the docker command to create a bridge network? A docker network create B docker create network C docker network add D docker network deploy
19: 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? A Macvlan networks B User-defined bridge networks C Overlay networks D Host networks
20: Which network driver type 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? A Host networks B Macvlan networks C User-defined bridge networks D Overlay networks
21: What type of network is ingress network? A bridge network B host network C overlay network D macvlan network
22: What is the docker command to create a container with custom DNS server(s)? A docker container create --set-dns=IP_ADDRESS B docker container create --dns=IP_ADDRESS C docker container create --custom-dns=IP_ADDRESS D docker container create --add-dns=IP_ADDRESS
23: Publishing a service's port using the routing mesh makes the service accessible at the published port on every swarm node. True or false? A True B False
24: What is the command to set DNS server for all Docker containers? A dockerd --dns-server IP_ADDRESS B dockerd --dns-update IP_ADDRESS C dockerd --dns IP_ADDRESS D dockerd --set-dns IP_ADDRESS
25: Which of the following is NOT one of the 3 main Docker Container Network Model components? A Sandbox B Endpoint C Routing D Network
- Which network allows Docker Trusted Registry components running on different nodes to communicate and replicate Docker Trusted Registry data? A. dtr-ol B. dtr-hosts C. dtr-br D. dtr-vlan