Docker DCA Practice Test - Questions Answers
List of questions
Related questions
Will this command display a list of volumes for a specific container?
Solution. 'docker container inspect nginx'
Yes
No
Is this an advantage of multi-stage builds?
Solution. better logical separation of Dockerfile instructions for increased readability
Yes
No
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'
Yes
No
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/udp dns-cache'
Yes
No
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. Set containers. Mounts. hostBinding: /data in the container's specification.
Yes
No
During development of an application meant to be orchestrated by Kubemetes, you want to mount the /data directory on your laptop into a container.
Will this strategy successfully accomplish this?
Solution. Create a Persistent VolumeClaim requesting storageClass:'''' (which defaults to local storage) and hostPath: /data, and use this to populate a volume in a pod.
Yes
No
Is this an advantage of multi-stage builds?
Solution: better caching when building Docker images
Yes
No
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 persistentVolumeClaim is created that specifies a pre-defined provisioner.
Yes
No
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.
Yes
No
Is this the purpose of Docker Content Trust?
Solution. Sign and verify image tags.
Yes
No
Question