Weekend Sale - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65percent

Welcome To DumpsPedia

DCA Sample Questions Answers

Questions 4

Two pods bear the same label, app: dev.

Will a label selector matching app: dev match both of these pods?

Options:

A.

Yes, if the pods are in the same Kubernetes namespace as the object bearing the label selector.

B.

Yes, if the pods are in the same Kubernetes namespace as the object bearing the label selector and both pods were pre-existing when the label selector was declared.

C.

Yes, if both pods were pre-existing when the label selector was declared.

D.

Yes, as long as all the containers in those pods are passing their livenessProbes and readinessProbes.

Buy Now
Questions 5

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

Solution: inter-process communication

Options:

A.

Yes

B.

No

Buy Now
Questions 6

Which statement is correct about cluster management in Docker Enterprise Edition 3.x?

Options:

A.

Clusters can contain Linux only.

B.

Clusters can contain Linux, Windows Server 2016 and 2019, and Linux on IBM z Systems.

C.

Clusters can contain Windows 10 and Windows Server 2016 only.

D.

Clusters can contain Linux and Windows Server 2008 R2 only.

Buy Now
Questions 7

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

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

Solution.docker system events- -filter splunk

Options:

A.

Yes

B.

No

Buy Now
Questions 8

You set up an automatic pruning policy on a DTR repository to prune all images using Apache licenses.

What effect does this have on images in this repository?

Options:

A.

Matching images are untagged during the next prune job.

B.

Matching images are deleted during the next prune job.

C.

Matching images are untagged once they are older than the pruning threshold set in the repository's Settings tab.

D.

Matching images are untagged during the next prune job, and subsequently deleted once they are older than the pruning threshold set in the repository's Settings tab.

Buy Now
Questions 9

Will this command mount the host's '/data1directory to the ubuntu container in read-only mode?

Solution. ‘docker run -v /data:/mydata -mode readonly ubuntu'

Options:

A.

Yes

B.

No

Buy Now
Questions 10

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

Buy Now
Questions 11

The Kubernetes yaml shown below describes a networkPolicy.

Will the networkPolicy BLOCK this trafftc?

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

Options:

A.

Yes

B.

No

Buy Now
Questions 12

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

Buy Now
Questions 13

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

Buy Now
Questions 14

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

Solution: Storage

Options:

A.

Yes

B.

No

Buy Now
Questions 15

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

Options:

A.

Yes

B.

No

Buy Now
Questions 16

Seven managers are in a swarm cluster.

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

Solution: 3-3-1

Options:

A.

Yes

B.

No

Buy Now
Questions 17

Is this statement correct?

Solution: A Dockerfile stores the Docker daemon's configuration options.

Options:

A.

Yes

B.

No

Buy Now
Questions 18

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

Buy Now
Questions 19

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
Questions 20

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

Solution: only two managers, one active and one passive.

Options:

A.

Yes

B.

No

Buy Now
Questions 21

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

Solution: net

Options:

A.

Yes

B.

No

Buy Now
Questions 22

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

Buy Now
Questions 23

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 24

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 25

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

Solution.an instance of the Docker CLI connected to the swarm

Options:

A.

Yes

B.

No

Buy Now
Questions 26

Will a DTR security scan detect this?

Solution: licenses for known third party binary components

Options:

A.

Yes

B.

No

Buy Now
Questions 27

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 28

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 29

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'

Options:

A.

Yes

B.

No

Buy Now
Questions 30

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 31

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 get deployment api

Options:

A.

Yes

B.

No

Buy Now
Questions 32

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

Buy Now
Questions 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.environment variables

Options:

A.

Yes

B.

No

Buy Now
Questions 34

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

Solution: role-based access control to clustered resources

Options:

A.

Yes

B.

No

Buy Now
Questions 35

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

Solution:docker network create -d overlay --secure

Options:

A.

Yes

B.

No

Buy Now
Questions 36

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 37

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 38

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

Solution: ‘docker Is -a’

Options:

A.

Yes

B.

No

Buy Now
Questions 39

Will a DTR security scan detect this?

Solution.private keys copied to the image

Options:

A.

Yes

B.

No

Buy Now
Questions 40

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

Solution: namespaces

Options:

A.

Yes

B.

No

Buy Now
Questions 41

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 42

Will this sequence of steps completely delete an image from disk in the Docker Trusted Registry?

Solution.Delete the image and remove permissions to the repository in the Docker

Trusted Registry.

Options:

A.

Yes

B.

No

Buy Now
Questions 43

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

Buy Now
Questions 44

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

Solution: Pass the '--insecure-registry' flag to the daemon at run time.

Options:

A.

Yes

B.

No

Buy Now
Questions 45

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 46

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 47

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

Buy Now
Questions 48

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 49

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

Buy Now
Questions 50

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

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

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 53

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

Solution: Authentication

Options:

A.

Yes

B.

No

Buy Now
Questions 54

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 55

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

Solution.Disable the Docker service via ‘chkconfig' or 'systemctl'.

Options:

A.

Yes

B.

No

Buy Now
Questions 56

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 57

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 describe deployment api

Options:

A.

Yes

B.

No

Buy Now
Exam Code: DCA
Exam Name: Docker Certified Associate (DCA) Exam
Last Update: May 1, 2025
Questions: 191
$57.75  $164.99
$43.75  $124.99
$36.75  $104.99
buy now DCA