{"id":11486,"date":"2026-09-14T09:22:54","date_gmt":"2026-09-14T09:22:54","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=11486"},"modified":"2026-09-14T09:22:54","modified_gmt":"2026-09-14T09:22:54","slug":"comptia-xk0-006-practice-test-questions-and-exam-dumps-part-7-q121-q140","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/comptia-xk0-006-practice-test-questions-and-exam-dumps-part-7-q121-q140\/","title":{"rendered":"CompTIA XK0-006 Practice Test Questions and Exam Dumps Part 7: Q121\u2013Q140"},"content":{"rendered":"<h2><strong>View Full\u00a0<a href=\"https:\/\/www.examlabs.com\/xk0-006-exam-dumps\">CompTIA XK0-006 Exam Dumps<\/a>\u00a0and Practice Test Dumps.<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<h3><b>Question 121<\/b><\/h3>\n<p><b>Which command is commonly used to create a new RAID array using Linux software RAID?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">mdadm<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">raidctl<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">mkraidfs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">diskadm<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">mdadm<\/span><span style=\"font-weight: 400;\"> command is used to create, manage, monitor, and maintain Linux software RAID arrays. RAID can combine multiple disks to provide improved redundancy, performance, or both, depending on the RAID level. For example, RAID 1 mirrors data between disks, while RAID 5 uses distributed parity. Before creating an array, administrators should carefully verify the selected devices because RAID creation can destroy existing data. <\/span><span style=\"font-weight: 400;\">mdadm<\/span><span style=\"font-weight: 400;\"> is an important tool for Linux storage administration and troubleshooting.<\/span><\/p>\n<h3><b>Question 122<\/b><\/h3>\n<p><b>Which RAID level provides disk mirroring by writing the same data to two drives?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">RAID 0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">RAID 5<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">RAID 1<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">RAID 6<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">RAID 1 provides disk mirroring by maintaining an identical copy of data on two or more disks. If one disk fails, the mirrored copy can continue providing access to the data, depending on the system configuration. RAID 1 improves redundancy but does not provide the same capacity efficiency as some parity-based RAID levels. RAID 0 focuses on striping without redundancy, while RAID 5 and RAID 6 use parity. Administrators should select RAID based on availability, performance, and capacity requirements.<\/span><\/p>\n<h3><b>Question 123<\/b><\/h3>\n<p><b>Which command can be used to display detailed information about an LVM volume group?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">vgdisplay<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">lvremove<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">pvcreate<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">mkvg<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">vgdisplay<\/span><span style=\"font-weight: 400;\"> command shows detailed information about an LVM volume group. The output can include the volume group name, size, physical extent information, allocated space, and free space. This is useful when determining whether a volume group has enough unused capacity for a new logical volume or for extending an existing one. Other LVM commands have different purposes. For example, <\/span><span style=\"font-weight: 400;\">pvcreate<\/span><span style=\"font-weight: 400;\"> prepares a physical volume, while <\/span><span style=\"font-weight: 400;\">lvremove<\/span><span style=\"font-weight: 400;\"> removes a logical volume.<\/span><\/p>\n<h3><b>Question 124<\/b><\/h3>\n<p><b>Which command displays detailed information about an LVM logical volume?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">lvdisplay<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">vgremove<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">pvscan<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">mkfs<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">lvdisplay<\/span><span style=\"font-weight: 400;\"> command provides detailed information about logical volumes managed by LVM. It can show the logical volume path, volume group, size, status, and other properties. This information is useful when troubleshooting storage or preparing to resize a logical volume. Administrators can use it together with commands such as <\/span><span style=\"font-weight: 400;\">vgs<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">pvs<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">lvs<\/span><span style=\"font-weight: 400;\"> to understand the overall LVM layout. Checking the correct logical volume before changing its size helps prevent accidental changes to the wrong storage device.<\/span><\/p>\n<h3><b>Question 125<\/b><\/h3>\n<p><b>Which command is commonly used to show concise information about LVM physical volumes?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">pvs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">lvs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">vgs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">pvremove<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">pvs<\/span><span style=\"font-weight: 400;\"> command provides a concise summary of LVM physical volumes. It can show information such as the physical volume name, volume group, and available or allocated space. This is useful when quickly checking how disks or partitions are being used by LVM. The related <\/span><span style=\"font-weight: 400;\">vgs<\/span><span style=\"font-weight: 400;\"> command summarizes volume groups, while <\/span><span style=\"font-weight: 400;\">lvs<\/span><span style=\"font-weight: 400;\"> summarizes logical volumes. These short-form commands are useful for administrators because they provide an overview without producing the larger amount of detail shown by commands such as <\/span><span style=\"font-weight: 400;\">pvdisplay<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h3><b>Question 126<\/b><\/h3>\n<p><b>Which filesystem is commonly associated with the <\/b><b>xfs_growfs<\/b><b> command for increasing filesystem size?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ext2<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">XFS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">FAT32<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">swap<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">xfs_growfs<\/span><span style=\"font-weight: 400;\"> command is used to increase the size of an XFS filesystem. When an underlying logical volume or partition is expanded, the filesystem may also need to be expanded so it can use the additional space. XFS supports online filesystem growth, which means it can normally be expanded while mounted. The exact procedure depends on the storage layer and filesystem. Administrators should always confirm the filesystem type before selecting a resize command.<\/span><\/p>\n<h3><b>Question 127<\/b><\/h3>\n<p><b>Which file is commonly used to define filesystems that should be mounted automatically during boot?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/etc\/hosts<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/etc\/passwd<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/etc\/fstab<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/etc\/profile<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">\/etc\/fstab<\/span><span style=\"font-weight: 400;\"> file contains persistent filesystem mount information. Each entry can specify the device or UUID, mount point, filesystem type, mount options, and other settings. During boot, Linux can use this information to mount configured filesystems automatically. Administrators should be careful when editing <\/span><span style=\"font-weight: 400;\">\/etc\/fstab<\/span><span style=\"font-weight: 400;\"> because an incorrect entry can cause boot delays or failures. UUIDs are often preferred because device names such as <\/span><span style=\"font-weight: 400;\">\/dev\/sdb1<\/span><span style=\"font-weight: 400;\"> can change depending on hardware detection order.<\/span><\/p>\n<h3><b>Question 128<\/b><\/h3>\n<p><b>Which command can display filesystem UUIDs and filesystem types for storage devices?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">blkid<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">lsmod<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">lspci<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">sysctl<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">blkid<\/span><span style=\"font-weight: 400;\"> command displays information about block devices, including filesystem type and UUID when available. UUIDs are useful in <\/span><span style=\"font-weight: 400;\">\/etc\/fstab<\/span><span style=\"font-weight: 400;\"> because they provide a stable identifier for a filesystem even if Linux assigns a different device name after a reboot. For example, <\/span><span style=\"font-weight: 400;\">\/dev\/sdb1<\/span><span style=\"font-weight: 400;\"> could potentially become another device name, while its filesystem UUID remains associated with that filesystem. Administrators often use <\/span><span style=\"font-weight: 400;\">blkid<\/span><span style=\"font-weight: 400;\"> when configuring persistent mounts or troubleshooting storage identification problems.<\/span><\/p>\n<h3><b>Question 129<\/b><\/h3>\n<p><b>Which command is commonly used to check the current status of NetworkManager?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">systemctl status NetworkManager<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">networkctl remove NetworkManager<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">nmcli delete NetworkManager<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">service-net NetworkManager<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">systemctl status NetworkManager<\/span><span style=\"font-weight: 400;\"> checks whether the NetworkManager service is running and provides recent status information. NetworkManager manages network interfaces and connection profiles on many modern Linux distributions. If networking suddenly stops working, checking the service status can help determine whether the network management service is active. Administrators can then inspect logs, connection profiles, interfaces, and DNS configuration as needed. The exact service name can vary on some systems, so administrators should verify the installed network management framework.<\/span><\/p>\n<h3><b>Question 130<\/b><\/h3>\n<p><b>Which command can show the current IP addresses assigned to Linux network interfaces?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ip addr<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ip users<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">route show-dns<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">netmount<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">ip addr<\/span><span style=\"font-weight: 400;\"> command displays network interfaces and their assigned IP addresses. It can show IPv4 and IPv6 addresses, interface states, MAC addresses, and other useful information. This makes it an important command for network troubleshooting. For example, if a server cannot communicate with another system, an administrator can first verify whether the expected interface is up and whether it has the correct address. The <\/span><span style=\"font-weight: 400;\">ip<\/span><span style=\"font-weight: 400;\"> command is part of the modern Linux networking toolset.<\/span><\/p>\n<h3><b>Question 131<\/b><\/h3>\n<p><b>Which file can provide local hostname-to-IP address mappings before or alongside DNS resolution, depending on resolver configuration?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/etc\/fstab<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/etc\/hosts<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/etc\/shadow<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\/etc\/sudoers<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">\/etc\/hosts<\/span><span style=\"font-weight: 400;\"> file contains static hostname-to-IP address mappings. It can be useful for local testing, small environments, or systems that need a specific hostname to resolve without relying on DNS. The order in which Linux checks <\/span><span style=\"font-weight: 400;\">\/etc\/hosts<\/span><span style=\"font-weight: 400;\"> and DNS is controlled by the resolver configuration, commonly through <\/span><span style=\"font-weight: 400;\">\/etc\/nsswitch.conf<\/span><span style=\"font-weight: 400;\">. Administrators should ensure entries are accurate because an incorrect hosts entry can cause applications to connect to the wrong address or fail to resolve a hostname correctly.<\/span><\/p>\n<h3><b>Question 132<\/b><\/h3>\n<p><b>Which protocol is commonly used to securely transfer files over an SSH connection?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">FTP<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">TFTP<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">SFTP<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">HTTP<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">SFTP, or SSH File Transfer Protocol, transfers files securely through an SSH connection. It provides encrypted communication and supports operations such as uploading, downloading, renaming, and deleting files. Unlike traditional FTP, SFTP does not require a separate unencrypted FTP control and data channel. It is commonly used when administrators need secure file transfers between Linux systems. SFTP authentication can use passwords or SSH keys, depending on the server configuration and security policy.<\/span><\/p>\n<h3><b>Question 133<\/b><\/h3>\n<p><b>Which SSH configuration setting can disable direct remote login for the root account?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">PermitRootLogin no<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">AllowRootAccess yes<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">RootLogin disable<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">SSHRoot off<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">PermitRootLogin no<\/span><span style=\"font-weight: 400;\"> setting in the SSH server configuration prevents direct SSH login as the root user. Disabling direct root login is a common hardening practice because attackers frequently target privileged accounts. Administrators can instead log in using a normal account and use <\/span><span style=\"font-weight: 400;\">sudo<\/span><span style=\"font-weight: 400;\"> for authorized administrative tasks. After changing SSH configuration, the administrator should validate the configuration and restart or reload the SSH service as appropriate. SSH access should always be tested carefully before closing the current session.<\/span><\/p>\n<h3><b>Question 134<\/b><\/h3>\n<p><b>Which security principle requires users and services to receive only the permissions they actually need?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Defense in depth<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Least privilege<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Open access<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Full trust<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The principle of least privilege means users, applications, and services should receive only the permissions required to perform their intended tasks. This reduces the potential damage if an account or application is compromised. For example, a web application should not normally run with unrestricted root privileges when a dedicated low-privilege account is sufficient. Least privilege applies to file permissions, sudo rules, service accounts, cloud permissions, and many other areas of Linux security.<\/span><\/p>\n<h3><b>Question 135<\/b><\/h3>\n<p><b>Which Linux security framework commonly uses labels and policies to control access to files and processes?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">SELinux<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Bash<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">GRUB<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Cron<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">SELinux, or Security-Enhanced Linux, provides mandatory access control using security labels and policy rules. It can restrict what processes are allowed to access, even when traditional Linux permissions would otherwise permit the action. SELinux is commonly used on distributions such as Red Hat Enterprise Linux and related systems. When troubleshooting access problems, administrators should check both traditional permissions and SELinux status or denials. Understanding SELinux is important because changing file permissions alone may not resolve an SELinux policy restriction.<\/span><\/p>\n<h3><b>Question 136<\/b><\/h3>\n<p><b>Which command can be used to check whether SELinux is currently enforcing, permissive, or disabled?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">getenforce<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">selinux-status<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">securityctl<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">policycheck<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">getenforce<\/span><span style=\"font-weight: 400;\"> command reports the current SELinux mode. It normally returns <\/span><span style=\"font-weight: 400;\">Enforcing<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">Permissive<\/span><span style=\"font-weight: 400;\">, or <\/span><span style=\"font-weight: 400;\">Disabled<\/span><span style=\"font-weight: 400;\">. In enforcing mode, SELinux policies actively restrict unauthorized actions. In permissive mode, policy violations are logged but generally not blocked. Disabled means SELinux is not active. Checking the current mode is useful when troubleshooting access problems because an application failure may be caused by SELinux policy rather than standard Unix file permissions.<\/span><\/p>\n<h3><b>Question 137<\/b><\/h3>\n<p><b>Which firewall technology is commonly used as the modern packet filtering framework on Linux systems?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">nftables<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ext4<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">systemd<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">OpenSSH<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">nftables is a modern Linux packet filtering and firewall framework. It replaces many older iptables-based approaches and provides a unified system for filtering network traffic. Administrators can create rules to allow or block traffic based on addresses, ports, protocols, interfaces, and other properties. Some Linux distributions provide higher-level firewall tools such as firewalld that use nftables underneath. Understanding the underlying firewall framework helps administrators troubleshoot connectivity and security rules more effectively.<\/span><\/p>\n<h3><b>Question 138<\/b><\/h3>\n<p><b>Which command is commonly used to generate a SHA-256 checksum for a file?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">sha256sum<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">cryptsum<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">hashfile256<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">openssl-hashfile<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">sha256sum<\/span><span style=\"font-weight: 400;\"> command calculates a SHA-256 cryptographic hash of a file. A checksum can be used to verify that a file has not changed between two points in time or during transfer. If the calculated hash matches a trusted reference value, the file contents are highly likely to be identical. Hashes are commonly used for software downloads, backups, forensic work, and integrity verification. A hash is not the same as encryption because it is designed to be one-way.<\/span><\/p>\n<h3><b>Question 139<\/b><\/h3>\n<p><b>Which command can be used to inspect the status of a firewall managed by firewalld?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">firewall-cmd &#8211;state<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">firewall-status -p<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">firewalld check<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">iptables &#8211;firewall<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">firewall-cmd &#8211;state<\/span><span style=\"font-weight: 400;\"> command checks whether the firewalld service is running. Firewalld provides a dynamic firewall management interface and commonly uses nftables as its backend on modern systems. Administrators can use <\/span><span style=\"font-weight: 400;\">firewall-cmd<\/span><span style=\"font-weight: 400;\"> for many tasks, including checking active zones, services, ports, and firewall configuration. When troubleshooting network access, checking firewall state is important because a running service and correct IP configuration do not guarantee that required network traffic is allowed.<\/span><\/p>\n<h3><b>Question 140<\/b><\/h3>\n<p><b>A Linux server cannot access the internet, but its network interface has a valid IP address. What should you check next to determine whether the server has a default route?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ip route<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">lsblk<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">free -m<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">lsusb<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<p><b>Explanation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">ip route<\/span><span style=\"font-weight: 400;\"> command can show whether the server has a default route. A default route tells Linux where to send packets when there is no more specific route for the destination. A system can have a valid IP address and still be unable to reach external networks if its default gateway is missing or incorrect. After checking the route, an administrator can test the gateway, DNS resolution, and external connectivity separately to identify where the network path is failing.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>View Full\u00a0CompTIA XK0-006 Exam Dumps\u00a0and Practice Test Dumps. &nbsp; Question 121 Which command is commonly used to create a new RAID array using Linux software RAID? mdadm raidctl mkraidfs diskadm Correct Answer: 1 Explanation The mdadm command is used to create, manage, monitor, and maintain Linux software RAID arrays. RAID can combine multiple disks to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1648,1647],"tags":[],"_links":{"self":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/11486"}],"collection":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/comments?post=11486"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/11486\/revisions"}],"predecessor-version":[{"id":11487,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/11486\/revisions\/11487"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=11486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=11486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=11486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}