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

Home > Docker > Docker Certified Associate > DCA

DCA Docker Certified Associate (DCA) Exam Question and Answers

Question # 4

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.

A.

Yes

B.

No

Full Access
Question # 5

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

Solution: mnt

A.

Yes

B.

No

Full Access
Question # 6

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

A.

Yes

B.

No

Full Access
Question # 7

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'

A.

Yes

B.

No

Full Access
Question # 8

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

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

A.

Yes

B.

No

Full Access
Question # 9

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'

A.

Yes

B.

No

Full Access
Question # 10

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.

A.

Yes

B.

No

Full Access
Question # 11

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

Solution: Use --link to access the container on the bridge network.

A.

Yes

B.

No

Full Access
Question # 12

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

Does this action accomplish this?

Solution.Use network connect to access the container on the bridge network.

A.

Yes

B.

No

Full Access
Question # 13

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"

A.

Yes

B.

No

Full Access
Question # 14

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

Solution: user authorization to the Docker API

A.

Yes

B.

No

Full Access
Question # 15

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.

A.

Yes

B.

No

Full Access
Question # 16

Two pods bear the same label, app: dev.

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

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.

Full Access
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 -service udp dns-cache'

A.

Yes

B.

No

Full Access
Question # 18

Seven managers are in a swarm cluster.

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

Solution: 3-3-1

A.

Yes

B.

No

Full Access
Question # 19

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.

A.

Yes

B.

No

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

A.

Yes

B.

No

Full Access
Question # 21

Is this an advantage of multi-stage builds?

Solution: optimizes Images by copying artifacts selectively from previous stages

A.

Yes

B.

No

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

A.

Yes

B.

No

Full Access
Question # 23

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

Solution.pid

A.

Yes

B.

No

Full Access
Question # 24

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

Solution.Process ID

A.

Yes

B.

No

Full Access
Question # 25

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

Solution: docker volume logs nginx --containers'

A.

Yes

B.

No

Full Access
Question # 26

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

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

Full Access
Question # 27

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.

A.

Yes

B.

No

Full Access
Question # 28

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

Solution. ‘docker container inspect", docker port'

A.

Yes

B.

No

Full Access
Question # 29

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?

A.

-995

B.

64

C.

32 in every Kubernetes namespace

D.

64 for every service routing to pods on this node

E.

32

Full Access
Question # 30

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

Solution. Set INSECURE_REGISTRY in the’ /etc/docker/default’ configuration file.

A.

Yes

B.

No

Full Access
Question # 31

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.

A.

Yes

B.

No

Full Access
Question # 32

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

Solution: Manually download the 'docker-ee' package

A.

Yes

B.

No

Full Access
Question # 33

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

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

A.

Yes

B.

No

Full Access
Question # 34

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.

A.

Yes

B.

No

Full Access
Question # 35

Seven managers are in a swarm cluster.

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

Solution: 5-1-1

A.

Yes

B.

No

Full Access
Question # 36

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

Solution: PAM

A.

Yes

B.

No

Full Access
Question # 37

Is this the purpose of Docker Content Trust?

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

A.

Yes

B.

No

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

A.

Yes

B.

No

Full Access
Question # 39

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

Solution: net

A.

Yes

B.

No

Full Access
Question # 40

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.

A.

Yes

B.

No

Full Access
Question # 41

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.

A.

Yes

B.

No

Full Access
Question # 42

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

Solution.LDAP

A.

Yes

B.

No

Full Access
Question # 43

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.

A.

Yes

B.

No

Full Access
Question # 44

Is this an advantage of multi-stage builds?

Solution.better logical separation of Dockerfile instructions for increased readability

A.

Yes

B.

No

Full Access
Question # 45

The Kubernetes yaml shown below describes a networkPolicy.

Will the networkPolicy BLOCK this trafftc?

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

A.

Yes

B.

No

Full Access
Question # 46

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.

A.

Yes

B.

No

Full Access
Question # 47

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'

A.

Yes

B.

No

Full Access
Question # 48

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

A.

Yes

B.

No

Full Access
Question # 49

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

Solution:docker network create -d overlay --secure

A.

Yes

B.

No

Full Access
Question # 50

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

Solution:docker volume inspect nginx'

A.

Yes

B.

No

Full Access
Question # 51

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

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.

Full Access
Question # 52

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

A.

Yes

B.

No

Full Access
Question # 53

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

A.

Yes

B.

No

Full Access
Question # 54

Is this statement correct?

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

A.

Yes

B.

No

Full Access
Question # 55

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.

A.

Yes

B.

No

Full Access
Question # 56

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

Solution.Host

A.

Yes

B.

No

Full Access
Question # 57

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

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

A.

Yes

B.

No

Full Access