Sample questions
Linux Professional Institute Certification Level 2 LPIC-2 practice questions
Arrange the steps to perform a disaster recovery from a full system backup using tar.
Which TWO of the following commands can be used to list currently loaded kernel modules? (Choose two.)
A company has multiple subnets and wants to implement policy-based routing to direct traffic from a specific development subnet (192.168.10.0/24) through a specialized firewall for…
A company uses BIND9 as the authoritative name server for its public zone example.com. External users report that they cannot resolve the MX record for the domain, but internal use…
An administrator needs to prioritize traffic for a VoIP application over other traffic on a Linux router. Which tool should be used to implement traffic shaping and prioritization?
An administrator wants to restrict access to a service using PAM. Which file order determines the authentication flow for a service?
Arrange the steps to configure a Linux system as a DNS server using BIND.
Which TWO commands can be used to rebuild the initramfs on modern Linux systems? (Choose two.)
A new network card driver module is not being loaded at boot. The administrator wants to ensure the module is loaded automatically without modifying the kernel command line. Which…
After upgrading the kernel on a Red Hat Enterprise Linux system, the system fails to boot because the initramfs is missing. Which command can be used to regenerate the initramfs?
The administrator wants to create a RAID 1 array using /dev/sdb1 and /dev/sdc1, then create a filesystem and mount it at /mnt/raid1. Which command sequence should be used first?
Block Devices, Filesystems and Advanced StorageeasySee the answer and why each option is right or wrong →A company runs a critical database server on a Linux system. The server is subject to a strict compliance policy that requires all commands executed by the database administrator (…
An administrator creates a new XFS filesystem on /dev/vg/data and needs to mount it at /data with noatime and a stripe unit of 1 MiB. Which /etc/fstab entry is correct?
Block Devices, Filesystems and Advanced StoragemediumSee the answer and why each option is right or wrong →A company has a Linux client running Ubuntu 20.04 that is used by multiple developers. The client has two network interfaces: eth0 (connected to the corporate network with DHCP) an…
Which two of the following are valid methods to pass kernel parameters during the boot process? (Choose two.)
Which TWO commands can be used to display the current IP address and netmask of network interfaces on a Linux system?
A filesystem created with mkfs.ext4 on /dev/sda1 has a reserved block count of 5%. How can the administrator reduce it to 1% without reformatting?
Block Devices, Filesystems and Advanced StoragemediumSee the answer and why each option is right or wrong →An AppArmor profile for a database server is too restrictive and denies legitimate queries. The administrator wants to learn the required accesses by running the application in com…
An administrator wants to ensure a kernel module is loaded automatically at boot for a hardware device. Which file should be modified to add the module name?
A Samba server is configured as above. Users alice and bob have local system accounts but neither can connect to the share. What is the most likely cause?
A Samba server is experiencing slow authentication for domain users. The logs show repeated winbind connections to the domain controllers. The administrator suspects that winbind i…
A Linux server with two NICs bonded in mode 1 (active-backup) was working correctly until a switch was replaced. Now, although both interfaces are up, the bond always shows only on…
A server with multiple network cards needs a specific kernel module loaded before network configuration. Where should loading be configured for early boot?
A company runs a DNS server using BIND9 on a Linux server. The server is configured with two network interfaces: one internal (192.168.1.10) and one external (203.0.113.10). The se…