Docker Networking MCQs with answers Page - 2

You will find multiple-choice questions (MCQs) related to #Docker Networking here. Go through these questions to prepare effectively for your upcoming exams and interviews.

To view the correct answer for any question, simply click the "Show Answer" button.

Have a question to share? Click on "Add Question" to contribute!

A

Admin • 802.91K Points
Coach

Q. Which network driver provides the highest level of network isolation?

  • (A) none
  • (B) bridge
  • (C) host
  • (D) macvlan

A

Admin • 802.91K Points
Coach

Q. Can you connect a container to multiple Docker networks?

  • (A) Yes
  • (B) No
  • (C) Only on bridge
  • (D) Only in Swarm

A

Admin • 802.91K Points
Coach

Q. What is the default subnet range of the Docker bridge network?

  • (A) 192.168.0.0/16
  • (B) 172.17.0.0/16
  • (C) 10.0.0.0/8
  • (D) 172.30.0.0/16

A

Admin • 802.91K Points
Coach

Q. What is the function of a network alias in Docker?

  • (A) Assigns IP addresses
  • (B) Provides DNS-based names
  • (C) Acts as a backup route
  • (D) Encrypts traffic

A

Admin • 802.91K Points
Coach

Q. What does the `--internal` flag do when creating a Docker network?

  • (A) Makes the network encrypted
  • (B) Allows only internal container communication
  • (C) Enables port forwarding
  • (D) Disables Docker DNS

A

Admin • 802.91K Points
Coach

Q. Can a user-defined bridge network have custom subnet and gateway?

  • (A) No
  • (B) Yes, but only on Windows
  • (C) Yes
  • (D) Only in Swarm

A

Admin • 802.91K Points
Coach

Q. Which Docker command removes a network?

  • (A) docker network rm
  • (B) docker rm network
  • (C) docker network delete
  • (D) docker remove network

A

Admin • 802.91K Points
Coach

Q. In a Docker network, which service provides DNS-based container name resolution?

  • (A) etcd
  • (B) Consul
  • (C) embedded DNS server
  • (D) Swarm Agent

A

Admin • 802.91K Points
Coach

Q. What does Docker use for internal DNS resolution?

  • (A) /etc/hosts only
  • (B) External DNS only
  • (C) Built-in DNS server
  • (D) Swarm DNS

A

Admin • 802.91K Points
Coach

Q. What happens if you remove a network with active containers connected?

  • (A) It removes containers too
  • (B) It throws an error
  • (C) It silently fails
  • (D) It disconnects containers automatically
What's Tag

As you may know, questions are organized under broad categories. Each category can include various types of questions. For example, the "History" category might contain questions about the Revolt of 1857, Shivaji Maharaj, Ancient History, Buddhism, and more.

To further refine this organization, we've introduced tags, which act as sub-categories to group questions more specifically.

Verified users can add tags to any question. If you have any suggestions regarding this system, we'd love to hear from you. Contact Us

Learn More