nerdexam
CompTIACompTIA

XK0-005 · Question #1872

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

The correct answer is C: Change OnCalendar to*-*-* 00:00:00.. Changing OnCalendar to -- 00:00:00 ensures the timer fires every day at midnight rather than only on the first of the month. Removing the existing OnCalendar=-*-01 00:00:00 entry clears the incorrect monthly trigger so that the corrected daily schedule takes effect.

Troubleshooting

Question

A Linux administrator is investigating the reason a system timer is not running every night at midnight. The administrator reviews the following unit file: Which of the following modifications should the administrator make in the unit file? (Choose two.)

Options

  • ARemove RandomizedDelaySec=10800.
  • BAdd WakeSystem=Midnight.
  • CChange OnCalendar to*-*-* 00:00:00.
  • DAdd OnCalendar=*-*-* daily.
  • EAdd AccuracySec=1.
  • FRemove OnCalendar=*-*-01 00:00:00.

Explanation

Changing OnCalendar to --* 00:00:00 ensures the timer fires every day at midnight rather than only on the first of the month. Removing the existing OnCalendar=--01 00:00:00 entry clears the incorrect monthly trigger so that the corrected daily schedule takes effect.

Topics

#systemd timers#Linux scheduling#Unit files#System administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions