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

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 to apply a different, more permissive set of rules to traffic arriving on the internal trusted network interface than to traffic arriving on the public-facing interface. Which firewalld concept enables this interface-based rule grouping?

Explanation

Zones group interfaces or sources together under a named rule set, allowing different trust levels and rules to apply based on where traffic arrives. Rich rules provide fine-grained custom rule syntax within a zone, runtime versus permanent configuration concerns whether changes persist across reloads, ports versus services concerns how a specific rule is expressed, and the Netfilter module is the underlying kernel packet filtering framework rather than the interface-grouping concept itself.

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

This practice assessment focuses on the CompTIA Linux + XK0-006 (V8) exam, evaluating your knowledge of Linux operating systems, commands, and administration skills. It's essential for those preparing for certification or enhancing their Linux proficiency. This resource helps reinforce key concepts and test your readiness for real-world Linux environments.

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 server's CPU usage graphs show the processors are mostly idle, yet applications feel sluggish and top shows a high percentage of time in a wait state. Which performance issue does this indicate?

Explanation

High I/O wait time occurs when the CPU is idle but waiting on slow storage or network I/O to complete, exactly matching low CPU usage combined with sluggish performance. A CPU bottleneck would show high CPU usage rather than idle CPUs, a memory leak shows gradually increasing memory consumption, high context switching shows excessive CPU time spent switching between processes, and swapping specifically indicates the system is using disk-based virtual memory due to low RAM.

Submit

3. A web server process that was working correctly suddenly cannot read files in a directory after they were moved there from a different location using mv, even though standard file permissions appear correct. An administrator suspects the files retained security labeling from their original location. Which SELinux concept is most likely the cause?

Explanation

SELinux context labels files with security attributes, and files moved with mv often retain their original context rather than inheriting the context appropriate to their new location, causing access denials despite correct standard permissions. SELinux policy defines the overall rule set rather than a per-file label, an SELinux boolean toggles specific policy behaviors on or off, file attributes like immutable are a separate ext-filesystem feature, and an ACL provides extended permission entries rather than security labeling.

Submit

4. Two systems on the same network can establish a connection, but large file transfers between them repeatedly stall or fail, while small packets like pings succeed without issue. An administrator suspects the maximum packet size setting differs between the two interfaces. Which issue is this?

Explanation

An MTU mismatch between interfaces causes larger packets to be fragmented or dropped while smaller packets like pings succeed, exactly matching this symptom pattern. A DNS issue would prevent name resolution rather than affecting packet size handling, an IP conflict causes address collision symptoms, a link negotiation issue concerns speed/duplex mismatch, and a routing issue would affect reachability more broadly rather than specifically large transfers.

Submit

5. A server suddenly halts completely, displaying a screen full of kernel error messages and refusing to respond to any input, requiring a hard reboot to recover. Which issue is this?

Explanation

A kernel panic is a complete system halt triggered when the kernel encounters a fatal error it cannot safely recover from, displaying diagnostic messages and requiring a reboot. A segmentation fault crashes a single user-space process rather than halting the whole kernel, a killed process is intentionally terminated, a zombie process has exited but not been reaped by its parent, and inode exhaustion prevents new file creation without necessarily halting the entire system.

Submit

6. A network monitoring system passively waits to receive unsolicited alert messages sent by managed devices themselves whenever a significant event occurs, rather than actively polling each device on a schedule. Which SNMP concept is this?

Explanation

SNMP traps are unsolicited messages a managed device sends to a monitoring system when a significant event occurs, rather than being polled for. A MIB defines the structure of manageable information a device exposes, agentless monitoring describes not requiring installed software on the monitored device, log aggregation centralizes log data specifically, and webhooks are an HTTP-based push notification mechanism used by other systems rather than the specific SNMP alerting mechanism.

Submit

7. A company's contract with a customer specifies that the service must be available 99.9% of the time, with the customer entitled to a service credit if it falls short. Separately, the operations team internally targets 99.95% availability as their own working goal, somewhat stricter than the contractual figure, to leave a safety margin. Which two monitoring concepts are described, respectively?

Explanation

The formal contractual commitment with consequences like service credits is a service-level agreement, while the internal, often stricter working target is a service-level objective. A service-level indicator is the actual measured metric itself, a webhook is a push notification mechanism, and a health check is a specific monitoring probe rather than either of these two goal-setting concepts.

Submit

8. A Linux administrator wants to install a specific set of Python package versions for one automation project without affecting the system-wide Python installation or other projects' dependencies. Which practice addresses this?

