Bird
0
0

You want to deploy a multi-service application in Docker Swarm where services communicate over an overlay network. Which steps correctly set this up?

hard📝 Workflow Q8 of 15
Docker - Swarm
You want to deploy a multi-service application in Docker Swarm where services communicate over an overlay network. Which steps correctly set this up?
ADeploy services first, then create overlay network and attach services manually.
BCreate bridge network on each node, deploy services attached to bridge networks.
CCreate overlay network, deploy services attached to it, ensure nodes can communicate.
DUse host network driver for all services to enable cross-node communication.
Step-by-Step Solution
Solution:
  1. Step 1: Plan overlay network creation

    Create the overlay network before deploying services so they can attach to it.
  2. Step 2: Deploy services attached to overlay network and verify node communication

    Services must be attached to the overlay network and nodes must have network connectivity.
  3. Final Answer:

    Create overlay network, deploy services attached to it, ensure nodes can communicate. -> Option C
  4. Quick Check:

    Overlay network must exist before service deployment [OK]
Quick Trick: Create overlay network first, then deploy services attached to it [OK]
Common Mistakes:
  • Deploying services before network exists
  • Using bridge networks for cross-node communication
  • Using host driver which doesn't support overlay

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes