Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free LPI LPIC-2 - Exam 201 (part 1 of 2), version 4.5 201-450 Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 11 Total 161 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Topic 200: Capacity Planning

Skill tested: Correlates CPU, I/O wait, and blocked-process metrics to identify a performance bottleneck.

A database host has developed intermittent response delays after a reporting workload was added. During the delays, `top` shows moderate CPU utilization but a high proportion of time in I/O wait. `vmstat 1` reports sustained blocked processes and elevated block output, while `iostat` shows high utilization and long average wait times on the logical volume's backing device. Network throughput remains low, and memory pressure is not evident. The storage team asks whether adding CPU capacity is justified. Which action is the best next step to confirm the likely bottleneck before recommending hardware changes?

Correct Answer: D. Collect interval-based per-device `iostat` data during the delays and trace the reporting processes' I/O activity.
Explanation:

The measurements point to storage latency: elevated I/O wait, blocked tasks, and high device utilization with long waits. Interval-based per-device statistics can verify whether the backing device remains saturated during the actual symptom window; correlating process I/O helps identify the workload responsible. Adding CPU does not resolve a device queue bottleneck, and I/O wait is time CPU cores spend idle while I/O is outstanding, not evidence of CPU demand. Network connection counts do not measure disk saturation, and swap does not accelerate pending storage requests.

Question 2

New Multiple answers

Topic: Topic 200: Capacity Planning

Skill tested: Uses historical system-activity data and growth trends to forecast resource capacity requirements.

A hosting provider must justify whether its web fleet can support the next six months of expected traffic. It has collected daily system-activity data for CPU, memory, disk, and network usage, including peak periods, and stores the records on each host. The fleet has predictable seasonal peaks, but the provider cannot afford to add monitoring agents or export sensitive records to a third-party service. Which TWO actions provide the most defensible forecast using the available information? Select TWO.

Correct Answer: A. Use `sar` to compare historical peak and average utilization over representative intervals, then relate the trend to projected workload growth.; B. Examine `sar` data for recurring seasonal peaks and evaluate whether projected demand approaches sustained resource limits.
Explanation:

Historical `sar` records allow the provider to compare utilization across time, identify recurring peaks, and relate observed growth to the planned workload increase. Using both representative averages and peak intervals avoids basing the forecast on either a quiet snapshot or an isolated transient. A one-time `top` display cannot represent seasonal patterns. Process counts do not capture the widely varying CPU and memory cost of individual processes, while a single maximum network sample is not a sound estimate of sustained average demand.

Question 3

New Single answer

Topic: Topic 201: Linux Kernel

Skill tested: Selects an appropriate kernel image format for bootloader size and decompression constraints.

An embedded Linux appliance uses a legacy bootloader that can load a kernel only when the image fits within a small contiguous memory region. Its installed RAM is limited, and the bootloader can pass control to a self-decompressing Linux kernel image. The engineering team wants to retain the normal kernel configuration and avoid replacing the bootloader. Which kernel image format is the most appropriate starting point for this constraint?

Correct Answer: C. A `zImage`, because it is designed to be a smaller self-decompressing image suitable for constrained loading environments.
Explanation:

A `zImage` is a self-decompressing kernel image historically intended for systems with tighter loading constraints. It is the best fit among these choices when the bootloader's contiguous load region is small and the bootloader cannot be changed. `bzImage` is a bootable compressed kernel format that addresses limitations of older large-kernel loading arrangements; its name does not promise a smaller file than every `zImage`. An uncompressed image generally increases the loading footprint, and a compressed source archive is not a bootable kernel image.

Question 4

New Multiple answers

Topic: Topic 201: Linux Kernel

Skill tested: Rebuilds and installs a configured kernel while preserving a known-good bootable kernel.

A distribution-independent server needs a custom kernel with a driver built in because the root filesystem resides on that driver. The administrator has a working kernel that must remain available for rollback, and the new kernel must receive a distinct release identifier so its modules do not overwrite the existing tree. Which THREE actions are appropriate? Select THREE.

Correct Answer: C. Build the kernel and modules, then install the modules into the release-specific module directory.; D. Install the new kernel under a distinct boot filename and preserve the existing kernel and boot entry.; E. Set a distinct kernel local version in the kernel configuration before building.
Explanation:

