Labour Day Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

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

Page: 1 / 18
Total 183 questions

Docker Certified Associate (DCA) Exam Questions and Answers

Question 1

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. Mirror the engineering/api repository to one of the user's own private repositories.

Options:

A.

Yes

B.

No

Question 2

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

Solution: Turn the configuration file into a configMap object, use it to populate a volume associated with the pod, and mount that file from the volume to the appropriate container and path.

Options:

A.

Yes

B.

No

Question 3

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 4

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

Solution: 'docker node Is'

Options:

A.

Yes

B.

No

Question 5

Is this an advantage of multi-stage builds?

Solution: better caching when building Docker images

Options:

A.

Yes

B.

No

Question 6

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 7

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 8

Is this an advantage of multi-stage builds?

Solution: simultaneously creates and tags multiple images

Options:

A.

Yes

B.

No

Question 9

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

Solution. ‘docker inspect nodes

Options:

A.

Yes

B.

No

Question 10

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 11

The Kubernetes yaml shown below describes a clusterIP service.

Question # 11

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

Question 12

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 constraints

Options:

A.

Yes

B.

No

Question 13

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

Solution. SAML

Options:

A.

Yes

B.

No

Question 14

Is this the purpose of Docker Content Trust?

Solution: Verify and encrypt Docker registry TLS.

Options:

A.

Yes

B.

No

Question 15

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

Solution: one manager node for two worker nodes

Options:

A.

Yes

B.

No

Question 16

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 17

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 18

Seven managers are in a swarm cluster.

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

Solution: 3-2-2

Options:

A.

Yes

B.

No

Question 19

Which networking drivers allow you to enable multi-host network connectivity

between containers?

Options:

A.

macvlan, ipvlan, and overlay

B.

bridge, user-defined, host

C.

host, macvlan, overlay, user-defined

D.

bridge, macvlan, ipvlan, overlay

Question 20

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 21

The Kubernetes yaml shown below describes a networkPolicy.

Question # 21

Will the networkPolicy BLOCK this trafftc?

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

Options:

A.

Yes

B.

No

Question 22

Which docker run` flag lifts cgroup limitations?

Options:

A.

`docker run -privileged

B.

`docker run -cpu-period

C.

`docker run -isolation

D.

`docker run -cap-drop

Question 23

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: The controller managing the pod is autoscaled back to delete the unhealthy pod and alleviate load.

Options:

A.

Yes

B.

No

Question 24

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

Question 25

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 26

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

Question 27

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

Question 28

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 29

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 30

Is this a function of UCP?

Solution: enforces the deployment of signed images to the cluster

Options:

A.

Yes

B.

No

Question 31

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

Question 32

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 system events --filter splunk

Options:

A.

Yes

B.

No

Question 33

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

Question 34

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 35

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: The unhealthy container is restarted.

Options:

A.

Yes

B.

No

Question 36

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

Question 37

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 38

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

Question 39

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

Solution: docker service create --network --secure

Options:

A.

Yes

B.

No

Question 40

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

Question 41

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

Question 43

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

Question 44

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 45

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 46

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

Solution. capabilities

Options:

A.

Yes

B.

No

Question 47

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 48

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 49

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

Solution. ‘docker container logs nginx –volumes’

Options:

A.

Yes

B.

No

Question 50

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

Question 51

The following Docker Compose file is deployed as a stack:

Question # 51

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 52

Is this the purpose of Docker Content Trust?

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

Options:

A.

Yes

B.

No

Question 53

Is this statement correct?

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

Options:

A.

Yes

B.

No

Question 54

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

Solution. Delete the image and delete the image repository from Docker Trusted Registry.

Options:

A.

Yes

B.

No

Page: 1 / 18
Total 183 questions