Title: Quiz 5 — GPU Containers and the NVIDIA Container Toolkit
Course: AIINFRA 101: Applied Infrastructure & Containerization > Section: Week 05 — GPU Containers: the NVIDIA Container Toolkit

Q: What does the NVIDIA Container Toolkit primarily do?
- Installs CUDA inside every container image automatically
- Configures the Docker daemon so containers can access the host's NVIDIA GPU driver
- Replaces the need for an NVIDIA GPU driver on the host
- Compiles CUDA code into container images
A: Configures the Docker daemon so containers can access the host's NVIDIA GPU driver

Q: You must install the full CUDA Toolkit on the host before the NVIDIA Container Toolkit will work.
- True
- False
A: False

Q: What command updates /etc/docker/daemon.json so Docker recognizes the NVIDIA runtime?
Feedback: Sample/expected answer: `nvidia-ctk runtime configure --runtime=docker`

Q: Which flag restricts a container to a single, specific GPU?
- `--gpus all`
- `--gpus device=0`
- `--gpu-limit=1`
- `NVIDIA_DRIVER_CAPABILITIES=single`
A: `--gpus device=0`

Q: Which NVIDIA_DRIVER_CAPABILITIES value is needed for nvidia-smi to work inside a container?
- compute
- utility
- graphics
- video
A: utility

Q: An image built with GPU libraries installed is automatically GPU-accelerated on every host it runs on, regardless of the docker run flags used.
- True
- False
A: False

Q: Name one NVIDIA base image or NGC container mentioned this week that comes with CUDA (and, in the NGC case, cuDNN) pre-installed.
Feedback: Sample/expected answer: `nvidia/cuda:12.6.0-base-ubuntu22.04`**** (or any listed variant) or ****`nvcr.io/nvidia/pytorch:26.01-py3`

Q: Why can't the NVIDIA Container Toolkit provide GPU passthrough on macOS or native Windows?
- NVIDIA has not written the software for those operating systems
- Those platforms run containers inside a Linux VM without a GPU passthrough path (WSL2 on Windows is the supported exception)
- Docker itself is unsupported on macOS and Windows
- GPUs are not compatible with any virtualization technology
A: Those platforms run containers inside a Linux VM without a GPU passthrough path (WSL2 on Windows is the supported exception)