CompTIA Linux + XK0-006 (V8) Exam Practice Test 3

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11371 | Total Attempts: 9,893,164
| Questions: 25 | Updated: Sep 30, 2026
Please wait...
Question 1 / 26
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. A firewalld administrator wants a change to take effect immediately for troubleshooting purposes, but does not want that change to persist if the firewall service is reloaded or the system reboots. Which configuration scope achieves this?

Explanation

Runtime configuration applies changes immediately but does not persist across a reload or reboot unless separately saved to permanent configuration. Permanent configuration persists changes but does not apply them until a reload, rich rules and zones are structural concepts rather than persistence scopes, and ports versus services concerns how a specific rule is expressed rather than its persistence.

Submit
Please wait...
About This Quiz
CompTIA Linux + Xk0-006 (V8) Exam Practice Test 3 - Quiz

This practice assessment focuses on the CompTIA Linux + XK0-006 (V8) certification, evaluating essential skills in Linux administration, system management, and troubleshooting. It's designed to help learners prepare effectively for the certification exam by testing their knowledge and understanding of key Linux concepts. Engaging with this practice assessment will enhance... see moreyour readiness for real-world Linux challenges. see less

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. A database server's response times have gradually degraded over the past week, and monitoring shows the load average consistently higher than the number of CPU cores, with processes frequently waiting to be scheduled. Which performance issue does this describe?

Explanation

A load average consistently higher than the number of CPU cores, with processes waiting to be scheduled, is specifically a high load average issue. Swapping concerns disk-based virtual memory usage due to low RAM, packet drops and jitter concern network-layer issues, and low throughput concerns reduced data transfer rate rather than CPU scheduling contention specifically.

Submit

3. A file server's ACL entries appear correctly configured, granting a specific user read access to a shared folder, yet that user still receives a permission denied error when attempting to open files there. An administrator suspects a broader policy is overriding the ACL entirely. Which security troubleshooting category fits this?

Explanation

An SELinux issue, such as a restrictive policy or incorrect context, can override otherwise correct ACL entries and standard permissions, causing access denial despite seemingly correct configuration. File and directory permission issues generically would typically be resolved by fixing the ACL itself, account access concerns whether the account can log in at all, a certificate issue concerns TLS validation, and a remote access issue concerns SSH or similar connectivity rather than local file access being blocked by policy.

Submit

4. A network administrator troubleshooting connectivity to a specific subnet finds that the interface configured to reach that subnet works fine, but two bonded network interfaces meant to provide redundancy are reporting inconsistent link states between each other. Which issue is this?

Explanation

Inconsistent link states between interfaces that are supposed to be working together as a redundant bonded pair is specifically a bonding issue. MTU mismatch concerns packet size handling, MAC spoofing concerns falsified hardware addresses, subnet misconfiguration concerns incorrect network addressing, and link down describes a single interface losing connectivity entirely rather than inconsistency between bonded interfaces specifically.

Submit

5. A network administrator investigating intermittent connectivity finds that two servers on the same subnet were both manually assigned the same static IP address, causing unpredictable connection failures for both. Which issue is this?

Explanation

Two devices assigned the same IP address causing unpredictable connectivity failures is an IP conflict. A DHCP issue concerns automatic address assignment failing rather than a manual duplicate, a DNS issue concerns name resolution, a link negotiation issue concerns speed/duplex mismatch, and a dual stack issue concerns problems specifically arising from running IPv4 and IPv6 simultaneously rather than a duplicate static address.

Submit

6. A server that was working normally suddenly displays a message indicating the root filesystem is full, and new files cannot be written or logs recorded, even though the disk was recently expanded at the storage layer. Which issue best matches this symptom?

Explanation

New files failing to write with an explicit filesystem-full message is OS filesystem full, which can persist even after storage-layer expansion if the filesystem itself was never grown to use the new space. Inode exhaustion produces a similar symptom but relates to running out of file-tracking structures rather than raw space, a partition not writable concerns a mount or permission issue, a package dependency issue concerns software installation, and a kernel panic halts the entire system rather than just blocking writes.

Submit

7. A server's monitoring dashboard shows CPU, memory, and disk metrics all within normal ranges, but the operations team wants to be automatically notified the moment any of these metrics crosses a predefined limit, without staff needing to watch the dashboard continuously. Which monitoring configuration concept is this?

Explanation

Defining a threshold for a metric and configuring an alert to fire automatically when it is crossed is exactly this threshold-and-alert monitoring configuration pairing. Log aggregation centralizes log data rather than metric thresholds, health checks are periodic probes of service availability, webhooks are one specific delivery mechanism for a notification, and SNMP traps are one specific protocol-based alerting mechanism rather than describing the general threshold-alert configuration concept.

Submit

8. A development team using an AI coding assistant establishes a rule that any AI-generated code must be reviewed by a human developer before being merged, rather than copying suggestions directly into production. Which AI best practice does this represent?

Explanation

Requiring human review of AI-generated code before merging is specifically the practice of avoiding copy/paste without review and quality assurance. Prompt engineering concerns crafting effective inputs to the AI, data governance generically concerns broader data handling policy, local models generically concerns where the AI runs rather than output review, and adhering to corporate policy generically is a broader category this specific review practice supports rather than the practice itself.

Submit

9. A developer wants to download the latest changes from a remote Git repository and immediately integrate them into the current local branch in one step, rather than reviewing them separately first. Which command does this?

Explanation

git pull downloads changes from a remote repository and immediately merges them into the current branch in one step. git fetch downloads changes without merging them, allowing separate review first, git clone copies an entire repository for the first time, git log shows commit history, and git diff shows differences rather than downloading and merging remote changes.

Submit

10. A script needs to repeatedly execute a block of code for as long as a specific condition remains true, checking the condition before each iteration, such as processing lines from a file until end-of-file is reached. Which looping construct fits this?

Explanation

A while loop repeatedly executes a block of code for as long as a condition remains true, checking before each iteration. A for loop iterates over a fixed list of items, until loops repeat while a condition is false, case matches specific values, and if performs a single conditional branch rather than repeated iteration.

Submit

11. A DevOps team wants their infrastructure provisioning tool to track the current real-world state of deployed cloud resources in a state file, comparing it against the desired configuration to determine what changes are needed. Which tool's core concept does this describe?

Explanation

OpenTofu, like Terraform, maintains a state file tracking the real-world state of deployed resources, comparing it against desired configuration to plan changes. Ansible is generally agentless and does not maintain a persistent state file in this way, Puppet uses a client-server model with its own state tracking approach, and Kickstart and cloud-init handle unattended OS deployment rather than ongoing infrastructure state tracking.

Submit

12. A security team wants to ensure that even if an attacker obtains a list of hashed passwords from a breached database, brute-forcing the original passwords is computationally expensive due to the hashing algorithm incorporating a secret key shared only between the server and legitimate verifier. Which cryptographic concept does this represent?

Explanation

HMAC combines a hash function with a secret key, so that even knowing the hash algorithm, an attacker without the key cannot easily forge or brute-force valid values as feasibly as with a keyless hash. SHA-256 alone is a keyless cryptographic hash function, GPG handles file/message encryption and signing, LUKS2 provides disk encryption, and Argon2 is a password-hashing function without HMAC's shared-key construction specifically.

Submit

13. An administrator reviewing sudo configuration finds an entry that prevents the specified command from spawning any further subprocesses, limiting what a user could do even with elevated privileges. Separately, the administrator finds a different entry that grants a specific user unrestricted access to run any command as root without any password prompt at all. Which two sudoers concepts are described, respectively?

Explanation

NOEXEC prevents a command from spawning further subprocesses, limiting what can be done even with elevated privileges, while combining NOPASSWD with a rule granting ALL commands gives unrestricted, passwordless root access. The wheel group is a common administrative group convention, visudo is the safe editor for sudoers files, and sudo -i starts an interactive root shell rather than describing either of these two specific configuration behaviors.

Submit

14. An administrator wants to know which server architecture a newly provisioned cloud instance uses, specifically to determine whether it is the traditional 64-bit x86 architecture or the increasingly common 64-bit ARM-based architecture used by many modern cloud providers for cost efficiency. Which architecture name refers to the 64-bit ARM-based option?

Explanation

AArch64 refers to the 64-bit ARM architecture increasingly used in cloud instances for cost and power efficiency. x86_64/AMD64 and x86 refer to Intel/AMD architectures instead, and RISC-V is a separate, open instruction set architecture distinct from ARM.

Submit

15. An administrator wants to remove all unused, dangling container images from a system to reclaim disk space, without affecting images currently in use by running containers. Which container operation is this?

Explanation

Pruning removes unused, dangling images (and similarly, stopped containers or unused volumes) to reclaim disk space without affecting resources currently in use. Pulling images downloads images from a registry, tags label specific image versions, layers are the filesystem diffs that make up an image, and building an image creates a new one from a Dockerfile rather than cleaning up unused resources.

Submit

16. Match each systemd utility to its primary purpose.

Explanation

hostnamectl manages the system hostname, timedatectl manages date, time, and timezone settings, resolvectl manages DNS resolution configuration, and systemd-analyze reports boot performance, each covering a distinct systemd-managed administrative area.

Submit

17. An administrator notices a process that has completed execution but still appears in the process table because its parent process has not yet read its exit status. Which process state is this?

Explanation

A zombie process has completed execution but remains in the process table because its parent has not yet reaped its exit status. Running describes an actively executing process, blocked and sleeping describe processes waiting on a resource or event, and stopped describes a process paused by a signal rather than one that has already finished executing.

Submit

