NCP-AIO practice question 14 of 15

A Slurm user needs to submit a batch job script for execution tomorrow. Which command should be used to complete this task?

Full set: 66 questions
Answer options
A: sbatch -begin=tomorrow Correct answer
B: submit -begin=tomorrow
C: salloc -begin=tomorrow
D: srun -begin=tomorrow
Correct Answer:
A. sbatch -begin=tomorrow
Explanation

The sbatch command is the standard utility in Slurm for submitting a batch script for later execution. To control when the job becomes eligible to run, the --begin (or -b) option is used. This option accepts various time formats, including the specific keyword tomorrow, which defers the job's start time until the beginning of the next day (00:00:00). This command combination precisely fulfills the user's requirement to submit a script now that will be scheduled to run on the following day.

Why Incorrect

B. submit --begin=tomorrow: submit is not a valid command within the Slurm workload manager for job submission.
C. salloc --begin=tomorrow: salloc is used to allocate resources for interactive jobs, not for submitting a non-interactive batch script for deferred execution.
D. srun --begin=tomorrow: srun is used to launch parallel tasks on resources that have already been allocated, typically within an sbatch script or an salloc session.

References

1. SchedMD LLC, Slurm Workload Manager Documentation for sbatch: "The sbatch utility is used to submit a job script for later execution... --begin= Submit the batch script to the Slurm controller but defer its eligibility for scheduling until the specified time. The timespec can be a keyword such as now, midnight, noon, or tomorrow." (Reference: sbatch man page, --begin option description).

2. NVIDIA Deep Learning Institute (DLI), "Slurm for Data Scientists" Courseware: The course materials explicitly cover job submission and scheduling. Module 3, "Submitting and Managing Jobs," details the use of sbatch for submitting batch scripts and highlights the --begin flag for scheduling jobs to run at a future time, providing tomorrow as a usage example. (Reference: DLI Courseware, Module 3, Section on Job Submission Options).

Scroll to Top