Automation, Orchestration, and Scripting
A team needs a monitoring agent service that runs exactly one task on every node in the swarm, including nodes that join later, without anyone changing the service afterward. How should the service be created?
Show the answer
Correct answerC. With --mode global so that one task runs on every node
Global mode places one task on every node and automatically adds one when a new node joins. A fixed replica count does not follow cluster growth, and the worker-role constraint would also exclude manager nodes.