Question 1
Topic: Domain 1: Orchestration
Skill tested: Converts a Compose deployment into a Swarm stack with replicated services and published ports.
A payments team currently starts its web tier and API with a Compose file on a single Docker host. They are moving to a Swarm with three managers and four workers. The deployment must keep three web tasks running, publish HTTPS on port 443 through the Swarm routing mesh, and keep both services on the same overlay network. The Compose file uses a feature that is not supported by `docker stack deploy`; the team has removed that unsupported setting and confirmed the remaining file uses supported stack syntax. Which actions are appropriate to deploy and then scale the web tier? Select TWO.
A stack deployment creates Swarm services from supported Compose stack configuration, including replica count, overlay networking, and published ports. `docker service scale` changes the desired replica count of the deployed service. `docker compose up` manages standalone containers rather than creating Swarm services, so it does not provide Swarm scheduling. Individually launched containers are not stack tasks. Host networking bypasses the routing mesh; it does not make the ingress-published port available through the routing mesh.