Docker Networking MCQs with answers Page - 1

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 is the default network driver in Docker?

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

A

Admin • 802.91K Points
Coach

Q. Which Docker network driver allows containers on the same host to communicate?

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

A

Admin • 802.91K Points
Coach

Q. What does the 'host' network driver do in Docker?

  • (A) Assigns a random port
  • (B) Isolates container from the host
  • (C) Removes networking capabilities
  • (D) Uses the host's network stack directly

A

Admin • 802.91K Points
Coach

Q. Which network driver is used for multi-host networking?

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

A

Admin • 802.91K Points
Coach

Q. Which command lists all Docker networks?

  • (A) docker network show
  • (B) docker list networks
  • (C) docker network ls
  • (D) docker networks

A

Admin • 802.91K Points
Coach

Q. Which command is used to connect a container to a network?

  • (A) docker attach network
  • (B) docker network connect
  • (C) docker connect container
  • (D) docker join network

A

Admin • 802.91K Points
Coach

Q. What happens when a container is started with --network=none?

  • (A) It uses the default bridge network
  • (B) It is isolated from all networks
  • (C) It connects to the host network
  • (D) It joins a user-defined bridge

A

Admin • 802.91K Points
Coach

Q. Which driver should be used to assign a container an IP from the local LAN?

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

A

Admin • 802.91K Points
Coach

Q. What is required to use the overlay network?

  • (A) Bridge container
  • (B) Docker daemon restart
  • (C) Swarm mode
  • (D) Network port exposure

A

Admin • 802.91K Points
Coach

Q. How can you inspect a Docker network?

  • (A) docker inspect network
  • (B) docker network inspect
  • (C) docker show network
  • (D) docker network status
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