nerdexam
Docker

DCA · Question #36

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

The correct answer is D. A resource limit is hard limit for your service, while a reservation is used to find a host with. A resource limit sets a hard upper boundary for resource consumption, whereas a resource reservation guarantees a minimum amount of resources for a service, influencing host scheduling.

Submitted by sofia.br· Apr 18, 2026Container Orchestration

Question

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

Options

  • AA resource limit and a resource reservation can be used interchangeably.
  • BA resource limit is a soft limit for your service, while a reservation is hard limit and the docker
  • CA resource limit is used to find a host with adequate resources for scheduling a hard limit for your
  • DA resource limit is hard limit for your service, while a reservation is used to find a host with

How the community answered

(50 responses)
  • A
    4% (2)
  • B
    6% (3)
  • C
    2% (1)
  • D
    88% (44)

Why each option

A resource limit sets a hard upper boundary for resource consumption, whereas a resource reservation guarantees a minimum amount of resources for a service, influencing host scheduling.

AA resource limit and a resource reservation can be used interchangeably.

Resource limits and reservations are distinct concepts with different operational purposes and are not interchangeable in Docker Swarm scheduling.

BA resource limit is a soft limit for your service, while a reservation is hard limit and the docker

This statement incorrectly defines limits as soft and reservations as hard; limits are typically hard caps on consumption, while reservations are guarantees for scheduling.

CA resource limit is used to find a host with adequate resources for scheduling a hard limit for your

This option incorrectly merges parts of both definitions and mischaracterizes the nature of a resource limit in the context of scheduling.

DA resource limit is hard limit for your service, while a reservation is used to find a host withCorrect

A resource limit specifies the maximum amount of a resource (like CPU or memory) that a container can consume; if it tries to exceed this, it may be throttled or terminated. Conversely, a resource reservation defines the minimum guaranteed amount of a resource for the container and is primarily used by the Docker Swarm scheduler to find a host with adequate available resources to place the service.

Concept tested: Docker Swarm service resource management

Source: https://docs.docker.com/engine/swarm/services/#resource-limits-and-reservations

Topics

#Resource Management#Docker Swarm#Service Configuration#Resource Limits and Reservations

Community Discussion

No community discussion yet for this question.

Full DCA Practice