December 30, 2020 by admin Docker DCA practice test Welcome to your Docker DCA practice test QUESTION 1Which flag for a service would allow a container to consume more than 2 GB of memory only when there is no memorycontention but would also prevent a container from consuming more than 4GB of memory, in any case?A. –limit-memory 2GB –reserve-memory 4GBB. –limit-memory 4GB –reserve-memory 2GBC. –memory-swap 2GB –limit-memory 4GBD. –memory-swap 4GB –limit-memory 2GB QUESTION 2The output of which command can be used to find the architecture and operating system an image is compatible with?A. docker image inspect –filter {{.Architecture}} {{.OS}} \\’B. docker image lsC. docker image inspect –format {{.Architecture}} {{.OS}} \\’D. docker image info QUESTION 3Will this command list all nodes in a Swarm cluster from the command line? Solution: \\’docker node Is\\’A. YesB. No QUESTION 4Which of the following namespaces is disabled by default and must be enabled at Docker engine runtime in order to be used?A. userB. pidC. netD. mnt QUESTION 5Is this an advantage of multi-stage builds?Solution: better caching when building Docker imagesA. YesB. No QUESTION 6You want to create a container that is reachable from its host\\’s network. Does this action accomplish this? Solution:Use network attach to access the containers on the bridge networkA. YesB. No QUESTION 7Is this a Linux kernel namespace that is disabled by default and must be enabled at Docker engine runtime to be used?Solution: mntA. YesB. No QUESTION 8Will this command ensure that overlay traffic between service tasks is encrypted? Solution: docker service create–network –secureA. YesB. No QUESTION 9Which of the following are types of namespaces used by Docker to provide isolation? (Choose 2.) A. Host B. Network C. Process ID D. Authentication E. Storage QUESTION 10Which of the following commands starts a Redis container and configures it to always restart unless it is explicitlystopped or Docker is restarted?A. \\’docker run -d –restart-policy unless-stopped redis\\’B. \\’docker run -d –restart omit-stopped redis\\’C. \\’docker run -d –restart unless-stopped redis\\’D. \\’docker run -d –failure omit-stopped redis\\’ QUESTION 11Which statement is correct about cluster management in Docker Enterprise Edition 3.x?A. Clusters can contain Windows 10 and Windows Server 2016 only.B. Clusters can contain Linux, Windows Server 2016 and 2019, and Linux on IBM z Systems.C. Clusters can contain Linux only.D. Clusters can contain Linux and Windows Server 2008 R2 only. QUESTION 12In the context of a swarm mode cluster, does this describe a node? Solution: a physical machine participating in theswarmA. YesB. No QUESTION 13Which of these swarm manager configurations will cause the cluster to be in a lost quorum state?A. 4 managers of which 2 are healthyB. 1 manager of which 1 is healthyC. 3 managers of which 2 are healthyD. 5 managers of which 3 are healthy Time is Up!