nerdexam
CompTIACompTIA

XK0-005 · Question #277

XK0-005 Question #277: Real Exam Question with Answer & Explanation

The correct answer is C: 5 2 * * 1. {"question_number": 1, "question": "Which crontab entry runs /scripts/backup.sh every Monday at 2:05 a.m.?", "correct_answer": "C", "explanation": "The crontab field order is: minute hour day_of_month month day_of_week command. For 2:05 a.m. every Monday: minute=5, hour=2, day_of

System Management

Question

A junior systems administrator needs to schedule a backup script named /scripts/backup.sh and make the correct changes to the crontab. Which of the following crontab entries would run the script every Monday at 2:05 a.m.?

Options

  • A1 * * 5 2
  • B2 5 * * 1
  • C5 2 * * 1
  • D1 * * 2 5
  • E5 2 * * 0 /scripts/backup.sh

Explanation

{"question_number": 1, "question": "Which crontab entry runs /scripts/backup.sh every Monday at 2:05 a.m.?", "correct_answer": "C", "explanation": "The crontab field order is: minute hour day_of_month month day_of_week command. For 2:05 a.m. every Monday: minute=5, hour=2, day_of_month=* (any), month=* (any), day_of_week=1 (Monday, where 0=Sunday). That gives '5 2 * * 1 /scripts/backup.sh', which matches option C. Option E has the correct format but uses 0 for day_of_week (Sunday, not Monday). Options A, B, and D have the fields in the wrong order or wrong values.", "generated_by": "claude-sonnet", "llm_judge_score": 3}

Topics

#Crontab#Scheduling#Linux commands#System administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions