Docker Swarm MCQs with answers Page - 4

You will find multiple-choice questions (MCQs) related to #Docker Swarm 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. Which feature stores sensitive data such as passwords directly in Swarm’s Raft store?

  • (A) Configs
  • (B) Volumes
  • (C) Secrets
  • (D) Labels

A

Admin • 828.03K Points
Coach

Q. What scheduler strategy spreads tasks evenly across nodes by default?

  • (A) binpack
  • (B) spread
  • (C) random
  • (D) priority

A

Admin • 828.03K Points
Coach

Q. Which command rolls back a service to the previous working configuration?

  • (A) docker service revert <service>
  • (B) docker service rollback <service>
  • (C) docker service undo <service>
  • (D) docker swarm rollback <service>

A

Admin • 828.03K Points
Coach

Q. What is the minimum recommended number of manager nodes for high availability?

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 5

A

Admin • 828.03K Points
Coach

Q. Which flag specifies the maximum number of task failures allowed during an update before rollback?

  • (A) --update-max-failure-ratio
  • (B) --update-monitor
  • (C) --rollback-parallelism
  • (D) --health-failures

A

Admin • 828.03K Points
Coach

Q. Which built-in network handles external load-balanced traffic to Swarm services?

  • (A) ingress
  • (B) frontend
  • (C) gateway
  • (D) macvlan

A

Admin • 828.03K Points
Coach

Q. How can you label a node for placement decisions?

  • (A) docker node label add <node> key=value
  • (B) docker node tag <node> key=value
  • (C) docker swarm label <node> key=value
  • (D) docker node set-label <node> key=value

A

Admin • 828.03K Points
Coach

Q. What field in a service definition tells Swarm to recreate tasks if they exit?

  • (A) restart_policy
  • (B) update_config
  • (C) rollback_config
  • (D) task_template

A

Admin • 828.03K Points
Coach

Q. Which command displays detailed information about a single service, including its update status?

  • (A) docker service ps <service>
  • (B) docker service inspect <service>
  • (C) docker service logs <service>
  • (D) docker service status <service>

A

Admin • 828.03K Points
Coach

Q. What Swarm feature allows you to mount immutable configuration files into containers?

  • (A) Secrets
  • (B) Configs
  • (C) Volumes
  • (D) Labels
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