Explanation

A virtual environment creates an isolated Python environment with its own installed packages, preventing conflicts with the system-wide installation or other projects. Built-in modules are part of the standard library regardless of environment, PEP 8 concerns code style rather than isolation, global pip installation affects the whole system, and restricting to the standard library avoids the issue but overly limits available functionality rather than solving isolation specifically.

Submit

9. A script needs to take a different action depending on which of several specific string values a variable holds, such as 'start', 'stop', or 'restart', in a way that is typically cleaner to read than a long chain of comparisons. Complete the sentence: the conditional construct best suited to this is ______.

Explanation

The case statement matches a variable against several specific possible values cleanly, well suited to a fixed set of options like start, stop, or restart. An if statement handles general conditional branching but becomes unwieldy with many specific value comparisons.

Submit

10. A developer wants to create a new, separate line of development based on the current code state, so changes can be made without affecting the main codebase until they are ready to be merged back. Which Git command creates this new line of development?

Explanation

git branch creates a new, separate line of development based on the current commit, without affecting the main codebase. git checkout switches between existing branches or commits rather than creating a new one on its own, git merge combines changes from one branch into another, git stash temporarily shelves uncommitted changes, and git fetch downloads updates from a remote repository without creating a branch.

Submit

11. An Ansible user maintains a YAML file listing which managed servers belong to the 'webservers' and 'dbservers' groups, so playbooks can target the correct hosts. Which Ansible concept is this file?

Explanation

The inventory is the file listing managed hosts and how they are grouped, allowing playbooks to target the correct servers. A playbook defines the actual automation tasks to run, a module is a reusable unit of work a playbook calls, a collection packages related modules and roles together, and facts are system information Ansible gathers from managed hosts rather than the host-grouping file itself.

Submit

12. A security policy requires that user passwords cannot be reused for at least the last five changes, preventing someone from cycling back to an old, possibly compromised password. Which account hardening concept does this represent?

Explanation

Preventing reuse of a set number of previous passwords is password history enforcement. Password complexity concerns character requirements like length and mixed character types, password expiration forces periodic changes regardless of reuse, restricted shells limit what commands an account can execute, and MFA adds a second authentication factor rather than governing password reuse specifically.

Submit

13. A security review flags a sudoers entry that allows a specific user to run a privileged backup script without being prompted for their password at all. Which sudoers configuration produces this behavior?

Explanation

The NOPASSWD tag in a sudoers entry allows the specified command to run without prompting for a password. NOEXEC instead prevents a command from spawning further subprocesses, wheel group membership alone still typically requires a password unless combined with NOPASSWD, visudo is the safe editor for sudoers files rather than a permission tag, and sudo -i starts an interactive root shell rather than describing the passwordless behavior itself.

Submit

14. A sysadmin explains that before the Linux kernel loads, a small program reads its configuration to determine which kernel image and options to boot, commonly GRUB on most modern distributions. Which boot process component is this?

Explanation

The bootloader, such as GRUB, loads before the kernel and determines which kernel image and boot options to use. The kernel is what the bootloader loads, initrd provides a temporary root filesystem during early boot, PXE enables network-based booting, and a display manager handles graphical login after the OS has fully booted.

Submit

15. Match each authorization, authentication, or accounting technology to its correct description.

Explanation

Polkit manages authorization for privileged actions, PAM provides a pluggable authentication framework, SSSD caches and proxies identity lookups from centralized sources, Kerberos provides ticket-based network authentication, and LDAP is the protocol for accessing distributed directory services, each playing a distinct role in Linux AAA.

Submit

16. Match each systemd unit type to what it represents.

Explanation

A service unit manages a long-running background process, a timer unit triggers another unit on a schedule, a mount unit manages a filesystem mount point, and a target unit groups other units to represent a system state, together forming systemd's core unit type taxonomy.

Submit

17. A package manager refuses to install a package from a newly added third-party repository, reporting that the package's signature cannot be verified. Which mechanism is missing or misconfigured?

Explanation

Repositories are typically signed with a GPG key so package managers can verify package authenticity and integrity before installation, and a missing or untrusted key causes this exact failure. Package dependency resolution concerns compatible versions of required libraries, update alternatives manages symlinks for multiple installed versions of the same tool, sandboxed application isolation concerns runtime confinement, and source compilation is an alternative installation method rather than signature verification.

Submit

18. An administrator wants to lower the scheduling priority of an already-running backup process so it consumes fewer CPU cycles while other work is active, without stopping and restarting it. Which command is this?

