exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 308 discussion

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

A systems administrator wants to ensure all the latest patches and updates are automatically synced to the local repository every two hours on Sundays through Tuesdays in the month of May. Which of the following cron entries can the administrator use to achieve this goal? (Choose two.)

  • A. 0 */2 * 5 0-3 /root/update-from-remote-to-local.sh
  • B. 0 0,2,4,6,8,10,12,14 * 5 0-3 /root/update-from-remote-to-local.sh
  • C. 0 0,2,4,6,8,10,12,14 * 5 0-2 /root/update-from-remote-to-local.sh
  • D. 0 0-23/2 * 5 0-3 /root/update-from-remote-to-local.sh
  • E. 0 0-23/2 * 5 0-2 /root/update-from-remote-to-local.sh
  • F. 0 */2 * 5 0-2 /root/update-from-remote-to-local.sh
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
hackeriam1
1 month, 1 week ago
Selected Answer: E
❌ Option C: pgsql Copy Edit 0 0,2,4,6,8,10,12,14 * 5 0-2 /root/update-from-remote-to-local.sh This: Runs at only 8 time points: 00:00–14:00 every two hours Stops at 14:00 (2 PM) ❌ Misses: 16:00, 18:00, 20:00, 22:00 👉 Conclusion: ✅ Correct in day/month scope, ❌ incorrect in time coverage. ✅ Option E: pgsql Copy Edit 0 0-23/2 * 5 0-2 /root/update-from-remote-to-local.sh This: Uses 0-23/2 → every even-numbered hour (every 2 hours) throughout the entire day Hits 00:00, 02:00, ..., 22:00 ✔️ Restricts to May (5) ✔️ Restricts to Sunday–Tuesday (0–2
upvoted 1 times
...
Mistermiyagi
3 months, 3 weeks ago
Selected Answer: E
I also agree E and F are the correct answers
upvoted 1 times
...
ID77
4 months, 1 week ago
Selected Answer: E
C should be eliminated because it only runs until 2 PM instead of covering the full 24-hour range. E&F yes.
upvoted 1 times
...
sterguy
5 months ago
Selected Answer: E
I agree EF are the only options that make sense
upvoted 1 times
...
74cd09c
5 months, 2 weeks ago
Selected Answer: F
EF are correct
upvoted 2 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 ...