ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 364 - XK0-005 discussion

Report
Export

A Linux administrator is investigating the reason a systemd timer is not running every night at midnight. The administrator sees the following unit file:

[Unit]

Description=Execute backup every day at midnight

[Timer]

OnCalendar=--01 00:00:00

Unit=backup.service

RandomizedDelaySec=10800

[Install]

WantedBy=multi-user.target

Which of the following modifications should the administrator make in the unit file? (Select two).

A.

Remove RandomizedDelaySec=10800.

Answers
A.

Remove RandomizedDelaySec=10800.

B.

Add WakeSystem=Midnight.

Answers
B.

Add WakeSystem=Midnight.

C.

Change OnCalendar to 00:00:00.

Answers
C.

Change OnCalendar to 00:00:00.

D.

Add OnCalendar=--* daily.

Answers
D.

Add OnCalendar=--* daily.

E.

Add AccuracySec=1.

Answers
E.

Add AccuracySec=1.

F.

Remove OnCalendar=--01 00:00:00.

Answers
F.

Remove OnCalendar=--01 00:00:00.

Suggested answer: A

Explanation:

The RandomizedDelaySec parameter delays the timer by a random time within the specified seconds, which can be up to 3 hours in this case. Removing it will ensure the timer triggers at exactly midnight. Additionally, using OnCalendar=--* daily correctly schedules the timer to run every day at midnight.

asked 18/10/2024
AXEL AXELOPOULOS
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first