Online Exam Quiz

questionQuestion  1 to 30

What is the command to display real-time statistics of Docker containers?

  • docker stats
  • docker status
  • docker info
  • docker top
Mark for review

Which option is used with docker run to set environment variables?

  • -e
  • -v
  • -p
  • -d
Mark for review

How do you connect a Docker container to a network?

  • docker network join
  • docker network add
  • docker network connect
  • docker network link
Mark for review

What is the default storage driver for Docker on most Linux distributions?

  • overlay2
  • aufs
  • devicemapper
  • zfs
Mark for review

What is the command to list all running Docker containers?

  • docker ps
  • docker ls
  • docker containers
  • docker list
Mark for review

How do you attach to a running Docker container?

  • docker connect
  • docker attach
  • docker join
  • docker link
Mark for review

What is Docker Swarm?

  • A type of Docker container
  • A tool for monitoring Docker containers
  • Docker's native clustering and orchestration tool
  • A Docker storage driver
Mark for review

What is the purpose of the HEALTHCHECK instruction in a Dockerfile?

  • To specify the health check command for a container
  • To define environment variables
  • To define container volumes
  • To specify container ports
Mark for review

What is the purpose of the LABEL instruction in a Dockerfile?

  • To add metadata to an image
  • To define container environment variables
  • To specify commands to run
  • To define default ports
Mark for review

How do you start a stopped Docker container?

  • docker run
  • docker restart
  • docker start
  • docker boot
Mark for review

What is a Docker volume used for?

  • Storing Docker images
  • Persistent storage for containers
  • Networking containers
  • Scaling containers
Mark for review

What is the default name of the Docker network driver?

  • bridge
  • host
  • none
  • default
Mark for review

Which Docker component allows you to run multiple containers on multiple hosts?

  • Docker Compose
  • Docker Swarm
  • Docker Machine
  • Docker Engine
Mark for review

What is the role of Docker Engine?

  • To manage Docker images
  • To provide the runtime for Docker containers
  • To build Docker containers
  • To orchestrate Docker containers
Mark for review

Which command is used to restart a Docker container?

  • docker restart
  • docker rerun
  • docker reload
  • docker renew
Mark for review

What does the command 'docker system prune' do?

  • Removes all unused data
  • Removes all Docker containers
  • Removes all Docker images
  • Removes all Docker networks
Mark for review

How do you access the shell inside a running Docker container?

  • docker exec -it
  • docker run -it
  • docker attach
  • docker connect
Mark for review

What is Docker Machine used for?

  • Creating and managing Docker hosts
  • Building Docker images
  • Running Docker containers
  • Orchestrating Docker services
Mark for review

What is the purpose of the USER instruction in a Dockerfile?

  • To specify the user to run the container as
  • To define environment variables
  • To specify the user to build the image as
  • To define the base image
Mark for review

How do you rename a Docker container?

  • docker rename
  • docker name
  • docker mv
  • docker retag
Mark for review

What is the purpose of the ENTRYPOINT instruction in a Dockerfile?

  • To specify the default command to run
  • To specify environment variables
  • To specify default ports
  • To specify base image
Mark for review

What is the command to list all nodes in a Docker Swarm?

  • docker swarm ls
  • docker node ls
  • docker nodes
  • docker swarm nodes
Mark for review

What is the purpose of a Dockerfile?

  • To manage Docker images
  • To manage Docker containers
  • To automate the deployment of applications inside containers
  • To define the steps to create a Docker image
Mark for review

How do you run a container in the background?

  • docker run -d
  • docker run -b
  • docker run --background
  • docker run --detach
Mark for review

Which command is used to create a Docker container?

  • docker run
  • docker build
  • docker create
  • docker start
Mark for review

How do you scale services in Docker Swarm?

  • docker service scale
  • docker scale
  • docker-compose scale
  • docker swarm scale
Mark for review

What is the purpose of the EXPOSE instruction in a Dockerfile?

  • To expose environment variables
  • To expose a container's ports
  • To expose container volumes
  • To expose container's filesystem
Mark for review

Which file is used to define a Docker image?

  • Dockerfile
  • Docker-compose.yml
  • Docker-config.yml
  • Docker-image.yml
Mark for review

Which Docker command is used to see the logs of a container?

  • docker logs
  • docker inspect
  • docker status
  • docker show
Mark for review

How do you check the Docker daemon logs?

  • docker logs daemon
  • docker log
  • systemctl status docker
  • docker info
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review