Courseiva
Back to Linux Professional Institute Certification Level 2 LPIC-2 questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise Linux Professional Institute Certification Level 2 LPIC-2 practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
LPIC-2
exam code
LPI
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related LPIC-2 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

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?

Network Topology
-rw-rr
Question 2mediummultiple choice
Full question →

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, but cannot write any files. What is the most likely reason?

Exhibit

The following output is from 'testparm -v' for a Samba server:

[global]
    workgroup = WORKGROUP
    server string = %h server (Samba, Ubuntu)
    netbios name = SAMBA-SRV
    security = USER
    map to guest = Bad User
    passdb backend = tdbsam
    printing = cups
    printcap name = cups
[share]
    path = /srv/share
    valid users = @staff
    read only = Yes
    guest ok = No
Question 3hardmultiple choice
Full question →

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 increase the available space for /data using LVM and ext4?

Exhibit

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/mapper/vg-data  20G   16G  4.0G  80% /data
Question 4mediummultiple choice
Full question →

Refer to the exhibit. What is the effect of this sudoers configuration?

Exhibit

Refer to the exhibit.
# sudoers file
User_Alias ADMINS = alice, bob
Cmnd_Alias SOFTWARE = /usr/bin/apt-get, /usr/bin/dpkg
ADMINS ALL = SOFTWARE
Question 5hardmultiple choice
Full question →

Refer to the exhibit. What is the most likely cause of this Apache error?

Exhibit

[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Question 6mediummultiple choice
Full question →

Refer to the exhibit. A user reports that they can connect to the 'shared' share from a Windows client and read files, but cannot write any files. The share permissions on the filesystem are set to 777 on /srv/samba/shared. What is the most likely cause of the write failure?

Exhibit

Refer to the exhibit.

[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   security = user
   map to guest = Bad User
   log file = /var/log/samba/log.%m
   max log size = 1000
   load printers = Yes
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = yes
   read only = yes
   create mask = 0700
[shared]
   path = /srv/samba/shared
   browseable = yes
   read only = no
   guest ok = yes
Question 7easymultiple choice
Full question →

The server is unable to communicate with hosts on the 192.168.2.0/24 network. Based on the exhibit, what is the most likely cause?

Exhibit

Refer to the exhibit.

# ip addr show eth0
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:1a:2b:3c:4d:5e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.100/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::21a:2bff:fe3c:4d5e/64 scope link
       valid_lft forever preferred_lft forever
Question 8easymultiple choice
Read the full DNS explanation →

Refer to the exhibit. What is wrong with the reverse DNS resolution for 192.0.2.1?

Exhibit

; <<>> DiG 9.16.1 <<>> -x 192.0.2.1
;; QUESTION SECTION:
;1.2.0.192.in-addr.arpa.       IN      PTR

;; AUTHORITY SECTION:
2.0.192.in-addr.arpa.  3600    IN      SOA     ns1.example.com. admin.example.com. 2023100101 3600 900 604800 86400

;; Query time: 1 msec
;; SERVER: 192.0.2.1#53(192.0.2.1)
;; WHEN: Sat Oct 01 12:00:00 2023
;; MSG SIZE  rcvd: 80
Question 9hardmultiple choice
Full question →

Refer to the exhibit. A user cannot connect to the 'share2' Samba share. What is the most likely cause?

Exhibit

[2024/10/25 11:00:00.123456,  0] ../../source3/smbd/service.c:1413(make_connection_snum)
  canonicalize_connect_path failed for service share2, path /srv/samba/share2
[2024/10/25 11:00:00.123457,  0] ../../source3/smbd/service.c:1458(make_connection_snum)
  make_connection_snum: canonicalize_connect_path failed.
Question 10mediummultiple choice
Full question →

Refer to the exhibit. If a user on the local machine tries to SSH to a remote host on eth1, what will happen?

Network Topology
0 0 ACCEPT alllo * 0.0.0.0/0100 5000 ACCEPT tcp50 3000 DROP tcpRefer to the exhibit.# iptables -L -n -v
Question 11easymultiple choice
Full question →

Refer to the exhibit. Which module is currently in use by another module?

Exhibit

Module                  Size  Used by
usb_storage            24576  0
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
aesni_intel           131072  0
x86_pkg_temp_thermal    16384  0
coretemp               16384  0
kvm_intel             102400  0
kvm                   139264  1 kvm_intel
Question 12mediummultiple choice
Full question →

Hosts connected to eth1 cannot communicate with hosts on eth0. Based on the exhibit, what is the most likely reason?

Exhibit

Refer to the exhibit.

# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.001122334455       yes             eth0
                                                        eth1
# brctl showstp br0
br0
 bridge id              8000.001122334455
 designated root        8000.001122334455
 root port              0                    path cost                  0
 max age                20.00
 hello time             2.00
 forward delay          15.00
 bridge hello time      2.00
 bridge max age         20.00
 bridge forward delay   15.00
 ageing time            300.00
hello timer            0.00
tcn timer              0.00
topology change timer  0.00
gc timer               0.00

eth0 (1)
 port id                8001                    state                   forwarding
 designated root        8000.001122334455       path cost               4
 designated bridge     8000.001122334455       message age timer       0.00
 designated port       8001                    forward delay timer     0.00
 designated cost        0                      hold timer              0.00

eth1 (2)
 port id                8002                    state                   blocking
 designated root        8000.001122334455       path cost               4
 designated bridge     8000.001122334455       message age timer       0.00
 designated port       8002                    forward delay timer     0.00
 designated cost        0                      hold timer              0.00
Question 13mediummultiple choice
Read the full DNS explanation →

Refer to the exhibit. A DNS query for 'ftp.example.com' returns NXDOMAIN. What configuration change would best resolve this?

Exhibit

$ORIGIN example.com.
@       IN      SOA     ns1.example.com. admin.example.com. (
                        2023100101      ; serial
                        3600            ; refresh
                        900             ; retry
                        604800          ; expire
                        86400 )         ; minimum
        IN      NS      ns1
        IN      MX      10 mail
ns1     IN      A       192.0.2.1
mail    IN      A       192.0.2.10
www     IN      A       192.0.2.20
Question 14easymultiple choice
Full question →

Refer to the exhibit. What type of attack is indicated by the log entries?

Exhibit

Refer to the exhibit.
```
/var/log/auth.log
Mar 10 08:12:15 server sshd[1234]: Failed password for root from 192.168.1.10 port 45678 ssh2
Mar 10 08:12:17 server sshd[1235]: Failed password for root from 192.168.1.10 port 45679 ssh2
Mar 10 08:12:19 server sshd[1236]: Failed password for root from 192.168.1.10 port 45680 ssh2
... (repeated entries)
```
Question 15hardmultiple choice
Full question →

Given the exhibit, what is the most likely reason for the GPG error, and what is the correct way to fix it permanently?

Network Topology
# apt-get installallow-unauthenticated -y somepackageRefer to the exhibit.# apt-get update...

These LPIC-2 practice questions are part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style LPIC-2 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.