XK0-006 Sample Questions & Answers
Storage management and basic Linux concepts carry the top weight, alongside diagnosing hardware, storage and networking issues, file and account administration, firewall configuration and OS hardening, and shell scripting with Python basics.
Launch the full XK0-006 simulator →Showing 6 of 12 free samples.
- Question 1AdvancedSelect 2
System Management · Kernel modules
A hardware engineer is troubleshooting a malfunctioning network interface card. They need to remove the current kernel module and load a patched version while ensuring all module dependencies are automatically resolved. Which TWO commands should the engineer use? (Select TWO)
Show answer & explanation
Correct answers: B, D
The 'modprobe' command is the modern standard for managing kernel modules because it automatically resolves and loads/unloads dependencies using the modules.dep file. The '-r' flag removes the module and its unused dependencies. 'rmmod' and 'insmod' do not handle dependencies automatically.
The 'modprobe' command intelligently loads the module and any prerequisites it depends on. This makes it superior to 'insmod', which requires manual dependency loading.
- Question 2Intermediate
System Management · Logical Volume Manager (LVM)
Background:
CorpNet Inc. has deployed a database server running on Rocky Linux. The database resides on an XFS filesystem within a logical volume named 'lv_db' which belongs to the volume group 'vg_data'.Current Situation:
The database team has reported that the filesystem is 95% full. The system administrator has physically added a new 500GB disk (/dev/sdc) to the server.Requirements:
The administrator must expand the existing 'lv_db' logical volume and its underlying XFS filesystem dynamically, utilizing the entire new disk without unmounting the volume or causing database downtime.Which sequence of commands BEST accomplishes this requirement?
Show answer & explanation
Correct answer: A
To expand LVM storage onto a new disk: First, initialize the disk as a physical volume (pvcreate). Second, add it to the volume group (vgextend). Third, extend the logical volume to use the newly available space (lvextend). Finally, grow the XFS filesystem natively online (xfs_growfs). XFS cannot be resized with resize2fs, which is for ext-based filesystems.
flowchart TD A[pvcreate /dev/sdc] --> B[vgextend vg_data /dev/sdc] B --> C[lvextend -l +100%FREE lv_db] C --> D[xfs_growfs /dev/vg_data/lv_db] - Question 3Beginner
System Management · Filesystems
A systems architect is designing a storage solution for a high-performance database. They require a Linux filesystem that natively supports Copy-on-Write (CoW) snapshots and subvolumes for efficient backup procedures. Which of the following filesystems provides these features natively?
Show answer & explanation
Correct answer: C
Btrfs (B-Tree Filesystem) is a modern Linux filesystem designed with native support for advanced features like Copy-on-Write (CoW) snapshots, dynamic subvolumes, and built-in RAID. Ext4 and XFS are high-performance journaling filesystems but require LVM to achieve snapshot functionality.
- Question 4Intermediate
System Management · Netplan
An administrator is configuring a static IP address on an Ubuntu server using Netplan. After modifying the YAML file in /etc/netplan/, the administrator wants to test the configuration and have it automatically revert if connectivity is lost.
The command to test the configuration is: ________
Show answer & explanation
Correct answer: B
The 'netplan try' command applies the networking configuration temporarily and prompts the user for confirmation. If the user is disconnected (e.g., via SSH) or does not confirm within the timeout period, the configuration automatically rolls back to the previous working state.
- Question 5Advanced
System Management · Channel redirection
A script executes a command that generates both standard output (stdout) and standard error (stderr). The developer needs to discard the standard output entirely but append the standard error to a file named 'error.log'. Which of the following redirection syntaxes achieves this?
Show answer & explanation
Correct answer: A
In Bash redirection, file descriptor 1 is stdout and 2 is stderr. The syntax '> /dev/null' redirects standard output to the null device (discarding it). The syntax '2>> error.log' appends the standard error to the specified file. The other options either overwrite the file, redirect both streams incorrectly, or discard stderr.
- Question 6Intermediate
System Management · Basic shell utilities
A sysadmin needs to extract the usernames from the /etc/passwd file. The username is the first field in the file, and the fields are separated by colons (:). Which of the following commands will correctly extract ONLY the usernames?
Show answer & explanation
Correct answer: A
The awk command is highly efficient for field extraction. The '-F' flag defines the field separator (a colon in this case). '{print $1}' instructs awk to print the first field of each line, which corresponds to the username in the /etc/passwd file.
Ready for the real thing?
The full XK0-006 simulator has every exam-style question, timed mode, and instant scoring.