Back to Linux Professional Institute Certification Level 1 LPIC-1 questions

Scenario-based practice

Refer to the Exhibit Practice Questions

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

15
scenario questions
LPIC-1
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-1 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. A system administrator checks the integrity of the passwd package on a CentOS 7 system using rpm -V. Based on the output, what is the most likely cause of the 'missing' line?

Exhibit

Refer to the exhibit.
```
$ rpm -qf /usr/bin/passwd
passwd-0.79-5.el7.x86_64
$ rpm -V passwd
S.5....T.  c /etc/pam.d/passwd
missing   c /etc/security/passwd
```
Question 2hardmultiple choice
Full question →

Refer to the exhibit. An administrator runs 'ntpq -p' and sees the output shown. What is the most likely cause of the '16' stratum and '0.000' delay/offset?

Exhibit

Refer to the exhibit.

# cat /etc/ntp.conf
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
# driftfile /var/lib/ntp/ntp.drift
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*0.pool.ntp.org   .POOL.          16 p    -   64    0    0.000   0.000   0.000
 1.pool.ntp.org   .POOL.          16 p    -   64    0    0.000   0.000   0.000
Question 3mediummultiple choice
Full question →

Refer to the exhibit. The system has a single disk with three partitions. Which partition contains the root filesystem?

Exhibit

Refer to the exhibit.

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 223.6G  0 disk
├─sda1   8:1    0   512M  0 part /boot
├─sda2   8:2    0    16G  0 part [SWAP]
└─sda3   8:3    0 207.1G  0 part /
Question 4hardmultiple choice
Full question →

Refer to the exhibit. Why does the cron job fail?

Network Topology
-rw-rrRefer to the exhibit.$ cat /etc/cron.d/backup$ ls -l /usr/local/bin/backup.sh$ su -c '/usr/local/bin/backup.sh' --bash: /usr/local/bin/backup.sh: Permission denied
Question 5mediummultiple choice
Full question →

Refer to the exhibit. The system has two network interfaces: eth0 and eth1. Which interface will be used to reach a host at IP address 10.10.10.10?

Exhibit

Refer to the exhibit.

Output of 'ip route show':

default via 192.168.1.1 dev eth0 proto static metric 100
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.10 metric 100
10.0.0.0/8 via 10.0.0.1 dev eth1 proto static metric 200
Question 6hardmultiple choice
Full question →

Refer to the exhibit. A Linux system fails to boot with a kernel panic. The dmesg output shows the disk is detected and partitions are recognized. Which of the following is the most likely cause of the kernel panic?

Exhibit

Refer to the exhibit.

# dmesg | grep -i 'ata\|sda'
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    2.345678] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.345679] ata1.00: ATA-8: ST31000524AS, JC45, max UDMA/133
[    2.345680] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    2.345681] ata1.00: configured for UDMA/133
[    2.345682] scsi 0:0:0:0: Direct-Access     ATA      ST31000524AS     JC45 PQ: 0 ANSI: 5
[    2.345683] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    2.345684] sd 0:0:0:0: [sda] Write Protect is off
[    2.345685] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.345686] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.345687] sda: sda1 sda2
[    2.345688] sd 0:0:0:0: [sda] Attached SCSI disk
Question 7easymultiple choice
Full question →

A user reports that running '/usr/local/bin/myapp' from the command line results in 'bash: /usr/local/bin/myapp: No such file or directory'. The exhibit shows the file exists and is a valid executable. What is the most likely cause of the error?

Exhibit

Refer to the exhibit.
$ ls -l /usr/local/bin/myapp
-rwxr-xr-x 1 root root 12345 Jan 1 12:00 /usr/local/bin/myapp
$ file /usr/local/bin/myapp
/usr/local/bin/myapp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped
$ ldd /usr/local/bin/myapp
	linux-vdso.so.1 (0x00007ffe5a3b0000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f9a8b200000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9a8b600000)
Question 8hardmultiple choice
Full question →

Refer to the exhibit. An administrator needs to edit /etc/example.conf to change setting1 to 'production' and add a new line 'setting2=value' after the include line. The file must be edited in place without creating a backup. Which command sequence achieves this?