A unique local version gives the custom kernel a distinct release string, which separates its module directory from the known-good kernel. Building and installing modules for that release and retaining a separate kernel image and boot entry support a safe test and rollback. Removing the existing image and modules defeats the rollback requirement. A driver needed to access the root filesystem must be available early enough to mount it; making it loadable without an early-userspace mechanism risks an unbootable system, so it should be built in or made available through an appropriate initramfs.

Question 5

New Single answer

Topic: Topic 202: System Startup

Skill tested: Applies a persistent systemd target change while distinguishing target selection from service enablement.

A company is converting a server from a graphical workstation role to a text-only multi-user role. The system uses systemd, and the change must persist across reboots. Administrators still need to start the graphical environment manually for occasional maintenance, so removing graphical packages or disabling every graphical service is not acceptable. Which action best meets the requirement?

Correct Answer: B. Set the default target to `multi-user.target` with `systemctl set-default`.
Explanation:

`systemctl set-default multi-user.target` changes the systemd default target persistently while leaving the graphical target available for deliberate activation. Masking `graphical.target` prevents it from being started and conflicts with the maintenance requirement. `rescue.target` provides a limited recovery environment rather than a normal multi-user server environment. On a system booting with systemd, `/etc/inittab` is not the authoritative mechanism for selecting the default target.

Question 6

New Multiple answers

Topic: Topic 202: System Startup

Skill tested: Uses systemd recovery boot options to reach a maintenance shell without starting the normal service set.

A remote server fails during normal startup after a service change. The administrator has console access and must obtain a maintenance shell to repair the configuration, while avoiding normal multi-user services that could alter the affected files. The system uses systemd, and the bootloader allows temporary kernel command-line edits. Which TWO approaches can direct this boot into a suitable recovery environment? Select TWO.

Correct Answer: C. Append `systemd.unit=rescue.target` to the kernel command line for a rescue-mode boot.; E. Append `systemd.unit=emergency.target` to request the more minimal emergency target.
Explanation:

The `systemd.unit=` kernel parameter selects the unit systemd should start. `rescue.target` provides a recovery mode with a limited service set, while `emergency.target` is a more minimal environment useful when ordinary startup dependencies fail. `multi-user.target` is the normal non-graphical operating target and can start many services. `init=/bin/true` replaces the init process rather than providing a systemd repair shell. The `ro` parameter requests a read-only root mount where supported; it does not select a maintenance target.

Question 7

New Single answer

Topic: Topic 203: Filesystem and Devices

Skill tested: Configures filesystem mounting by UUID and validates fstab entries without relying on device enumeration order.

After adding storage controllers, a server's data partition sometimes appears under a different `/dev/sdX` name. The filesystem must continue mounting at `/srv/archive` during normal startup, and the administrator wants to avoid a reboot while validating the revised configuration. The filesystem already has a stable UUID, and the mount point exists. Which approach best satisfies these requirements?

Correct Answer: D. Use the UUID in `/etc/fstab`, then validate the entry with `mount -a`.
Explanation:

A UUID identifies the filesystem independently of the order in which the kernel discovers disks. An `/etc/fstab` entry using that UUID provides the persistent mount configuration, and `mount -a` attempts to mount eligible entries so the administrator can check syntax and device resolution without rebooting. `sync` flushes buffered writes; it does not stabilize device names. `/etc/mtab` records mounted filesystems rather than serving as the persistent configuration source, and unmounting everything would not validate the intended mount.

Question 8

New Single answer

Topic: Topic 203: Filesystem and Devices

Skill tested: Plans ext filesystem maintenance safely by separating offline repair from mounted-filesystem checking.

A storage administrator receives reports of filesystem errors on a busy ext4 data volume. The volume is mounted read-write and contains live application data; a maintenance window is available later that night. The administrator wants to perform a repair rather than risk running a modifying check against an active filesystem. Which plan is most appropriate?

Correct Answer: A. Schedule downtime, stop users of the volume, unmount it, and then run `e2fsck` on the filesystem device.
Explanation:

A filesystem repair check should be performed on an unmounted filesystem to avoid inconsistent results or damage from concurrent writes. Scheduling downtime, stopping users, and unmounting the ext4 volume provides the safe conditions for running `e2fsck` against its block device. Running a modifying check on a mounted, actively written filesystem is unsafe. `fsck` also operates on filesystem devices rather than mount-point directories, and `tune2fs` changes ext filesystem parameters rather than repairing reported corruption.

Question 9

New Multiple answers

Topic: Topic 204: Advanced Storage Device Administration

Skill tested: Selects RAID levels and replacement procedures that preserve availability and tolerate a single disk failure.

A small business must provide a single filesystem from three equal-sized disks. It needs continued operation after any one disk fails and wants to use more usable capacity than mirroring all three disks would provide. The system uses Linux software RAID, and each disk can be partitioned for the array. Which TWO design and operational choices meet the requirements? Select TWO.

Correct Answer: A. Create a RAID 5 array from the three member partitions, accepting that usable capacity is approximately two disks.; D. Monitor `/proc/mdstat` and rebuild the degraded array after replacing a failed member with a suitable partition.
Explanation:

A three-member RAID 5 array uses parity distributed across the members, yielding approximately two disks' worth of usable capacity and surviving one member failure. Monitoring `/proc/mdstat` reveals array state, and after replacing a failed member the administrator can add the replacement to the array and allow rebuilding. RAID 0 has no redundancy and cannot reconstruct a failed disk. Three-way mirroring provides only about one disk's usable capacity, and swap is unrelated to RAID member replacement.

Question 10

New Single answer

Topic: Topic 204: Advanced Storage Device Administration

Skill tested: Diagnoses storage latency by inspecting device transfer settings and relevant kernel resource indicators.

A legacy Linux server experiences slow reads from an ATAPI optical device after a maintenance change. The device remains detected, but measured transfer rates are far below expected performance. Before replacing hardware, the administrator wants to inspect the drive's current transfer mode and verify that the kernel has not assigned an unexpected interrupt resource. Which pair of tools is most appropriate for these checks?

Correct Answer: B. Use `hdparm` to inspect supported IDE/ATAPI transfer settings and inspect `/proc/interrupts` for interrupt assignments.
Explanation:

`hdparm` provides inspection and configuration functions for supported IDE/ATAPI drive parameters, including transfer-mode and DMA-related settings. `/proc/interrupts` reports the interrupts in use and their associated devices, making it relevant to checking an unexpected assignment. `mdadm` and `/proc/mdstat` concern software RAID, not optical-drive DMA or IRQ allocation. `swapon` manages swap, `sar -r` reports memory statistics, `blkid` identifies block devices and filesystem metadata, and `route` concerns IP routing.

Question 11

New Single answer

Topic: Topic 205: Network Configuration

Skill tested: Configures IPv4 addressing and a default route using modern interface and route management commands.

A Linux gateway has a wired interface named `enp2s0` connected to an upstream router. The network administrator must temporarily configure the gateway for IPv4 address `198.51.100.14/24` and a default route through `198.51.100.1` for a connectivity test. The change should not edit distribution-specific persistent network files, and the system provides the `ip` utility. Which command sequence is appropriate?

Correct Answer: A. `ip addr add 198.51.100.14/24 dev enp2s0` followed by `ip route add default via 198.51.100.1 dev enp2s0`
Explanation:

`ip addr add` assigns the IPv4 prefix to the interface, and `ip route add default via ... dev ...` installs the desired default gateway route. These changes are runtime configuration and do not depend on a distribution-specific persistent networking framework. The second sequence confuses address and route syntax. `arp` manages neighbor mappings rather than default routes, while the last choice adds a route to the gateway's subnet instead of a default route and does not assign the required host address.

Question 12

New Multiple answers

Topic: Topic 205: Network Configuration

Skill tested: Troubleshoots multi-homed routing by checking interface addressing and route selection for return traffic.

A monitoring server has two active Ethernet interfaces on separate IPv4 subnets. It can reach hosts on both directly connected networks, but connections to remote clients arriving on the secondary interface fail intermittently. The routing table contains a default route through the primary interface, and packet captures show requests arriving on the secondary interface without corresponding replies. The organization requires routing changes to remain explicit and does not use policy-routing rules. Which TWO checks are the best next steps? Select TWO.

Correct Answer: A. Use `ip route get` with a remote client's destination to confirm the selected egress interface and gateway.; C. Inspect `ip addr` and `ip route` to verify both interfaces' prefixes and determine which route the kernel selects for the remote clients.
Explanation:

A multihomed host may receive a connection on one interface but choose its reply path using a route through another interface. Checking assigned prefixes and the route table, then using `ip route get` for a remote destination, establishes the kernel's route selection and whether it explains the asymmetric return path. Static ARP is not appropriate for remote routed clients. IPv4 forwarding governs packets routed through the host, not replies generated by local applications. A connected-subnet route does not replace a valid route to remote networks.