Docker DCA Practice Test - Questions Answers, Page 16
List of questions
Related questions
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.
Yes
No
Is this statement correct?
Solution: A Dockerfile stores the Docker daemon's configuration options.
Yes
No
Seven managers are in a swarm cluster.
Is this how should they be distributed across three datacenters or availability zones?
Solution: 4-2-1
Yes
No
Does this describe the role of Control Groups (cgroups) when used with a Docker container?
Solution: isolation between resources used by containers
Yes
No
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 run -- log driver=splunk for every container at run time
Yes
No
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.
Yes
No
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.
Yes
No
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'.
Yes
No
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.
Yes
No
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.)
Pass '-trust-certificate ca.crt to the Docker client.
Place the certificate in '/etc/docker/dtr/dtr.example.com.crt' and restart the Docker daemon on all cluster nodes.
Place the certificate in /etc/docker/certs.d/dtr.example.com/ca.crt' on all cluster nodes.
Pass -- insecure-registry to the Docker client.
Place the certificate in your OS certificate path, trust the certificate system- wide, and restart the Docker daemon across all cluster nodes.
Question