ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 192 - DOP-C01 discussion

Report
Export

In which Docker Swarm model does the swarm manager distribute a specific number of replica tasks among the nodes based upon the scale you set in the desired state?

A.
distributed services
Answers
A.
distributed services
B.
scaled services
Answers
B.
scaled services
C.
replicated services
Answers
C.
replicated services
D.
global services
Answers
D.
global services
Suggested answer: C

Explanation:

A service is the definition of the tasks to execute on the worker nodes. It is the central structure of the swarm system and the primary root of user interaction with the swarm. When you create a service, you specify which container image to use and which commands to execute inside running containers. In the replicated services model, the swarm manager distributes a specific number of replica tasks among the nodes based upon the scale you set in the desired state. For global services, the swarm runs one task for the service on every available node in the cluster. A task carries a Docker container and the commands to run inside the container. It is the atomic scheduling unit of swarm. Manager nodes assign tasks to worker nodes according to the number of replicas set in the service scale. Once a task is assigned to a node, it cannot move to another node. It can only run on the assigned node or fail.

Reference: https://docs.docker.com/engine/swarm/key-concepts/#services-and-tasks

asked 16/09/2024
janet phillips
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first