
Answer-first summary for fast verification
Answer: ```0 9 * * 1 - This expression schedules the job to run at 9 AM every Monday.```
The correct CRON expression for scheduling the job to run every Monday at 9 AM is '0 9 * * 1'. This expression consists of five fields: minutes, hours, day of the month, month, and day of the week. In this case, '0' specifies the minute, '9' specifies the hour, and '1' specifies Monday (with Sunday being 0). The asterisks (*) indicate any value for the day of the month and month, respectively.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Consider a scenario where you need to schedule a data processing job to run every Monday at 9 AM. How would you use CRON to set up this scheduling opportunity? Provide the CRON expression and explain its components.
A
0 9 * * 1 - This expression schedules the job to run at 9 AM every Monday.
B
9 * * * 1 - This expression schedules the job to run at 9 minutes past every hour on Mondays.
C
* * 9 * 1 - This expression schedules the job to run every minute on the 9th day of every month.
D
* * * * 9 - This expression schedules the job to run every minute on every Wednesday.
No comments yet.