LPIC-1 Exam 102 (Part 2 of 2), version 5.0 (102-500) Exam Prep
Free practice questions

Free LPIC-1 102-500 Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

The LPIC-1 102-500 exam has 60 questions and runs 1 hours 30 minutes.

These 10 free LPIC-1 102-500 questions are organized by exam domain, so you can see how each part of the LPIC-1 Exam 102 (Part 2 of 2), version 5.0 (102-500) blueprint is tested. Reveal the answer and explanation under each question.

Domain 1: Shells and Shell Scripting

Question 1

A Bash maintenance script uses this line: create_snapshot && send_success_mail || send_failure_mail The snapshot command returns 0. The mail relay then rejects the success notification, causing send_success_mail to return 1. What does the shell attempt during this execution?

Show answer & explanation

Correct answer: A - Both mail commands, in the order shown.

Question 2

In a Bash terminal, APP_HOME is unset and the working directory is /home/dev. The readable file ./setup.sh contains: export APP_HOME=/srv/catalog cd "$APP_HOME" The directory exists. A developer wants both the environment variable and the working-directory change to remain in the Bash shell already open in the terminal, without replacing that shell. How should the file be run?

Show answer & explanation

Correct answer: C - source ./setup.sh

Domain 2: User Interfaces and Desktops

Question 3

An engineer connects from a workstation to compute01 using ssh -X. In the remote shell, DISPLAY is localhost:10.0. An X11 plotting program runs on compute01, but its window appears on the workstation. What does localhost:10.0 represent in this session?

Show answer & explanation

Correct answer: A - SSH's forwarded display, which leads to the workstation's X server.

Domain 3: Administrative Tasks

Question 4

The local account lina has primary group staff and supplementary groups ops and audit. A deployment requires adding supplementary membership in deploy without changing her primary group or losing either existing membership. All named groups exist. Which account-management command meets those requirements?

Show answer & explanation

Correct answer: D - usermod -aG deploy lina

Question 5

A system-wide job is being installed in /etc/cron.d/inventory on a Linux system running Cronie. The script /usr/local/sbin/inventory must run as audit at 03:20 every Monday. Identify the correctly formed entry.

Show answer & explanation

Correct answer: C - 20 3 * * 1 audit /usr/local/sbin/inventory

Domain 4: Essential System Services

Question 6

Operations requires a server to display Berlin local time. During July, its console clock is exactly two hours behind the office clocks. The configured NTP sources are trusted and reachable, and diagnostics show: timedatectl: Time zone: Etc/UTC chronyc tracking: System time: 0.000018 seconds slow of NTP time Leap status: Normal What adjustment addresses the discrepancy?

Show answer & explanation

Correct answer: B - Set the system time zone to Europe/Berlin.

Question 7

For an incident review, retain only error-level and more severe journal entries for payments.service from the current boot. Warnings and older boots must be excluded. Which filter produces that view?

Show answer & explanation

Correct answer: B - journalctl -b -u payments.service -p 3

Domain 5: Networking Fundamentals

Question 8

After an intranet migration, one workstation still resolves portal.example.com to the old IPv4 address. No local name-service cache is running. The administrator obtains: /etc/nsswitch.conf: hosts: files dns /etc/resolv.conf: nameserver 192.0.2.53 $ dig @192.0.2.53 portal.example.com A +short 192.0.2.81 $ getent ahostsv4 portal.example.com 192.0.2.18 STREAM portal.example.com 192.0.2.18 DGRAM 192.0.2.18 RAW Which explanation accounts for the different results?

Show answer & explanation

Correct answer: C - A stale entry in /etc/hosts takes precedence over the DNS answer.

Question 9

A branch needs one conventional IPv4 subnet for 47 workstations, 6 printers, and one router interface. Every listed device requires its own address; the network and broadcast addresses must remain unassigned. Choose the smallest suitable subnet and its usable-address count.

Show answer & explanation

Correct answer: D - /26, providing 62 usable addresses.

Domain 6: Security

Question 10

While responding to a production outage, an administrator sees SSH report: REMOTE HOST IDENTIFICATION HAS CHANGED! The IP address is correct, but there is no recorded rebuild or host-key rotation. The newly presented key has not been verified. Before authenticating, the administrator should:

Show answer & explanation

Correct answer: B - Verify the host fingerprint through a trusted, independent channel.

That's 10 of 1,030

The full bank has 1,020 more LPIC-1 102-500 questions with explanations.

Continue in the free practice test →

View plans