Free LPI 102-500 Actual Exam Questions - Question 6 Discussion

Question No. 6
Which of the following crontab entries will execute myscript at 30 minutes past every hour on
Sundays?
Select one option, then reveal solution.
US
FU
Farhan U.
2026-02-22

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.

0
OE
Osama E.
2026-02-21

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.

0
SE
Sarah E.
2026-02-21

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?

0
SE
Sarah E.
2026-02-20

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.

0
AH
Ash H.
2026-02-19

D, since it explicitly runs at 30 past every hour on Sundays using standard syntax.

0
IF
Irfan F.
2026-02-18

Option D works if cron supports ranges, but some use 0 or 7 for Sunday, so could vary.

0
OA
Omar A.
2026-02-13

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

0
OA
Omar A.
2026-02-13

D is right because it covers every hour (0-23) at minute 30 on Sunday (0).

0
OA
Omar A.
2026-02-11

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.

0
AA
Ash A.
2026-01-30

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.

0
AA
Ash A.
2026-01-29

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.

0
AA
Ash A.
2026-01-29

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.

0
AF
Ahmed F.
2026-01-28

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.

0
SI
Sohail I.
2026-01-28

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.

0
AV
Ali V.
2026-01-25

D, because it clearly sets minutes and every hour on Sunday (0).

0
AV
Ali V.
2026-01-25

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.

0
AV
Ali V.
2026-01-24

D imo, it covers every hour at 30 mins on Sunday, unlike C which is just midnight.

0
AV
Ali V.
2026-01-24

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.

0
SR
Sam R.
2026-01-24

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.

0
MQ
Mason Q.
2026-01-21

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

0