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

Scenario-based practice

Hard Difficulty 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.

20
scenario questions
LPIC-1
exam code
LPI
vendor

Scenario guide

How to approach hard difficulty questions

These are the questions most candidates get wrong. They require connecting multiple concepts, reading tricky output, or knowing edge-case behaviour that isn't on most study cards. Practising them trains you to operate under uncertainty — a necessary skill on the real exam.

Quick answer

Hard Difficulty Questions questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider 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 →

A user 'jdoe' already exists. The administrator needs to add 'jdoe' to the 'staff' and 'admin' groups without changing other group memberships. Which command accomplishes this?

Question 2hardmultiple choice
Full question →

A disk is partitioned with GPT. The administrator wants to see the partition type GUIDs and partition UUIDs. Which command is most appropriate?

Question 3hardmultiple choice
Full question →

Refer to the exhibit. The root filesystem is nearly full. The administrator needs to increase its size. Which steps should be performed?

Exhibit

Exhibit: Output of `df -h`
Filesystem                              Size  Used Avail Use% Mounted on
/dev/mapper/vg_root-lv_root              20G   18G  1.1G  95% /
/dev/sda1                               487M  112M  348M  25% /boot
tmpfs                                   1.9G     0  1.9G   0% /dev/shm
/dev/mapper/vg_data-lv_data              50G   30G   18G  63% /data
Question 4hardmultiple choice
Full question →

The system is unable to mount a filesystem that should be identified by UUID 1234-5678. The administrator checks /etc/fstab and finds the entry: UUID=1234-5678 /data ext4 defaults 0 2. What is the most likely cause of the mount failure?

Exhibit

# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Jan 10 10:00 1234-5678 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 10 10:00 abcd-ef01 -> ../../sdb1
Question 5hardmultiple choice
Full question →

A developer needs to ensure a bash script exits immediately if any command fails, and also prints each command before executing it. Which set of shell options should be used at the beginning of the script?

Question 6hardmultiple 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 7hardmultiple choice
Full question →

A database server on a Linux system is configured to listen on TCP port 3306. The administrator wants to restrict access to the database server to only the local network (192.168.1.0/24) using iptables. Which of the following iptables rules achieves this?

Question 8hardmultiple choice
Full question →

Refer to the exhibit. The administrator restarts the sshd service. What is the new main PID after restart?

Exhibit

Refer to the exhibit.

$ systemctl status sshd.service
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2023-10-02 10:30:00 UTC; 2h 30min ago
     Docs: man:sshd(8)
   Process: 1234 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 1235 (sshd)
   Tasks: 1 (limit: 512)
   CGroup: /system.slice/sshd.service
           └─1235 /usr/sbin/sshd -D
Question 9hardmultiple choice
Full question →

A Debian system has a broken package that was partially installed. Which command will attempt to fix dependencies and configure all unpacked but not configured packages?

Question 10hardmulti select
Full question →

Which TWO conditions would cause the boot process to fall back to the GRUB rescue shell? (Choose two.)

Question 11hardmultiple choice
Full question →

Refer to the exhibit. What type of traffic is being captured?

Exhibit

$ sudo tcpdump -i eth0 -c 5 -n
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
10:00:00.123456 IP 192.168.1.100.12345 > 10.0.0.1.80: Flags [S], seq 123, win 65535, options [mss 1460], length 0
10:00:00.123789 IP 10.0.0.1.80 > 192.168.1.100.12345: Flags [S.], seq 456, ack 124, win 65535, options [mss 1460], length 0
10:00:00.124000 IP 192.168.1.100.12345 > 10.0.0.1.80: Flags [.], ack 457, win 65535, length 0
10:00:00.124500 IP 192.168.1.100.12345 > 10.0.0.1.80: Flags [P.], seq 124:200, ack 457, win 65535, length 76
10:00:00.125000 IP 10.0.0.1.80 > 192.168.1.100.12345: Flags [.], ack 201, win 65535, length 0
Question 12hardmultiple choice
Read the full DNS explanation →

A server in a corporate network uses systemd-resolved for DNS. Internal hostnames (e.g., server.example.lan) fail to resolve, but external names (e.g., google.com) work. The /etc/resolv.conf is a symlink to /run/systemd/resolve/stub-resolv.conf. The administrator checks the systemd-resolved configuration and finds that the internal DNS server is listed globally, but the network interface has no specific DNS set. Which command should be used to assign the internal DNS server to the interface and fix resolution?

Question 13hardmultiple choice
Full question →

A sysadmin wants to prevent an APT package from being upgraded automatically but still allow it to be upgraded manually if needed. Which configuration method best achieves this?

Question 14hardmultiple choice
Full question →

When troubleshooting a problem with a Debian package installation, an administrator wants to see which version of a package would be installed from the configured repositories. Which command displays the candidate version?

Question 15hardmultiple choice
Full question →

After creating a new user with 'useradd john', the user 'john' cannot log in. What is the most likely cause?

Refer to the exhibit. A system administrator finds this line in /etc/rsyslog.conf. What is the effect of this configuration?

Exhibit

*.* @192.168.1.100:514
Question 17hardmulti select
Full question →

Which THREE of the following are valid symbolic mode expressions for the chmod command?

Question 18hardmultiple choice
Full question →

A server has two disk drives: /dev/sda (SSD) and /dev/sdb (HDD). The administrator wants to place frequently accessed files on the SSD for performance. Which approach best achieves this using Linux filesystem features?

Question 19hardmultiple choice
Full question →

Refer to the exhibit. The system administrator wants to ensure the /data filesystem is mounted only if it is available at boot time, and if not, the system should continue to boot without error. Which change should be made to the /etc/fstab entry for /data?

Exhibit

# /etc/fstab
UUID=abc123 / ext4 defaults 0 1
UUID=def456 /home ext4 defaults 0 2
UUID=ghi789 /var/log ext4 defaults 0 2
# /etc/fstab entry for swap
UUID=jkl012 none swap sw 0 0
# Backup fstab entry for /data
/dev/sdc1 /data ext4 defaults 0 2
Question 20hardmultiple choice
Full question →

A company is setting up a database server that requires high reliability and support for snapshots. The storage will be on a single large disk. Which filesystem is best suited for this requirement?

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.