DCA Practice Test Questions

166 Questions


Which of the following is NOT backed up when performing a Docker Trusted backup operation?


A.

Access control to repos and images


B.

Repository metadata


C.

Image blobs


D.

DTR configurations





C.
  

Image blobs



A server is running low on disk space. What command can be used to check the disk usage of images,
containers, and volumes for Docker engine?


A.

'docker system df'


B.

'docker system prune'


C.

'docker system free'


D.

'docker system ps'





A.
  

'docker system df'



A user is having problems running Docker. Which of the following will start Docker in debug mode?


A.

Set the debug key to true in the 'daemon.json' file.


B.

Start the 'dockerd' process manually with the '--logging' flag set to debug


C.

Set the logging key to debug in the 'daemon.json' file.


D.

Start the 'dockerd' process manually with the '--raw-logs' flag set to debug





A.
  

Set the debug key to true in the 'daemon.json' file.



What is the difference between a resource limit and a resource reservation when scheduling services?


A.

A resource limit and a resource reservation can be used interchangeably.


B.

A resource limit is a soft limit for your service, while a reservation is hard limit and the docker engine
will do its best to keep your service at the limit.


C.

A resource limit is used to find a host with adequate resources for scheduling a hard limit for your
service, while a reservation is hard limit for your service.


D.

A resource limit is hard limit for your service, while a reservation is used to find a host with adequate resources for scheduling. Correct





A.
  

A resource limit and a resource reservation can be used interchangeably.



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'




Page 4 out of 14 Pages
Previous