Docker DCA Practice Test - Questions Answers, Page 9
List of questions
Related questions
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: Create a PersistentVolume with storageciass: '' and hostPath: /data, and a persistentVolumeClaim requesting this PV. Then use that PVC to populate a volume in a pod
Yes
No
Is this an advantage of multi-stage builds?
Solution: optimizes Images by copying artifacts selectively from previous stages
Yes
No
Will this command list all nodes in a swarm cluster from the command line?
Solution: 'docker swarm nodes'
Yes
No
Will this command list all nodes in a swarm cluster from the command line?
Solution: 'docker node Is'
Yes
No
Will this command list all nodes in a swarm cluster from the command line?
Solution: 'docker Is -a'
Yes
No
Is this a type of Linux kernel namespace that provides container isolation?
Solution: Storage
Yes
No
Is this a type of Linux kernel namespace that provides container isolation?
Solution: Network
Yes
No
Is this a type of Linux kernel namespace that provides container isolation?
Solution: Authentication
Yes
No
Is this statement correct?
Solution: A Dockerfile provides instructions for building a Docker image
Yes
No
A users attempts to set the system time from inside a Docker container are unsuccessful. Could this be blocking this operation?
Solution: inter-process communication
Yes
No
Question