Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam NCP-AII Topic 1 Question 24 Discussion

Actual exam question for NVIDIA's NCP-AII exam
Question #: 24
Topic #: 1
You are using Docker Compose to define a multi-container application that includes a GPU-accelerated service. How would you configure the service in the 'docker-compose.ymr file to leverage the NVIDIA runtime?

Suggested Answer: A Vote an answer

To enable the NVIDIA runtime for a service in a 'docker-compose.yml' file, you should use the 'runtime: nvidia' directive within the service definition. The 'deploy' section is relevant for Swarm deployments, not standard Docker Compose. Environment variables like 'NVIDIA VISIBLE DEVICES can further control GPU visibility, but the 'runtime' is fundamental for enabling the NVIDIA runtime itself. The '-gpus' flag is a 'docker run' option, not a Compose configuration, and 'nvidia: all' is not a valid Compose option.

by Bevis at Mar 04, 2026, 12:18 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.