DCA Exam Questions

Total 166 Questions

Last Updated Exam : 16-Dec-2024

Which of the following namespaces is disabled by default and must be enabled at Docker engine runtime in order to be used?


A.

user


B.

pid


C.

net


D.

mnt





A.
  

user



How do you configure Docker engine to use a registry that is not configured with TLS certificates from a
trusted CA?


A.

Set IGNORE_TLS in the 'daemon.json' configuration file.


B.

Set and export the IGNORE_TLS environment variable on the command line


C.

Set INSECURE_REGISTRY in the '/etc/docker/default' configuration file


D.

Pass the '--insecure.-registry' flag to the daemon at run time





D.
  

Pass the '--insecure.-registry' flag to the daemon at run time



Which of the following is required to install Docker EE from a package repository?


A.

Repository URL obtained from Docker Store


B.

License key obtained from Docker Store


C.

Repository URL obtained from Docker Hub


D.

License key obtained from Docker Hub





A.
  

Repository URL obtained from Docker Store



A host machine has four CPUs available and two running containers. The sysadmin would like to assign two CPUs to each container. Which of the following commands achieves this?


A.

Set the '--cpuset-cpu's flag to '1.3' on one container and '2.4' on the other container.


B.

Set the '--cpuset-cpus' flag to '.5' on both containers


C.

Set the '--cpuset-cpus' flag of the 'dockerd' process to the value 'even-spread'


D.

Set the '--cpu-quota' flag to '1.3' on one container and '2,4' on the other container.





B.
  

Set the '--cpuset-cpus' flag to '.5' on both containers



Which command interactively monitors all container activity in the Docker engine?


A.

docker system logs


B.

docker system events


C.

docker container events


D.

docker container logs





B.
  

docker system events



After creating a new service named 'http', you notice that the new service is not registering as healthy. How do
you view the list of historical tasks for that service by using the command line?


A.

'docker inspect http'


B.

'docker service inspect http'


C.

'docker service ps http'


D.

'docker ps http'





B.
  

'docker service inspect http'



When using the Docker client to push an image to a registry, what environment variable is used to instruct the client to perform signing of the image?


A.

DOCKER_CONTENT_TRUST=1


B.

DOCKER_IMAGE_SIGN=1


C.

DOCKER_PUSH_SIGN=1


D.

NOTARY_ENABLE=1





A.
  

DOCKER_CONTENT_TRUST=1



Which of the following commands starts a Redis container and configures it to always restart unless it is
explicitly stopped or Docker is restarted?


A.

'docker run -d --restart-policy unless-stopped redis'


B.

'docker run -d --restart omit-stopped redis'


C.

'docker run -d --restart unless-stopped redis'


D.

'docker run -d --failure omit-stopped redis'





A.
  

'docker run -d --restart-policy unless-stopped redis'



Which of the following is supported by control groups?


A.

Manage certificates


B.

Collect net


C.

Limit CPU usage within a container


D.

Isolate processes in a container





C.
  

Limit CPU usage within a container



What is the difference between the ADD and COPY dockerfile instructions? (choosen 2)


A.

ADD supports compression format handling while COPY does not.


B.

COPY supports regular expression handling while ADD does not.


C.

COPY supports compression format handling while ADD does not.


D.

ADD support remote URL handling while COPY does not.


E.

ADD supports regular expression handling while COPY does not.





D.
  

ADD support remote URL handling while COPY does not.




Page 5 out of 17 Pages
Previous