102-500 · Question #113
Which of the following sections exists in a systemd timer unit?
The correct answer is B. [Timer]. [Timer] is a real section in systemd unit files - every .timer unit must include it to define scheduling directives like OnCalendar=, OnBootSec=, or OnUnitActiveSec=. The other options are fabrications: [Events], [cron], [Schedule], and [Trigger] are not valid systemd unit…
Question
Options
- A[Events]
- B[Timer]
- C[cron]
- D[Schedule]
- E[Trigger]
How the community answered
(45 responses)- A7% (3)
- B73% (33)
- C2% (1)
- D4% (2)
- E13% (6)
Explanation
[Timer] is a real section in systemd unit files - every .timer unit must include it to define scheduling directives like OnCalendar=, OnBootSec=, or OnUnitActiveSec=. The other options are fabrications: [Events], [cron], [Schedule], and [Trigger] are not valid systemd unit sections - systemd has no concept of these names, and cron is an entirely separate scheduling system.
Memory tip: Systemd unit sections are always named after the unit type itself - a .service file has [Service], a .socket file has [Socket], and a .timer file has [Timer]. If you remember that pattern, you'll never second-guess it on the exam.
Topics
Community Discussion
No community discussion yet for this question.