Summer Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Docker DCA Docker Certified Associate (DCA) Exam Exam Practice Test

Demo: 53 questions
Total 191 questions

Docker Certified Associate (DCA) Exam Questions and Answers

Question 1

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 2

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

Solution. ‘docker port inspect", docker container inspect"

Options:

A.

Yes

B.

No

Question 3

One of several containers in a pod is marked as unhealthy after failing its livenessProbe many times. Is this the action taken by the orchestrator to fix the unhealthy container?

Solution: Kubernetes automatically triggers a user-defined script to attempt to fix the unhealthy container.

Options:

A.

Yes

B.

No

Question 4

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. Three failed health checks transition the container into “unhealthy” status.

Options:

A.

Yes

B.

No

Question 5

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

Solution: Uninstall 'docker-ce' package before installing 'docker-ee' package.

Options:

A.

Yes

B.

No

Question 6

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

Solution: 'docker swarm nodes'

Options:

A.

Yes

B.

No

Question 7

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

Question 8

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

Question 9

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

Question 10

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 11

Is this a function of UCP?

Solution: scans images to detect any security vulnerability

Options:

A.

Yes

B.

No

Question 12

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

Solution: `docker network inspect', `docker port'

Options:

A.

Yes

B.

No

Question 13

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

Solution: isolation between resources used by containers

Options:

A.

Yes

B.

No

Question 14

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

Solution. ‘docker run -add-volume /data /mydata -read-only ubuntu'

Options:

A.

Yes

B.

No

Question 15

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 16

Is this the purpose of Docker Content Trust?

Solution.Sign and verify image tags.

Options:

A.

Yes

B.

No

Question 17

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 18

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

Question 19

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 20

Will a DTR security scan detect this?

Solution: known vulnerabilities or exposures in binaries

Options:

A.

Yes

B.

No

Question 21

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

Solution: a physical machine participating in the swarm

Options:

A.

Yes

B.

No

Question 22

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

Options:

A.

Yes

B.

No

Question 23

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

Question 24

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

Does this action accomplish this?

Solution: Use network attach to access the container on the bridge network.

Options:

A.

Yes

B.

No

Question 25

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 volume is defined in a pod specification with the key persistentVolume: default.

Options:

A.

Yes

B.

No

Question 26

Is this statement correct?

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

Options:

A.

Yes

B.

No

Question 27

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

Question 28

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 29

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

Solution.Run docker engine activate.

Options:

A.

Yes

B.

No

Question 30

How do you change the default logging driver for the docker daemon in Linux?

Options:

A.

Install a logging agent on the Linux host.

B.

Set the value of 'log-driver' to the name of the logging driver in the daemon.json in /etc/docker.

C.

Use the -log-driver1 flag when you run a container.

D.

At the command line, type: docker log driver set

Question 31

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 32

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

Question 33

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

Solution: at least seven nodes in total

Options:

A.

Yes

B.

No

Question 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

Question 35

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 36

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.

Question 37

Is this an advantage of multi-stage builds?

Solution: better caching when building Docker images

Options:

A.

Yes

B.

No

Question 38

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

Question 39

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

Question 40

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.

Options:

A.

Yes

B.

No

Question 41

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

Solution: seccomp

Options:

A.

Yes

B.

No

Question 42

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

Options:

A.

Yes

B.

No

Question 43

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 44

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

Question 45

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

Question 46

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: Kubernetes returns an error indicating that the PVC could not be bound with the current resources.

Options:

A.

Yes

B.

No

Question 47

Is this a function of UCP?

Solution: image role-based access control

Options:

A.

Yes

B.

No

Question 48

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

Solution.Host

Options:

A.

Yes

B.

No

Question 49

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

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

Options:

A.

Yes

B.

No

Question 50

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

Solution. ‘docker container inspect nginx’

Options:

A.

Yes

B.

No

Question 51

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

Solution: Network

Options:

A.

Yes

B.

No

Question 52

You are pulling images from a Docker Trusted Registry installation

configured to use self-signed certificates, and this error appears:

`x509: certificate signed by unknown authority.

You already downloaded the Docker Trusted Registry certificate authority

certificate from https://dtr.example.com/ca.

How do you trust it? (Select two.)

Options:

A.

Pass '-trust-certificate ca.crt to the Docker client.

B.

Place the certificate in '/etc/docker/dtr/dtr.example.com.crt' and restart theDocker daemon on all cluster nodes.

C.

Place the certificate in /etc/docker/certs.d/dtr.example.com/ca.crt' on allcluster nodes.

D.

Pass -- insecure-registry to the Docker client.

E.

Place the certificate in your OS certificate path, trust the certificate system-wide, and restart the Docker daemon across all cluster nodes.

Question 53

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.

Demo: 53 questions
Total 191 questions