Question 220
During validation, this problem was found: The admin added the name to cron.deny but the allow file still excludes it. The original goal was: A standard user must be permitted to create crontab jobs when a cron.allow policy is in effect. Which targeted correction best resolves it?
- Maintain the relevant allowlist and verify scheduling under both user identities.
- Define the correct WantedBy/After relationships in the service unit and enable it.
- Add Persistent=true to the calendar-based timer and verify its state directory/behavior.
- Edit the active cron.allow allowlist instead of relying on cron.deny when cron.allow exists.
Explanation
Correct Answer
D:Edit the active cron.allow allowlist instead of relying on cron.deny when cron.allow exists. It directly addresses the observed symptom: The admin added the name to cron.deny but the allow file still excludes it. The relevant mechanism is When cron.allow is present, listed users are granted the configured user-level cron access.
Incorrect Answers
A:This fix is aimed at The team edited at.deny but a restrictive at.allow still controls access. and would be relevant if A batch team must deny certain users one-time at scheduling while allowing designated operators. The incident instead states The admin added the name to cron.deny but the allow file still excludes it. and needs Edit the active cron.allow allowlist instead of relying on cron.deny when cron.allow exists.
B:This fix is aimed at The task runs before its required network mount is ready due to absent ordering. and would be relevant if A startup script must run after boot without putting an @reboot entry into individual user crontabs. The incident instead states The admin added the name to cron.deny but the allow file still excludes it. and needs Edit the active cron.allow allowlist instead of relying on cron.deny when cron.allow exists.
C:This fix is aimed at The timer skips every missed run after a power outage despite a catch-up requirement. and would be relevant if A periodic cleanup should catch up once after a system was powered off during its scheduled run. The incident instead states The admin added the name to cron.deny but the allow file still excludes it. and needs Edit the active cron.allow allowlist instead of relying on cron.deny when cron.allow exists.
Question 221
A Linux administrator faces this requirement: A systemd-managed job must run every fifteen minutes with service activation separate from scheduling. Which specific action is the best direct solution?
- Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer.
- Use atrm with the job ID found by atq.
- Apply /etc/at.allow with an explicit list of authorized users where available.
- Set Persistent=true in a systemd calendar timer with suitable scheduling semantics.
Explanation
Correct Answer
A:Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. The mechanism is: A systemd timer schedules activation of its service unit; simply enabling the service does not set a recurring schedule.
Incorrect Answers
B:Use atrm with the job ID found by atq. That operation is designed for the different case: An operations engineer needs to delete a queued one-off at job that has not executed yet. It does not perform the specific action required here: Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer.
C:Apply /etc/at.allow with an explicit list of authorized users where available. That operation is designed for the different case: A batch team must deny certain users one-time at scheduling while allowing designated operators. It does not perform the specific action required here: Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer.
D:Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. That operation is designed for the different case: A periodic cleanup should catch up once after a system was powered off during its scheduled run. It does not perform the specific action required here: Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer.
Question 222
The engineer proposes this implementation: Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. The requirement is: A systemd-managed job must run every fifteen minutes with service activation separate from scheduling. Which technical explanation best supports the proposed action?
- Cron fields specify minute hour day-of-month month day-of-week; user crontabs execute as their owner.
- A systemd timer schedules activation of its service unit; simply enabling the service does not set a recurring schedule.
- at queues a one-time command, whereas cron expresses recurring schedules.
- atrm removes a pending at queue entry without changing unrelated cron jobs.
Explanation
Correct Answer
B:A systemd timer schedules activation of its service unit; simply enabling the service does not set a recurring schedule. It specifically supports the proposed action of Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. for the requirement described.
Incorrect Answers
A:This explains another Linux operation, namely Install a user crontab entry 30 2 * * * /path/housekeeping through crontab -e., where Cron fields specify minute hour day-of-month month day-of-week; user crontabs execute as their owner. It does not explain why Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. satisfies the stated condition.
C:This explains another Linux operation, namely Submit the command with at for the requested one-time execution time., where at queues a one-time command, whereas cron expresses recurring schedules. It does not explain why Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. satisfies the stated condition.
D:This explains another Linux operation, namely Use atrm with the job ID found by atq., where atrm removes a pending at queue entry without changing unrelated cron jobs. It does not explain why Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. satisfies the stated condition.
Question 223
The action Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. was applied for this goal: A systemd-managed job must run every fifteen minutes with service activation separate from scheduling. Which observation provides the most direct acceptance evidence?
- An authorized operator submits an at job while a nonlisted account is rejected.
- The target timer appears with the expected next and previous trigger information.
- systemctl list-timers shows the timer's next trigger and the service runs on schedule.
- The specified service account executes the job without root ownership of the process.
Explanation
Correct Answer
C:systemctl list-timers shows the timer's next trigger and the service runs on schedule. This checks the effect of Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. against the stated operational goal.
Incorrect Answers
A:That observation checks A batch team must deny certain users one-time at scheduling while allowing designated operators. In this scenario it does not demonstrate Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer.; the relevant evidence must establish systemctl list-timers shows the timer's next trigger and the service runs on schedule.
B:That observation checks An administrator wants to know the next activation time and last run of all systemd timers. In this scenario it does not demonstrate Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer.; the relevant evidence must establish systemctl list-timers shows the timer's next trigger and the service runs on schedule.
D:That observation checks An administrator must place a centrally managed cron job in /etc/crontab and specify the account that runs it. In this scenario it does not demonstrate Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer.; the relevant evidence must establish systemctl list-timers shows the timer's next trigger and the service runs on schedule.
Question 224
A team is validating its implementation of this requirement: A systemd-managed job must run every fifteen minutes with service activation separate from scheduling. Which observed mistake most specifically identifies that the intended automate system administration tasks by scheduling jobs behavior has NOT been met?
- The task runs before its required network mount is ready due to absent ordering.
- Looking at systemctl list-units for services alone omits timer schedule data.
- The timer skips every missed run after a power outage despite a catch-up requirement.
- Only the .service unit is enabled, and no timer event invokes it automatically.
Explanation
Correct Answer
D:Only the .service unit is enabled, and no timer event invokes it automatically. This shows the requested behavior is absent, so the deployment needs the correction: Enable and start the .timer unit with a valid calendar trigger and service association.
Incorrect Answers
A:That symptom concerns A startup script must run after boot without putting an @reboot entry into individual user crontabs. This concerns a separate requirement, not the one being tested. The relevant failure is Only the .service unit is enabled, and no timer event invokes it automatically. The current requirement calls for a different check.
B:That symptom concerns An administrator wants to know the next activation time and last run of all systemd timers. This concerns a separate requirement, not the one being tested. The relevant failure is Only the .service unit is enabled, and no timer event invokes it automatically. The current requirement calls for a different check.
C:That symptom concerns A periodic cleanup should catch up once after a system was powered off during its scheduled run. This concerns a separate requirement, not the one being tested. The relevant failure is Only the .service unit is enabled, and no timer event invokes it automatically. The current requirement calls for a different check.
Question 225
During validation, this problem was found: Only the .service unit is enabled, and no timer event invokes it automatically. The original goal was: A systemd-managed job must run every fifteen minutes with service activation separate from scheduling. Which targeted correction best resolves it?
- Enable and start the .timer unit with a valid calendar trigger and service association.
- Inspect systemctl list-timers --all and the relevant timer unit definition.
- Remove the correct at job ID using atrm.
- Set the cron minute and hour fields precisely and validate the resulting job schedule.
Explanation
Correct Answer
A:Enable and start the .timer unit with a valid calendar trigger and service association. It directly addresses the observed symptom: Only the .service unit is enabled, and no timer event invokes it automatically. The relevant mechanism is A systemd timer schedules activation of its service unit; simply enabling the service does not set a recurring schedule.
Incorrect Answers
B:This fix is aimed at Looking at systemctl list-units for services alone omits timer schedule data. and would be relevant if An administrator wants to know the next activation time and last run of all systemd timers. The incident instead states Only the .service unit is enabled, and no timer event invokes it automatically. and needs Enable and start the .timer unit with a valid calendar trigger and service association.
C:This fix is aimed at The job still appears in the at queue after deleting a similarly named cron entry. and would be relevant if An operations engineer needs to delete a queued one-off at job that has not executed yet. The incident instead states Only the .service unit is enabled, and no timer event invokes it automatically. and needs Enable and start the .timer unit with a valid calendar trigger and service association.
D:This fix is aimed at The script runs every hour because the hour field was a wildcard. and would be relevant if A server must run a housekeeping command at 02:30 every morning under a specific user's identity. The incident instead states Only the .service unit is enabled, and no timer event invokes it automatically. and needs Enable and start the .timer unit with a valid calendar trigger and service association.
Question 226
A Linux administrator faces this requirement: A periodic cleanup should catch up once after a system was powered off during its scheduled run. Which specific action is the best direct solution?
- Include that user explicitly in /etc/cron.allow.
- Set Persistent=true in a systemd calendar timer with suitable scheduling semantics.
- Use a dedicated systemd service with appropriate dependencies and enable it for the desired boot target.
- Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer.
Explanation
Correct Answer
B:Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. The mechanism is: Persistent calendar timers can trigger missed runs after the timer becomes active, subject to unit behavior.
Incorrect Answers
A:Include that user explicitly in /etc/cron.allow. That operation is designed for the different case: A standard user must be permitted to create crontab jobs when a cron.allow policy is in effect. It does not perform the specific action required here: Set Persistent=true in a systemd calendar timer with suitable scheduling semantics.
C:Use a dedicated systemd service with appropriate dependencies and enable it for the desired boot target. That operation is designed for the different case: A startup script must run after boot without putting an @reboot entry into individual user crontabs. It does not perform the specific action required here: Set Persistent=true in a systemd calendar timer with suitable scheduling semantics.
D:Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer. That operation is designed for the different case: A systemd-managed job must run every fifteen minutes with service activation separate from scheduling. It does not perform the specific action required here: Set Persistent=true in a systemd calendar timer with suitable scheduling semantics.
Question 227
The engineer proposes this implementation: Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. The requirement is: A periodic cleanup should catch up once after a system was powered off during its scheduled run. Which technical explanation best supports the proposed action?
- list-timers displays scheduled timer units with NEXT and LAST columns, including inactive timers with --all.
- A systemd timer schedules activation of its service unit; simply enabling the service does not set a recurring schedule.
- Persistent calendar timers can trigger missed runs after the timer becomes active, subject to unit behavior.
- atrm removes a pending at queue entry without changing unrelated cron jobs.
Explanation
Correct Answer
C:Persistent calendar timers can trigger missed runs after the timer becomes active, subject to unit behavior. It specifically supports the proposed action of Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. for the requirement described.
Incorrect Answers
A:This explains another Linux operation, namely Run systemctl list-timers --all., where list-timers displays scheduled timer units with NEXT and LAST columns, including inactive timers with --all. It does not explain why Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. satisfies the stated condition.
B:This explains another Linux operation, namely Create a .timer unit with an OnCalendar expression and a matching .service unit, then enable/start the timer., where A systemd timer schedules activation of its service unit; simply enabling the service does not set a recurring schedule. It does not explain why Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. satisfies the stated condition.
D:This explains another Linux operation, namely Use atrm with the job ID found by atq., where atrm removes a pending at queue entry without changing unrelated cron jobs. It does not explain why Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. satisfies the stated condition.
Question 228
The action Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. was applied for this goal: A periodic cleanup should catch up once after a system was powered off during its scheduled run. Which observation provides the most direct acceptance evidence?
- On reboot the service executes after its required dependencies and does not repeat periodically.
- The specified service account executes the job without root ownership of the process.
- The selected ID disappears from atq while unrelated queued tasks remain.
- After reboot the missed calendar event is handled and the next timer schedule remains visible.
Explanation
Correct Answer
D:After reboot the missed calendar event is handled and the next timer schedule remains visible. This checks the effect of Set Persistent=true in a systemd calendar timer with suitable scheduling semantics. against the stated operational goal.
Incorrect Answers
A:That observation checks A startup script must run after boot without putting an @reboot entry into individual user crontabs. In this scenario it does not demonstrate Set Persistent=true in a systemd calendar timer with suitable scheduling semantics.; the relevant evidence must establish After reboot the missed calendar event is handled and the next timer schedule remains visible.
B:That observation checks An administrator must place a centrally managed cron job in /etc/crontab and specify the account that runs it. In this scenario it does not demonstrate Set Persistent=true in a systemd calendar timer with suitable scheduling semantics.; the relevant evidence must establish After reboot the missed calendar event is handled and the next timer schedule remains visible.
C:That observation checks An operations engineer needs to delete a queued one-off at job that has not executed yet. In this scenario it does not demonstrate Set Persistent=true in a systemd calendar timer with suitable scheduling semantics.; the relevant evidence must establish After reboot the missed calendar event is handled and the next timer schedule remains visible.
Question 229
A team is validating its implementation of this requirement: A periodic cleanup should catch up once after a system was powered off during its scheduled run. Which observed mistake most specifically identifies that the intended automate system administration tasks by scheduling jobs behavior has NOT been met?
- The timer skips every missed run after a power outage despite a catch-up requirement.
- The user field was omitted, causing the cron line to be parsed incorrectly.
- The task runs before its required network mount is ready due to absent ordering.
- Looking at systemctl list-units for services alone omits timer schedule data.
Explanation
Correct Answer
A:The timer skips every missed run after a power outage despite a catch-up requirement. This shows the requested behavior is absent, so the deployment needs the correction: Add Persistent=true to the calendar-based timer and verify its state directory/behavior.
Incorrect Answers
B:That symptom concerns An administrator must place a centrally managed cron job in /etc/crontab and specify the account that runs it. This concerns a separate requirement, not the one being tested. The relevant failure is The timer skips every missed run after a power outage despite a catch-up requirement. The current requirement calls for a different check.
C:That symptom concerns A startup script must run after boot without putting an @reboot entry into individual user crontabs. This concerns a separate requirement, not the one being tested. The relevant failure is The timer skips every missed run after a power outage despite a catch-up requirement. The current requirement calls for a different check.
D:That symptom concerns An administrator wants to know the next activation time and last run of all systemd timers. This concerns a separate requirement, not the one being tested. The relevant failure is The timer skips every missed run after a power outage despite a catch-up requirement. The current requirement calls for a different check.
Question 230
During validation, this problem was found: The timer skips every missed run after a power outage despite a catch-up requirement. The original goal was: A periodic cleanup should catch up once after a system was powered off during its scheduled run. Which targeted correction best resolves it?
- Enable and start the .timer unit with a valid calendar trigger and service association.
- Add Persistent=true to the calendar-based timer and verify its state directory/behavior.
- Inspect systemctl list-timers --all and the relevant timer unit definition.
- Use at with the specified time and remove the unnecessary recurring cron entry.
Explanation
Correct Answer
B:Add Persistent=true to the calendar-based timer and verify its state directory/behavior. It directly addresses the observed symptom: The timer skips every missed run after a power outage despite a catch-up requirement. The relevant mechanism is Persistent calendar timers can trigger missed runs after the timer becomes active, subject to unit behavior.
Incorrect Answers
A:This fix is aimed at Only the .service unit is enabled, and no timer event invokes it automatically. and would be relevant if A systemd-managed job must run every fifteen minutes with service activation separate from scheduling. The incident instead states The timer skips every missed run after a power outage despite a catch-up requirement. and needs Add Persistent=true to the calendar-based timer and verify its state directory/behavior.
C:This fix is aimed at Looking at systemctl list-units for services alone omits timer schedule data. and would be relevant if An administrator wants to know the next activation time and last run of all systemd timers. The incident instead states The timer skips every missed run after a power outage despite a catch-up requirement. and needs Add Persistent=true to the calendar-based timer and verify its state directory/behavior.
D:This fix is aimed at A daily cron entry repeats the task on subsequent days. and would be relevant if A maintenance task should execute only once at 15:00 tomorrow rather than repeat daily. The incident instead states The timer skips every missed run after a power outage despite a catch-up requirement. and needs Add Persistent=true to the calendar-based timer and verify its state directory/behavior.
LPI Level 1 (102-500) Practice Tests