nerdexam
LPI

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…

Essential System Services

Question

Which of the following sections exists in a systemd timer unit?

Options

  • A[Events]
  • B[Timer]
  • C[cron]
  • D[Schedule]
  • E[Trigger]

How the community answered

(45 responses)
  • A
    7% (3)
  • B
    73% (33)
  • C
    2% (1)
  • D
    4% (2)
  • E
    13% (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

#systemd#timer units#unit files#scheduling

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice