Bird
0
0

If a worker node leaves the swarm unexpectedly, what will the docker node ls command show for that node?

medium📝 Command Output Q5 of 15
Docker - Swarm
If a worker node leaves the swarm unexpectedly, what will the docker node ls command show for that node?
AThe node will be removed immediately from the list
BThe node will be listed with status 'Down'
CThe node will show status 'Ready'
DThe command will fail with an error
Step-by-Step Solution
Solution:
  1. Step 1: Understand node status in swarm

    When a node leaves unexpectedly, it remains listed but marked as 'Down'.
  2. Step 2: Check behavior of 'docker node ls'

    The command still lists the node but shows its status as 'Down' until removed manually.
  3. Final Answer:

    The node will be listed with status 'Down' -> Option B
  4. Quick Check:

    Left node status = Down in node list [OK]
Quick Trick: Left nodes show status 'Down' until removed [OK]
Common Mistakes:
  • Assuming nodes disappear immediately
  • Expecting status to remain 'Ready'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes