Challenge - 5 Problems
Cron Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of this cron expression schedule?
Given the cron expression
0 0 * * 0, what does it schedule?Attempts:
2 left
💡 Hint
Remember the fields: minute, hour, day of month, month, day of week.
✗ Incorrect
The cron expression '0 0 * * 0' means minute 0, hour 0 (midnight), every day of month, every month, and day 0 which is Sunday in cron. So it runs every Sunday at midnight.
💻 Command Output
intermediate2:00remaining
What does this cron expression do?
What is the schedule for the cron expression
*/15 9-17 * * 1-5?Attempts:
2 left
💡 Hint
Look at the hour and day of week fields carefully.
✗ Incorrect
The expression '*/15' in minutes means every 15 minutes. '9-17' in hours means from 9 AM to 5 PM. '1-5' in day of week means Monday to Friday. So it runs every 15 minutes during working hours on weekdays.
💻 Command Output
advanced2:00remaining
What is the output of this cron expression?
What schedule does the cron expression
30 23 1 * * represent?Attempts:
2 left
💡 Hint
Check the day of month and hour fields.
✗ Incorrect
The expression means minute 30, hour 23 (11 PM), day 1 of the month, every month, every day of week. So it runs once a month at 11:30 PM on the first day.
💻 Command Output
advanced2:00remaining
What error or output does this cron expression produce?
What happens if you use the cron expression
60 24 * * *?Attempts:
2 left
💡 Hint
Minutes range from 0 to 59, hours from 0 to 23.
✗ Incorrect
Minute field cannot be 60 (valid range 0-59). Hour field cannot be 24 (valid range 0-23). So this expression is invalid and causes an error.
🧠 Conceptual
expert2:00remaining
How many times does this cron expression run in a week?
How many times will the job run with the cron expression
0 12 */2 * 1 in one week?Attempts:
2 left
💡 Hint
Cron uses OR logic for day of month and day of week fields interaction.
✗ Incorrect
In standard Linux cron, the job runs when either the day-of-month OR day-of-week matches (minute, hour, month also match). '*/2' matches even days of month (2,4,6,...30), '1' matches Monday. It runs at 12:00 on even days of the month OR Mondays. A week typically has 3 even days, so 3 times.