NCP-AII exam dumps

NCP-AII practice question 118 of 146

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

NCP-AII Question 118

Select 3

You are tasked with deploying a deep learning application on a server equipped with NVIDIA GPUs using Docker. Which of the following steps are necessary to ensure the Docker container has access to the GPUs?

  1. A

    Install the NVIDIA Container Toolkit on the host machine.

  2. B

    Use the --gpus flag when running the Docker container to specify GPU access.

  3. C

    Ensure NVIDIA GPU drivers are installed on the host machine.

  4. D

    Include the GPU model in the Dockerfile when building the container.

  5. E

    Run the Docker container with elevated privileges using the --privileged flag.

Show answer and explanation

Correct answers: A, B, C

Explanation

To use NVIDIA GPUs with Docker, the NVIDIA Container Toolkit must be installed, and the NVIDIA GPU drivers must be present on the host system to enable GPU communication. Additionally, the --gpus flag is used at runtime to allocate GPU resources to the container. Including the GPU model in the Dockerfile or running the container with elevated privileges are unnecessary steps for enabling GPU usage.

  • A. Correct.

    Correct: The NVIDIA Container Toolkit is required on the host machine to enable GPU support for Docker containers.

  • B. Correct.

    Correct: The --gpus flag is used to specify which GPUs the container should have access to at runtime.

  • C. Correct.

    Correct: NVIDIA GPU drivers must be installed on the host machine to enable communication between the containerized applications and the GPUs.

  • D. Incorrect.

    Incorrect: GPU models are specified at runtime using the --gpus flag, not in the Dockerfile. The Dockerfile is typically used for software dependencies and configuration.

  • E. Incorrect.

    Incorrect: Using the --privileged flag is not required to provide GPU access. GPU access is managed by installing the NVIDIA Container Toolkit and using the --gpus flag.

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