701-100 DevOps Tools Engineer Exam

Loading demo links...

Showing 1–3 of 10 questions

Question 1

A Dockerfile contains the statements:

COPY data/ /data/

VOLUME /data

What happens when the resulting container is started without any additional volume configuration? (Choose two correct answers.)

Select all that apply, then click Submit answer.

  • Files existing in /data/ in the image are not available in the running container.

  • Changes to files within /data/ affect the Docker image and all other containers derived from it.

  • Existing files from /data/ in the image are copied to the new volume.

  • An error is raised because /data/ already contains data when the volume is mounted.

  • A new volume is created and mounted to /data/ within the new container.

Question 2

Which of the following tasks are completed by docker-compose down when it is used with additional parameters? (Choose two correct answers.)

Select all that apply, then click Submit answer.

  • Delete all volumes defined in the composer file.

  • Delete all containers defined in the composer file.

  • Delete all networks defined in the composer file.

  • Delete all images used in the composer file from the Docker nodes.

  • Delete all images built from the composer file from their registry.

Question 3

Which of the statements below are true about the volume created by the following command? (Choose two correct answers.)

docker run –v /data –ti debian

Select all that apply, then click Submit answer.

  • The new /data volume contains a copy of the complete container’s base image.

  • The volume containing the container’s rootfile system is retained until the /data volume is deleted.

  • The /data volume is discarded when the container terminates.

  • The /data volume can be attached to another Docker container.

  • If the command is run a second time, another volume for /data is created.