← All DCA Flashcard Decks

Docker Swarm & Orchestration Flashcards

7 cards from real DCA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Docker Swarm & Orchestration flashcards as text
  1. What command initializes a Docker Swarm and makes the current node a manager?

    Answer: docker swarm init

    `docker swarm init` initializes a new Swarm on the current node and designates it as the first manager.

  2. Which TCP port does Docker Swarm use by default for manager-to-manager communication (Raft consensus)?

    Answer: 2377

    Port 2377 is reserved for Swarm cluster management communications between manager nodes.

  3. In Docker Swarm, what is a 'task'?

    Answer: A running container instance that is part of a service

    A task is the atomic scheduling unit in Swarm — it represents a single running container that belongs to a service.

  4. What command retrieves the join token needed to add a worker node to an existing Swarm?

    Answer: docker swarm join-token worker

    `docker swarm join-token worker` outputs the full `docker swarm join` command with the token required for a worker to join.

  5. What is the key difference between 'replicated' and 'global' service modes in Docker Swarm?

    Answer: Replicated services run a specified number of task copies; global services run exactly one task on every available node

    In replicated mode you define a desired replica count; in global mode, the Swarm schedules exactly one task per available node.

  6. Which command lists all nodes currently participating in a Docker Swarm?

    Answer: docker node ls

    `docker node ls` lists every node in the Swarm along with its role, status, and availability.

  7. How do you scale a replicated service named 'web' to 5 replicas in Docker Swarm?

    Answer: docker service scale web=5

    `docker service scale web=5` is the correct syntax, using `name=count` format to set the desired replica count.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. training.mirantis.com — Test delivery, eligibility, fees, passing score, renewal, retake policy, score release, time limit, score validity · verified Oct 2026