mediumMultiple ChoiceObjective-mapped
XK0-006 Practice Question: A systems administrator needs to ensure that a…
A systems administrator needs to ensure that a custom service runs with a specific priority on a Linux server. Which command should the administrator use to achieve this?
⚠ Common exam trap
Many exam-takers confuse `nice` (for CPU priority at launch) with `renice` (for adjusting an already running process) or `ionice` (for I/O priority), leading them to select an option that does not set the priority at service start.
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
✓
nice -n -10 /usr/local/bin/myservice
The `nice` command adjusts the CPU scheduling priority of a process at launch time. Using `nice -n -10` sets a higher priority (lower nice value) for the new service, ensuring it runs with the specified priority from the start. This directly meets the requirement to run a custom service with a specific priority.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
renice -10 -p 1234
Why it's wrong here
renice changes priority of an existing process, not starting a new one.
- ✗
ionice -c 2 -n 0 -p 1234
Why it's wrong here
ionice sets I/O priority, not CPU priority.
- ✓
nice -n -10 /usr/local/bin/myservice
Why this is correct
nice runs a command with a modified scheduling priority.
- ✗
chrt -r 99 /usr/local/bin/myservice
Why it's wrong here
chrt sets real-time scheduling attributes, not standard priority.
Go deeper
Related to this question
Learn chapter
Linux Fundamentals and History
Key term
Linux
Linux is an open-source operating system that manages computer hardware and software, widely used in servers, desktops, and embedded systems.
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 XK0-006 question is part of Courseiva's 979-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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 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 XK0-006 exam.