Docker DCA Practice Test - Questions Answers, Page 14
List of questions
Related questions
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 logs <eontainer-id>
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. Set the log-driver-and log-opt keys to values for the logging solution (Splunk) in the daemon.json file.
Yes
No
Will this command list all nodes in a swarm cluster from the command line?
Solution. 'docker inspect nodes
Yes
No
The Kubernetes yaml shown below describes a networkPolicy.
Will the networkPolicy BLOCK this trafftc?
Solution. a request issued from a pod bearing the tier: backend label, to a pod bearing the tier: frontend label
Yes
No
Is this a Linux kernel namespace that is disabled by default and must be enabled at Docker engine runtime to be used?
Solution. pid
Yes
No
Will this command mount the host's '/data1 directory to the ubuntu container in read-only mode?
Solution. 'docker run -v /data:/mydata -mode readonly ubuntu'
Yes
No
Will this command mount the host's '/data* directory to the ubuntu container in read-only mode?
Solution. 'docker run -add-volume /data /mydata -read-only ubuntu'
Yes
No
Will this command list all nodes in a swarm cluster from the command line?
Solution. 'docker inspect nodes
Yes
No
Will This command list all nodes in a swarm cluster from the command line?
Solution. 'docker swarm nodes'
Yes
No
Is this a type of Linux kernel namespace that provides container isolation?
Solution. Process ID
Yes
No
Question