exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 52 discussion

Actual exam question from CompTIA's XK0-005
Question #: 52
Topic #: 1
[All XK0-005 Questions]

A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following:

The Linux administrator attempts to start the timer service but receives the following error message:

Which of the following is MOST likely the reason the timer will not start?

  • A. The checkdiskspace.timer unit should be enabled via systemctl.
  • B. The timers.target should be reloaded to get the new configuration.
  • C. The checkdiskspace.timer should be configured to allow manual starts.
  • D. The checkdiskspace.timer should be started using the sudo command.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RayRay2
3 months, 4 weeks ago
Selected Answer: A
The correct answer is A. The checkdiskspace.timerunit should be enabled via systemctl. Here's why: In order for a systemd timer unit to be active and start the associated service, it needs to be enabled first. Enabling the timer makes sure it will be started at boot or when the systemd daemon reloads its configuration. The other options are less likely to be the issue: B. The timers.targetshould be reloaded to get the new configuration: While reloading might be necessary after making changes, it won’t start a timer that hasn’t been enabled. C. The checkdiskspace.timershould be configured to allow manual starts: This is not necessary for timers; timers run based on their scheduling, not manual starts. D. The checkdiskspace.timershould be started using the sudo command: Starting a timer usually requires administrative privileges, but the primary issue would be that the timer needs to be enabled.
upvoted 2 times
...
Lorello2023
4 months, 2 weeks ago
Selected Answer: A
the question clearly say the intent is not to start the script manually
upvoted 2 times
...
MissAllen
5 months, 2 weeks ago
C is correct. Even root cannot start the service if the config file prevents it.
upvoted 2 times
NastyNutsu
2 months ago
C contradicts with the requirement, "The Linux Administrator does not want users to able to start the job" A. The checkdiskspace.timer unit should be enabled via systemctl. sudo systemctl enable checkdiskspace.timer sudo systemctl start checkdiskspace.timer enabling the timer will ensure it runs according to the schedule without requiring manual intervention.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago