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.
Go deeper
Related to this question
Key term
systemd
systemd is a system and service manager for Linux operating systems that initializes and manages processes, services, and system resources after the kernel boots.
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
About these practice questions
This SK0-005 question is part of Courseiva's 185-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed July 2026 · checked against the official CompTIA exam blueprint
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.