Explanation

renice changes the scheduling priority of an already-running process without restarting it. nice instead sets the initial priority when a process is first started, kill sends a signal to terminate or control a process, nohup prevents a process from being terminated when its terminal session ends, and pstree displays a hierarchical view of processes rather than adjusting priority.

Submit

19. An administrator needs to change an existing user's default login shell from bash to a restricted shell, without creating a new account or deleting the existing one. Which command is this?

Explanation

usermod modifies attributes of an existing user account, including their default login shell. useradd creates a new account, adduser is a higher-level wrapper around useradd for creating new accounts on some distributions, chage manages password aging, and passwd manages a user's password rather than their shell.

Submit

20. An administrator needs to search the live filesystem in real time for any files modified within the last 24 hours in a specific directory tree, since a database of previously indexed filenames would not reflect such recent changes. Which command fits this need?

Explanation

find searches the live filesystem in real time and supports criteria like modification time, making it suitable for finding recently changed files. locate searches a pre-built database that may not reflect very recent changes, which identifies the location of an executable in the PATH, file identifies a file's type, and stat displays detailed metadata about a single already-known file.

Submit

21. An administrator wants to bundle a directory tree into a single archive file while preserving permissions and ownership, and separately wants to shrink that resulting archive file's size using the most common single-file Linux compression utility. Which two tools are described, respectively?

Explanation

tar bundles a directory tree into a single archive file while preserving permissions and ownership, while gzip is the most common utility for compressing a single file, often applied to a tar archive. cpio is an older, less commonly used archiving format, rsync synchronizes files rather than archiving, and dd performs low-level block copying.

Submit

22. An administrator runs a command intending to add new output to the end of an existing log file without erasing its current contents. Which redirection operator accomplishes this?

Explanation

>> appends output to the end of an existing file without overwriting its current contents. A single > instead truncates and overwrites the file, < redirects input from a file, | pipes output from one command into another, and << begins a here document rather than appending to a file.

Submit

23. A server intermittently fails to resolve external hostnames, and an administrator suspects the file listing which DNS servers the system should query is misconfigured. Which file is this?

Explanation

/etc/resolv.conf lists the DNS servers a system queries for name resolution. /etc/hosts provides static local hostname-to-IP mappings, /etc/nsswitch.conf controls which name resolution sources and their order are consulted, /etc/netplan configures network interfaces on some distributions, and /etc/fstab defines filesystem mounts.

Submit

24. An administrator needs to increase the size of a logical volume that has run low on space, using free space already available within its existing volume group. Complete the sentence: the command that directly resizes the logical volume itself is ______.

Explanation

lvextend increases the size of an existing logical volume using free space already available in its volume group. vgextend instead adds a new physical volume to grow the volume group itself, and resize2fs resizes the filesystem rather than the logical volume.

Submit

25. A technician wants to list all PCI devices attached to a Linux server, including the graphics card and network adapter, to verify they are recognized by the kernel. Which command is this?

Explanation

lspci lists all PCI devices recognized by the kernel, including graphics cards and network adapters. lsusb lists USB devices instead, lsblk lists block storage devices, lscpu displays CPU architecture information, and lsmem displays memory range information.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (25)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
A firewalld administrator wants to apply a different, more permissive...
A server's CPU usage graphs show the processors are mostly idle, yet...
A web server process that was working correctly suddenly cannot read...
Two systems on the same network can establish a connection, but large...
A server suddenly halts completely, displaying a screen full of kernel...
A network monitoring system passively waits to receive unsolicited...
A company's contract with a customer specifies that the service must...
A Linux administrator wants to install a specific set of Python...
A script needs to take a different action depending on which of...
A developer wants to create a new, separate line of development based...
An Ansible user maintains a YAML file listing which managed servers...
A security policy requires that user passwords cannot be reused for at...
A security review flags a sudoers entry that allows a specific user to...
A sysadmin explains that before the Linux kernel loads, a small...
Match each authorization, authentication, or accounting technology to...
Match each systemd unit type to what it represents.
A package manager refuses to install a package from a newly added...
An administrator wants to lower the scheduling priority of an...
An administrator needs to change an existing user's default login...
An administrator needs to search the live filesystem in real time for...
An administrator wants to bundle a directory tree into a single...
An administrator runs a command intending to add new output to the end...
A server intermittently fails to resolve external hostnames, and an...
An administrator needs to increase the size of a logical volume that...
A technician wants to list all PCI devices attached to a Linux server,...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!