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

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 needs to write a highly specific custom rule that only firewalld's simpler port/service model cannot express, such as limiting connections from a particular source address to a particular service with logging enabled. Which firewalld feature supports this level of custom detail?

Explanation

Rich rules provide a more expressive syntax for highly specific custom conditions, such as combining a source address restriction with a particular service and logging, beyond what the simple port/service model supports. Zones alone group interfaces under trust levels, runtime configuration alone concerns persistence, ports versus services alone offers only the simpler model this scenario has already outgrown, and the Netfilter module alone is the underlying kernel framework rather than the rule-authoring feature itself.

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

This practice assessment focuses on the CompTIA Linux + XK0-006 (V8) Exam, evaluating essential skills in Linux administration, system architecture, and security. It is designed to help learners reinforce their knowledge and prepare effectively for the certification. Engaging with this material enhances understanding of key Linux concepts, making it a... see morevaluable resource for aspiring IT professionals. 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 terminal session becomes extremely slow to respond to keystrokes, with noticeable lag between typing and characters appearing, even though the specific application being used doesn't seem to be doing much work. Which performance symptom category does this match?

Explanation

Noticeable lag between keystrokes and characters appearing in a terminal session is specifically sluggish terminal behavior. Slow startup concerns boot or application launch time, high disk latency concerns storage response time, blocked processes concern processes waiting on a resource, and random disconnects concern unexpected connection drops rather than input responsiveness lag within an active session.

Submit

3. A user who was recently offboarded still appears able to authenticate to a Linux server days after their account should have been disabled, despite HR confirming the termination was processed. Which security troubleshooting category does this represent?

Explanation

A terminated employee's account still being able to authenticate when it should have been disabled is specifically an account access issue. A certificate issue concerns TLS validation, a misconfigured package repository concerns software installation sources, a remote access issue generically covers broader SSH or similar connectivity problems, and an SELinux issue concerns security context and policy rather than an account that was never actually disabled.

Submit

4. A certificate management team discovers that a server's TLS certificate was issued by a certificate authority not present in clients' trusted root store, causing validation failures for external users. Separately, the team finds that a different server presents a certificate the administrator generated themselves without any certificate authority involvement at all, which browsers also flag as untrusted. Which two certificate-related issues are described, respectively?

Explanation

A certificate issued by an authority not in the client's trusted root store is an untrusted certificate authority issue, while a certificate the administrator generated without any CA involvement at all is specifically a self-signed certificate, both producing browser trust warnings for related but distinct reasons. Certificate revocation concerns a certificate being explicitly invalidated after issuance, an expired certificate concerns its validity window having passed, and weak cipher negotiation concerns the encryption algorithm chosen rather than the certificate's trust chain.

Submit

5. A newly deployed application cannot be reached by clients on the network, and after checking the application itself is running correctly, an administrator discovers the host's local firewall rules never included an allow rule for the application's listening port. Which issue is this?

Explanation

A missing allow rule for the application's port on the host firewall, blocking otherwise legitimate traffic, is a misconfigured firewall issue. A DHCP issue concerns address assignment, a DNS issue concerns name resolution, a routing issue concerns path selection to a destination, and link down describes a complete loss of physical or link-layer connectivity rather than a rule specifically blocking one application's traffic.

Submit

6. A server administrator finds that a critical service repeatedly fails to start after a recent configuration change, and systemctl status shows the unit in a failed state with an error referencing a missing dependency. Which issue category is this?

Explanation

A service repeatedly failing to start with systemctl reporting a failed state is specifically a systemd unit failure. A kernel panic halts the entire system, a segmentation fault crashes a specific user-space process's memory access, a GRUB misconfiguration would prevent the system from booting at all, and a PATH misconfiguration issue concerns command lookup failures rather than a systemd unit's own dependency error.

Submit

7. A server's monitoring system needs to periodically send a simple request to a web application's status endpoint to confirm it responds successfully, distinct from passively waiting for the application to report a problem on its own. Which data acquisition method is this?

Explanation

A health check actively and periodically probes a service, such as requesting a status endpoint, to confirm it responds correctly, rather than passively waiting for a report. SNMP traps and webhooks are both push-based mechanisms where the monitored system initiates contact, log aggregation centralizes log data, and agent-based monitoring only describes installed collection software rather than this specific active probing technique.

Submit

8. A developer accidentally committed a large binary file to a Git repository and wants to ensure that files matching that pattern are never accidentally staged or committed again in the future. Which Git mechanism prevents this?

Explanation

A .gitignore file specifies patterns for files that Git should never track or stage, preventing accidental future commits of matching files. git stash temporarily shelves uncommitted changes, git rebase rewrites commit history, git tag marks specific commits with a label, and git reset moves the current branch pointer rather than preventing future files from being tracked.

Submit

9. A Python script needs to store a collection of key-value pairs, such as mapping hostnames to their IP addresses, where each key must be unique and values can be looked up quickly by key. Which built-in data structure fits this need?

Explanation

A dictionary stores key-value pairs with unique keys and fast lookup by key, exactly matching a hostname-to-IP mapping need. A list stores an ordered sequence of items without key-based lookup, a string stores text, a boolean stores true/false values, and a floating point stores decimal numbers rather than key-value pairs.

Submit

10. A script needs to verify that a specific variable actually contains a value and is not an empty string before proceeding, to avoid errors later in the script. Which test operator checks specifically for a non-empty string?

Explanation

The -n test operator returns true if a string is non-empty, exactly what is needed to verify a variable actually contains a value. -d tests whether a path is a directory, -f tests whether a path is a regular file, -z returns true if a string is empty (the opposite check), and ! negates a test condition rather than checking string length specifically.

Submit

11. A DevOps team wants to automatically build a virtual machine image with a specific partition layout, package selection, and post-install configuration applied entirely unattended, without any manual interaction during installation, on a Red Hat-based distribution. Which tool is purpose-built for this?

Explanation

Kickstart is Red Hat's tool for fully unattended, scripted OS installation, defining partitioning, packages, and post-install configuration in advance. Cloud-init instead configures a system after boot using metadata typically in cloud environments, Ansible playbooks alone automate configuration on already-installed systems, Docker Compose orchestrates containers, and Puppet classes alone define configuration state rather than driving unattended OS installation itself.

Submit

12. A compliance team wants to run automated scans against a fleet of Linux servers to check their configurations against a formally published, machine-readable security baseline, generating a standardized compliance report. Which tool/standard fits this need?

Explanation

OpenSCAP runs automated scans against a machine-readable security baseline, such as a specific benchmark profile, generating standardized compliance reports. rkhunter checks for rootkits specifically, AIDE monitors file integrity through checksums, CVSS alone scores vulnerability severity, and the CVE database alone catalogs known vulnerabilities rather than providing an automated configuration-compliance scanning framework.

Submit

13. A security audit finds that SSH is configured to allow the root account to log in directly over the network, a risky configuration best practice recommends disabling. Separately, the audit finds that SSH key-based authentication is preferred over password authentication for its resistance to brute-force attacks. Which two SSHD hardening concepts are described, respectively?

Explanation

PermitRootLogin controls whether the root account can authenticate directly over SSH, and disabling it is a standard hardening recommendation, while the preference for key-based over password authentication is the key versus password authentication consideration. Disabling X forwarding blocks a specific SSH feature unrelated to root login or auth method, AllowUsers restricts which accounts may connect via SSH at all, and fail2ban blocks repeated failed login attempts rather than describing either of these two specific configuration concepts.

Submit

14. A developer wants to install a Linux distribution on a cloud instance and needs to know whether the distribution uses .deb packages managed by dpkg, or .rpm packages, to choose the correct installation commands. Which distribution family uses dpkg-based packages?

Explanation

Debian and its derivatives, including Ubuntu, use the dpkg-based package format with .deb files. RPM-based distributions like Rocky Linux or RHEL instead use .rpm packages, the two formats are not interchangeable without conversion tools, there is no single universal format across all distributions, and this distinction applies broadly, not just to embedded systems.

Submit

15. An administrator reviewing authentication logs wants a single command that displays a continuously updating, real-time stream of new log entries as they are written by systemd services, without needing to repeatedly re-run a static command. Which tool fits this?

Explanation

journalctl -f follows the systemd journal in real time, streaming new log entries as they are written. rsyslog configuration alone defines logging behavior rather than providing a live view, logrotate manages log file rotation and archival, /var/log alone is a directory rather than a live-streaming command, and audit.rules configures what the audit subsystem records rather than tailing logs in real time.

Submit

16. A developer wants to run a container with access to a host directory, so that files written inside the container persist on the host filesystem and survive the container being deleted and recreated. Which container operation accomplishes this?

Explanation

Mapping container volumes connects a host directory (or a named volume) to a path inside the container, so data persists on the host and survives container deletion. Pruning removes unused resources, tags label image versions, layers are the filesystem diffs making up an image, and building an image creates a new image from a Dockerfile rather than persisting runtime data.

Submit

17. An administrator wants to permanently prevent a specific systemd service from ever being started, even accidentally or by another unit's dependency, until this restriction is explicitly lifted. Which systemctl action provides this strongest level of prevention?

Explanation

mask creates a symlink to /dev/null for the unit, preventing it from being started at all, even manually or as a dependency of another unit, providing the strongest level of prevention. disable only prevents automatic startup at boot but still allows manual starting, stop halts a currently running service without preventing future starts, reload applies configuration changes to a running service, and unmask alone would remove this restriction rather than apply it.

Submit

