Show List

Quiz - Docker - 4

68%

Public Average Score
Select the right answer for below questions:

Which of the following statements is true about Docker volumes?
Volumes are always stored in the container's file system
Volumes can only be used by one container at a time
Volumes can be backed up as part of the Docker image
Volumes can be used to persist data between container runs
Volumes can be used to persist data between container runs

Which of the following commands is used to create a new Docker container?
docker new
docker create
docker make
docker init
docker create

What is the purpose of the Docker registry?
To store Docker images
To manage Docker networks
To run Docker containers
To monitor Docker container health
To store Docker images

Which of the following statements is true about Docker overlay networks?
Overlay networks can only be used with a single Docker host
Overlay networks are created automatically by Docker
Overlay networks are used to connect Docker containers across multiple hosts
Overlay networks are used to manage Docker volumes
Overlay networks are used to connect Docker containers across multiple hosts

What is the purpose of the Docker login command?
To create a new Docker image
To start a Docker container
To authenticate with a Docker registry
To manage Docker networks
To authenticate with a Docker registry

Which of the following commands is used to view the logs for a Docker container?
docker log
docker view
docker logs
docker monitor
docker logs

What is the purpose of the Docker-compose up command?
To start a new Docker container
To start a Docker container that was previously stopped
To build a new Docker image
To start a multi-container Docker application defined in the Docker Compose file
To start a multi-container Docker application defined in the Docker Compose file

Which of the following statements is true about Docker swarm mode?
Swarm mode is used to manage a single Docker host
Swarm mode is used to manage a cluster of Docker hosts
Swarm mode is used to manage Docker images
Swarm mode is used to manage Docker volumes
Swarm mode is used to manage a cluster of Docker hosts

Which of the following commands is used to remove a Docker container?
docker stop
docker kill
docker rm
docker remove
docker rm

What is the purpose of a Docker image?
To store data created by a Docker container
To run a Docker container
To build a Docker container
To configure a Docker container
To run a Docker container

Submit
Retry
{"qz1-450443":"Volumes can be used to persist data between container runs","qz1-450444":"docker create","qz1-450445":"To store Docker images","qz1-450446":"Overlay networks are used to connect Docker containers across multiple hosts","qz1-450447":"To authenticate with a Docker registry","qz1-450448":"docker logs","qz1-450449":"To start a multi-container Docker application defined in the Docker Compose file","qz1-450450":"Swarm mode is used to manage a cluster of Docker hosts","qz1-450451":"docker rm","qz1-450452":"To run a Docker container"}

    Leave a Comment


  • captcha text