CompTIA XK0-006 (CompTIA Linux+) Practice Test 8

Question 70

A persistent mount must survive reboot even when /dev/sdb's enumeration order changes. Which identifier is suitable in /etc/fstab?

  1. noexec
  2. nofail
  3. autofs automount map
  4. nosuid
  5. Filesystem UUID= entry

Explanation

Correct Answer

E:

A filesystem UUID generally identifies the filesystem independently of transient kernel device numbering. This reduces mount failures after block-device enumeration changes.

Incorrect Answers

A:

noexec prevents direct program execution from the mounted filesystem in normal enforcement; it will not provide binding a persistent mount to filesystem identity under these conditions.

B:

nofail tells mount integration not to treat an unavailable mount as fatal to boot; using it would leave binding a persistent mount to filesystem identity unresolved.

C:

autofs uses automount maps to mount supported resources when needed, often releasing idle mounts later; the requirement is binding a persistent mount to filesystem identity, outside the effect of this choice.

D:

nosuid makes set-user-ID and set-group-ID semantics ineffective for files on that mount; it does not deliver binding a persistent mount to filesystem identity, which is decisive in this scenario.

Question 71

A slow network share should be mounted on demand only when its path is accessed. Which Linux mechanism is intended?

  1. Filesystem UUID= entry
  2. autofs automount map
  3. nosuid
  4. mount -o remount,rw /srv

Explanation

Correct Answer

B:

autofs uses automount maps to mount supported resources when needed, often releasing idle mounts later. This reduces reliance on the remote endpoint during boot.

Incorrect Answers

A:

A filesystem UUID generally identifies the filesystem independently of transient kernel device numbering; the task involves mounting network storage on demand, whereas this addresses another subsystem.

C:

nosuid makes set-user-ID and set-group-ID semantics ineffective for files on that mount; that is not equivalent to mounting network storage on demand.

D:

A remount updates applicable mount flags for an existing filesystem; the administrator instead needs mounting network storage on demand; this option serves a different purpose.

Question 72

A technician must correlate mounted filesystems with block disks, partitions and mount points in a tree. Which utility is useful?

  1. growpart /dev/sda 2
  2. nodev
  3. gdisk /dev/sdb
  4. lsblk -f

Explanation

Correct Answer

D:

lsblk can display the block-device hierarchy with filesystem types, labels and UUIDs. The -f option emphasizes filesystem information.

Incorrect Answers

A:

growpart expands the specified partition boundary into available space when the layout permits; that changes a different part of the system; the requested outcome is mapping disks to partitions and filesystem IDs.

B:

nodev prevents interpretation of device special files on that filesystem as actual devices; this does not achieve mapping disks to partitions and filesystem IDs on the system described.

C:

gdisk operates on GUID partition tables and provides interactive partition creation and changes; it will not provide mapping disks to partitions and filesystem IDs under these conditions.

Question 73

A snapshot-based workflow needs the underlying LVM volumes displayed with detailed attributes. Which command provides verbose LV metadata?

  1. pvs
  2. lvdisplay /dev/vgdata/app
  3. lvcreate -L 8G -n app vgdata
  4. vgs

Explanation

Correct Answer

B:

lvdisplay reports detailed attributes such as device path, size, and status. It does not mount the volume or clone filesystem data.

Incorrect Answers

A:

pvs summarizes physical volumes and their associated volume groups and free extents; it does not deliver inspecting a single LV's detailed properties, which is decisive in this scenario.

C:

lvcreate allocates extents from a volume group to construct a new logical volume; the task involves inspecting a single LV's detailed properties, whereas this addresses another subsystem.

D:

vgs lists volume groups with their total and free capacities, physical-volume counts and logical-volume counts; its scope differs from inspecting a single LV's detailed properties, so it cannot meet the stated requirement.

Question 74

After a successful pvmove, a disk is to be detached from vgdata without deleting the remaining group. Which operation removes its membership?

  1. vgreduce vgdata /dev/sdb
  2. lvcreate -L 8G -n app vgdata
  3. lvdisplay /dev/vgdata/app
  4. vgs

Explanation

Correct Answer

A:

vgreduce removes an unused physical volume from a volume group after its extents have been relocated. Removing an in-use device would risk data availability.

Incorrect Answers

B:

lvcreate allocates extents from a volume group to construct a new logical volume; it answers a neighboring question rather than detaching one unused PV from its volume group.

C:

lvdisplay reports detailed attributes such as device path, size, and status; that changes a different part of the system; the requested outcome is detaching one unused PV from its volume group.

D:

vgs lists volume groups with their total and free capacities, physical-volume counts and logical-volume counts; this does not achieve detaching one unused PV from its volume group on the system described.

Question 75

An existing md array needs detailed member health and RAID metadata. Which command gives that report?

  1. mdadm --detail /dev/md0
  2. RAID 1
  3. RAID 5 across at least three disks
  4. /proc/mdstat

Explanation

Correct Answer

A:

mdadm --detail displays the array level, member states and status for a Linux software RAID device. It does not format or grow a filesystem.

Incorrect Answers

B:

RAID 1 mirrors data across member devices so one member can fail without immediate loss of the stored data; the requirement is inspecting detailed software RAID membership, outside the effect of this choice.

C:

RAID 5 stripes data and parity across at least three devices, tolerating one device failure; it does not deliver inspecting detailed software RAID membership, which is decisive in this scenario.

