mediumMultiple SelectObjective-mapped
200-901 Practice Question: A developer is deploying a containerized…
A developer is deploying a containerized application using Docker Compose. Which TWO statements about Docker Compose are correct?
⚠ Common exam trap
Cisco often tests the misconception that Docker Compose is only for swarm mode or that it requires JSON files, when in fact it works standalone and uses YAML as its native format.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The docker-compose up command builds, (re)creates, starts, and attaches to containers for a service.
`docker-compose up` is the primary command that builds images if needed, (re)creates containers, starts them, and attaches to their output. This behavior is documented in the Docker Compose CLI reference and is fundamental to how Compose orchestrates multi-service deployments.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Docker Compose can only be used with swarm mode.
Why it's wrong here
Compose works standalone without swarm.
- ✗
Services in a compose file can be scaled using the docker-compose scale command.
Why it's wrong here
The scale command is deprecated; use up --scale instead.
- ✓
The docker-compose up command builds, (re)creates, starts, and attaches to containers for a service.
Why this is correct
This is the behavior of docker-compose up.
- ✓
Docker Compose is used to define and run multi-container Docker applications.
Why this is correct
This is the primary purpose of Docker Compose.
- ✗
Docker Compose files are written in JSON format only.
Why it's wrong here
YAML is the default format; JSON is also supported but not only.
Go deeper
Related to this question
About these practice questions
This 200-901 question is part of Courseiva's 989-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.