DCA Practice Test Questions

166 Questions


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.



What is the docker command to setup a swarm?


A.

docker swarm init


B.

docker swarm create


C.

docker init swarm


D.

docker create swarm





A.
  

docker swarm init



From a DevOps process standpoint, it is best practice to keep changes to an application in version control. Which of the following will allow changes to a docker Image to be stored in a version control system?


A.

docker commit


B.

docker save


C.

A docker-compose.yml file


D.

A dockerfile





A.
  

docker commit



Which of the following statements is true about secrets?


A.

Secrets can be created from any node in the cluster.


B.

Secrets can be modified after they are created.


C.

Secret are stored unencrypted on manager nodes.


D.

Secrets can be created using standard input (STDIN) and a file.





D.
  

Secrets can be created using standard input (STDIN) and a file.



Which statement is true about DTR garbage collection?


A.

Garbage collection removes unreferenced image layers from DTR's backend storage.


B.

Garbage collection removes exited containers from cluster nodes.


C.

Garbage collection removes DTR images that are older than a configurable of days


D.

Garbage collection removes unused volumes from cluster nodes





A.
  

Garbage collection removes unreferenced image layers from DTR's backend storage.



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


A.

Yes


B.

No





B.
  

No



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


A.

Set the value of log-driver to the name of the logging driver In the daemon.json In
/etc/doc


B.

Use the -log-driver' flag when you run a container


C.

At the command line, type: docker log driver set <driver name>


D.

Install a logging agent on the Linux host.





D.
  

Install a logging agent on the Linux host.



Will this command list all nodes in a swarm cluster from the command line?
Solution: 'docker swarm nodes'


A.

Yes


B.

No





B.
  

No



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





B.
  

No



In the context of a swarm mode cluster, does this describe a node?
Solution: a virtual machine participating in the swarm


A.

Yes


B.

No





B.
  

No



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





A.
  

Yes




Page 5 out of 14 Pages
Previous