You have deployed a service to swarm. Which command uses the Docker CLI to set the number of tasks of the services to 5? (choose 2)
A.
'docker service update --replicas=5 <service-id>'
B.
'docker replica update <service-id>=5'
C.
'docker update service <service-id>=5'
D.
'docker service replicas <service-id>=5'
E.
'docker service scale <service-id> = 5''
'docker service update --replicas=5 <service-id>'
'docker service scale <service-id> = 5''
You have created a Docker bridge network on a host with three containers attached, how do you make this containers accessible outside of the host?
A.
Use network attach to access the containers on the bridge network
B.
Use either EXPOSE or --publish to access the containers on the bridge network
C.
Use network connect to access the containers on the bridge network
D.
Use --link to access the containers on the bridge network Correct
Use either EXPOSE or --publish to access the containers on the bridge network
What is the purpose of multi-stage builds?
A.
Better logical separation of Dockerfile instructions for better readability
B.
Optimizing images by copying artifacts selectively from previous stages
C.
Better caching when building Docker images
D.
Faster image builds by allowing parallel execution of Docker builds
Optimizing images by copying artifacts selectively from previous stages
When seven managers are in a swarm cluster how would they be distributed across three datacenters or
availability zones?
A.
5-1-1
B.
3-2-2
C.
3-3-1
D.
4-2-1
3-3-1
What service mode is used to deploy a single task of a service to each node?
A.
replicated
B.
spread
C.
universal
D.
distributed
E.
global
global
Page 1 out of 34 Pages |