Docker Swarm MCQs with answers Page - 3

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 command shows whether the current Docker engine is part of an active Swarm?

  • (A) docker swarm status
  • (B) docker node ls
  • (C) docker info
  • (D) docker swarm inspect

A

Admin • 828.03K Points
Coach

Q. What flag is used with docker swarm init to advertise the manager’s reachable address?

  • (A) --advertise-addr
  • (B) --listen-addr
  • (C) --manager-addr
  • (D) --announce

A

Admin • 828.03K Points
Coach

Q. Which Swarm service mode ensures one task runs on every eligible node?

  • (A) replicated
  • (B) global
  • (C) constraint
  • (D) daemon

A

Admin • 828.03K Points
Coach

Q. What is the command to view the current join tokens for a Swarm?

  • (A) docker swarm token list
  • (B) docker node token
  • (C) docker swarm join-token
  • (D) docker service token

A

Admin • 828.03K Points
Coach

Q. Which update failure action rolls back a service to the previous version automatically?

  • (A) pause
  • (B) continue
  • (C) rollback
  • (D) shutdown

A

Admin • 828.03K Points
Coach

Q. Which scheduling filter pins a service to nodes with a specific label?

  • (A) affinity
  • (B) placement constraint
  • (C) spread
  • (D) preference

A

Admin • 828.03K Points
Coach

Q. Which command drains a node so it stops receiving new tasks?

  • (A) docker node update --availability drain <node>
  • (B) docker node disable <node>
  • (C) docker swarm drain <node>
  • (D) docker node demote <node>

A

Admin • 828.03K Points
Coach

Q. What built-in network encrypts container traffic automatically between Swarm nodes?

  • (A) ingress
  • (B) host
  • (C) encrypted overlay
  • (D) bridge

A

Admin • 828.03K Points
Coach

Q. Which directive in a service update controls how many tasks are updated simultaneously?

  • (A) --update-parallelism
  • (B) --rollback-delay
  • (C) --replicas
  • (D) --limit-rate

A

Admin • 828.03K Points
Coach

Q. How can you pause a rolling update for a Swarm service?

  • (A) docker service pause <service>
  • (B) docker service update --rollback <service>
  • (C) docker service update --update-pause <seconds>
  • (D) docker service stop <service>
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