Question 2 of 144
SK0-005 server-administration Practice Question
An administrator needs to configure a critical web service on a Linux server to automatically restart if it crashes unexpectedly. The server uses systemd. Which of the following best accomplishes this goal?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure the service's systemd unit file with Restart=always
Option C is correct because setting Restart=always in the systemd unit file ensures the service restarts regardless of exit code, which is the proper systemd method. Option A is wrong because a cron job introduces a potential delay and is less reliable than built-in service supervision. Option B is wrong because an init.d script with a loop is an outdated approach and not recommended with systemd. Option D is wrong because inetd starts services on demand, not for persistent daemons.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set the service to run under inetd so it starts on demand
Why it's wrong here
inetd is for on-demand services, not for a continuously running daemon that needs to be restarted after a crash.
- ✗
Write a cron job to check the service status every minute and start it if stopped
Why it's wrong here
A cron job is less reliable due to the polling interval and is not the best practice when systemd provides native restart capabilities.
- ✓
Configure the service's systemd unit file with Restart=always
Why this is correct
Restart=always tells systemd to restart the service whenever it stops, which is the proper and most reliable way to ensure automatic recovery.
- ✗
Create an init.d script that loops and re-executes the service if it exits
Why it's wrong here
This is an outdated method and may conflict with systemd; systemd unit files are the modern standard.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jul 26, 2026
This SK0-005 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SK0-005 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.