Courseiva
TroubleshootinghardMultiple ChoiceObjective-mapped

XK0-006 Troubleshooting Practice Question

An administrator is troubleshooting a service that fails to start with a 'Permission denied' error. The administrator runs `strace -f -o /tmp/strace.log systemctl start myservice`. Which of the following best describes what this command achieves?

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

It traces system calls for systemctl and its children, recording them to a file.

strace traces system calls; -f follows child processes; -o writes output to file.

Answer analysis

Option-by-option breakdown

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

  • It records the kernel messages related to the service start.

    Why it's wrong here

    That would be dmesg or journalctl, not strace.

  • It traces system calls for systemctl and its children, recording them to a file.

    Why this is correct

    Correct: strace traces syscalls, -f follows forks, -o outputs to file.

  • It monitors network connections opened by the service.

    Why it's wrong here

    Strace can show network syscalls but not specifically monitor connections.

  • It traces library calls made by the service startup.

    Why it's wrong here

    That would be ltrace, not strace.

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.