▶ MCQ Portal
Home
Medical
Neet-Ug
4
Ssc-Cgl
General_Awareness
5
Devops
Ansible
10
Aws
5
Azure
10
Docker
5
Jenkins
5
Kubernetes
5
Terraform
10
⚑ Feedback
Home
docker
Exam3
Exam3
devops / docker
• 5 questions
Question 1 of 5
What is Docker Compose primarily used for?
A.
Building optimized production Docker images
B.
Defining and running multi-container applications with a single configuration file
C.
Monitoring container resource usage
D.
Pushing images to container registries
Question 2 of 5
What file format does Docker Compose use for its configuration?
A.
JSON
B.
TOML
C.
YAML
D.
XML
Question 3 of 5
Which command starts all services defined in a docker-compose.yml file?
A.
docker-compose run
B.
docker-compose up
C.
docker-compose start
D.
docker-compose build
Question 4 of 5
What does the `depends_on` directive do in a docker-compose.yml?
A.
Defines CPU and memory resource limits for a service
B.
Specifies service startup order so dependencies start before dependent services
C.
Maps environment variables from a file into the service
D.
Sets the container restart policy
Question 5 of 5
Which command stops and removes containers, networks, and volumes defined in docker-compose.yml?
A.
docker-compose stop
B.
docker-compose rm
C.
docker-compose down
D.
docker-compose kill
← Back
Submit Answers ✓