nerdexam
Docker

DCA · Question #19

What behavior is expected when a service is created with the following command: 'docker service create --publish 8000:80 nginx'

Sign in or unlock DCA to reveal the answer and full explanation for question #19. The question stem and answer options stay visible for context.

Submitted by takeshi77· Apr 18, 2026Orchestration

Question

What behavior is expected when a service is created with the following command:

'docker service create --publish 8000:80 nginx'

Options

  • AAll nodes in the cluster will listen on port 8080 and forward to port 80 in the container.
  • BOnly a single node in the cluster will listen on port 8080 and forward to port 80 in the container.
  • CAll nodes in the cluster will listen on port 80 and forward to port 8080 in the container.
  • DOnly a single node in the cluster will listen on port 80 and forward to port 8080 in the container.

Unlock DCA to see the answer

You've previewed enough free DCA questions. Unlock DCA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Docker Swarm#Service Networking#Port Mapping#Routing Mesh
Full DCA Practice