Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtick70

DCA Docker Certified Associate (DCA) Exam Questions and Answers

Questions 4

Will this command ensure that overlay traffic between service tasks is encrypted?

Solution: docker network create -d overlay -o encrypted=true

Options:

A.

Yes

B.

No

Buy Now
Questions 5

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’

Options:

A.

Yes

B.

No

Buy Now
Questions 6

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.

Options:

A.

Yes

B.

No

Buy Now
Questions 7

Is this a way to configure the Docker engine to use a registry without a trusted TLS certificate?

Solution. Set and export the IGNORE_TLS environment variable on the command line.

Options:

A.

Yes

B.

No

Buy Now
Questions 8

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 -constraint networking.protocol.udp=true dns-cache"

Options:

A.

Yes

B.

No

Buy Now
Questions 9

Is this statement correct?

Solution: A Dockerfile provides instructions for building a Docker image

Options:

A.

Yes

B.

No

Buy Now
Questions 10

Will a DTR security scan detect this?

Solution.image configuration poor practices, such as exposed ports or inclusion of compilers in production images

Options:

A.

Yes

B.

No

Buy Now
Questions 11

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'

Options:

A.

Yes

B.

No

Buy Now
Questions 12

A persistentVolumeClaim (PVC) is created with the specification storageClass: "", and size requirements that cannot be satisfied by any existing persistentVolume.

Is this an action Kubernetes takes in this situation?

Solution: The PVC remains unbound until a persistentVolume that matches all requirements of the PVC becomes available.

Options:

A.

Yes

B.

No

Buy Now
Questions 13

Will this configuration achieve fault tolerance for managers in a swarm?

Solution: at least seven nodes in total

Options:

A.

Yes

B.

No

Buy Now
Questions 14

Will this command ensure that overlay traffic between service tasks is encrypted?

Solution:docker service create --network --encrypted

Options:

A.

Yes

B.

No

Buy Now
Questions 15

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

Options:

A.

Yes

B.

No

Buy Now
Questions 16

Does this command display all the pods in the cluster that are labeled as 'env: development'?

Solution: 'kubectl get pods --all-namespaces -label env=development'

Options:

A.

Yes

B.

No

Buy Now
Questions 17

Does this command display all the pods in the cluster that are labeled as 'env: development'?

Solution: 'kubectl get pods -I env=development'

Options:

A.

Yes

B.

No

Buy Now
Questions 18

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 this service on port 8080 will be routed to port 80 in a random pod with the label aPP: nginx.

Options:

A.

Yes

B.

No

Buy Now
Questions 19

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 container run myorg/myimage:1.0

Options:

A.

Yes

B.

No

Buy Now
Questions 20

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: Tag the image with 'nginx:immutable'.

Options:

A.

Yes

B.

No

Buy Now
Questions 21

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.

Options:

A.

Yes

B.

No

Buy Now
Questions 22

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: Add all the resources to the default namespace.

Options:

A.

Yes

B.

No

Buy Now
Questions 23

Is this an advantage of multi-stage builds?

Solution: faster image builds by allowing parallel execution of Docker builds

Options:

A.

Yes

B.

No

Buy Now
Questions 24

You created a new service named 'http' and discover it is not registering as healthy. Will this command enable you to view the list of historical tasks for this service?

Solution: 'docker ps http'

Options:

A.

Yes

B.

No

Buy Now
Questions 25

A user's attempts to set the system time from inside a Docker container are unsuccessful.

Could this be blocking this operation?

Solution.SELinux

Options:

A.

Yes

B.

No

Buy Now
Questions 26

Will this Linux kernel facility limit a Docker container's access to host resources, such as CPU or memory?

Solution: cgroups

Options:

A.

Yes

B.

No

Buy Now
Questions 27

Is this a supported user authentication method for Universal Control Plane?

Solution: PAM

Options:

A.

Yes

B.

No

Buy Now
Questions 28

Your organization has a centralized logging solution, such as Splunk.

Will this configure a Docker container to export container logs to the logging solution?

Solution.docker run -- log driver=splunk for every container at run time

Options:

A.

Yes

B.

No

Buy Now
Questions 29

You want to create a container that is reachable from its host's network.

Does this action accomplish this?

Solution.Use either EXPOSE or -publish to access the container on the bridge network.

Options:

A.

Yes

B.

No

Buy Now
Questions 30

Is this the purpose of Docker Content Trust?

Solution: Enable mutual TLS between the Docker client and server.

Options:

A.

Yes

B.

No

Buy Now
Questions 31

In Kubernetes, to mount external storage to a filesystem path in a container within a pod, you would use a volume in the pod specification. This volume is populated with a persistentVolumeClaim that is bound to an existing persistentVolume. The persistentVolume is defined and managed by the storageClass which provides dynamic or static provisioning of the volume and determines what type of storage will be provided1. References:

•Dynamic Volume Provisioning | Kubernetes

Is this a supported user authentication method for Universal Control Plane?

Solution: Docker ID

Options:

A.

Yes

B.

No

Buy Now
Questions 32

Some Docker images take time to build through a Continuous Integration environment. You want to speed up builds and take advantage of build caching.

Where should the most frequently changed part of a Docker image be placed in a Dockerfile?

Options:

A.

at the top of the Dockerfile

B.

after the FROM directive

C.

at the bottom of the Dockerfile

D.

in the ENTRYPOINT directive

Buy Now
Questions 33

You add a new user to the engineering organization in DTR.

Will this action grant them read/write access to the engineering/api repository?

