Courseiva
mediumMultiple ChoiceObjective-mapped

XK0-006 Practice Question: A system administrator wants to limit the CPU and…

A system administrator wants to limit the CPU and memory usage of a specific service to prevent it from affecting other processes. Which Linux feature should be used?

⚠ Common exam trap

Watch out — candidates often confuse process priority tools (nice/renice) with resource limiting tools, not realizing that nice only affects CPU scheduling order, not hard caps on CPU or memory usage.

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

cgroups

C is correct because cgroups (control groups) is the Linux kernel feature designed to limit, account for, and isolate resource usage (CPU, memory, disk I/O, etc.) of process groups. Unlike simple priority adjustments, cgroups enforce hard limits on resource consumption, making them ideal for preventing a specific service from starving other processes.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ulimit

    Why it's wrong here

    ulimit sets limits per user session, not per service.

  • renice

    Why it's wrong here

    renice adjusts priority of running process.

  • cgroups

    Why this is correct

    cgroups can limit CPU, memory, I/O for process groups.

  • nice

    Why it's wrong here

    nice adjusts scheduling priority, not resource limits.

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 →

How Courseiva writes practice questions · Editorial policy

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.