Courseiva
← Back to Linux Foundation Certified System Administrator LFCS questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise Linux Foundation Certified System Administrator LFCS practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
LFCS
exam code
Linux Foundation
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 LFCS 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 1mediummultiple choice
Full question →

Refer to the exhibit. The service unit file has Restart=on-failure, but systemctl show displays Restart=no. What is the most likely reason?

Exhibit

$ cat /etc/systemd/system/backup.service
[Unit]
Description=Backup Service
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/backup.sh
User=backup
Restart=on-failure
RestartSec=30

[Install]
WantedBy=multi-user.target

$ systemctl show backup.service -p Restart
Restart=no
Question 2mediummultiple choice
Full question →

An administrator is unable to SSH into the server from a remote host at 192.168.1.100. Based on the exhibited iptables rules, what is the most likely reason?

Network Topology
10 840 ACCEPT alllo * 0.0.0.0/05 300 ACCEPT tcp0 0 DROP tcpRefer to the exhibit.
Question 3hardmultiple choice
Full question →

Refer to the exhibit. The output of 'ps aux' shows a process named 'process_hog' with PID 1234 consuming 99.5% CPU. The process is stuck in an infinite loop and does not respond to SIGTERM. Which signal should be used to forcefully terminate it?

Exhibit

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      1234 99.5  0.2  12345  6789 pts/0    R    10:00  45:00 process_hog
Question 4hardmultiple choice
Full question →

Based on the exhibit, which process will be affected if the root user runs 'kill 5678'?

Exhibit

Refer to the exhibit.

$ ps aux | grep apache
root      1234  0.0  0.2  12345  6789 ?        Ss   Jan01   0:00 /usr/sbin/apache2 -k start
www-data  5678  0.0  0.1  12345  1234 ?        S    Jan01   0:00 /usr/sbin/apache2 -k start
www-data  5679  0.0  0.1  12345  1234 ?        S    Jan01   0:00 /usr/sbin/apache2 -k start
Question 5hardmultiple choice
Full question →

Refer to the exhibit. A Linux administrator sees that 'myapp.service' is in a failed state with exit status 1. To troubleshoot, which command should the administrator use to view the full error output that the service produced before exiting?

Exhibit

myapp.service - My Custom Application
   Loaded: loaded (/etc/systemd/system/myapp.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2025-03-10 14:23:45 UTC; 2min ago
  Process: 4567 ExecStart=/usr/bin/myapp (code=exited, status=1/FAILURE)
 Main PID: 4567 (code=exited, status=1/FAILURE)
Question 6mediummultiple choice
Full question →

A user 'dba' tries to login via SSH and fails. Based on the exhibit, what is the most likely cause?

Network Topology
-rw-rrRefer to the exhibit.docker:x:1001:1001::/home/docker:/bin/bashdba:x:1002:1002::/home/dba:/bin/false$ ls -la /home/dba/total 8$ whoamidba
Question 7mediummultiple choice
Full question →

Refer to the exhibit. The administrator receives alerts that the root filesystem is almost full. Which command could free up space by removing old log files?

Exhibit

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        50G   45G   5.4G  90% /
/dev/sdb1       100G   20G   80G   20% /data
Question 8easymultiple choice
Full question →

Refer to the exhibit. The administrator attempted to create a user 'newuser' but received an error. Which command should be used to check if the user already exists?

Exhibit

Refer to the exhibit.
# useradd -u 1005 -G wheel,dbadmin -m -k /etc/skel newuser
useradd: user 'newuser' already exists
#
Question 9easymultiple choice
Full question →

Based on the tcpdump output in the exhibit, what can be concluded about the TCP handshake?

Exhibit

Refer to the exhibit.

$ tcpdump -i eth0 -c 5 'port 80'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
11:11:11.111111 IP 10.0.0.1.12345 > 192.168.1.1.80: Flags [S], seq 123, win 29200, options [mss 1460], length 0
11:11:11.222222 IP 192.168.1.1.80 > 10.0.0.1.12345: Flags [S.], seq 456, ack 124, win 28960, options [mss 1460], length 0
11:11:11.333333 IP 10.0.0.1.12345 > 192.168.1.1.80: Flags [.], ack 457, win 29312, length 0
Question 10hardmultiple choice
Full question →

Refer to the exhibit. What is the most likely security issue?

Network Topology
$ journalctl -u sshd.serviceno-pagerRefer to the exhibit.```
Question 11easymultiple choice
Full question →

Refer to the exhibit. The administrator wants to create a RAID 1 array using /dev/sdb1 and /dev/sdc1. Which command should be used?

Exhibit

Refer to the exhibit.

# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0   20G  0 disk
├─sda1   8:1    0    1G  0 part /boot
├─sda2   8:2    0   10G  0 part /
└─sda3   8:3    0    9G  0 part [SWAP]
sdb      8:16   0   10G  0 disk
└─sdb1   8:17   0   10G  0 part
sdc      8:32   0    5G  0 disk
└─sdc1   8:33   0    5G  0 part /data
Question 12mediummultiple choice
Full question →

Based on the exhibit, which process is using the most physical memory (RES)?

Exhibit

Refer to the exhibit.

Tasks: 120 total, 1 running, 119 sleeping, 0 stopped, 0 zombie
%Cpu(s):  8.3 us,  2.0 sy,  0.0 ni, 89.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  8092260 total,  1025468 free,  3892240 used,  3774552 buff/cache
KiB Swap:  2097148 total,  2097148 free,        0 used.  3598988 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 5678 wwwdata   20   0  556240  89748  22012 S   0.3  1.1   0:00.12 nginx
 9101 mysql     20   0 1874452 102456  18520 S   0.0  1.3   0:05.34 mysqld
 1234 root      20   0  305600   6428   3920 S   0.0  0.1   0:00.01 systemd
Question 13hardmultiple choice
Full question →

Based on the exhibit, what is the most likely cause of the blocked task?

Exhibit

Refer to the exhibit.

[  123.456789] INFO: task kworker/u:2:789 blocked for more than 120 seconds.
[  123.456790] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  123.456791] kworker/u:2     D    0   789      2 0x00000000
[  123.456792] Call Trace:
[  123.456793]  __schedule+0x2f0/0x800
[  123.456794]  schedule+0x28/0x80
[  123.456795]  io_schedule+0x16/0x40
[  123.456796]  wait_on_page_bit+0x10b/0x120
[  123.456797]  __filemap_fdatawait_range+0x100/0x150
[  123.456798]  filemap_fdatawait+0x1c/0x20
[  123.456799]  __sync_filesystem+0x4a/0x80
[  123.456800]  sync_one+0x2a/0x30
[  123.456801]  process_sync_work+0x22/0x50
[  123.456802]  worker_thread+0x4f/0x3f0
[  123.456803]  kthread+0x10b/0x140
Question 14mediummultiple choice
Read the full DHCP explanation →

Refer to the exhibit. The output of 'ip addr show' reveals that eth0 is in state DOWN and has no IPv4 address. Which command is most likely to bring the interface up and obtain an IP via DHCP?

Exhibit

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
Question 15hardmultiple choice
Full question →

Given the network interface configuration in the exhibit, which command should be run to apply the configuration without rebooting?

Exhibit

Refer to the exhibit.

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

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