Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

Unique Top-selling DCA Exams - New 2021 Docker Pratice Exam [Q39-Q61]

Share

Unique Top-selling DCA Exams - New 2021 Docker  Pratice Exam

Docker Certified Associate Dumps DCA Exam for Full Questions - Exam Study Guide

NEW QUESTION 39
Which one of the following commands will result in the volume being removed automatically once the container
has exited?

  • A. 'docker run --del -v /foo busybox'
  • B. 'docker run --remove -v /foo busybox'
  • C. 'docker run --read-only -v /foo busybox'
  • D. 'docker run --rm -v /foo busybox'

Answer: D

 

NEW QUESTION 40
You configure a local Docker engine to enforce content trust by setting the environment variable
DOCKER_CONTENT_TRUST=1.
If myorg/myimage: 1.0 is unsigned, does Docker block this command?
Solution: docker image import <tarball> myorg/myimage:1.0

  • A. No
  • B. Yes

Answer: B

 

NEW QUESTION 41
Which one of the following commands will result in the volume being removed automatically once the container has exited?

  • A. 'docker run --del -v /foo busybox'
  • B. 'docker run --remove -v /foo busybox'
  • C. 'docker run --read-only -v /foo busybox'
  • D. 'docker run --rm -v /foo busybox'

Answer: D

 

NEW QUESTION 42
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: B,C

 

NEW QUESTION 43
In Docker Trusted Registry, how would a user prevent an image, for example 'nginx:latest' from being
overwritten by another user with push access to the repository?

  • A. Remove push access from all other users.
  • B. Use the DTR web UI to make the tag immutable.
  • C. Tag the image with 'nginx:immutable'
  • D. Keep a backup copy of the image on another repository.

Answer: B

 

NEW QUESTION 44
A Kubernetes node is allocated a /26 CIDR block (64 unique IPs) for its address space.
If every pod on this node has exactly two containers in it, how many pods can this address space support on this node?

  • A. 0
  • B. 64 for every service routing to pods on this node
  • C. 32 In every Kubernetes namespace
  • D. 1

Answer: B

 

NEW QUESTION 45
A company's security policy specifies that development and production containers must run on separate nodes in a given Swarm cluster.
Can this be used to schedule containers to meet the security policy requirements?
Solution: label contraints

  • A. No
  • B. Yes

Answer: A

 

NEW QUESTION 46
You are troubleshooting a Kubernetes deployment called api, and want to see the events table for this object. Does this command display it?
Solution: kubectl logs deployment api

  • A. No
  • B. Yes

Answer: A

 

NEW QUESTION 47
Two pods bear the same label, app: dev.
Will a label selector matching app: dev match both of these pods?

  • A. Yes, if both pods were pre-existing when the label selector was declared.
  • B. Yes, as long as all the containers in those pods are passing their livenessProbes and readinessProbes.
  • C. Yes, if the pods are in the same Kubernetes namespace as the object bearing the label selector and both pods were preexisting when the label selector was declared.
  • D. Yes, if the pods are in the same Kubernetes namespace as the object bearing the label selector

Answer: C

 

NEW QUESTION 48
The following health check exists in a Dockerfile:
'HEALTCHECK
CMD curl --fail http://localhost/health || exit 1'
Which of the following describes its purpose?

  • A. Defines the health check endpoint on the localhost interface for external monitoring tools to monitor the health of the docker engine.
  • B. Defines the health check endpoint on the local host interface for containers to monitor the health of the docker engine.
  • C. Defines the action taken when container health fails, which in this case will kill the container with exit status 1.
  • D. Defines the health check for the containerized application so that the application health can be monitored by the Docker engine

Answer: C

 

NEW QUESTION 49
Does this describe the role of Control Groups (cgroups) when used with a Docker container?
Solution: user authorization to the Docker API

  • A. No
  • B. Yes

Answer: A

 

NEW QUESTION 50
When seven managers are in a swarm cluster how would they be distributed across three datacenters or availability zones?

  • A. 4-2-1
  • B. 3-3-1
  • C. 3-2-2
  • D. 5-1-1

Answer: A

 

NEW QUESTION 51
In Docker Trusted Registry, is this how a user can prevent an image, such as 'nginx:latest', from being overwritten by another user with push access to the repository?
Solution: Use the DTR web Ul to make all tags in the repository immutable.

  • A. No
  • B. Yes

Answer: B

 

NEW QUESTION 52
You want to mount external storage to a particular filesystem path in a container in a Kubernetes pod. What is the correct set of objects to use for this?

  • A. a volume in the pod specification, populated with a perslstentVolumeClaim bound to a perslstentVolume defined by a storageClass
  • B. a storageClass In the pod's specification, populated with a volume which Is bound to a provisioner defined by a persistentVolume
  • C. a perslstentVolume in the pod specification, populated with a persistentVolumeClaim which is bound to a volume defined by a storageClass
  • D. a volume in the pod specification, populated with a storageClass which is bound to a provisioner defined by a perslstentVolume

Answer: B

 

NEW QUESTION 53
You are troubleshooting a Kubernetes deployment called api, and want to see the events table for this object. Does this command display it?
Solution: kubectl events deployment api

  • A. No
  • B. Yes

Answer: A

 

NEW QUESTION 54
You have deployed a service to swarm. Which command uses the Docker CLI to set the number of tasks of the services to 5? (choose 2)

  • A. 'docker replica update <service-id>=5'
  • B. 'docker service replicas <service-id>=5'
  • C. 'docker update service <service-id>=5'
  • D. 'docker service update --replicas=5 <service-id>'
  • E. 'docker service scale <service-id> = 5''

Answer: D,E

 

NEW QUESTION 55
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: Add a volume to the pod that sets hostPath.path: /data, and then mount this volume into the pod's containers as desired.

  • A. No
  • B. Yes

Answer: A

 

NEW QUESTION 56
Will this Linux kernel facility limit a Docker container's access to host resources, such as CPU or memory?
Solution: cgroups

  • A. No
  • B. Yes

Answer: B

 

NEW QUESTION 57
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 58
A container named "analytics" that stores results in a volume called "data" was created.
docker run -d --name=analytics -v data:/data app1
How are the results accessed in "data" with another container called "app2"?

  • A. docker run -d --name=reports --volumes-from=analytics app2
  • B. docker run -d --name=reports --volume=app1 app2
  • C. docker run -d --name=reports --volume=data app2
  • D. docker run -d --name=reports --mount=app1 app2

Answer: A

 

NEW QUESTION 59
Which of the following is true about using the '-P' option when creating a new container?

  • A. Docker binds each exposed container port to a random port on all the host's interface
  • B. Docker gives extended privileges to the container.
  • C. Docker binds each exposed container port to a random port on a specified host interface
  • D. Docker binds each exposed container port with the same port on the host

Answer: A

 

NEW QUESTION 60
A host machine has four CPUs available and two running containers. The sysadmin would like to assign two CPUs to each container.
Which of the following commands achieves this?

  • A. Set the '--cpuset-cpu's flag to '1.3' on one container and '2.4' on the other container.
  • B. Set the '--cpuset-cpus' flag of the 'dockerd' process to the value 'even-spread'
  • C. Set the '--cpu-quota' flag to '1.3' on one container and '2,4' on the other container.
  • D. Set the '--cpuset-cpus' flag to '.5' on both containers

Answer: D

 

NEW QUESTION 61
......

Best way to practice test for Docker DCA: https://www.testsimulate.com/DCA-study-materials.html