Labour Day Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

DCA Exam Dumps - Docker Certified Associate (DCA) Exam

Question # 4

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 get deployment api

A.

Yes

B.

No

Full Access
Question # 5

Will a DTR security scan detect this?

Solution. image configuration poor practices, such as exposed ports or inclusion of compilers in production images

A.

Yes

B.

No

Full Access
Question # 6

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

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

A.

Yes

B.

No

Full Access
Question # 8

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

Solution: only two managers, one active and one passive.

A.

Yes

B.

No

Full Access
Question # 9

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: Add a volume to the pod that sets hostPath.path: /data, and then mount this volume into the pod's containers as desired.

A.

Yes

B.

No

Full Access
Question # 10

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

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

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

Solution: role-based access control to clustered resources

A.

Yes

B.

No

Full Access
Question # 13

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.

A.

Yes

B.

No

Full Access
Question # 14

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

A.

Yes

B.

No

Full Access
Question # 15

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

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 logs deployment api

A.

Yes

B.

No

Full Access
Question # 17

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

You are running only Kubernetes workloads on a worker node that requires

maintenance, such as installing patches or an OS upgrade.

Which command must be run on the node to gracefully terminate all pods on

the node, while marking the node as unschedulable?

A.

`docker swarm leave'

B.

`docker node update -availability drain

C.

`kubectl drain '

D.

`kubectl cordon

Full Access
Question # 19

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

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

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

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

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

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.

A.

Yes

B.

No

Full Access
Question # 25

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

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

A.

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

B.

Place the certificate in '/etc/docker/dtr/dtr.example.com.crt' and restart the

Docker daemon on all cluster nodes.

C.

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

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

Full Access
Question # 27

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

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

Solution: docker network create -d overlay -o encrypted=true

A.

Yes

B.

No

Full Access
Question # 29

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: Tag the image with 'nginx:immutable'.

A.

Yes

B.

No

Full Access
Question # 30

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"

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

A.

Yes

B.

No

Full Access
Question # 32

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

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

Solution: one manager node for two worker nodes

A.

Yes

B.

No

Full Access
Question # 34

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

Is this a function of UCP?

Solution: scans images to detect any security vulnerability

A.

Yes

B.

No

Full Access
Question # 36

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

Solution: docker service create --network --encrypted

A.

Yes

B.

No

Full Access
Question # 37

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.

A.

Yes

B.

No

Full Access
Question # 38

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

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

Solution: namespaces

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: Create one namespace for each application and add all the resources to it.

A.

Yes

B.

No

Full Access
Question # 41

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

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.

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 network attach to access the container on the bridge network.

A.

Yes

B.

No

Full Access
Question # 44

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

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

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

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

Which docker run` flag lifts cgroup limitations?

A.

`docker run -privileged

B.

`docker run -cpu-period

C.

`docker run -isolation

D.

`docker run -cap-drop

Full Access
Question # 49

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

A.

Yes

B.

No

Full Access
Question # 50

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

Solution. Process ID

A.

Yes

B.

No

Full Access
Question # 51

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

Solution: Delete '/var/lib/docker' directory.

A.

Yes

B.

No

Full Access
Question # 52

Is this the purpose of Docker Content Trust?

Solution. Indicate an image on Docker Hub is an official image.

A.

Yes

B.

No

Full Access
Question # 53

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 provisioner is specified, and subsequently a persistentVolumeClaim is created.

A.

Yes

B.

No

Full Access
Question # 54

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

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

A.

Yes

B.

No

Full Access