Question 60
A physical disk is scheduled for removal from a healthy volume group. Which operation first relocates its extents to other PVs?
- pvs
- vgreduce vgdata /dev/sdb
- pvmove /dev/sdb
- lvextend -L 12G /dev/vgdata/app
Explanation
Correct Answer
C:pvmove migrates allocated LVM extents off a selected physical volume when the group has sufficient alternative capacity. This helps evacuate a device before removal.
Incorrect Answers
A:pvs summarizes physical volumes and their associated volume groups and free extents; that changes a different part of the system; the requested outcome is evacuating live extents from a disk.
B:vgreduce removes an unused physical volume from a volume group after its extents have been relocated; this does not achieve evacuating live extents from a disk on the system described.
D:lvextend enlarges the logical volume's block-device extent allocation; using it would leave evacuating live extents from a disk unresolved.
Question 61
A mounted ext4 filesystem has suspected structural damage and can be safely unmounted. Which tool checks and repairs its metadata?
- resize2fs /dev/mapper/vgdata-root
- tmpfs
- Btrfs
- e2fsck /dev/vgdata/app
Explanation
Correct Answer
D:e2fsck checks ext-family filesystem structures and may repair inconsistencies when run in an appropriate offline state. Avoid a modifying pass on a live mounted filesystem.
Incorrect Answers
A:resize2fs can enlarge an ext-family filesystem to use additional underlying block-device space; it does not deliver inspecting and repairing offline ext4 metadata, which is decisive in this scenario.
B:tmpfs stores transient files in virtual memory and is commonly used for runtime directories; the evidence calls for inspecting and repairing offline ext4 metadata, not merely this separate operation.
C:Btrfs includes copy-on-write snapshots, checksums and subvolume capabilities; the task involves inspecting and repairing offline ext4 metadata, whereas this addresses another subsystem.
Question 62
A cloud disk has expanded and an existing partition must be enlarged to occupy available end space. Which tool performs partition growth?
- RAID 5 across at least three disks
- lsblk -f
- growpart /dev/sda 2
- gdisk /dev/sdb
Explanation
Correct Answer
C:growpart expands the specified partition boundary into available space when the layout permits. Filesystem and LVM resizing can still be required afterward.
Incorrect Answers
A:RAID 5 stripes data and parity across at least three devices, tolerating one device failure; the administrator instead needs extending an existing partition boundary; this option serves a different purpose.
B:lsblk can display the block-device hierarchy with filesystem types, labels and UUIDs; it answers a neighboring question rather than extending an existing partition boundary.
D:gdisk operates on GUID partition tables and provides interactive partition creation and changes; this does not achieve extending an existing partition boundary on the system described.
Question 63
A team requires a Linux-to-Linux network share using conventional Unix export semantics. Which protocol fits?
- nodev
- Filesystem UUID= entry
- NFS client mount
- autofs automount map
- nosuid
Explanation
Correct Answer
C:NFS provides remote filesystem access from exported shares with Unix-like permissions and ownership behavior. It is a different protocol family from SMB/CIFS.
Incorrect Answers
A:nodev prevents interpretation of device special files on that filesystem as actual devices; using it would leave accessing a remote Unix-style exported filesystem unresolved.
B:A filesystem UUID generally identifies the filesystem independently of transient kernel device numbering; the requirement is accessing a remote Unix-style exported filesystem, outside the effect of this choice.
D:autofs uses automount maps to mount supported resources when needed, often releasing idle mounts later; the evidence calls for accessing a remote Unix-style exported filesystem, not merely this separate operation.
E:nosuid makes set-user-ID and set-group-ID semantics ineffective for files on that mount; the task involves accessing a remote Unix-style exported filesystem, whereas this addresses another subsystem.
Question 64
An untrusted filesystem must neither honor setuid elevation nor interpret special device nodes. Which TWO mount flags provide these independent protections? Choose TWO.
- autofs automount map
- noexec
- mount -o remount,rw /srv
- nosuid
- nodev
Explanation
Correct Answers
D:The nosuid mount flag prevents set-user-ID and set-group-ID bits on executable files from changing process credentials through that filesystem. The independently required nodev flag prevents special device-file interpretation.
E:nodev prevents interpretation of device special files on that filesystem as actual devices. It does not block ordinary reads or writes to regular files.
Incorrect Answers
A:autofs uses automount maps to mount supported resources when needed, often releasing idle mounts later; its scope differs from blocking both setuid semantics and special device-node interpretation, so it cannot meet the stated requirement.
B:noexec prevents direct program execution from the mounted filesystem in normal enforcement; that is not equivalent to blocking both setuid semantics and special device-node interpretation.
C:A remount updates applicable mount flags for an existing filesystem; the administrator instead needs blocking both setuid semantics and special device-node interpretation; this option serves a different purpose.
Question 65
A new GPT disk needs interactive partition editing using a GPT-aware tool. Which program is suitable?
- growpart /dev/sda 2
- nofail
- lsblk -f
- gdisk /dev/sdb
- vgreduce vgdata /dev/sdb
- pvmove /dev/sdb
Explanation
Correct Answer
D:gdisk operates on GUID partition tables and provides interactive partition creation and changes. Partition operations do not automatically create filesystems.
Incorrect Answers
A:growpart expands the specified partition boundary into available space when the layout permits; this does not achieve editing a GUID partition table on the system described.
B:nofail tells mount integration not to treat an unavailable mount as fatal to boot; it will not provide editing a GUID partition table under these conditions.
C:lsblk can display the block-device hierarchy with filesystem types, labels and UUIDs; using it would leave editing a GUID partition table unresolved.
E:vgreduce removes an unused physical volume from a volume group after its extents have been relocated; it does not deliver editing a GUID partition table, which is decisive in this scenario.
F:pvmove migrates allocated LVM extents off a selected physical volume when the group has sufficient alternative capacity; the evidence calls for editing a GUID partition table, not merely this separate operation.
Question 66
Storage review requires the filesystem usage percentage for each mounted filesystem. Which command displays it?
- df -h
- mkfs.ext4 /dev/vgdata/new
- Btrfs
- resize2fs /dev/mapper/vgdata-root
Explanation
Correct Answer
A:df reports capacity and free space at the filesystem level, with -h making sizes readable. It does not identify which individual directory consumes the space.
Incorrect Answers
B:mkfs.ext4 constructs ext4 filesystem metadata on the chosen device; the task involves reporting mounted filesystem free capacity, whereas this addresses another subsystem.
C:Btrfs includes copy-on-write snapshots, checksums and subvolume capabilities; its scope differs from reporting mounted filesystem free capacity, so it cannot meet the stated requirement.
D:resize2fs can enlarge an ext-family filesystem to use additional underlying block-device space; that is not equivalent to reporting mounted filesystem free capacity.
Question 67
An XFS filesystem has free underlying blocks after LVM growth and is mounted at /srv. Which operation enlarges it?
- e2fsck /dev/vgdata/app
- xfs_growfs /srv
- tmpfs
- du -sh /srv/*
Explanation
Correct Answer
B:xfs_growfs enlarges an XFS filesystem while it is mounted, using the mounted filesystem path. It does not shrink XFS filesystems.
Incorrect Answers
A:e2fsck checks ext-family filesystem structures and may repair inconsistencies when run in an appropriate offline state; it answers a neighboring question rather than growing a mounted XFS filesystem.
C:tmpfs stores transient files in virtual memory and is commonly used for runtime directories; this does not achieve growing a mounted XFS filesystem on the system described.
D:du summarizes allocated disk space for selected files and directory trees without making changes to disk structures; it will not provide growing a mounted XFS filesystem under these conditions.
Question 68
A volume group is being transported intact to another Linux host. Which preparatory action marks it exported?
- pvcreate /dev/sdb
- lvcreate -L 8G -n app vgdata
- vgexport vgdata
- pvs
Explanation
Correct Answer
C:vgexport marks a volume group as exported for safe movement to a different system after suitable deactivation. The receiving host later imports the metadata.
Incorrect Answers
A:pvcreate writes LVM physical-volume metadata to the designated device; the requirement is preparing a volume group for transfer between hosts, outside the effect of this choice.
B:lvcreate allocates extents from a volume group to construct a new logical volume; it does not deliver preparing a volume group for transfer between hosts, which is decisive in this scenario.
D:pvs summarizes physical volumes and their associated volume groups and free extents; the task involves preparing a volume group for transfer between hosts, whereas this addresses another subsystem.
Question 69
A software RAID administrator wants to see array rebuild progress reported by the kernel. Which file can be inspected?
- RAID 6
- RAID 1
- RAID 5 across at least three disks
- /proc/mdstat
Explanation
Correct Answer
D:The md kernel subsystem reports member and resynchronization state through /proc/mdstat. It provides live RAID status rather than changing the array layout.
Incorrect Answers
A:RAID 6 stores dual parity and can survive two failed members, subject to proper array health; that is not equivalent to checking active md RAID rebuild state.
B:RAID 1 mirrors data across member devices so one member can fail without immediate loss of the stored data; the administrator instead needs checking active md RAID rebuild state; this option serves a different purpose.
C:RAID 5 stripes data and parity across at least three devices, tolerating one device failure; it answers a neighboring question rather than checking active md RAID rebuild state.
Question 70
A persistent mount must survive reboot even when /dev/sdb's enumeration order changes. Which identifier is suitable in /etc/fstab?
- noexec
- nofail
- autofs automount map
- nosuid
- 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.