
Answer-first summary for fast verification
Answer: 0 18 * * 0 - This expression schedules the job to run at 6 PM every Sunday.
The correct CRON expression for scheduling the job to run every Sunday at 6 PM is '0 18 * * 0'. 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, '18' specifies the hour, and '0' specifies Sunday (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.
No comments yet.
Consider a scenario where you need to schedule a data processing job to run every Sunday at 6 PM. How would you use CRON to set up this scheduling opportunity? Provide the CRON expression and explain its components.
A
0 18 * * 0 - This expression schedules the job to run at 6 PM every Sunday.
B
18 * * * 0 - This expression schedules the job to run at 18 minutes past every hour on Sundays.
C
D