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

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

Page: 1 / 19
Total 191 questions

Docker Certified Associate (DCA) Exam Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$43.75  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$38.5  $109.99
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

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

Question 3

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

Solution: mnt

Options:

A.

Yes

B.

No

Question 4

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 5

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 6

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

Solution: Manually delete all layers used by the image on the disk from the Docker Trusted Registry.

Options:

A.

Yes

B.

No

Question 7

Is this a function of UCP?

Solution: scans images to detect any security vulnerability

Options:

A.

Yes

B.

No

Question 8

Is this an advantage of multi-stage builds?

Solution: better caching when building Docker images

Options:

A.

Yes

B.

No

Question 9

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

Question 10

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 11

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 containers on the bridge network

Options:

A.

Yes

B.

No

Question 12

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 13

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

Question 14

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 15

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 the user directly to the list of users with read/write access under the repository's Permissions tab.

Options:

A.

Yes

B.

No

Question 16

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 17

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

Question 18

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 logs

Options:

A.

Yes

B.

No

Question 19

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 20

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

Solution: docker volume logs nginx --containers'

Options:

A.

Yes

B.

No

Question 21

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 22

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

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

Options:

A.

Yes

B.

No

Question 24

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.

Options:

A.

Yes

B.

No

Question 25

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.

Options:

A.

Yes

B.

No

Question 26

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 27

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.

Question 28

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 29

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 30

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 31

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 32

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'

Options:

A.

Yes

B.

No

Question 33

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

Question 34

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 8080 will be routed to port 80 in a random pod with the label aPP: nginx.

Options:

A.

Yes

B.

No

Question 35

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

Question 36

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 37

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.

Options:

A.

Yes

B.

No

Question 38

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. If the test fails, the container will be restarted three times before it gets rescheduled.

Options:

A.

Yes

B.

No

Question 39

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

Solution. ‘docker inspect nodes

Options:

A.

Yes

B.

No

Question 40

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 41

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

Solution. ‘docker container inspect", docker port'

Options:

A.

Yes

B.

No

Question 42

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

Question 43

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 44

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 45

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 46

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

Solution. ‘docker container inspect nginx’

Options:

A.

Yes

B.

No

Question 47

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.

Options:

A.

Yes

B.

No

Question 48

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 and mount it directly into the appropriate pod and container using the .spec.containers.configMounts key.

Options:

A.

Yes

B.

No

Question 49

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 50

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.

Options:

A.

Yes

B.

No

Question 51

Is this statement correct?

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

Options:

A.

Yes

B.

No

Question 52

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

Solution.docker network create -d overlay --secure

Options:

A.

Yes

B.

No

Question 53

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

Solution: Storage

Options:

A.

Yes

B.

No

Question 54

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 55

When an application being managed by UCP fails, you would like a summary of all requests made to the UCP API in the hours leading up to the failure.

What must be configured correctly beforehand for this to be possible?

Options:

A.

All engines in the cluster must have their log driver set to the 'metadata' or 'request' level.

B.

UCP logging levels must be set to the info' or debug' level.

C.

UCP audit logs must be set to the 'metadata' or 'request' level.

D.

Set the logging level in the config object for the ucp-kube-epi-server container to warning or higher

Question 56

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

Options:

A.

Yes

B.

No

Question 57

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

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.

Page: 1 / 19
Total 191 questions