What is the difference between a resource limit and a resource reservation when scheduling services?

What is the difference between a resource limit and a resource reservation when scheduling services?
A . A resource limit and a resource reservation can be used interchangeably.
B . A resource limit is a soft limit for your service, while a reservation is hard limit and the docker engine will do its best to keep your service at the limit.
C . A resource limit is used to find a host with adequate resources for scheduling a hard limit for your service, while a reservation is hard limit for your service.
D . A resource limit is hard limit for your service, while a reservation is used to find a host with adequate
resources for scheduling. Correct

Answer: A

Which command uses the Docker CLI to set the number of tasks of the services to 5?

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”

Answer: A,E

Which of the following commands will create a swarm service which only listens on port 53 using the UDP protocol?

Which of the following commands will create a swarm service which only listens on port 53 using the UDP protocol?
A . docker service create –name dns-cache -p 53:53/udp dns-cache
B . docker service create –name dns-cache -p 53:53 –service udp dns-cache
C . docker service create –name dns-cache -p 53:53 ..constraint networking.protocol.udp=true dns-cache
D . docker service create –name dns-cache -p 53:53 –udp dns-cache

Answer: A