Question 40
UnclassifiedWhat command shows current Slurm job queue with GPU allocation details?
Correct answer: D
Explanation
`squeue` shows the current Slurm job queue, and with GPU/GRES fields it can display allocation details. `scontrol show job` also reports job resource information, including GRES, so both commands can show GPU allocation details.
Why each option is right or wrong
A. squeue
B. squeue -o '%.18i %.9P %.8j %.8u %.2t %.10M %.6D %R %b'
C. scontrol show jobs
D. Both B and C show GRES details
Under Slurm, the live queue is queried with `squeue`, and its format options can expose GRES fields such as `gres`/`tres-per-node` for GPU allocations; `scontrol show job <jobid>` also prints the job record, including the `Gres=` line and related resource assignments. Because both commands read from Slurm’s job state and can display GPU/GRES allocation details, the answer is the option indicating both B and C.