Valid NCP-AII Dumps shared by EduDump.com for Helping Passing NCP-AII Exam! EduDump.com now offer the newest NCP-AII exam dumps, the EduDump.com NCP-AII exam questions have been updated and answers have been corrected get the newest EduDump.com NCP-AII dumps with Test Engine here:
A user wants to restrict a Docker container to use only GPUs 0 and 2. Which command achieves this?
Correct Answer: A
With the advent of the NVIDIA Container Toolkit and modern Docker versions (19.03+), the --gpus flag is the official, verified method for resource allocation. To restrict a container to specific hardware IDs, the syntax requires a specific string format: --gpus '"device=0,2"'. This tells the NVIDIA Container Runtime to map only those specific physical GPU devices into the container's namespace. While environment variables like NVIDIA_VISIBLE_DEVICES (Option B) were used in older "nvidia-docker2" setups, they are now considered legacy and can be overridden by the more modern --gpus flag. Option D is incorrect because simply mapping the device nodes (/dev/nvidiaX) is insufficient; the container also needs the appropriate volume mounts for the NVIDIA drivers and libraries, which the --gpus flag handles automatically. This precise isolation is critical in multi-tenant AI environments to ensure that a single developer or job doesn't accidentally utilize the entire 8-GPU tray of a DGX H100.