DockerDocker
DCA · Question #3
DCA Question #3: Real Exam Question with Answer & Explanation
The correct answer is C: Utilize the '--storage-opt dm.directlvm_device' Docker daemon option, specifying a block device. For a production-ready Devicemapper configuration, Docker should be configured to use a dedicated block device in direct-lvm mode.
Submitted by neha2k· Apr 18, 2026Storage
Question
Which of the following constitutes a production-ready devicemapper configuration for the Docker engine?
Options
- ACreate a volume group in devicemapper and utilize the '--dm.thinpooldev' Docker daemon option,
- BFormat a partition with xfs and mount it at '/var/lib/docker'
- CUtilize the '--storage-opt dm.directlvm_device' Docker daemon option, specifying a block device
- DNothing, devicemapper comes ready for production usage out of the box
Explanation
For a production-ready Devicemapper configuration, Docker should be configured to use a dedicated block device in direct-lvm mode.
Common mistakes.
- A. While
--dm.thinpooldevspecifies a thin pool, usingdm.directlvm_deviceis the more automated and recommended production-ready approach for Devicemapper, managing the thin pool on a dedicated block device. - B. Formatting a partition with XFS and mounting it at
/var/lib/dockeris a recommended setup for theoverlay2storage driver, not for thedevicemapperdriver which uses block devices directly or via LVM. - D. The default loopback mode of Devicemapper is explicitly documented as suitable only for testing and development due to performance and stability limitations, not for production use.
Concept tested. Docker Devicemapper production configuration
Reference. https://docs.docker.com/engine/security/production-setup/#devicemapper
Topics
#devicemapper#storage driver#production configuration#LVM
Community Discussion
No community discussion yet for this question.