XK0-006 Automation, Orchestration, and Scripting Practice Question
An administrator needs to create a Docker network of type 'bridge' so that containers can communicate with each other by name. Which command creates a user-defined bridge network named 'my-net'?
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
✓
docker network create -d bridge my-net
User-defined bridge networks provide automatic DNS resolution between containers. The command is 'docker network create' with the -d (driver) flag.
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 network create my-net
Why it's wrong here
This command creates a network with the default driver, which is bridge, so it would also create a bridge network. However, the question expects the explicit use of -d bridge to specify the driver, making this option less precise and not the best answer.
- ✗
docker create network -d bridge my-net
Why it's wrong here
The syntax 'docker create network' is incorrect. The correct command is 'docker network create'.
- ✗
docker network create --driver=overlay my-net
Why it's wrong here
This command creates an overlay network, not a bridge network. Overlay is used for multi-host networking.
- ✓
docker network create -d bridge my-net
Why this is correct
This command correctly creates a user-defined bridge network named 'my-net' using the -d flag to specify the bridge driver. It provides automatic DNS resolution between containers.
Visual reference
Go deeper
Related to this question
Learn chapter
User and Group Administration
Key term
DNS
DNS is the system that translates human-friendly domain names like example.com into machine-readable IP addresses so computers can find each other on a network.
Key term
User
A user is any person, system, or device that interacts with an IT service, resource, or identity system, typically authenticated through credentials and authorized to perform specific actions.
About these practice questions
This XK0-006 question is part of Courseiva's 979-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 XK0-006 practice question is part of Courseiva's free CompTIA 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 XK0-006 exam.