Problem Statement
Which command would you use to create a service in Docker Swarm with 3 replicas of the nginx image?
Explanation
In Swarm mode, services are the basic deployment unit. `docker service create --name web --image nginx --replicas 3` instructs the swarm to run three tasks of nginx, distribute them across available nodes, and manage their state.