D:

The md kernel subsystem reports member and resynchronization state through /proc/mdstat; the evidence calls for inspecting detailed software RAID membership, not merely this separate operation.

Question 76

An administrator needs file-level snapshots and checksumming within a supported filesystem. Which filesystem supports these natively?

  1. df -h
  2. tmpfs
  3. xfs_growfs /srv
  4. Btrfs
  5. mkfs.ext4 /dev/vgdata/new

Explanation

Correct Answer

D:

Btrfs includes copy-on-write snapshots, checksums and subvolume capabilities. These features belong to the filesystem, not to conventional ext4 filesystem snapshots.

Incorrect Answers

A:

df reports capacity and free space at the filesystem level, with -h making sizes readable; its scope differs from creating native filesystem subvolume snapshots, so it cannot meet the stated requirement.

B:

tmpfs stores transient files in virtual memory and is commonly used for runtime directories; that is not equivalent to creating native filesystem subvolume snapshots.

C:

xfs_growfs enlarges an XFS filesystem while it is mounted, using the mounted filesystem path; the administrator instead needs creating native filesystem subvolume snapshots; this option serves a different purpose.

E:

mkfs.ext4 constructs ext4 filesystem metadata on the chosen device; that changes a different part of the system; the requested outcome is creating native filesystem subvolume snapshots.

Question 77

A new fstab entry was added; before reboot, the administrator wants to check it by mounting all eligible entries. Which command should run?

  1. noexec
  2. autofs automount map
  3. NFS client mount
  4. mount -a

Explanation

Correct Answer

D:

mount -a processes mount entries from fstab that are eligible for automatic mounting. It helps expose syntax or device errors before a restart.

Incorrect Answers

A:

noexec prevents direct program execution from the mounted filesystem in normal enforcement; this does not achieve testing eligible configured mounts now on the system described.

B:

autofs uses automount maps to mount supported resources when needed, often releasing idle mounts later; it will not provide testing eligible configured mounts now under these conditions.

C:

NFS provides remote filesystem access from exported shares with Unix-like permissions and ownership behavior; using it would leave testing eligible configured mounts now unresolved.

Question 78

A service wants a temporary filesystem that consumes RAM and swap rather than persistent disk blocks. Which type is appropriate?

  1. mkfs.ext4 /dev/vgdata/new
  2. tmpfs
  3. df -h
  4. Btrfs
  5. e2fsck /dev/vgdata/app
  6. resize2fs /dev/mapper/vgdata-root

Explanation

Correct Answer

B:

tmpfs stores transient files in virtual memory and is commonly used for runtime directories. Its contents do not persist after a normal reboot.

Incorrect Answers

A:

mkfs.ext4 constructs ext4 filesystem metadata on the chosen device; the evidence calls for using volatile memory-backed file storage, not merely this separate operation.

C:

df reports capacity and free space at the filesystem level, with -h making sizes readable; its scope differs from using volatile memory-backed file storage, so it cannot meet the stated requirement.

D:

Btrfs includes copy-on-write snapshots, checksums and subvolume capabilities; that is not equivalent to using volatile memory-backed file storage.

E:

e2fsck checks ext-family filesystem structures and may repair inconsistencies when run in an appropriate offline state; the administrator instead needs using volatile memory-backed file storage; this option serves a different purpose.

F:

resize2fs can enlarge an ext-family filesystem to use additional underlying block-device space; it answers a neighboring question rather than using volatile memory-backed file storage.

Question 79

Four disks must tolerate a simultaneous two-device failure using distributed parity. Which level meets the requirement?

  1. RAID 6
  2. mdadm --detail /dev/md0
  3. /proc/mdstat
  4. RAID 5 across at least three disks

Explanation

Correct Answer

A:

RAID 6 stores dual parity and can survive two failed members, subject to proper array health. This trades more usable capacity for higher fault tolerance than RAID 5.

Incorrect Answers

B:

mdadm --detail displays the array level, member states and status for a Linux software RAID device; that changes a different part of the system; the requested outcome is tolerating two concurrent disk failures.

C:

The md kernel subsystem reports member and resynchronization state through /proc/mdstat; this does not achieve tolerating two concurrent disk failures on the system described.

D:

RAID 5 stripes data and parity across at least three devices, tolerating one device failure; it will not provide tolerating two concurrent disk failures under these conditions.

Question 80

A filesystem is mounted read-only, and maintenance requires switching it to read/write without unmounting. Which action changes the mount?

  1. autofs automount map
  2. mount -o remount,rw /srv
  3. mount -a
  4. Filesystem UUID= entry

Explanation

Correct Answer

B:

A remount updates applicable mount flags for an existing filesystem. Read/write operation also requires that the underlying device and filesystem state allow writes.

Incorrect Answers

A:

autofs uses automount maps to mount supported resources when needed, often releasing idle mounts later; the requirement is altering a mounted filesystem to read/write, outside the effect of this choice.

C:

mount -a processes mount entries from fstab that are eligible for automatic mounting; the evidence calls for altering a mounted filesystem to read/write, not merely this separate operation.

D:

A filesystem UUID generally identifies the filesystem independently of transient kernel device numbering; the task involves altering a mounted filesystem to read/write, whereas this addresses another subsystem.

CompTIA Linux+ (XK0-006) Practice Tests