Free LPI 102-500 Actual Exam Questions - Question 6 Discussion
Sundays?
Maybe D works best since it covers every hour at 30 minutes past on Sunday (0). C only runs at midnight, so it’s not every hour. A and E have invalid weekday values, so they’re out.
B/D? B hits 30 past every hour but only on day 6, which is usually Saturday, so no. D covers all hours at 30 on day 0, which is Sunday in most setups, so that fits better.
Option A can’t be right because the last field is supposed to be day of week (0-7), and 30 is way out of range. Option E has the same problem. Between B, C, and D, B only does it on one hour (the asterisk is in the wrong spot for minutes), and C runs only once at midnight. D uses 0-23 for hours and 0 for Sunday, which matches the requirement for every hour at 30 minutes past on Sundays. But does the system accept 0 as Sunday or only 7? That detail could trip this up. Anyone got clarity on that?
B/C? B runs at 30 minutes past every hour but only on day 6, which could be Saturday depending on the system. C runs at 30 minutes past hour 0 (midnight) on Sunday, but that’s just once a day, not every hour. Since the question wants every hour at 30 minutes on Sunday, neither seems perfect. D covers all hours and Sunday as day 0, so it’s a better fit assuming Sunday is 0. If Sunday is 7 on that system, none match perfectly. The answer depends on how Sunday is defined here.
D, since it explicitly runs at 30 past every hour on Sundays using standard syntax.
Option D works if cron supports ranges, but some use 0 or 7 for Sunday, so could vary.
I think B is off since 6 usually means Saturday, so it’s not Sundays. D seems more complete for every hour at minute 30 on Sundays. D
D is right because it covers every hour (0-23) at minute 30 on Sunday (0).
It’s C because it runs at 30 minutes past hour 0 on Sundays, matching the "30 minutes past every hour" phrasing if you interpret “every hour” as just at that time each Sunday. D covers every hour but might be overkill.
Probably D. The key is the hour field covering 0-23, so it runs at 30 minutes past every hour on Sunday (day 0). C only runs once at midnight, which doesn’t match “every hour.” The day-of-week being 0 fits Sunday in most systems too. A and E are clearly wrong since they put 30 in the day of week or minutes field incorrectly, and B uses 6 which is Saturday. So D seems like the only one that matches all parts of the question perfectly.
Maybe D makes the most sense since it covers every hour at 30 minutes on Sunday. C only hits that time once at midnight, so it’s too limited for the question’s “every hour” part.
C/D? C runs once at 00:30 Sunday, but D runs every hour at 30 minutes on Sunday. Since the question asks for every hour, D fits better than C.
Maybe D is right since it specifies 30 minutes past every hour on Sunday, while C only does midnight. The 0 in day-of-week is key for Sunday, so that fits better than B or A.
B tbh doesn’t work because it fixes hour to *, which is every hour, but the day of week is 6 which is Saturday, not Sunday (assuming Sunday=0). A and E use 30 in wrong fields, making those invalid. So D’s the only one that correctly hits 30 minutes past every hour on Sunday (day 0) with the range 0-23 hours. C only triggers once at 00:30 Sunday, so it’s too limited if you want every hour.
D, because it clearly sets minutes and every hour on Sunday (0).
Maybe C works if you only want to run it once at 00:30 on Sunday, but since the question says every hour, D makes more sense because it covers all hours at 30 minutes past.
D imo, it covers every hour at 30 mins on Sunday, unlike C which is just midnight.
This one’s tricky because of the day-of-week field. I’m going with D since it specifies minute 30, hours 0-23, and day 0 for Sunday, so it’ll run every hour at 30 minutes past on Sundays. Option C only hits once at midnight, not every hour. So D fits better if Sunday’s 0 here.
Option B runs at 30 minutes past every hour but only on Saturdays if Sunday is 0, so it's off. D covers all hours on Sunday at minute 30, which fits the task better given standard cron conventions.
Makes sense that it should run every hour at minute 30 on Sunday, so D fits better than C or B. I’d go with D since 0-23 covers all hours and 0 is Sunday here. D