Solution: Add them to a team in the engineering organization that has read/write access to the engineering/api repository.

Options:

A.

Yes

B.

No

Buy Now
Questions 34

Is this a supported user authentication method for Universal Control Plane?

Solution.LDAP

Options:

A.

Yes

B.

No

Buy Now
Questions 35

Will this command display a list of volumes for a specific container?

Solution. ‘docker container inspect nginx’

Options:

A.

Yes

B.

No

Buy Now
Questions 36

Will this command ensure that overlay traffic between service tasks is encrypted?

Solution:docker service create --network --secure

Options:

A.

Yes

B.

No

Buy Now
Questions 37

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: node affinities

Options:

A.

Yes

B.

No

Buy Now
Questions 38

What is the difference between the ADD and COPY Dockerfile instructions? (Select two.)

Options:

A.

ADD supports remote URL handling while COPY does not.

B.

COPY supports compression format handling while ADD does not.

C.

COPY supports regular expression handling while ADD does not.

D.

ADD supports regular expression handling while COPY does not.

E.

ADD supports compression format handling while COPY does not.

Buy Now
Questions 39

Are these conditions sufficient for Kubernetes to dynamically provision a persistentVolume, assuming there are no limitations on the amount and type of available external storage?

Solution: A persistentVolumeClaim is created that specifies a pre-defined storageClass.

Options:

A.

Yes

B.

No

Buy Now
Questions 40

You want to provide a configuration file to a container at runtime. Does this set of Kubernetes tools and steps accomplish this?

Solution: Mount the configuration file directly into the appropriate pod and container using the .spec.containers.configMounts key.

Options:

A.

Yes

B.

No

Buy Now
Questions 41

The following Docker Compose file is deployed as a stack:

Is this statement correct about this health check definition?

Solution: Health checks test for app health ten seconds apart. If the test fails, the container will be restarted three times before it gets rescheduled.

Options:

A.

Yes

B.

No

Buy Now
Questions 42

You created a new service named 'http' and discover it is not registering as healthy. Will this command enable you to view the list of historical tasks for this service?

Solution:'docker service ps http'

Options:

A.

Yes

B.

No

Buy Now
Questions 43

Will a DTR security scan detect this?

Solution: known vulnerabilities or exposures in binaries

Options:

A.

Yes

B.

No

Buy Now
Questions 44

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?

Options:

A.

`docker swarm leave'

B.

`docker node update -availability drain

C.

`kubectl drain '

D.

`kubectl cordon

Buy Now
Questions 45

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. Set containers. Mounts. hostBinding: /data in the container's specification.

Options:

A.

Yes

B.

No

Buy Now
Questions 46

Are these conditions sufficient for Kubernetes to dynamically provision a persistentVolume, assuming there are no limitations on the amount and type of available external storage?

Solution: A default storageClass is specified, and subsequently a persistentVolumeClaim is created.

Options:

A.

Yes

B.

No

Buy Now
Questions 47

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: Remove push access from all other users.

Options:

A.

Yes

B.

No

Buy Now
Questions 48

An application image runs in multiple environments, with each environment using different certificates and ports.

Is this a way to provision configuration to containers at runtime?

Solution: Create a Dockerfile for each environment, specifying ports and ENV variables for certificates.

Options:

A.

Yes

B.

No

Buy Now
Questions 49

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: Keep a backup copy of the image on another repository.

Options:

A.

Yes

B.

No

Buy Now
Questions 50

Your organization has a centralized logging solution, such as Splunk.

Will this configure a Docker container to export container logs to the logging solution?

Solution: Set the log-driver and log-oPt keys to values for the logging solution (Splunk) In the daemon.json file.

Options:

A.

Yes

B.

No

Buy Now
Questions 51

Is this statement correct?

Solution.A Dockerfile stores persistent data between deployments of a container

Options:

A.

Yes

B.

No

Buy Now
Questions 52

Will this configuration achieve fault tolerance for managers in a swarm?

Solution: an odd number of manager nodes, totaling more than two

Options:

A.

Yes

B.

No

Buy Now
Questions 53

Will this command display a list of volumes for a specific container?

Solution: 'docker container inspect nginx'

Options:

A.

Yes

B.

No

Buy Now
Questions 54

You want to create a container that is reachable from its host's network. Does this action accomplish this?

Solution:Use either EXPOSE or --publish to access the containers on the bridge network

Options:

A.

Yes

B.

No

Buy Now
Questions 55

Is this a way to configure the Docker engine to use a registry without a trusted TLS certificate?

Solution: Set IGNORE_TLS in the 'daemon.json' configuration file.

Options:

A.

Yes

B.

No

Buy Now
Questions 56

The Kubernetes yaml shown below describes a networkPolicy.

Will the networkPolicy BLOCK this traffic?

Solution: a request issued from a pod lacking the tier: api label, to a pod bearing the tier: backend label

Options:

A.

Yes

B.

No

Buy Now
Questions 57

Seven managers are in a swarm cluster.

Is this how should they be distributed across three datacenters or availability zones?

Solution: 5-1-1

Options:

A.

Yes

B.

No

Buy Now
Exam Code: DCA
Exam Name: Docker Certified Associate (DCA) Exam
Last Update: Apr 30, 2025
Questions: 191
DCA pdf

DCA PDF

$25.5  $84.99
DCA Engine

DCA Testing Engine

$30  $99.99
DCA PDF + Engine

DCA PDF + Testing Engine

$40.5  $134.99