Sample questions
Linux Professional Institute Certification Level 2 LPIC-2 practice questions
Which of the following is the primary configuration file for the udev device manager?
Block Devices, Filesystems and Advanced StorageeasySee the answer and why each option is right or wrong →A system's root filesystem on /dev/sda1 is offline. The administrator boots into rescue mode and needs to check the filesystem integrity. Which command should be used first?
Block Devices, Filesystems and Advanced StoragehardSee the answer and why each option is right or wrong →Which sysctl parameter controls the system's behavior when a kernel oops occurs (e.g., automatically reboot)?
Which TWO of the following commands can be used to list currently loaded kernel modules? (Choose two.)
Refer to the exhibit. Which kernel version will be booted by default when using a standard GRUB2 configuration that uses the symlinks vmlinuz and initrd.img?
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…
Which TWO parameters in the [global] section are REQUIRED for a Samba server to act as a standalone server (not a member of a domain)?
Which file is used to configure the LDAP client for system authentication on a modern Linux system using nss-pam-ldapd?
An administrator configures a Samba share with guest access. After testing, guests are prompted for a password. Which directive should be added to the [global] section to allow gue…
Which THREE of the following actions are recommended as initial security hardening steps after installing a new Linux server? (Choose three.)
Refer to the exhibit. A user in the group 'staff' attempts to access the share 'share' from a Windows client. The user is prompted for credentials and authenticates successfully, b…
An administrator configures iptables on a Linux firewall with the following rules: -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT; -A INPUT -p tcp --dport 22 -m state --st…
A firewall rule set is implemented using iptables. The administrator wants to allow incoming SSH connections only from the 192.168.1.0/24 subnet, while all other incoming traffic i…
Which TWO commands can be used to list all currently listening TCP ports and the associated processes?
In Samba 4, what is the default security mode when no 'security' parameter is set in the [global] section?
A company wants to host multiple websites on a single Apache server with different domain names. Which approach is most appropriate?
Based on the smbstatus output, which statement is true?
A system with SELinux in enforcing mode is running a custom application that needs to write to a file in /data. The application's context type is 'myapp_t', and the target file con…
Refer to the exhibit. The /data filesystem is nearly full. The administrator has added a new disk /dev/sdc with 10GB capacity. The VG currently has no free space. Which steps will…
Block Devices, Filesystems and Advanced StoragehardSee the answer and why each option is right or wrong →Which command will display the current VLAN membership of interface eth1?
Refer to the exhibit. What is the effect of this sudoers configuration?
A Samba share is intended for guest (anonymous) access. Which global parameter must be set to allow this?
A Linux system administrator is tasked with upgrading the kernel on a server running a custom compiled kernel (version 4.19) with many in-house modules. The new kernel (5.10) has s…
An administrator notices that an NFS mount on a client becomes unresponsive when the NFS server goes offline. The admin wants the mount to return an error to the application after…