NCP-AII exam dumps

NCP-AII practice question 119 of 146

NVIDIA-Certified Professional AI Infrastructure. Professional level, NVIDIA. Free question with the correct answer and a full explanation.

NCP-AII Question 119

Select 3

You are tasked with deploying a containerized AI workload that requires GPU acceleration on a system equipped with NVIDIA GPUs. Which of the following steps are necessary to ensure the Docker container can access the GPUs?

  1. A

    Install the NVIDIA Container Toolkit on the host system.

  2. B

    Use the --gpus flag when running the Docker container.

  3. C

    Ensure the Docker image includes the NVIDIA GPU driver.

  4. D

    Verify that the NVIDIA drivers are installed on the host system.

  5. E

    Launch the container with the --device /dev/nvidia0 flag.

Show answer and explanation

Correct answers: A, B, D

Explanation

To use NVIDIA GPUs with Docker, it is essential to install the NVIDIA Container Toolkit, which enables GPU support. The --gpus flag is used to allocate GPUs to a container. Additionally, the system hosting the containers must have the correct NVIDIA drivers installed to ensure proper communication between the hardware and software. Including drivers inside the container or manually passing devices via --device is not recommended as the NVIDIA runtime simplifies GPU access.

  • A. Correct.

    Correct: The NVIDIA Container Toolkit is required to enable Docker to communicate with the NVIDIA GPUs on the host system.

  • B. Correct.

    Correct: The --gpus flag specifies how many GPUs the container should use and ensures proper GPU resource allocation.

  • C. Incorrect.

    Incorrect: The NVIDIA GPU driver should be installed on the host system, not inside the Docker image. Instead, the container should use the host's drivers via the NVIDIA runtime.

  • D. Correct.

    Correct: The NVIDIA drivers must be installed on the host system to enable GPU support for Docker containers.

  • E. Incorrect.

    Incorrect: While --device /dev/nvidia0 could manually pass GPU devices to the container, it is not the recommended approach for modern NVIDIA GPU-accelerated Docker workflows. The NVIDIA runtime handles this automatically.

Timed practice exam

Take a NCP-AII practice test under exam conditions

65 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam