CompTIA XK0-006 Exam Questions & Answers (November 2026)
CompTIA Linux+ V8 Exam exam questions with 15 free practice questions and explained answers. Updated November 24, 2026. · See all CompTIA exams
Answer 15 scenario questions on this page and see your score as you go. No sign-up needed.
Exam Details
- Exam Code
- XK0-006
- Vendor
- CompTIA
- Question Types
- Single ChoiceMultiple ChoiceHotspot
- Official Page
- View Exam Page
System Management
23% of the examCandidates manage Linux startup components, kernel modules, storage, network settings, shell operations, backups, and virtualization resources. They must select appropriate utilities and configuration methods to maintain these systems while meeting operational requirements.
A Linux file server has an ext4 filesystem mounted at /srv/archive on logical volume /dev/vgdata/archive. The volume group vgdata has no free extents. A new, empty 100 GiB disk appears as /dev/sdc, and the change window permits online capacity growth but not unmounting the filesystem. The requirement is to add 80 GiB to this filesystem without reformatting it.
Which command sequence meets the requirement?
Show Answer
Correct Answer
A
Option A is correct because it initializes the empty disk as a physical volume, adds it to vgdata, then extends the logical volume and requests filesystem growth with -r. Option B is not correct because formatting /dev/sdc creates a filesystem on the disk instead of adding it safely to the volume group. Option C omits vgextend, and option D reduces rather than increases capacity.
A virtualization host uses an Intel processor and a distribution kernel that includes the kvm_intel module. Firmware virtualization is enabled, and the module is currently absent from lsmod. The operations team needs KVM acceleration enabled immediately for a maintenance test and retained after reboot. They do not want to rebuild the kernel or modify the bootloader.
Which two actions meet both requirements? Choose two.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, B
Actions A and B meet both needs. modprobe loads kvm_intel now and resolves module dependencies, while the modules-load.d file directs startup to load it after reboot. Option C depends on a correctly located module file and does not configure persistent loading. Option D defines a filesystem mount, and option E refreshes module dependency data without loading the module or scheduling it at boot.
A workstation is managed by NetworkManager, and its active connection profile is named office0. It currently obtains IPv4 settings through DHCP, but a change request assigns 192.0.2.40/24, gateway 192.0.2.1, and DNS server 192.0.2.53. The settings must remain in the profile after reboot, and the administrator must apply them without replacing NetworkManager or manually editing resolver files.
For each requirement, select the appropriate profile property or action.
Choose the correct option for each statement.
Show Answer
Correct Answer
- Select the method property for static IPv4 configuration. ipv4.method manual
- Set the assigned address 192.0.2.40/24. ipv4.addresses 192.0.2.40/24
- Set the default gateway to 192.0.2.1. ipv4.gateway 192.0.2.1
- Set the DNS server to 192.0.2.53. ipv4.dns 192.0.2.53
- Apply the saved profile settings to the active connection. nmcli connection up office0
The manual method selection prevents DHCP from replacing the requested address, and ipv4.addresses stores 192.0.2.40/24 in the profile. The ipv4.gateway and ipv4.dns properties set the requested route and resolver. Reactivating office0 applies the saved settings. Automatic addressing, other profile properties, and a status query do not meet those requirements.
Services and User Management
20% of the examThis topic covers user and group account changes, along with the administration of system services. Candidates must choose commands that preserve account access and manage service startup and state as required.
A company has an analytics group that grants access to shared reporting files. Priya already belongs to the finance and staff supplementary groups, and her manager requests that she also join analytics. The administrator must make the change without disturbing her existing access. Priya's account already exists, and the administrator has root privileges.
Which command should the administrator use to add Priya to the analytics group while preserving her existing supplementary group memberships?
Show Answer
Correct Answer
B
Option B is correct because the append option adds analytics to Priya's supplementary groups without replacing her existing memberships. Option A replaces the supplementary group list and could remove her current access. Option C uses group creation rather than modifying Priya's account. Option D removes Priya from analytics instead of adding her.
A reporting service named report-agent.service is installed on a Linux server and has a valid unit file. After a maintenance window, the service must be running immediately and must also start automatically after future reboots. The unit file has not changed, and the administrator wants to use systemd rather than a distribution-specific service command.
Choose two commands that meet the requirements.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, B
Options A and B are correct because starting the unit runs it now, while enabling it configures it to start at boot. Option C reloads unit definitions but does not start or enable this existing unit. Option D stops the unit, and option E prevents it from being started through normal service management.
A Linux server runs report-agent.service, and an administrator is handling four separate requests during a scheduled change. A drop-in configuration file has been edited, the service must be started for immediate use and enabled for future boots, and its current state must be checked. The unit is already installed, and no package changes are required.
For each administrative task, select the systemctl command that meets the requirement.
Choose the correct option for each statement.
Show Answer
Correct Answer
- The administrator has edited a drop-in file for report-agent.service and needs systemd to reread unit definitions. systemctl daemon-reload
- The administrator needs report-agent.service to begin running immediately. systemctl start report-agent.service
- The administrator needs report-agent.service to start automatically during later system boots. systemctl enable report-agent.service
- The administrator needs to check whether report-agent.service is currently active. systemctl is-active report-agent.service
Use systemctl daemon-reload after editing the unit drop-in so systemd reads the updated definitions. Use systemctl start to run the service now, and systemctl enable to configure it to start at boot. Use systemctl is-active to check its current active state. These commands address distinct unit management tasks.
Security
18% of the examThis topic covers Linux controls that protect systems, data, and access. Candidates must be able to configure security settings, apply cryptographic checks, and verify that systems meet stated security requirements.
A small company uses nftables on a Linux server that hosts an internal application. The input chain has a drop policy, and an earlier rule accepts established connections. The security team now requires SSH access for maintenance, but only from the administrator workstation at 198.51.100.24. No other inbound SSH source is permitted.
Which rule should the administrator add to meet the access requirement?
Show Answer
Correct Answer
B
Option B accepts new SSH connections only when their source is 198.51.100.24, and the existing established-connection rule handles replies. Option A allows SSH from any source. Option C applies to outbound traffic rather than inbound connections. Option D matches the packet destination, not the administrator's source address.
A package maintainer already has a named Linux account and must run only apt update with root privileges. The security policy requires the existing sudo password prompt to remain in place and requires a local record of sudo commands. The main sudoers file includes /etc/sudoers.d, and administrators must validate edits before applying them.
Choose two controls that meet the access and recordkeeping requirements.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, D
Option A limits the maintainer to the specified command and uses visudo to validate the sudoers edit. Option D records sudo commands in the requested local log. Option B permits broader command arguments, while Option C grants unrestricted root access. Option E removes the password prompt, and Option F provides a privileged shell.
A security analyst prepares an archive for transfer to an external auditor, checks a downloaded installer using a digest obtained through a trusted channel, and validates a service certificate issued by the organization's internal CA. The archive must remain confidential, the installer must be checked for changes, and the certificate must be trusted before the service is accepted.
Select the command that best fits each security task.
Choose the correct option for each statement.
Show Answer
Correct Answer
- Encrypt archive.tar for transfer, with the passphrase sent to the recipient separately. gpg --symmetric --cipher-algo AES256 archive.tar
- Compare installer.rpm with the trusted digest recorded in installer.sha256. sha256sum -c installer.sha256
- Verify service.pem against the organization's CA certificate in org-ca.pem. openssl verify -CAfile org-ca.pem service.pem
The command gpg --symmetric --cipher-algo AES256 archive.tar encrypts the archive for protected transfer. The command sha256sum -c installer.sha256 checks the installer against the independently obtained trusted digest. The command openssl verify -CAfile org-ca.pem service.pem validates the certificate chain against the organization's CA.
Automation, Orchestration, and Scripting
17% of the examThis topic covers configuration automation and CI/CD, shell and Python scripting, Git workflows, and responsible use of AI-generated code. Candidates must choose methods that make tasks repeatable and verify code before using it.
A team runs an Ansible playbook daily on 30 Linux hosts. One task uses a shell command to append worker_count=8 to /etc/worker.conf, which already contains a worker_count setting and several unrelated settings. The team needs each run to enforce the new value without accumulating duplicate entries or replacing the rest of the file.
Which change best meets the team’s requirement?
Show Answer
Correct Answer
A
Option A is correct because the regular expression matches the existing worker_count setting, allowing lineinfile to replace it while retaining unrelated configuration. Option B is not correct because appending creates another setting on each run. Option C is not correct because its one-line file would discard other settings. Option D is not correct because it leaves the old value and adds a second setting.
A data team maintains a Python script that imports requests. The staging host has a newer requests version installed in system Python, but the script was tested with an older version. A separate runner must execute the script with the same dependency version. The team cannot change packages used by other applications and wants a repeatable installation process.
Choose two actions that best meet the team’s requirements.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, C
Options A and C are correct because a virtual environment isolates this project from the conflicting system package, while pinned requirements let staging and the runner install the same declared versions. Option B is not correct because sudo pip changes shared system Python. Option D is also outside the project environment. Option E is not portable, and option F permits version drift.
An analytics team uses Git for a metrics script and its configuration. The reviewed changes have been merged into the local main branch, and CI has passed for the current commit. The working tree also contains generated reports that must not enter the release. The team needs to inspect changes, stage only the reviewed files, and publish an annotated v2.4.0 tag.
Select the appropriate Git action for each statement.
Choose the correct option for each statement.
Show Answer
Correct Answer
- Before staging files, inspect the working tree for modified and untracked files. git status --short
- Stage only the reviewed source file and configuration file. git add src/metrics.py config/metrics.toml
- Create an annotated release tag on the validated current commit and publish that tag. git tag -a v2.4.0 -m "Release 2.4.0" && git push origin v2.4.0
The selected status command exposes tracked and untracked changes before staging, and staging the two named paths excludes generated files. An annotated tag records a release label and message on the validated current commit, while pushing that tag makes it available to the remote team. The alternatives either stage unintended files or fail to publish the release reference.
Troubleshooting
22% of the examThis topic covers diagnosing failures and performance problems by examining system evidence, including storage, network paths, and resource measurements. Candidates must use that evidence to identify likely causes and select focused troubleshooting steps.
A team maintains a Linux server that stores queued work in a directory on the root filesystem. An application begins reporting that it cannot create files, although the filesystem appears to have space. The administrator checks `df -h /` and sees 82 percent usage, while `df -i /` reports 100 percent inode usage. The queue directory contains millions of small files.
Which condition best explains why the application cannot create another file?
Show Answer
Correct Answer
B
Option B is correct because the inode report is at 100 percent while the filesystem still has free data blocks. Option A is not correct because the block report shows available space. Option C is not supported because the filesystem is not reported as read-only. Option D is not supported because the application is writing to the mounted root filesystem.
A Linux workstation can reach its local gateway and internal servers, but connections to public IP addresses leave through a VPN tunnel instead of the office network. The host has both a physical-network default route and a VPN connection. The network team confirms that the physical route is valid and asks the administrator to identify what is selecting the tunnel before changing any configuration.
Choose two commands that would best confirm why traffic to the public address is taking the unexpected path.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, B
Options A and B are correct because the route lookup reveals the selected interface, and the policy rules can explain why that route was chosen. Option C is not correct because the destination is already an IP address. Option D is not correct because listening sockets do not determine the outbound route. Option E is not correct because filesystem capacity is unrelated.
Users report slow responses from a Linux application host during a period of normal request volume. The host has eight CPU cores, CPU use is 22 percent, memory is available, and swap use is zero. However, `iostat -xz` reports 99 percent utilization and 140 ms average wait on the data device. Several application processes appear in D state in the process listing.
For each statement, select the interpretation or next check that best fits the evidence.
Choose the correct option for each statement.
Show Answer
Correct Answer
- The primary bottleneck indicated by the measurements is Storage I/O
- The affected processes in D state are most consistent with Waiting for uninterruptible I/O
- The most useful next check for identifying the workload behind the delay is Identify processes with active disk I/O
Storage I/O is the likely bottleneck because device utilization and await time are high while CPU use and memory availability do not indicate pressure. Waiting for uninterruptible I/O fits the D-state processes. Identifying processes with active disk I/O is the best next check because it can link the device delay to a workload.
Continue Your XK0-006 Preparation
You have seen 15 questions from a full set of 149. Prepare with the XK0-006 dumps PDF and the Web-Based Practice Test.
- Compatible with All Devices
- Printable Format
- No Download Limits
Practice Test
- Check your timing and weak areas
- No Practice Limits
- Regularly Updated
- 100% Money-Back Guarantee
- 90 Days Free Updates
- Instant Access
Frequently Asked Questions
Which part of XK0-006 can feel especially demanding?
System Management covers a wide range of operational decisions, from startup components and kernel modules to storage, network settings, backups, and virtualization resources. The challenge is choosing a suitable utility or configuration method for the stated requirement, rather than recalling commands in isolation. Make a comparison sheet that links each task to the relevant tool and its purpose. Then practise explaining why that choice fits the operational need.
Why does troubleshooting require more than memorising commands?
The Troubleshooting topic expects candidates to use evidence, such as storage status, network paths, and resource measurements, to identify likely causes. A familiar command is useful only if you can interpret its output and select a focused next step. Practise reading one set of system evidence at a time, recording what it suggests and what it does not prove. This helps prevent broad, unfocused changes when diagnosing a Linux problem.
How can I bridge the gap between knowing a command and choosing it for a task?
Candidates often recognise commands but hesitate when a task combines an operational requirement with several possible methods. The Exam4Success Practice Test format can help you practise selecting an answer and then review the areas where your reasoning needs work. Treat each missed item as a prompt to identify the requirement, the relevant Linux concept, and why another option is less suitable. Keep a short record of those distinctions.
What can I do when I cannot get regular access to a Linux lab?
Limited lab access makes it harder to rehearse storage changes, service administration, and security configuration. The Exam4Success PDF guide is useful for reviewing those topics away from a lab, but reading should not replace hands-on work when a system is available. Use the guide to choose a small task, such as checking a service state, then practise it in a permitted environment and note the result and any verification step.
What practical skills does CompTIA Linux+ V8 help candidates develop?
The topics bring together core Linux administration tasks, including managing users and services, protecting systems and data, maintaining resources, and diagnosing failures. Automation work also includes shell and Python scripting, Git workflows, CI/CD, and checking AI-generated code before use. These skills are relevant to people who want to handle routine Linux operations with care. Choose one task from each topic and practise both carrying it out and verifying the outcome.
How can preparation for XK0-006 support more confident automation work?
The Automation, Orchestration, and Scripting topic goes beyond writing a script. It includes making tasks repeatable, working with Git and CI/CD, and reviewing AI-generated code responsibly. That focus can help candidates build habits suited to maintaining Linux systems, rather than relying on one-off commands. Practise with a small, repeatable shell or Python task, keep it under version control, and check its behavior before considering it ready to use.
How should I decide whether I am ready to begin focused revision?
Start by checking whether you can explain the purpose of tasks across the five topic areas, including account changes, service state, security controls, and evidence-based troubleshooting. The Exam4Success Practice Test can help reveal which areas need more review. Use the results as a study guide, not as proof of readiness by themselves. For each weak area, practise a related task and verify that you can explain the reasoning behind your choice.
Which XK0-006 topics should I study first?
Begin with the areas where you have the least practical confidence, while keeping all five topics in your plan. System Management and Troubleshooting cover broad operational work, while Services and User Management, Security, and Automation each require distinct knowledge and verification habits. Review the topic descriptions, mark tasks you cannot explain or perform, and schedule those first. Revisit your list after practice so that study time follows evidence of need rather than familiarity.
Exam4Success is an independent exam preparation provider and is not affiliated with or endorsed by CompTIA.