Docker Certified Associate (DCA) Test Review Questions Set 7 – Networking Part 1
Docker Certified Associate Test Review Questions Set 7 - Networking Part 1
Start
Congratulations - you have completed Docker Certified Associate Test Review Questions Set 7 - Networking Part 1.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
Which network driver type is best when you need containers running on different Docker hosts to communicate, or when multiple applications work together using swarm services?
A | Overlay networks |
B | Host networks |
C | User-defined bridge networks |
D | Macvlan networks |
Question 1 Explanation:
Reference:
https://docs.docker.com/network/#network-drivers
Question 2 |
Which of the following docker command can be used to find out all the ports mapped? (select three)
A | docker inspect |
B | docker ps |
C | docker port |
D | docker network ls |
Question 2 Explanation:
Reference:
https://docs.docker.com/engine/reference/commandline/port/#examples
Question 3 |
Which network driver type is best when you need multiple containers to communicate on the same Docker host?
A | Overlay networks |
B | Host networks |
C | Macvlan networks |
D | User-defined bridge networks |
Question 3 Explanation:
Reference:
https://docs.docker.com/network/#network-drivers
Question 4 |
What is the docker command to display detailed information on one or more networks?
A | docker network status |
B | docker inspect network |
C | docker network display |
D | docker network inspect |
Question 4 Explanation:
Reference:
https://docs.docker.com/engine/reference/commandline/network_inspect/
Question 5 |
What is the docker run option to publish a port so that an application is accesible externally?
A | docker run --publish-port |
B | docker run --open-port |
C | docker run --expose |
D | docker run --publish |
Question 5 Explanation:
Reference:
https://docs.docker.com/engine/reference/run/#expose-incoming-ports
https://docs.docker.com/engine/reference/commandline/run/#options
https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
Question 6 |
What is the docker command to connect a running container to an existing user-defined bridge?
A | docker network join |
B | docker network attach |
C | docker network connect |
D | docker connect network |
Question 6 Explanation:
Reference:
https://docs.docker.com/network/bridge/#connect-a-container-to-a-user-defined-bridge
Question 7 |
Which network driver type is best when you are migrating from a VM setup or need your containers to look like physical hosts on your network, each with a unique MAC address?
A | User-defined bridge networks |
B | Host networks |
C | Overlay networks |
D | Macvlan networks |
Question 7 Explanation:
Reference:
https://docs.docker.com/network/#network-drivers
Question 8 |
Which network driver type is best when the network stack should not be isolated from the Docker host, but you want other aspects of the container to be isolated?
A | Host networks |
B | User-defined bridge networks |
C | Overlay networks |
D | Macvlan networks |
Question 8 Explanation:
Reference:
https://docs.docker.com/network/#network-drivers
Question 9 |
What is the docker command to create a bridge network?
A | docker network deploy |
B | docker create network |
C | docker network create |
D | docker network add |
Question 9 Explanation:
Reference:
https://docs.docker.com/network/bridge/#manage-a-user-defined-bridge
https://docs.docker.com/engine/reference/commandline/network_create/
Question 10 |
Which of the following statements is false?
A | Linked containers on the default bridge network share environment variables |
B | Containers can NOT be attached and detached from user-defined networks on the fly |
C | User-defined bridges provide better isolation and interoperability between containerized applications |
D | Each user-defined network creates a configurable bridge |
E | User-defined bridges provide automatic DNS resolution between containers |
Question 10 Explanation:
Reference:
https://docs.docker.com/network/bridge/#differences-between-user-defined-bridges-and-the-default-bridge
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 10 questions to complete.
← |
List |
→ |
Return
Shaded items are complete.
1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 |
End |
Return
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
All done
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!
NOTES: For other review question sets and resources, you may want to check Docker Certified Associate (DCA) Certification Test Resources page.
Related Posts
-
Docker Certified Associate (DCA) Test Review Questions Set 3 - Orchestration
NOTES: For other review question sets and resources, you may want to check Docker Certified Associate…
-
Docker Certified Associate (DCA) Test Review Questions Set 4 - Orchestration
NOTES: For other review question sets and resources, you may want to check Docker Certified Associate…
-
Docker Certified Associate (DCA) Test Review Questions Set 9 - Security
NOTES: For other review question sets and resources, you may want to check Docker Certified Associate…