Linux+ V8 Systemd Timer Units for Scheduling Quiz

Reviewed by Joshua Gelman
Joshua Gelman, CompTIA Certified |
CompTIA Expert
Review Board Member
Joshua G. is a cybersecurity specialist and instructor with over a decade of hands-on experience in incident response, secure system design, and risk management. He holds CompTIA Security+, CySA+, SecurityX (CASP+), CSAP, and CSAE certifications, as well as the CISSP, and teaches cybersecurity as an adjunct instructor at Texas A&M Engineering Extension Service (TEEX). He earned his MS in Information Science from the University of Pittsburgh.
, CompTIA Certified
By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 13 | Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. In a systemd timer unit file, what does the [Timer] section contain?

Explanation

The [Timer] section defines when and how systemd activates the associated service. It can specify calendar-based or monotonic schedules, accuracy settings, persistence after downtime, and related timer behavior.

Submit
Please wait...
About This Quiz
Linux+ V8 Systemd Timer Units For Scheduling Quiz - Quiz

This quiz evaluates your understanding of systemd timer units, a core scheduling mechanism in modern Linux systems. You'll test knowledge of timer syntax, unit files, activation methods, and how timers interact with services. Mastering systemd timers is essential for system administrators managing scheduled tasks and automated maintenance on Linux systems.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. What does the Unit= directive in a timer's [Timer] section accomplish?

Explanation

In a systemd timer’s `[Timer]` section, `Unit=` names the unit that systemd activates when the timer elapses, typically a service. If omitted, systemd usually activates the service unit with the same base name as the timer. It does not set the timer’s schedule or resource limits.

Submit

3. How do you manually trigger a timer-associated service without waiting for the schedule?

Explanation

Use `systemctl start service-name.service` to launch the service immediately, without waiting for its associated timer. Starting the service directly runs its configured action; it does not alter the timer’s schedule.

Submit

4. In systemd timer units, what does the Requires directive specify?

Explanation

`Requires=` defines units that the timer depends on. Those dependencies are started alongside the timer, and if a required unit fails to start, the timer may not function as intended.

Submit

5. What is the primary advantage of systemd timers over traditional cron jobs?

Explanation

Systemd timers are managed as units, allowing them to start or stop services and use systemd’s built-in logging and status tools. This integration makes timer jobs easier to monitor and manage than traditional cron jobs.

Submit

6. Which OnCalendar expression runs a timer every Monday at 9:00 AM?

Explanation

In systemd’s OnCalendar syntax, `Mon` specifies Monday, while `*-*-*` matches every year, month, and day. The time `09:00:00` sets the run time to 9:00 AM, so the timer runs every Monday at that time.

Submit

7. What naming convention must a service have to be automatically triggered by a timer unit?

Explanation

A systemd timer named `backup.timer` automatically activates `backup.service`; both units share the same name stem, differing only in their `.timer` and `.service` suffixes. To activate a differently named service, the timer can instead specify it using the `Unit=` setting in its configuration.

Submit

8. How do you check the status and next execution time of a specific timer?

Explanation

Use `systemctl status timer-name.timer` to view the timer unit’s current state and details, including its next scheduled activation time when available. The `.timer` suffix identifies the systemd timer unit.

Submit

9. Which systemd timer directive specifies a random delay before execution?

Explanation

The supplied answer appears inaccurate: systemd timer units use `RandomizedDelaySec=` to add a random delay before a timer’s command runs. `RandomDelay` alone is not the standard directive name.

Submit

10. In systemd timers, what is the default behavior if a timer fires while the system is asleep?

Explanation

For calendar-based systemd timers, `Persistent=true` records when the timer last triggered. If a scheduled activation is missed while the system is asleep, systemd detects the missed event after wakeup and starts the associated service, rather than waiting for the next scheduled time.

Submit

11. Which OnCalendar expression runs a timer every day at 2:30 AM?

Explanation

In systemd’s `OnCalendar` syntax, `*-*-*` matches every year, month, and day, while `02:30:00` specifies the time as 2:30 AM. Together, `*-*-* 02:30:00` schedules the timer to run daily at that time.

Submit

