NCP-AIO Installation and Deployment Practice Question
When installing the NVIDIA Container Toolkit to enable GPU acceleration in Docker, which file must be modified or verified to ensure the container runtime can access the NVIDIA runtime?
⚠ Common exam trap
Candidates often look for environment variables or shell scripts, missing that the persistent configuration for the Docker runtime resides in the /etc/docker/daemon.json file.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
/etc/docker/daemon.json
The daemon configuration file, typically located at /etc/docker/daemon.json, must be updated to include the NVIDIA runtime. This integration is the foundational step for AI containerization, as it allows the Docker engine to map host GPU resources into the container namespace. Without this configuration, containers will fail to detect GPUs, rendering them incapable of running accelerated AI applications.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
/etc/fstab
Why it's wrong here
The fstab file is used for filesystem mounting at boot time. Modifying this file would not influence how the container engine communicates with the NVIDIA host driver or how it manages GPU device mapping within the isolated environment of a containerized application process.
- ✓
/etc/docker/daemon.json
Why this is correct
This is the primary configuration file for the Docker daemon. Including the nvidia-container-runtime in this JSON configuration is mandatory to register the runtime with Docker. This allows the engine to recognize the --gpus flag, enabling GPU hardware pass-through for accelerated workloads inside containers.
- ✗
/etc/environment
Why it's wrong here
The environment file defines system-wide environment variables. While it is used for paths like PATH, it does not control the plugin architecture of the Docker engine. Modifying this file will not enable the NVIDIA container runtime or allow Docker to interact with GPU device drivers.
- ✗
/boot/grub/grub.cfg
Why it's wrong here
The GRUB configuration file manages the bootloader process. It is used to pass kernel parameters at system startup, not to configure container runtime plugins. Changes here would affect the OS boot behavior rather than the specific interaction between the Docker runtime and the host GPU.
About these practice questions
Courseiva writes every NCP-AIO question from scratch — 309 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official NVIDIA exam blueprint
This NCP-AIO practice question is part of Courseiva's free NVIDIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the NCP-AIO exam.