Title: Quiz 1 — Linux Server Foundations for AI Workloads
Course: AIINFRA 200: Production Inference Serving & GPU Orchestration > Section: Week 01 — Linux Server Foundations for AI Workloads

Q: Which command should you run first when diagnosing a new GPU server to confirm the NVIDIA driver is installed and check real-time GPU state?
- `top`
- `nvidia-smi`
- `systemctl status gpu`
- `df -h`
A: `nvidia-smi`

Q: It is best practice to log in to a production AI server as root for convenience so you don't have to type sudo repeatedly.
- True
- False
A: False

Q: A systemd unit file (.service) should be marked as executable (chmod +x) so systemd can run it.
- True, always
- False — systemd parses unit files as configuration, not scripts
- Only for `[Install]` sections
- Only on Ubuntu 24.04
A: False — systemd parses unit files as configuration, not scripts

Q: You upgrade your NVIDIA driver package with apt upgrade, and nvidia-smi now returns: Failed to initialize NVML: Driver/library version mismatch. What is the standard fix?
Feedback: Sample/expected answer: Reboot the server so the kernel loads the matching (new) kernel module.

Q: systemd services automatically inherit the PATH and environment variables of the interactive shell session used to install them.
- True
- False
A: False

Q: What is the primary benefit of enabling GPU persistence mode (nvidia-persistenced)?
- It permanently increases GPU memory capacity
- It keeps the driver initialized between jobs, avoiding re-initialization overhead for short-lived processes
- It automatically updates NVIDIA drivers
- It replaces the need for `nvidia-smi`
A: It keeps the driver initialized between jobs, avoiding re-initialization overhead for short-lived processes

Q: Name the three components of the baseline Linux server setup for AI workloads described in the lecture (OS/driver pairing, storage, and service management).
Feedback: Sample/expected answer: Ubuntu 22.04/24.04 LTS with matched NVIDIA drivers; fast NVMe storage for model weights; systemd-managed services.

Q: In a systemd unit file, which directive tells the service to restart automatically if the process crashes?
- `Restart=on-failure`
- `AutoRecover=true`
- `KeepAlive=yes`
- `OnCrash=restart`
A: `Restart=on-failure`