12. What is the purpose of the Unit section in a timer file?

Explanation

The `[Unit]` section provides general information about a timer and its relationships with other systemd units. It can include a description and dependency directives, such as specifying which units must start before or alongside the timer. Scheduling details, such as when the timer runs, are configured separately in the `[Timer]` section.

Submit

13. How do you enable a systemd timer to start automatically at boot?

Explanation

`systemctl enable timer-name.timer` configures the timer to start automatically during boot by linking it to the appropriate systemd target. Use `systemctl start timer-name.timer` to start it immediately for the current session.

Submit

14. What does Persistent=true do in a timer unit configuration?

Explanation

`Persistent=true` causes a systemd timer to catch up on a scheduled activation that was missed while the system was powered off. When the system starts again, the timer triggers the associated unit once if at least one event was missed.

Submit

15. Which command displays the next scheduled execution time for a timer unit?

Explanation

`systemctl list-timers` lists the system’s timer units and shows when each is scheduled to run next, along with its most recent activation time and the associated service. This makes it the appropriate command for checking the next scheduled execution of a timer unit.

Submit

16. Which directive specifies when a timer should run relative to system startup?

Explanation

In a systemd timer unit, `OnBootSec` sets a timer based on how much time has elapsed since the system booted. For example, `OnBootSec=5min` schedules the associated service to run five minutes after startup. This differs from calendar-based schedules, which trigger at specified dates or clock times.

Submit

17. What is the relationship between a timer unit and a service unit in systemd?

Explanation

In systemd, a timer unit schedules when an associated service unit should run. When the timer’s configured time or interval is reached, systemd activates the service, allowing tasks to run automatically without manual intervention.

Submit

18. Which file extension is used for systemd timer unit files?

Explanation

systemd timer unit files use the `.timer` extension. They define when and how often systemd should trigger a service or another unit, serving as a systemd-managed alternative to traditional cron scheduling.

Submit

19. What does the AccuracySec directive control in a timer unit?

Explanation

`AccuracySec` sets the allowed timing window for a timer event: the timer may fire within that interval around its scheduled time rather than at an exact instant. This flexibility lets systemd group timer activations and reduce unnecessary system wake-ups. It does not set the interval between executions or change the timer’s time zone.

Submit

20. What does the OnCalendar directive use to define timer schedules?

Explanation

The OnCalendar directive uses systemd’s calendar event syntax to specify when a timer should run. It supports flexible date and time expressions, such as recurring schedules and specific weekdays or times, rather than relying on Unix cron syntax or ISO 8601 alone.

Submit
×
Saved
Thank you for your feedback!
View My Results
Joshua Gelman |CompTIA Certified |
CompTIA Expert
Joshua G. is a cybersecurity specialist and instructor with over a decade of hands-on experience in incident response, secure system design, and risk management. He holds CompTIA Security+, CySA+, SecurityX (CASP+), CSAP, and CSAE certifications, as well as the CISSP, and teaches cybersecurity as an adjunct instructor at Texas A&M Engineering Extension Service (TEEX). He earned his MS in Information Science from the University of Pittsburgh.
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
In a systemd timer unit file, what does the [Timer] section contain?
What does the Unit= directive in a timer's [Timer] section accomplish?
How do you manually trigger a timer-associated service without waiting...
In systemd timer units, what does the Requires directive specify?
What is the primary advantage of systemd timers over traditional cron...
Which OnCalendar expression runs a timer every Monday at 9:00 AM?
What naming convention must a service have to be automatically...
How do you check the status and next execution time of a specific...
Which systemd timer directive specifies a random delay before...
In systemd timers, what is the default behavior if a timer fires while...
Which OnCalendar expression runs a timer every day at 2:30 AM?
What is the purpose of the Unit section in a timer file?
How do you enable a systemd timer to start automatically at boot?
What does Persistent=true do in a timer unit configuration?
Which command displays the next scheduled execution time for a timer...
Which directive specifies when a timer should run relative to system...
What is the relationship between a timer unit and a service unit in...
Which file extension is used for systemd timer unit files?
What does the AccuracySec directive control in a timer unit?
What does the OnCalendar directive use to define timer schedules?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!