Summer Sale Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 28522818

Home > Docker > Docker Certified Associate > DCA

DCA Docker Certified Associate (DCA) Exam Question and Answers

Question # 4

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

Solution: 'docker node Is'

A.

Yes

B.

No

Full Access
Question # 5

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.

A.

Yes

B.

No

Full Access
Question # 6

Is this an advantage of multi-stage builds?

Solution: better caching when building Docker images

A.

Yes

B.

No

Full Access
Question # 7

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

Is this the purpose of Docker Content Trust?

Solution: Verify and encrypt Docker registry TLS.

A.

Yes

B.

No

Full Access
Question # 9

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

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

Solution: docker service create --network --secure

A.

Yes

B.

No

Full Access
Question # 11

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

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

A.

Yes

B.

No

Full Access
Question # 12

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

Solution: Network

A.

Yes

B.

No

Full Access
Question # 13

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

A.

Yes

B.

No

Full Access
Question # 14

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'

A.

Yes

B.

No

Full Access
Question # 15

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

A.

Yes

B.

No

Full Access
Question # 17

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

Solution. Process ID

A.

Yes

B.

No

Full Access
Question # 18

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

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

Solution: Linux capabilities

A.

Yes

B.

No

Full Access
Question # 20

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

Solution. ‘docker container logs nginx –volumes’

A.

Yes

B.

No

Full Access
Question # 21

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

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

A.

Yes

B.

No

Full Access
Question # 23

Will a DTR security scan detect this?

Solution. private keys copied to the image

A.

Yes

B.

No

Full Access
Question # 24

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

A.

Yes

B.

No

Full Access
Question # 25

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

Solution: accounting and limiting of resources

A.

Yes

B.

No

Full Access
Question # 26

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

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

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

A.

Yes

B.

No

Full Access
Question # 28

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

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

A.

Yes

B.

No

Full Access
Question # 30

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

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

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.

A.

Yes

B.

No

Full Access
Question # 33

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

Solution. ‘kubectl gel pods --all-namespaces -I 'env in (development)''

A.

Yes

B.

No

Full Access
Question # 34

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

A user's attempts to set the system time from inside a Docker container are unsuccessful.

Could this be blocking this operation?

Solution. SELinux

A.

Yes

B.

No

Full Access
Question # 36

The Kubernetes yaml shown below describes a networkPolicy.

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

A.

Yes

B.

No

Full Access
Question # 37

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

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.

A.

Yes

B.

No

Full Access
Question # 39

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

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

A.

Yes

B.

No

Full Access
Question # 41

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’

A.

Yes

B.

No

Full Access
Question # 42

Is this statement correct?

Solution: A Dockerfile provides instructions for building a Docker image

A.

Yes

B.

No

Full Access
Question # 43

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 Docker secrets for certificates.

A.

Yes

B.

No

Full Access
Question # 44

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

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: Keep a backup copy of the image on another repository.

A.

Yes

B.

No

Full Access
Question # 46

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

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

Solution: Delete the image and run garbage collection on the Docker Trusted Registry.

A.

Yes

B.

No

Full Access
Question # 48

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 this service on port 80 will be routed to port 8080 in a random pod with the label app:

nginx.

A.

Yes

B.

No

Full Access
Question # 49

Seven managers are in a swarm cluster.

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

Solution: 3-2-2

A.

Yes

B.

No

Full Access
Question # 50

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.

A.

Yes

B.

No

Full Access
Question # 51

Is this statement correct?

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

A.

Yes

B.

No

Full Access
Question # 52

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.

A.

Yes

B.

No

Full Access
Question # 53

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

Solution: a physical machine participating in the swarm

A.

Yes

B.

No

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

A.

Yes

B.

No

Full Access