nerdexam
CompTIACompTIA

XK0-005 · Question #837

XK0-005 Question #837: Real Exam Question with Answer & Explanation

The correct answer is A: OnCalendar=Mon *-2,5,8,11-* 13:30:00. It uses the systemd OnCalendar syntax Mon -2,5,8,11- 13:30:00, which translates to “every Monday in months 2, 5, 8, and 11 at 13:30.” The other choices either misplace the month list, use invalid comma/dash placement, or repeat the calendar fields incorrectly.

System Management

Question

A Linux administrator discovers that a configured schedule is not running properly and needs to re- create the schedule. The task should run every Monday at 13:30 but only during the months of February, May, August, and November. Which of the following options should the administrator use?

Options

  • AOnCalendar=Mon *-2,5,8,11-* 13:30:00
  • BOnCalendar=*-FEB,*-MAY,*-AUG,*-N0V Mon 13:30:00
  • COnCalendar=*-*-2,5,8,11 13:30:00 Mon
  • DOnCalendar=Mon *-FEB *-MAY *-AUG *-NOV 13:30:00

Explanation

It uses the systemd OnCalendar syntax Mon -2,5,8,11- 13:30:00, which translates to “every Monday in months 2, 5, 8, and 11 at 13:30.” The other choices either misplace the month list, use invalid comma/dash placement, or repeat the calendar fields incorrectly.

Topics

#systemd.timer#Task Scheduling#OnCalendar syntax#Linux Administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions