Docker Networking Basics: Bridging & Overlay Networks
A beginner's quiz on Docker's bridging and overlay networking concepts.
Questions in this quiz
15 questions on Docker Networking Basics: Bridging & Overlay Networks. Work through them here, then start the quiz to answer them and see your score.
1.What is the primary purpose of Docker's bridge network?
- ATo provide secure communication between containers
- BTo connect containers across different hosts
- CTo connect containers on the same host
- DTo connect Docker to external databases
2.Which command is used to create a new Docker bridge network?
- Adocker create bridge my_bridge
- Bdocker network bridge create my_bridge
- Cdocker network create --driver bridge my_bridge
- Ddocker network new --bridge my_bridge
3.What is a key characteristic of Docker's overlay network?
- AIt is only available on Windows
- BIt is used for container storage
- CIt connects containers across multiple hosts
- DIt connects containers on the same host
4.Which Docker command lists all available networks?
- Adocker network list
- Bdocker network show
- Cdocker network view
- Ddocker network inspect
5.How does Docker assign IP addresses in a bridge network by default?
- AUsing DHCP
- BManually by the user
- CUsing a third-party IP management tool
- DAutomatically from a predefined subnet
6.What is required to use Docker's overlay network?
- AMultiple Docker hosts and a key-value store
- BA single Docker host
- CA custom DNS server
- DA specific operating system
7.Which network driver should you use for communication between containers on the same host?
- ABridge
- BHost
- CNone
- DOverlay
8.What is the default network driver used by Docker when none is specified?
- AHost
- BBridge
- CNone
- DOverlay
9.Which command inspects a specific Docker network?
- Adocker network inspect <network_name>
- Bdocker network show <network_name>
- Cdocker network view <network_name>
- Ddocker network details <network_name>
10.What is the main advantage of using an overlay network in Docker?
- AImproved performance on a single host
- BIncreased security
- CSimplified container management
- DEnabling container communication across hosts
11.Which of the following is NOT a Docker network driver?
- AHost
- BBridge
- COverlay
- DLAN
12.What happens if a container is connected to a 'none' network?
- AIt can only communicate with the host
- BIt has no network access
- CIt can communicate with other containers
- DIt can access the internet
13.How can you connect a running container to a new network?
- Adocker network add <network_name> <container_name>
- Bdocker network connect <network_name> <container_name>
- Cdocker attach network <network_name> <container_name>
- Ddocker connect network <network_name> <container_name>
14.What is the default subnet used by Docker's bridge network?
- A192.168.0.0/16
- B172.17.0.0/16
- C192.168.1.0/24
- D10.0.0.0/8
15.Which command removes a Docker network?
- Adocker remove network <network_name>
- Bdocker network clear <network_name>
- Cdocker network delete <network_name>
- Ddocker network rm <network_name>