XK0-006 Troubleshooting Practice Question
A Linux administrator wants to check the history of CPU usage for the past two days using the system activity reporter. Which sar option retrieves data from the daily history file for a specific date?
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
✓
sar -f /var/log/sa/sa$(date +%d --date='2 days ago')
sar -f /var/log/sa/saDD reads from the history file for a specific day (DD is the day of month).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
sar -r -b
Why it's wrong here
Shows memory and I/O, not CPU.
- ✓
sar -f /var/log/sa/sa$(date +%d --date='2 days ago')
Why this is correct
Correct: -f specifies the history file for a specific date.
- ✗
sar -n DEV
Why it's wrong here
Shows network stats.
- ✗
sar -u -s 00:00:00 -e 23:59:59
Why it's wrong here
This shows current day's data, not historical.
Go deeper
Related to this question
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.