Default Networks & Docker Network ls — DCA Practice Question
A representative Docker Certified Associate (DCA) exam question on Default Networks & Docker Network ls. Work through it below, then read why each option is right or wrong.
This question is part of the free Docker Certified Associate practice test.
Short answer
The correct answer is A. bridge, host, and none, where the none network uses the null driver.
A is correct: a fresh Engine lists the predefined networks bridge, host, and none, and the DRIVER column shows null for none. B is wrong because overlay networks connect multiple daemons and need the hosts to be part of a swarm. C is wrong because null is the driver name of the none network, not a network name. D is wrong because a macvlan network exists only after someone creates it with docker network create -d macvlan.
The Question
A Linux host runs a freshly installed Docker Engine and nobody has created a network yet. Which networks does docker network ls list?
Why A is correct
A is correct: a fresh Engine lists the predefined networks bridge, host, and none, and the DRIVER column shows null for none. B is wrong because overlay networks connect multiple daemons and need the hosts to be part of a swarm. C is wrong because null is the driver name of the none network, not a network name. D is wrong because a macvlan network exists only after someone creates it with docker network create -d macvlan.
Why the other options are wrong
Option B does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.
Option C does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.
Option D does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.
Key idea: Default Networks & Docker Network ls
A is correct: a fresh Engine lists the predefined networks bridge, host, and none, and the DRIVER column shows null for none. B is wrong because overlay networks connect multiple daemons and need the hosts to be part of a swarm. C is wrong because null is the driver name of the none network, not a network name. D is wrong because a macvlan network exists only after someone creates it with docker network create -d macvlan. On the DCA exam, questions in the "Networking" domain test whether you can map a scenario's constraints to the right choice. Read the requirement carefully, eliminate options that violate any single constraint, and pick the one that satisfies all of them with the least operational overhead.
Ready to see how you'd score?
Take the free practice quiz and find out which Docker Certified Associate domains you need to focus on. No signup required.
Practice 5 similar questions
Same cert, same or adjacent domain. Use these after reviewing the explanation.
Related Docker Certified Associate Practice Questions
Official sources used
Verify program and exam details at the source before scheduling.