DockerOrchestration

Join Token & Swarm Join — DCA Practice Question

A representative Docker Certified Associate (DCA) exam question on Join Token & Swarm Join. Work through it below, then read why each option is right or wrong.

This question is part of the free Docker Certified Associate practice test.

Short answer

The correct answer is A. A complete docker swarm join command that contains the worker join token and the manager address with port 2377.

A is correct: the join-token reference shows the output as a full docker swarm join command with --token and the manager IP and port 2377. B is wrong because only the token is printed when the -q (quiet) option is added. C is wrong because the command prints a join command, not a certificate signing request. D is wrong because join-token does not list nodes; docker node ls does that.

The Question

An administrator runs docker swarm join-token worker on a manager node. What does the command print by default?

AA complete docker swarm join command that contains the worker join token and the manager address with port 2377Correct
BOnly the bare worker join token string, with no command text and no manager address included anywhere in the output
CA certificate signing request that the new worker must send to the manager before it is allowed to join the swarm as a member
DA list of the worker nodes that have already joined the swarm together with the dates on which their join tokens were created

Why A is correct

A is correct: the join-token reference shows the output as a full docker swarm join command with --token and the manager IP and port 2377. B is wrong because only the token is printed when the -q (quiet) option is added. C is wrong because the command prints a join command, not a certificate signing request. D is wrong because join-token does not list nodes; docker node ls does that.

Why the other options are wrong

Option B: Only the bare worker join token string, with no command text and no manager address included anywhere in the output

Option B does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.

Option C: A certificate signing request that the new worker must send to the manager before it is allowed to join the swarm as a member

Option C does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.

Option D: A list of the worker nodes that have already joined the swarm together with the dates on which their join tokens were created

Option D does not satisfy the requirement in the scenario. Review the explanation above: the correct choice (A) is the only one that fully meets every constraint stated in the question.

Key idea: Join Token & Swarm Join

A is correct: the join-token reference shows the output as a full docker swarm join command with --token and the manager IP and port 2377. B is wrong because only the token is printed when the -q (quiet) option is added. C is wrong because the command prints a join command, not a certificate signing request. D is wrong because join-token does not list nodes; docker node ls does that. On the DCA exam, questions in the "Orchestration" domain test whether you can map a scenario's constraints to the right choice. Read the requirement carefully, eliminate options that violate any single constraint, and pick the one that satisfies all of them with the least operational overhead.

Ready to see how you'd score?

Take the free practice quiz and find out which Docker Certified Associate domains you need to focus on. No signup required.

Practice 5 similar questions

Same cert, same or adjacent domain. Use these after reviewing the explanation.

Related Docker Certified Associate Practice Questions

Official sources used

Verify program and exam details at the source before scheduling.