Skip to content

All certifications

XK0-006 practice question on Compliance, 2026-11-14

Archived question for 2026-11-14. Domain: Security. Objective 3.6: Compliance. Original SecLern question, written for practice.

An administrator wants the audit system to record writes and attribute changes to /etc/passwd, tagged with the key identity-file, until the next reboot. Which command does this?

Show the explanation

-w sets the watched path and -p wa selects writes and attribute changes.

Each option

  • A (correct). Correct: -w sets the watched path and -p wa selects writes and attribute changes.
  • B. -p r watches reads and not changes. It would be right for access auditing.
  • C. -p x watches execution. It would be right for programs.
  • D. That records every open call on the host and is not limited to this file. It would be right for broad syscall auditing.

What this question tests

It maps to XK0-006 objective 3.6, Compliance: Compliance and scanning Related ideas: auditctl, watch.

The published topics under this objective, so you can check what you have covered:

  • auditd
  • Integrity checks
  • Vulnerability scanning

More from the archive

Start a daily session

Several questions at a time, aimed at your gaps.