December 30, 2020 by admin Docker DCA practice test Welcome to your Docker DCA practice test QUESTION 1 Which 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 4GB B. –limit-memory 4GB –reserve-memory 2GB C. –memory-swap 2GB –limit-memory 4GB D. –memory-swap 4GB –limit-memory 2GB None QUESTION 2 The 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 ls C. docker image inspect –format {{.Architecture}} {{.OS}} \\’ D. docker image info None QUESTION 3 Will this command list all nodes in a Swarm cluster from the command line? Solution: \\’docker node Is\\’ A. Yes B. No None QUESTION 4 Which of the following namespaces is disabled by default and must be enabled at Docker engine runtime in order to be used? A. user B. pid C. net D. mnt None QUESTION 5 Is this an advantage of multi-stage builds?Solution: better caching when building Docker images A. Yes B. No None QUESTION 6 You 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 network A. Yes B. No None QUESTION 7 Is this a Linux kernel namespace that is disabled by default and must be enabled at Docker engine runtime to be used?Solution: mnt A. Yes B. No None QUESTION 8 Will this command ensure that overlay traffic between service tasks is encrypted? Solution: docker service create–network –secure A. Yes B. No None QUESTION 9 Which 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 10 Which 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\\’ None QUESTION 11 Which 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. None QUESTION 12 In the context of a swarm mode cluster, does this describe a node? Solution: a physical machine participating in theswarm A. Yes B. No None QUESTION 13 Which of these swarm manager configurations will cause the cluster to be in a lost quorum state? A. 4 managers of which 2 are healthy B. 1 manager of which 1 is healthy C. 3 managers of which 2 are healthy D. 5 managers of which 3 are healthy None Time's up