XK0-006

CompTIA Linux+ XK0-006 practice exams

440 questions in 5 timed practice tests. Each test has about 90 questions and a 90-minute limit. The pass mark is 80%. Results are split across the 5 exam domains.

Exam at a glance

XK0-006 practice exam settings
Practice tests 5
Questions in total 440
Questions per test About 90
Time limit per test 90 minutes
Pass mark 80%
Question types Single answer and multiple answer (45 multiple-answer questions)
Level Associate
Category DevOps & Cloud Native

These are the settings of our practice tests. Check the official CompTIA exam page for the current exam format before you book.

Domains and weights

XK0-006 exam domains, weights and question counts
Domain Weight Weight bar Questions in our bank
System Management 23% 101
Services and User Management 20% 88
Security 18% 79
Automation, Orchestration, and Scripting 17% 75
Troubleshooting 22% 97

Sample questions

Question 1 of 3

A nightly job must mirror /srv/www to a backup host, copying only changed files, preserving ownership and timestamps, and deleting files on the destination that were removed at the source. Which command meets these requirements?

  1. A rsync -av /srv/www/ backup:/srv/www/
  2. B rsync -av --delete /srv/www/ backup:/srv/www/ (correct answer)
  3. C cp -au /srv/www/ /mnt/backup/www/
  4. D rsync -avz --ignore-existing /srv/www/ backup:/srv/www/
Why: rsync -a preserves ownership, permissions and times, transfers only differences, and --delete removes destination files that no longer exist at the source. --ignore-existing skips files already at the destination so changed files are never updated and nothing is deleted, rsync without --delete leaves stale files behind, and cp -u to a local mount neither reaches a remote host efficiently nor deletes removed files.

Question 2 of 3

A new data disk must be mounted at /data on every boot, and the device name may change between /dev/sdb and /dev/sdc after hardware changes. What is the BEST way to reference the file system in /etc/fstab?

  1. A Use UUID=<file system UUID> as reported by blkid (correct answer)
  2. B Use the PARTUUID of the disk's first partition with the defaults option
  3. C Use the kernel device name /dev/sdb1 and add the nofail option
  4. D Use LABEL=data after setting it with the partprobe command
Why: A file system UUID is stable regardless of which kernel name the disk receives, so it is the recommended fstab identifier. The kernel name can change and nofail only hides the problem, a PARTUUID works but identifies the partition rather than the file system and is not the usual choice for a simple data disk, and partprobe re-reads partition tables rather than setting labels (e2label or xfs_admin do that).

Question 3 of 3, choose 2

A rootless Podman container running as user appsvc must start automatically at boot, before appsvc logs in, and be managed as a systemd service. Which actions are required? (Choose two.)

  1. A Set the container restart policy to always with podman update
  2. B Install the unit in /etc/systemd/system as root
  3. C Add the container to /etc/rc.local with podman start
  4. D Create a Quadlet .container file in ~/.config/containers/systemd/ (correct answer)
  5. E Run loginctl enable-linger appsvc (correct answer)
Why: A Quadlet file in the user's containers/systemd directory is turned into a user service by the systemd generator, and lingering keeps the user's systemd manager running from boot without a login. rc.local is legacy and not enabled by default, a restart policy does not start containers at boot without a service manager, and a system unit installed by root would not run the rootless container under the user's own manager.

What your score report looks like

Example attempt, XK0-006 practice test 3

78%

Not passed
Pass mark 80%

Score by exam domain
DomainWeightYour score%
System Management 23%
88
Services and User Management 20%
81
Security 18%
76
Automation, Orchestration, and Scripting 17%
58
Troubleshooting 22%
84

Study next: Automation, Orchestration, and Scripting. It is below the pass mark and carries 17% of the exam.

Domains and pass mark from our XK0-006 practice tests. Scores are an example attempt.

Study plans

Two weeks

  1. Day 1: take practice test 1 in exam mode to get a baseline.
  2. Days 2 to 5: domain mode on System Management and Troubleshooting, the two most heavily weighted domains.
  3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
  4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
  5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

Four weeks

  1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
  2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
  3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
  4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

Questions about the XK0-006 practice exams

Are these real XK0-006 exam questions?
No. We write every question ourselves and map it to the published XK0-006 exam objectives. We do not use leaked or recalled questions.
Do the time limit and pass mark match the official exam?
They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.
Can I try it before I pay?
Yes. The free mini exam has 15 questions with full explanations and needs no account.
How long do I keep access?
A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.
What happens after I finish a test?
You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026. Written and reviewed by the DevOpsCode Lab team.

DevOpsCode Lab is not affiliated with CompTIA. XK0-006 and related names are trademarks of their owners.

Related exams
Exam Vendor Level Questions Minutes Price
CS0-004CompTIA CySA+ CS0-004 CompTIA Professional 426 165 $14.99
CAS-005CompTIA SecurityX CAS-005 CompTIA Expert 450 165 $14.99
CNX-001CompTIA CloudNetX CNX-001 CompTIA Expert 450 165 $14.99
DY0-001CompTIA DataAI DY0-001 CompTIA Expert 450 165 $14.99
220-1201CompTIA A+ Core 1 220-1201 CompTIA Foundational 450 90 $9.99
220-1202CompTIA A+ Core 2 220-1202 CompTIA Foundational 450 90 $9.99