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

Free and Premium Docker DCA Dumps Questions Answers

Page: 1 / 13
Total 191 questions

Docker Certified Associate (DCA) Exam Questions and Answers

Question 1

Can this set of commands identify the published port(s) for a container?

Solution. ‘docker container inspect", docker port'

Options:

A.

Yes

B.

No

Buy Now
Question 2

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

Question 3

Is this a type of Linux kernel namespace that provides container isolation?

Solution.Host

Options:

A.

Yes

B.

No

Question 4

Seven managers are in a swarm cluster.

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

Solution: 4-2-1

Options:

A.

Yes

B.

No

Question 5

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

Solution.x.500

Options:

A.

Yes

B.

No

Question 6

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

Question 7

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: Provision a Docker config object for each environment.

Options:

A.

Yes

B.

No

Question 8

Is this a Linux kernel namespace that is disabled by default and must be enabled at Docker engine runtime to be used?

Solution.pid

Options:

A.

Yes

B.

No

Question 9

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 images that contain the specific configuration for every environment.

Options:

A.

Yes

B.

No

Question 10

Will this action upgrade Docker Engine CE to Docker Engine EE?

Solution: Delete '/var/lib/docker' directory.

Options:

A.

Yes

B.

No

Question 11

Is this an advantage of multi-stage builds?

Solution: optimizes Images by copying artifacts selectively from previous stages

Options:

A.

Yes

B.

No

Question 12

The following Docker Compose file is deployed as a stack:

Is this statement correct about this health check definition?

Solution.Health checks lest for app health ten seconds apart. Three failed health checks transition the container into "unhealthy" status.

Options:

A.

Yes

B.

No

Question 13

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

Solution.LDAP

Options:

A.

Yes

B.

No

Question 14

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

Question 15

Is this the purpose of Docker Content Trust?

Solution.Sign and verify image tags.

Options:

A.

Yes

B.

No

Question 16

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

Solution:docker volume inspect nginx'

Options:

A.

Yes

B.

No

Question 17

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

Question 18

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

Question 19

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 a collection for for each application.

Options:

A.

Yes

B.

No

Question 20

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 taints

Options:

A.

Yes

B.

No

Question 21

In the context of a swarm mode cluster, does this describe a node?

Solution: an instance of the Docker engine participating in the swarm

Options:

A.

Yes

B.

No

Question 22

Will a DTR security scan detect this?

Solution: known vulnerabilities or exposures in binaries

Options:

A.

Yes

B.

No

Question 23

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.

Question 24

Will This command list all nodes in a swarm cluster from the command line?

Solution. ‘docker swarm nodes'

Options:

A.

Yes

B.

No

Question 25

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: resource reservation

Options:

A.

Yes

B.

No

Question 26

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

Question 27

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

Question 28

Will this command list all nodes in a swarm cluster from the command line?

Solution: 'docker swarm nodes'

Options:

A.

Yes

B.

No

Question 29

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

Options:

A.

Yes

B.

No

Question 30

Will this command list all nodes in a swarm cluster from the command line?

Solution. ‘docker inspect nodes

Options:

A.

Yes

B.

No

Question 31

Does this describe the role of Control Groups (cgroups) when used with a Docker container?

Solution: accounting and limiting of resources

Options:

A.

Yes

B.

No

Question 32

Is this the purpose of Docker Content Trust?

Solution.Indicate an image on Docker Hub is an official image.

Options:

A.

Yes

B.

No

Question 33

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

Options:

A.

Yes

B.

No

Question 34

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?

Options:

A.

a persistentVolume in the pod specification, populated with a persistentVolumeClaim which is bound to a volume 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 volume in the pod specification, populated with a storageClass which is bound to a provisioner defined by a persistentVolume

D.

a volume in the pod specification, populated with a persistentVolumeClaim bound to a persistentVolume defined by a storageClass

Question 35

Is this a Linux kernel namespace that is disabled by default and must be enabled at Docker engine runtime to be used?

Solution: user

Options:

A.

Yes

B.

No

Question 36

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 inspect http'

Options:

A.

Yes

B.

No

Question 37

When an application being managed by UCP fails, you would like a summary of all requests made to the UCP API in the hours leading up to the failure.

What must be configured correctly beforehand for this to be possible?

Options:

A.

All engines in the cluster must have their log driver set to the 'metadata' or 'request' level.

B.

UCP logging levels must be set to the info' or debug' level.

C.

UCP audit logs must be set to the 'metadata' or 'request' level.

D.

Set the logging level in the config object for the ucp-kube-epi-server container to warning or higher

Question 38

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

Question 39

You configure a local Docker engine to enforce content trust by setting the environment variable DOCKER_C0NTENT_TRUST=l. If myorg/myimage: 1.0 is unsigned, does Docker block this command?

Solution.docker image build, from a Dockeflle that begins FROM myorg/myimage: l1.0

Options:

A.

Yes

B.

No

Question 40

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

Solution:docker service create --network --secure

Options:

A.

Yes

B.

No

Question 41

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?

Options:

A.

-995

B.

64

C.

32 in every Kubernetes namespace

D.

64 for every service routing to pods on this node

E.

32

Question 42

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 provisioner is specified, and subsequently a persistentVolumeClaim is created.

Options:

A.

Yes

B.

No

Question 43

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 five seconds apart. If the test fails, the container will be restarted three times before it gets rescheduled.

Options:

A.

Yes

B.

No

Question 44

Is this the purpose of Docker Content Trust?

Solution: Verify and encrypt Docker registry TLS.

Options:

A.

Yes

B.

No

Question 45

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

Question 46

During development of an application meant to be orchestrated by Kubemetes, you want to mount the /data directory on your laptop into a container.

Will this strategy successfully accomplish this?

Solution. Create a Persistent VolumeClaim requesting storageClass:”” (which defaults to local storage) and hostPath: /data, and use this to populate a volume in a pod.

Options:

A.

Yes

B.

No

Question 47

Will a DTR security scan detect this?

Solution: licenses for known third party binary components

Options:

A.

Yes

B.

No

Question 48

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

Question 49

A users attempts to set the system time from inside a Docker container are unsuccessful. Could this be blocking this operation?

Solution: Linux capabilities

Options:

A.

Yes

B.

No

Question 50

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

Page: 1 / 13
Total 191 questions