18. An administrator wants to see the exact date and time a specific user last logged into the system, including from which terminal or remote host, to investigate a suspicious access report. Which command shows this?

Explanation

lastlog shows the most recent login time for each user account, including terminal or host information. last shows a broader history of login sessions for all users, who and w show currently logged-in users, and whoami simply displays the current user's own username rather than login history.

Submit

19. An administrator wants to create a permanent reference to a file that, if the original file is deleted, still points to valid data because it shares the same underlying inode as the original. Which link type is this?

Explanation

A hard link shares the same underlying inode as the original file, so the data remains accessible even if the original directory entry is deleted, as long as at least one link remains. A symbolic link instead points to a path and breaks if the original is deleted, and block, character, and special character devices are device file types in /dev rather than link types.

Submit

20. An administrator wants to run a lightweight paravirtualized driver framework inside a guest VM to improve disk and network I/O performance compared to fully emulated hardware. Which technology is this?

Explanation

VirtIO is a paravirtualized driver framework that improves guest VM disk and network I/O performance compared to fully emulated hardware. QEMU is the emulator itself, KVM is the kernel-based hypervisor providing hardware-accelerated virtualization, libvirt is a management API/toolkit, and virt-manager is a graphical management interface rather than the paravirtualized driver framework itself.

Submit

21. An administrator wants to create a compressed backup archive and needs a compression format known for achieving a higher compression ratio than gzip, at the cost of being slower, often used for distributing Linux source tarballs. Complete the sentence: this compression tool is ______.

Explanation

xz achieves a higher compression ratio than gzip at the cost of speed, and is commonly used for distributing Linux source tarballs where smaller file size matters more than compression speed.

Submit

22. An administrator needs to safely and permanently delete a file's contents from a disk, overwriting the data multiple times before removing it, specifically as part of a secure data destruction procedure before decommissioning a drive. Which tool is designed for this exact purpose?

Explanation

shred is designed to securely overwrite a file's contents multiple times before deletion, making recovery through normal forensic tools impractical, exactly fitting a secure data destruction procedure. rm removes the directory entry but typically leaves underlying data recoverable, mv relocates a file without touching content, unlink removes a directory entry similarly to rm, and stat displays metadata rather than destroying data.

Submit

23. An administrator troubleshooting name resolution wants to know the order in which the system consults sources like local files versus DNS when resolving a hostname. Which file controls this order?

Explanation

/etc/nsswitch.conf controls which sources, such as local files or DNS, are consulted and in what order for various lookups including hostname resolution. /etc/hosts provides static mappings, /etc/resolv.conf lists DNS servers to query, /etc/netplan configures interfaces on some distributions, and /etc/fstab defines filesystem mounts rather than lookup source ordering.

Submit

24. An administrator wants to see the total disk space used by every file within a specific directory tree, summarized per subdirectory, to identify which subdirectory is consuming the most space. Which command fits this need?

Explanation

du summarizes disk space usage per directory, ideal for identifying which subdirectory consumes the most space. df reports overall filesystem-level space usage rather than per-directory breakdown, fio benchmarks storage I/O performance, stat displays metadata for a single file, and lsblk lists block devices rather than directory-level space consumption.

Submit

25. A kernel module responsible for a malfunctioning network card needs to be removed from the running kernel entirely, freeing it so a corrected version can be loaded. Which command removes a loaded module?

Explanation

rmmod removes a currently loaded kernel module from the running kernel. insmod inserts a module, modprobe intelligently loads a module along with its dependencies, depmod generates module dependency information, and modinfo displays information about a module without removing it.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (25)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
A firewalld administrator wants a change to take effect immediately...
A database server's response times have gradually degraded over the...
A file server's ACL entries appear correctly configured, granting a...
A network administrator troubleshooting connectivity to a specific...
A network administrator investigating intermittent connectivity finds...
A server that was working normally suddenly displays a message...
A server's monitoring dashboard shows CPU, memory, and disk metrics...
A development team using an AI coding assistant establishes a rule...
A developer wants to download the latest changes from a remote Git...
A script needs to repeatedly execute a block of code for as long as a...
A DevOps team wants their infrastructure provisioning tool to track...
A security team wants to ensure that even if an attacker obtains a...
An administrator reviewing sudo configuration finds an entry that...
An administrator wants to know which server architecture a newly...
An administrator wants to remove all unused, dangling container images...
Match each systemd utility to its primary purpose.
An administrator notices a process that has completed execution but...
An administrator wants to see the exact date and time a specific user...
An administrator wants to create a permanent reference to a file that,...
An administrator wants to run a lightweight paravirtualized driver...
An administrator wants to create a compressed backup archive and needs...
An administrator needs to safely and permanently delete a file's...
An administrator troubleshooting name resolution wants to know the...
An administrator wants to see the total disk space used by every file...
A kernel module responsible for a malfunctioning network card needs to...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!