Docker Networking MCQs with answers Page - 5

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 • 828.03K Points
Coach

Q. What type of network driver is required for multi-host container communication?

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

A

Admin • 828.03K Points
Coach

Q. Which Docker network type provides no external network access?

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

A

Admin • 828.03K Points
Coach

Q. In a 'bridge' network, how do containers communicate with each other?

  • (A) Using container name or IP address
  • (B) Only through exposed ports
  • (C) They cannot communicate
  • (D) Only via host machine

A

Admin • 828.03K Points
Coach

Q. Which network driver uses the host’s networking stack directly?

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

A

Admin • 828.03K Points
Coach

Q. What does the command `docker inspect <network>` show?

  • (A) Running containers
  • (B) Network configuration details
  • (C) Volumes in use
  • (D) Docker logs

A

Admin • 828.03K Points
Coach

Q. What is the scope of a custom bridge network?

  • (A) Global
  • (B) Host-only
  • (C) Swarm-wide
  • (D) Local

A

Admin • 828.03K Points
Coach

Q. Which option connects a container to multiple networks?

  • (A) --net
  • (B) --link
  • (C) docker network connect
  • (D) docker multi-net

A

Admin • 828.03K Points
Coach

Q. Which file can define networks in Docker Compose?

  • (A) Dockerfile
  • (B) networks.json
  • (C) docker-compose.yml
  • (D) docker.config

A

Admin • 828.03K Points
Coach

Q. What is the default subnet used in bridge mode?

  • (A) 172.17.0.0/16
  • (B) 192.168.1.0/24
  • (C) 10.10.0.0/8
  • (D) 127.0.0.1/8

A

Admin • 828.03K Points
Coach

Q. What does the `--driver` option in `docker network create` specify?

  • (A) Container name
  • (B) Container runtime
  • (C) Network type
  • (D) Docker image
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