Network Topology
-rw-rrRefer to the exhibit.# ls -l# cat /etc/example.conf# Configuration filesetting1=default# Include other configinclude /etc/example.d/*.conf
Question 9hardmultiple choice
Read the full DHCP explanation →

An administrator reviews the above DHCP server logs. Based on the output, which statement is correct about the DHCP transaction?

Exhibit

Refer to the exhibit.

$ cat /var/log/messages | grep -i "dhcp" | tail -5
Nov 12 08:22:15 server dhcpd: DHCPDISCOVER from 00:1a:2b:3c:4d:5e via eth0
Nov 12 08:22:15 server dhcpd: DHCPOFFER on 192.168.1.100 to 00:1a:2b:3c:4d:5e via eth0
Nov 12 08:22:18 server dhcpd: DHCPREQUEST for 192.168.1.100 (192.168.1.1) from 00:1a:2b:3c:4d:5e via eth0
Nov 12 08:22:18 server dhcpd: DHCPACK on 192.168.1.100 to 00:1a:2b:3c:4d:5e via eth0
Nov 12 08:22:20 server dhcpd: DHCPINFORM from 192.168.1.100 via eth0
Question 10hardmultiple choice
Full question →

Refer to the exhibit. After adding a new disk to the system, the device /dev/sdb appears. However, the administrator cannot create partitions on /dev/sdb using fdisk. What is the most likely reason?

Network Topology
brw-rw1 root disk 8# ls -l /dev/sda# ls -l /dev/sda1# ls -l /dev/sda2# ls -l /dev/sdb
Question 11hardmultiple choice
Full question →

Refer to the exhibit. How many SATA controllers are detected, and what is the connection speed of the SSD?

Exhibit

Refer to the exhibit.

$ dmesg | grep -i "ata"
[    1.234567] ata1: SATA max UDMA/133 abar m2048@0xfebf8000 port 0xfebf8100 irq 24
[    1.234568] ata2: SATA max UDMA/133 abar m2048@0xfebf8000 port 0xfebf8180 irq 24
[    1.345678] ata1: SATA link up 6.0 Gbps (SStatus 123 SControl 300)
[    1.345679] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.567890] ata1.00: ATA-11: Samsung SSD 860 EVO, MZ-76E250, max UDMA/133
[    1.567891] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 32)
[    1.567892] ata2.00: ATA-9: WDC WD10EZEX-00WN4A0, 01.01A01, max UDMA/133
[    1.567893] ata2.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 32)
Question 12mediummultiple choice
Full question →

Based on the exhibit, what does the 'rc' status for the package 'apache2-bin' indicate?

Exhibit

Refer to the exhibit.

```
$ dpkg -l | grep apache
ii  apache2         2.4.41-1       amd64        Apache HTTP Server
rc  apache2-bin     2.4.41-1       amd64        Apache HTTP Server (binary files)
```
Question 13hardmultiple choice
Full question →

Based on the exhibit, the 'custom' repository shows 0 packages. What is the most likely cause?

Exhibit

Refer to the exhibit.

```
$ cat /etc/yum.repos.d/custom.repo
[custom]
name=Custom Repository
baseurl=http://repo.example.com/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://repo.example.com/RPM-GPG-KEY-custom
```

$ yum repolist
repo id              repo name                status
custom               Custom Repository         0

Based on the exhibit, what will happen if the syslog service is stopped?

Exhibit

Refer to the exhibit.

$ systemctl status apache2
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2023-08-14 10:30:45 UTC; 2h 15min ago
     Docs: man:apache2(8)
 Main PID: 1234 (apache2)
    Tasks: 55 (limit: 4915)
   Memory: 24.5M
   CGroup: /system.slice/apache2.service
           ├─1234 /usr/sbin/apache2 -k start
           ├─1235 /usr/sbin/apache2 -k start
           └─1236 /usr/sbin/apache2 -k start

$ systemctl list-dependencies apache2
apache2.service
● └─network.target
● └─syslog.service
Question 15mediummultiple choice
Full question →

Based on the exhibit, which of the following is true about the cleanup.sh job?

Exhibit

Refer to the exhibit.

$ crontab -l
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
MAILTO=admin@example.com
0 2 * * * /usr/local/bin/backup.sh
30 4 * * 1-5 /usr/local/bin/cleanup.sh
0 0 1 * * /usr/local/bin/monthly_report.sh

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