Bird
0
0

Why does Docker swarm allow multiple replicas of a service to run on the same node when scaling?

hard📝 Conceptual Q10 of 15
Docker - Swarm
Why does Docker swarm allow multiple replicas of a service to run on the same node when scaling?
ATo maximize resource usage and ensure service availability
BBecause Docker cannot detect node capacity
CTo avoid network conflicts between containers
DBecause replicas must always run on the same node
Step-by-Step Solution
Solution:
  1. Step 1: Understand swarm scheduling goals

    Swarm aims to use resources efficiently and keep services available.
  2. Step 2: Explain why multiple replicas run on one node

    Running multiple replicas on one node maximizes resource use and maintains availability even with fewer nodes.
  3. Final Answer:

    To maximize resource usage and ensure service availability -> Option A
  4. Quick Check:

    Swarm schedules for resource use and availability [OK]
Quick Trick: Swarm balances load and availability by replica placement [OK]
Common Mistakes:
  • Thinking Docker ignores node capacity
  • Believing replicas must be on separate nodes
  • Confusing network conflicts with replica placement

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes