Docker
DCA · Question #47
Which flag for a service would allow a container to consume more than 2 GB of memory only when there is no memory contention but would also prevent a container from consuming more than 4GB of memory,
Sign in or unlock DCA to reveal the answer and full explanation for question #47. The question stem and answer options stay visible for context.
Submitted by naveen.iyer· Apr 18, 2026Container Orchestration
Question
Which flag for a service would allow a container to consume more than 2 GB of memory only when there is no memory contention but would also prevent a container from consuming more than 4GB of memory, in any case?
Options
- A--limit-memory 2GB --reserve-memory 4GB
- B--limit-memory 4GB --reserve-memory 2GB
- C--memory-swap 2GB --limit-memory 4GB
- D--memory-swap 4GB --limit-memory 2GB
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 Service Configuration#Resource Management#Memory Limits#Swap Usage