exam questions

Exam 701-100 All Questions

View all questions & answers for the 701-100 exam

Exam 701-100 topic 1 question 22 discussion

Actual exam question from LPI's 701-100
Question #: 22
Topic #: 1
[All 701-100 Questions]

What statement is true regarding the Swarm service created by the following command? docker service create --name myweb --network webnet --mode global nginx

  • A. It runs exactly one time in the Swarm and cannot be scaled.
  • B. It runs exactly once on each node in a Swarm.
  • C. It runs on one node by default and can be scaled to an arbitrary number of replicas.
  • D. It runs on all nodes which provide the network webnet.
  • E. It runs only on those nodes which support the network type global.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hmagroun
Highly Voted 3 years, 3 months ago
it's "B" "Set service mode (--mode) The service mode determines whether this is a replicated service or a global service. A replicated service runs as many tasks as specified, while a global service runs on each active node in the swarm." see: https://docs.docker.com/engine/reference/commandline/service_create/#set-service-mode---mode
upvoted 8 times
...
Peixinho
Most Recent 2 months, 3 weeks ago
The correct answer is D. The command docker service create --name myweb --network webnet --mode global nginx creates a Swarm service named "myweb" using the "nginx" image. The --network webnet option specifies that the service should be connected to the "webnet" overlay network. The --mode global option specifies that the service should run one replica per node, on all nodes which provide the "webnet" network. Therefore, the service runs on all nodes which provide the network "webnet". Option B is incorrect because the --mode global option ensures that the service runs once on each node that provides the specified network.
upvoted 1 times
...
[Removed]
1 year, 4 months ago
Selected Answer: B
It’s B https://docs.docker.com/engine/swarm/services/#replicated-or-global-services
upvoted 3 times
...
Blob21
2 years ago
https://docs.docker.com/engine/swarm/how-swarm-mode-works/services/ its B
upvoted 1 times
...
pavkata
3 years, 1 month ago
while a global service runs on each active node in the swarm. https://docs.docker.com/engine/reference/commandline/service_create/
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago