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

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 redirect incoming traffic destined for one public IP and port to a different internal IP and port, commonly used to expose an internal service through a single public-facing address. Which address translation concept is this?

Explanation

Destination Network Address Translation redirects incoming traffic destined for one address and port to a different internal address and port, commonly used to expose an internal service externally. SNAT instead translates the source address of outbound traffic, PAT alone is a related but distinct port-based translation concept, stateless filtering evaluates each packet independently without connection tracking, and IP forwarding alone enables routing between interfaces rather than performing address redirection.

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

This practice test focuses on the CompTIA Linux + XK0-006 (V8) Exam, assessing essential skills in Linux system administration, command line usage, and network management. It is designed to help learners prepare effectively for certification by evaluating their knowledge in key areas relevant to Linux environments. This resource is particularly... see moreuseful for those aiming to validate their expertise in Linux systems and enhance their career prospects. 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 monitoring dashboard shows a server's CPU usage spiking dramatically every few seconds in a sawtooth pattern, correlating with a background process that repeatedly starts, does a small burst of work, and exits, over and over. Which performance issue best fits this specific pattern?

Explanation

Frequent, repeated process start/stop cycles causing a sawtooth CPU pattern is most consistent with high context switching, as the CPU repeatedly switches between scheduling and executing many short-lived process bursts. Slow startup concerns boot or launch time specifically, low throughput concerns reduced data transfer rate, hardware errors concern physical component faults, and exceeding baselines only is a generic description rather than identifying this specific repeated-switching pattern.

Submit

3. A database server's storage subsystem shows consistently high latency on every read and write operation, well above its established baseline, even though the disk itself reports no hardware errors. Separately, network monitoring on the same server shows an unusually high number of packets being silently discarded during transmission, degrading application responsiveness. Which two performance issue categories are described, respectively?

Explanation

Consistently high read/write latency above baseline, without hardware errors, is high disk latency, while packets being silently discarded during transmission is packet drops. A CPU bottleneck concerns processing capacity being the limiting factor, swapping concerns disk-based virtual memory usage due to low RAM, and jitter concerns variation in packet arrival timing rather than outright drops, none of which match either symptom described here.

Submit

4. A server experiences a sudden spike in failed SSH login attempts from a single external IP address, all targeting different usernames in rapid succession, consistent with an automated credential-guessing attack. Which security troubleshooting category does this represent?

Explanation

A sudden spike in failed login attempts targeting different usernames in rapid succession, consistent with automated credential guessing, is specifically high failed log-in attempts. A certificate issue concerns TLS validation, a misconfigured package repository concerns software installation sources, an SELinux issue concerns security context and policy, and a cipher negotiation issue concerns encryption algorithm mismatch rather than a volume-based login attack pattern.

Submit

5. An administrator troubleshooting a dual-stack server finds that IPv4 connectivity works perfectly, but IPv6 connections consistently fail or time out, even though both address types are configured on the interface. Which issue does this describe?

Explanation

Working IPv4 connectivity alongside consistently failing IPv6 connectivity on the same dual-stack interface is specifically a dual stack issue. MTU mismatch concerns packet size handling across either protocol, an IP conflict concerns duplicate address assignment, a link negotiation issue concerns speed/duplex mismatch at a lower layer affecting both protocols equally, and a bonding issue concerns interfaces configured together for redundancy rather than a protocol-specific connectivity failure.

Submit

6. A server administrator investigating a boot failure finds the system stops at a bootloader menu with an error indicating it cannot locate the kernel image it was configured to load, following a recent manual edit to the bootloader configuration. Which issue is this?

Explanation

A bootloader failing to locate the configured kernel image after a manual configuration edit is a GRUB misconfiguration. A kernel panic happens after the kernel has already started loading, a segmentation fault crashes a specific user-space process, a systemd unit failure occurs after the OS has booted, and inode exhaustion prevents new file creation rather than preventing the bootloader from finding a kernel image.

Submit

7. An operations team wants a centralized platform for identity lookups so their monitoring alerts can be enriched with information from LDAP and Active Directory sources with a unified caching layer, reducing repeated authentication traffic to the directory servers. Which technology fits this need?

Explanation

SSSD provides a centralized caching and proxy layer for identity lookups from sources like LDAP and Active Directory, reducing repeated authentication traffic and enriching local system awareness. Kerberos alone handles ticket-based authentication specifically, Samba alone provides Windows-compatible file and print services, Polkit manages authorization for privileged actions, and PAM alone provides the pluggable authentication framework rather than the caching identity layer itself.

Submit

8. A development team wants their AI coding assistant to run entirely within their own infrastructure rather than sending code to a third-party cloud service, specifically to keep proprietary source code from ever leaving the corporate network. Which AI best practice consideration does this represent?

Explanation

Running an AI model entirely within corporate infrastructure rather than a third-party cloud service is specifically the local models consideration, particularly the private versus public distinction, keeping proprietary code from leaving the network. Prompt engineering concerns crafting effective inputs, code optimization and linting are use cases for the AI tool itself rather than deployment location, and documentation generation is another use case rather than a deployment/data-governance consideration.

Submit

9. A developer wants to combine several related commits from a feature branch into a single, cleaner commit before merging it into the main branch, to keep the project history simpler. Which Git merge concept supports this?

Explanation

Squashing combines multiple commits into a single commit during a merge, producing a cleaner project history. Rebase alone replays commits onto a new base without necessarily combining them, cherry-pick applies a specific individual commit to another branch, stash temporarily shelves uncommitted changes, and tag marks a specific commit with a label rather than combining multiple commits together.

Submit

10. A Python developer writing a system administration script wants to follow the community-standard style guide covering naming conventions, indentation, and line length, so the code remains readable and consistent with other Python projects. Which standard is this?

Explanation

PEP 8 is the community-standard style guide covering naming conventions, indentation, and line length for readable, consistent Python code. Virtual environments concern dependency isolation, built-in modules are part of the standard library, data types and structures concern how values are represented, and current versions concerns which Python release is in use rather than code style conventions.

Submit

11. A script needs to numerically compare two integer variables to determine if one is strictly greater than the other, as part of deciding whether a threshold has been exceeded. Which comparison operator performs this numeric check?

Explanation

-gt performs a numeric greater-than comparison between two values. -eq checks numeric equality, -lt checks less-than, -ne checks inequality, and -le checks less-than-or-equal, none of which test whether one value is strictly greater than another.

Submit

12. A vulnerability management team wants to scan a fleet of Linux servers for known, publicly cataloged software vulnerabilities and receive a standardized severity score for each finding to help prioritize remediation. Which two standards does this process rely on together?

Explanation

CVEs provide the standardized catalog of publicly known vulnerabilities, while CVSS provides the standardized severity scoring system used to prioritize them, working together in vulnerability scanning and remediation prioritization. OpenSCAP and CIS Benchmarks concern configuration compliance rather than vulnerability cataloging specifically, AIDE and rkhunter concern file integrity and rootkit detection, IOC and anti-malware concern detection and response, and backporting patches and service misconfigurations are remediation and root-cause concepts rather than the cataloging and scoring standards themselves.

Submit

13. A security review finds that a Linux system still has the Telnet service enabled and reachable, transmitting login credentials in plaintext across the network. Which OS hardening principle does removing this service support?

Explanation

Telnet transmits credentials and data in plaintext, and avoiding unsecure access services like Telnet, FTP, and TFTP in favor of encrypted alternatives is a core OS hardening principle. Secure boot concerns firmware-level boot integrity, disabling unused filesystems reduces unnecessary kernel attack surface, removal of unnecessary SUID permissions reduces privilege escalation risk, and file attributes concern protecting specific files from modification rather than disabling an insecure network service.

Submit

14. A developer wants to know whether a codebase they downloaded is truly free and open source, meaning they can view, modify, and redistribute it, or whether it is merely provided at no monetary cost while restricting those freedoms. Which licensing concept distinguishes cost-free from freedom-respecting software?

Explanation

Free software specifically emphasizes freedom, meaning users can view, modify, and redistribute the code, which is distinct from software that is merely free of monetary cost while still restricting those freedoms. Proprietary software restricts both cost and freedom typically, copyleft alone is a specific licensing mechanism requiring derivative works to remain similarly licensed, open source alone emphasizes source availability without necessarily using the specific free-software framing, and GNU alone refers to a specific project rather than the general licensing distinction.

Submit

15. A Linux file server needs to share folders with Windows clients on the network using a protocol Windows systems understand natively, while also allowing those Windows users to authenticate against the Linux server's own user accounts. Which technology provides this Windows-compatible file sharing and authentication integration?

Explanation

Samba implements the SMB protocol Windows systems use natively for file sharing, while also integrating with Linux authentication so Windows clients can authenticate against Linux accounts. Kerberos provides ticket-based network authentication that Samba can integrate with rather than providing file sharing itself, LDAP is a directory access protocol, SSSD caches identity lookups from centralized sources, and Polkit manages authorization for privileged actions rather than Windows-compatible file sharing.

Submit

16. Match each container network type to its description.

Explanation

Bridge is the default isolated per-host network, host networking shares the host's namespace directly, macvlan gives containers their own MAC address on the physical network, none disables networking entirely, and overlay connects containers across multiple hosts as a unified network, together covering the primary container networking modes.

Submit

17. An administrator needs to edit a systemd service's configuration by creating an override file that layers additional settings on top of the vendor-supplied unit file, without directly modifying the original file that could be overwritten by a future package update. Which systemctl action supports this safely?

Explanation

systemctl edit creates a safe override file layering additional configuration on top of the original vendor-supplied unit, preserving the original from being directly modified or lost during a future package update. daemon-reload alone reloads systemd's awareness of unit file changes after they're made, enable configures automatic startup, reload applies configuration changes to a running service, and status reports a unit's current state rather than providing this safe override editing mechanism.

Submit

18. A system administrator wants to sandbox a desktop application so it runs in an isolated environment with limited access to the rest of the system, distinct from installing it through the traditional distribution package manager. Which software configuration concept does this represent?

Explanation

Sandboxed applications run in an isolated environment with limited system access, distinct from traditional package manager installation, commonly implemented through formats like Flatpak or Snap. Repository management concerns enabling or disabling package sources, package dependency resolution concerns compatible library versions, update alternatives manages symlinks for multiple installed tool versions, and third-party repository enabling concerns adding non-default sources rather than application-level isolation.

Submit

19. An administrator investigating a security incident wants to know exactly which processes, running under which user account, currently hold a specific suspicious file open. Which command combination would most directly reveal this?

Explanation

Running lsof against a specific file path directly reveals which processes currently have that file open, along with the owning user. ps aux alone lists all processes without file-handle detail, top alone shows a live overview of resource usage, free reports memory usage, and uptime reports system load averages and time since boot rather than identifying which process holds a specific file open.

Submit

20. An administrator wants to compare two configuration files side by side, seeing exactly which lines differ between them, before deciding which version to keep on a server. Which command shows line-by-line differences between two files?

Explanation

diff compares two files and reports the line-by-line differences between them. cp copies files without comparing content, stat displays metadata for a single file, locate searches an indexed database of filenames, and touch creates an empty file or updates timestamps rather than comparing file content.

Submit

21. A virtualization administrator wants VMs to receive IP addresses automatically and be able to reach the internet through the host's own network connection, without being directly exposed on the physical LAN or requiring individual public IP addresses. Which network type fits this need?

Explanation

NAT networking allows VMs to reach the internet through the host's own connection and address, without being directly exposed on the physical LAN or needing individual public addresses. Bridged networking places the VM directly on the physical network with its own visible address, host-only/isolated restricts communication to the host and other VMs only, routed networking forwards traffic through defined routes, and open networking would not provide this NAT-based address translation and isolation.

Submit

22. An administrator wants to create a compressed backup archive using a tool that offers broad compatibility with both Linux and Windows systems, commonly recognized by users across platforms, even though it is less commonly the default choice on Linux itself. Complete the sentence: this cross-platform compression tool is ______.

Explanation

7-Zip offers broad cross-platform compatibility recognized by users on both Linux and Windows, even though gzip or xz are more commonly the default choice within the Linux ecosystem itself.

Submit

23. A user wants their custom prompt formatting and a set of personal command aliases to load automatically every time they open a new interactive, non-login shell session. Which configuration file is most appropriate for this?

Explanation

.bashrc is loaded for interactive, non-login shell sessions and is the conventional place for prompt customization and personal aliases. .bash_profile and .profile are loaded specifically for login shells, /etc/profile applies system-wide settings for all users at login, and /etc/skel provides template files copied into new home directories rather than being sourced at shell startup.

Submit

24. An administrator setting up a new NetworkManager-based network connection from the command line wants a tool specifically designed for this purpose, distinct from the newer Netplan configuration system used on some Ubuntu systems. Which tool is this?

Explanation

nmcli is the command-line tool for managing NetworkManager-based connections. netplan apply instead applies Netplan's YAML-based configuration, ip route manages routing table entries, ethtool queries and configures network interface driver settings, and arp displays or manipulates the ARP cache rather than managing NetworkManager connections directly.

Submit

25. A technician wants a single command that lists comprehensive details about every piece of hardware in a system, including CPU, memory, storage, and peripherals, in one consolidated report, rather than running several narrower commands separately. Which command provides this broad hardware overview?

Explanation

lshw provides a comprehensive, consolidated hardware overview covering CPU, memory, storage, and peripherals in one report. lscpu focuses specifically on CPU architecture details, lsblk focuses on block storage devices, lsmem focuses on memory ranges, and dmesg displays kernel ring buffer messages rather than a structured hardware inventory.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (25)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
A firewalld administrator needs to redirect incoming traffic destined...
A monitoring dashboard shows a server's CPU usage spiking dramatically...
A database server's storage subsystem shows consistently high latency...
A server experiences a sudden spike in failed SSH login attempts from...
An administrator troubleshooting a dual-stack server finds that IPv4...
A server administrator investigating a boot failure finds the system...
An operations team wants a centralized platform for identity lookups...
A development team wants their AI coding assistant to run entirely...
A developer wants to combine several related commits from a feature...
A Python developer writing a system administration script wants to...
A script needs to numerically compare two integer variables to...
A vulnerability management team wants to scan a fleet of Linux servers...
A security review finds that a Linux system still has the Telnet...
A developer wants to know whether a codebase they downloaded is truly...
A Linux file server needs to share folders with Windows clients on the...
Match each container network type to its description.
An administrator needs to edit a systemd service's configuration by...
A system administrator wants to sandbox a desktop application so it...
An administrator investigating a security incident wants to know...
An administrator wants to compare two configuration files side by...
A virtualization administrator wants VMs to receive IP addresses...
An administrator wants to create a compressed backup archive using a...
A user wants their custom prompt formatting and a set of personal...
An administrator setting up a new NetworkManager-based network...
A technician wants a single command that lists comprehensive details...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!