18. An administrator installing a Python-based automation tool finds it requires a specific package not available through the system's standard distribution repository, but is available through the language's own dedicated package installer. Which tool would install this dependency?

Explanation

pip is the Python-specific package installer used to install Python packages not available through the system's standard distribution repository. npm is the equivalent tool for Node.js packages, cargo is the equivalent for Rust packages, and apt and yum are system-level distribution package managers rather than language-specific installers for Python.

Submit

19. An administrator setting up new employee accounts wants every new home directory to automatically include a standard set of starter files and default configuration, such as a pre-populated .bashrc, without manually copying them each time. Which directory provides this template?

Explanation

/etc/skel contains template files that are automatically copied into a new user's home directory when the account is created, providing default starter configuration. /etc/profile sets system-wide shell environment settings applied at login, and /etc/passwd, /etc/shadow, and /etc/group are account and credential data files rather than home directory templates.

Submit

20. An administrator wants to permanently remove both a directory and all of its contents, including any subdirectories and files within it, in a single command. Which option accomplishes this with the standard removal utility?

Explanation

rm -r recursively removes a directory and all of its contents, including subdirectories and files, in one command. rmdir alone only removes empty directories, mv relocates rather than deletes, find -delete can delete matched files but requires a separate search expression rather than being the standard direct removal option, and ln creates links rather than removing anything.

Submit

21. A virtualization administrator wants newly created VMs to be isolated from the physical network entirely, able to communicate only with each other and the host, with no path to the internet or the broader LAN. Which network type fits this need?

Explanation

Host-only/isolated networking restricts VM communication to only the host and other VMs on the same virtual network, with no path to the internet or broader LAN. Bridged networking places the VM directly on the physical network, NAT allows outbound internet access through the host's address, routed networking forwards traffic through defined routes, and open networking would not provide this isolation.

Submit

22. An administrator wants to compress a single large log file to save space using a tool that achieves a good balance of speed and compression ratio, and is the most universally available compression format across virtually all Linux systems. Which tool is this?

Explanation

gzip is the most universally available compression tool across virtually all Linux systems, offering a good balance of speed and compression ratio for everyday use. xz achieves higher compression at the cost of speed, bzip2 offers different tradeoffs and is less universally used, 7-Zip is more common in cross-platform contexts, and zcat alone decompresses and displays gzip content rather than performing compression.

Submit

23. Match each basic shell utility to its primary function.

Explanation

grep searches for matching patterns, sed performs stream-based text editing, awk processes and reports on structured text by field, cut extracts specific columns, and sort arranges lines in order, together forming a core set of Linux text-processing utilities.

Submit

24. An administrator building a new server wants to combine four physical disks into a single fault-tolerant array that can survive the failure of one disk while still providing read performance benefits from striping. Which RAID management tool configures this at the software level?

Explanation

mdadm creates and manages Linux software RAID arrays, including fault-tolerant configurations that combine striping and redundancy. parted and fdisk manage disk partitioning rather than RAID array assembly, blkid identifies filesystem and partition attributes, and growpart resizes an existing partition rather than assembling a new RAID array.

Submit

25. A technician needs a full summary of BIOS and system hardware information pulled directly from the system's DMI/SMBIOS tables, including the motherboard manufacturer and BIOS version, without physically opening the case. Which command provides this?

Explanation

dmidecode reads a system's DMI/SMBIOS tables to report detailed hardware and BIOS information, including motherboard manufacturer and BIOS version. lscpu reports CPU architecture details, lsusb lists USB devices, lspci lists PCI devices, and lm_sensors reports temperature and voltage sensor readings rather than DMI table contents.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (25)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
A firewalld administrator needs to write a highly specific custom rule...
A terminal session becomes extremely slow to respond to keystrokes,...
A user who was recently offboarded still appears able to authenticate...
A certificate management team discovers that a server's TLS...
A newly deployed application cannot be reached by clients on the...
A server administrator finds that a critical service repeatedly fails...
A server's monitoring system needs to periodically send a simple...
A developer accidentally committed a large binary file to a Git...
A Python script needs to store a collection of key-value pairs, such...
A script needs to verify that a specific variable actually contains a...
A DevOps team wants to automatically build a virtual machine image...
A compliance team wants to run automated scans against a fleet of...
A security audit finds that SSH is configured to allow the root...
A developer wants to install a Linux distribution on a cloud instance...
An administrator reviewing authentication logs wants a single command...
A developer wants to run a container with access to a host directory,...
An administrator wants to permanently prevent a specific systemd...
An administrator installing a Python-based automation tool finds it...
An administrator setting up new employee accounts wants every new home...
An administrator wants to permanently remove both a directory and all...
A virtualization administrator wants newly created VMs to be isolated...
An administrator wants to compress a single large log file to save...
Match each basic shell utility to its primary function.
An administrator building a new server wants to combine four physical...
A technician needs a full summary of BIOS and system hardware...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!