Docker Networking MCQs with answers Page - 3

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 Docker network mode allows containers to share the host’s network stack?

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

A

Admin • 802.91K Points
Coach

Q. Which network driver should be used for multi-host container communication?

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

A

Admin • 802.91K Points
Coach

Q. What is the function of the 'none' network driver?

  • (A) Disables networking
  • (B) Enables full network access
  • (C) Shares network with another container
  • (D) Creates an isolated overlay network

A

Admin • 802.91K Points
Coach

Q. How do you connect a running container to a network?

  • (A) docker connect
  • (B) docker attach network
  • (C) docker network connect
  • (D) docker net add

A

Admin • 802.91K Points
Coach

Q. What does 'docker network inspect' do?

  • (A) Lists available networks
  • (B) Shows detailed information about a network
  • (C) Removes a network
  • (D) Creates a new network

A

Admin • 802.91K Points
Coach

Q. What is required to use the overlay network driver?

  • (A) Swarm mode
  • (B) Kubernetes
  • (C) VirtualBox
  • (D) Docker Desktop

A

Admin • 802.91K Points
Coach

Q. Which flag is used to set a static IP for a container?

  • (A) --ip
  • (B) --network-ip
  • (C) --static-ip
  • (D) --fixed-ip

A

Admin • 802.91K Points
Coach

Q. Which of the following networks is created by default in Docker?

  • (A) frontend
  • (B) default
  • (C) bridge
  • (D) custom

A

Admin • 802.91K Points
Coach

Q. Which command is used to create a custom bridge network?

  • (A) docker bridge create
  • (B) docker create network
  • (C) docker network create
  • (D) docker network init

A

Admin • 802.91K Points
Coach

Q. What is the scope of a 'local' Docker network?

  • (A) Single container
  • (B) Single host
  • (C) Multiple hosts
  • (D) Global
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