Get New 2021 Docker exam DCA Dumps Bundle On flat Updated Dumps!
Full DCA Practice Test and 170 unique questions with explanations waiting just for you, get it now!
NEW QUESTION 79
You have created a Docker bridge network on a host with three containers attached, how do you make this containers accessible outside of the host?
- A. Use network attach to access the containers on the bridge network
- B. Use either EXPOSE or --publish to access the containers on the bridge network
- C. Use --link to access the containers on the bridge network
Correct - D. Use network connect to access the containers on the bridge network
Answer: B
NEW QUESTION 80
Will this command mount the host's '/data' directory to the ubuntu container in read-only mode?
Solution: 'docker run --volume /data:/mydata:ro ubuntu'
- A. No
- B. Yes
Answer: A
NEW QUESTION 81
What is the difference between a resource limit and a resource reservation when scheduling services?
- A. A resource limit is a soft limit for your service, while a reservation is hard limit and the docker engine will do its best to keep your service at the limit.
- B. A resource limit is hard limit for your service, while a reservation is used to find a host with adequate
resources for scheduling. Correct - C. A resource limit is used to find a host with adequate resources for scheduling a hard limit for your service, while a reservation is hard limit for your service.
- D. A resource limit and a resource reservation can be used interchangeably.
Answer: D
NEW QUESTION 82
During development of an application meant to be orchestrated by Kubernetes, you want to mount the /data directory on your laptop into a container.
Will this strategy successfully accomplish this?
Solution: Create a PersistentVolume with storageciass: "" and hostPath: /data, and a persistentVolumeClaim requesting this PV. Then use that PVC to populate a volume in a pod
- A. No
- B. Yes
Answer: B
NEW QUESTION 83
Is this an advantage of multi-stage builds?
Solution: better caching when building Docker images
- A. No
- B. Yes
Answer: A
NEW QUESTION 84
What is the purpose of multi-stage builds?
- A. Optimizing images by copying artifacts selectively from previous stages
- B. Faster image builds by allowing parallel execution of Docker builds
- C. Better logical separation of Dockerfile instructions for better readability
- D. Better caching when building Docker images
Answer: A
NEW QUESTION 85
Which of the following commands will create a swarm service which only listens on port 53 using the UDP protocol?
- A. docker service create --name dns-cache -p 53:53 --udp dns-cache
- B. docker service create --name dns-cache -p 53:53/udp dns-cache
- C. docker service create --name dns-cache -p 53:53 --service udp dns-cache
- D. docker service create --name dns-cache -p 53:53 ..constraint
networking.protocol.udp=true dns-cache
Answer: B
NEW QUESTION 86
Does this command create a swarm service that only listens on port 53 using the UDP protocol?
Solution: 'docker service create -name dns-cache -p 53:53 -service udp dns-cache'
- A. No
- B. Yes
Answer: A
NEW QUESTION 87
You are running only Kubernetes workloads on a worker node that requires maintenance, such as installing patches or an OS upgrade
Which command must be run on the node to gracefully terminate all pods on the node, while marking the node as unschedulable?
- A. 'kubectl cordon <node name>'
- B. 'docker node update --availability drain <node name>'
- C. 'docker swarm leave'
- D. 'kubectl drain <node name>'
Answer: A
NEW QUESTION 88
Two development teams in your organization use Kubernetes and want to deploy their applications while ensuring that Kubernetes-specific resources, such as secrets, are grouped together for each application.
Is this a way to accomplish this?
Solution: Create one namespace for each application and add all the resources to it.
- A. No
- B. Yes
Answer: A
NEW QUESTION 89
What is the difference between the ADD and COPY dockerfile instructions? (choosen 2)
- A. COPY supports regular expression handling while ADD does not.
- B. ADD supports regular expression handling while COPY does not.
- C. ADD support remote URL handling while COPY does not.
- D. COPY supports compression format handling while ADD does not.
- E. ADD supports compression format handling while COPY does not.
Answer: C
NEW QUESTION 90
A server is running low on disk space. What command can be used to check the disk usage of images, containers, and volumes for Docker engine?
- A. 'docker system free'
- B. 'docker system prune'
- C. 'docker system ps'
- D. 'docker system df'
Answer: D
NEW QUESTION 91
Which statement is correct about cluster management in Docker Enterprise Edition 3.x?
- A. Clusters can contain Linux, Windows Server 2016 and 2019, and Linux on IBM z Systems.
- B. Clusters can contain Linux only.
- C. Clusters can contain Windows 10 and Windows Server 2016 only.
- D. Clusters can contain Linux and Windows Server 2008 R2 only.
Answer: C
NEW QUESTION 92
Which networking drivers allow you to enable multi-host network connectivity between containers?
- A. macvlan, ipvlan, and overlay
- B. bridge, user-defined, host
- C. bridge, macvlan, ipvlan, overlay
- D. host, macvlan, overlay, user-defined
Answer: A
NEW QUESTION 93
Wha is the purpose of Docker Content Trust?
- A. Indicating an image on Docker Hub is an official image
- B. Signing and verification of image tags
- C. Docker registry TLS verification and encryption
- D. Enabling mutual TLS between the Docker client and server
Answer: B
NEW QUESTION 94
Can this set of commands identify the published port(s) for a container?
Solution: docker container inspect', 'docker port'
- A. No
- B. Yes
Answer: B
NEW QUESTION 95
The Kubernetes yaml shown below describes a clusterIP service.
Is this a correct statement about how this service routes requests?
Solution: Traffic sent to the IP of any pod with the label app: nginx on port 8080 will be forwarded to port 80 in that pod.
- A. No
- B. Yes
Answer: B
NEW QUESTION 96
Will this command display a list of volumes for a specific container?
Solution: docker container logs nginx --volumes'
- A. No
- B. Yes
Answer: A
NEW QUESTION 97
Does this command create a swarm service that only listens on port 53 using the UDP protocol?
Solution: 'docker service create --name dns-cache -p 53:53/udp dns-cache'
- A. No
- B. Yes
Answer: B
NEW QUESTION 98
How do you change the default logging driver for the docker daemon in Linux?
- A. Set the value of log-driver to the name of the logging driver In the daemon.json In /etc/doc
- B. Install a logging agent on the Linux host.
- C. Use the -log-driver' flag when you run a container.
- D. At the command line, type: docker log driver set <driver name>
Answer: B
NEW QUESTION 99
What behavior is expected when a service is created with the following command:
'docker service create --publish 8000:80 nginx'
- A. Only a single node in the cluster will listen on port 8080 and forward to port 80 in the container.
- B. All nodes in the cluster will listen on port 80 and forward to port 8080 in the container.
- C. Only a single node in the cluster will listen on port 80 and forward to port 8080 in the container.
- D. All nodes in the cluster will listen on port 8080 and forward to port 80 in the container.
Answer: D
NEW QUESTION 100
Two development teams in your organization use Kubernetes and want to deploy their applications while ensuring that Kubernetes-specific resources, such as secrets, are grouped together for each application.
Is this a way to accomplish this?
Solution: Create one pod and add all the resources needed for each application
- A. No
- B. Yes
Answer: A
NEW QUESTION 101
......
[Sep-2021] Pass Docker DCA Exam in First Attempt Guaranteed: https://drive.google.com/open?id=1X41U26Op26XReMJz1Lo4S3UlIliPioR_
Reduce Your Chance of Failure in DCA Exam: https://www.examboosts.com/Docker/DCA-practice-exam-dumps.html