Courseiva
Back to Linux Foundation Certified System Administrator LFCS questions

Scenario-based practice

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

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

Refer to the exhibit. An administrator attempts to mount all filesystems using mount -a, but it fails. The error message indicates that UUID=jkl012 is not found. Which of the following is the most likely cause?

Exhibit

# device UUID mountpoint type options dump pass
UUID=abc123 /boot ext4 defaults 1 2
UUID=def456 / ext4 defaults 1 1
UUID=ghi789 /home xfs defaults 0 0
UUID=jkl012 none swap sw 0 0
/dev/mapper/vg_data-lv_data /data ext4 defaults 0 2
//192.168.1.100/share /mnt/nfs nfs defaults 0 0
Question 2hardmultiple choice
Full question →

Refer to the exhibit. What is the most likely issue with the Apache web server?

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 Tue 2025-03-18 10:15:23 UTC; 2h 15min ago
 Main PID: 1234 (apache2)
    Tasks: 5 (limit: 1000)
   Memory: 15.2M
   CGroup: /system.slice/apache2.service
           ├─1234 /usr/sbin/apache2 -k start
           ├─1235 /usr/sbin/apache2 -k start
           ├─1236 /usr/sbin/apache2 -k start
           ├─1237 /usr/sbin/apache2 -k start
           └─1238 /usr/sbin/apache2 -k start

Apr 18 10:15:23 server systemd[1]: Starting The Apache HTTP Server...
Apr 18 10:15:23 server apachectl[1190]: AH00112: Warning: DocumentRoot [/var/www/html] does not exist
Apr 18 10:15:23 server systemd[1]: Started The Apache HTTP Server.
```
Question 3hardmultiple choice
Full question →

A team of developers must share files under /opt/project. All developers are members of the 'devteam' group. New files must be automatically assigned to group 'devteam' and be writable by the group. Which umask and setgid configuration should be applied?

Question 4hardmultiple choice
Full question →

A service unit has the directive 'ExecStartPre=/bin/true' and 'ExecStart=/usr/bin/myapp'. What is the effect of ExecStartPre?

Question 5hardmultiple choice
Full question →

An administrator wants to run a script daily at 2 AM. They create a timer unit and a service unit. The service unit uses Type=oneshot. Which of the following timer configurations is correct?

Question 6hardmulti select
Full question →

Which THREE of the following are valid methods to temporarily switch to a different user account without logging out entirely? (Choose three.)

Question 7hardmultiple choice
Full question →

A system administrator needs to find all files in /home that are owned by user 'alice' and have been modified in the last 7 days. The administrator then wants to compress those files into a single archive named alice_recent.tar.gz. Which of the following commands accomplishes this?

Question 8hardmulti select
Full question →

Which THREE of the following are valid methods to mount an NFS filesystem on a client?

Question 9hardmultiple choice
Full question →

A system administrator needs to securely transfer files between two Linux servers using port 22. The administrator uses the following command: 'scp file.txt user@remote:/tmp/'. The transfer fails with the error 'Permission denied (publickey)'. What is the most likely cause?

Question 10hardmultiple choice
Review the full routing breakdown →

A server has two network interfaces: eth0 (192.168.1.10/24) and eth1 (10.0.0.10/24). The default gateway is 192.168.1.1. The administrator wants traffic to 10.0.1.0/24 to go through eth1's gateway 10.0.0.1. Which command adds this route?

Question 11hardmultiple choice
Full question →

Based on the exhibit, what is the most likely cause of the nginx failure and the appropriate first step to resolve it?

Exhibit

Refer to the exhibit.

[root@server ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2025-03-10 09:23:45 UTC; 2min ago
  Process: 12345 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
 Main PID: 12345 (code=exited, status=1/FAILURE)

Mar 10 09:23:43 server systemd[1]: Starting The nginx HTTP and reverse proxy server...
Mar 10 09:23:45 server nginx[12345]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mar 10 09:23:45 server systemd[1]: nginx.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 09:23:45 server systemd[1]: nginx.service: Failed with result 'exit-code'.
Question 12hardmultiple choice
Full question →

An administrator configures a systemd service with Restart=on-failure and RestartSec=10. What happens if the service exits with a non-zero exit code?

Question 13hardmulti select
Full question →

Which THREE statements about Linux network bonding modes are correct? (Choose three.)

Question 14hardmultiple choice
Full question →

After running 'chage -l bob', the output shows: 'Last password change: Apr 01, 2023', 'Password expires: May 31, 2023', 'Account expires: Jul 15, 2023'. What will happen on May 31, 2023?

Question 15hardmultiple choice
Full question →

An administrator notices that the system clock is drifting significantly. To synchronize time using NTP, which command should be used to immediately sync with a server?

Question 16hardmultiple choice
Full question →

A process is consuming 99% CPU and is unresponsive to normal shutdown requests. After running 'top', you see the PID is 1234. What is the most appropriate command to stop the process gracefully first?

Question 17hardmultiple choice
Full question →

A security policy requires that a user account 'temp_audit' be locked immediately without changing the password. Which command locks the account and prevents login?

Question 18hardmulti select
Full question →

Which THREE of the following statements about the user private group (UPG) scheme are true?

Question 19hardmultiple choice
Full question →

An administrator created an LVM snapshot of a logical volume to perform a backup. During the backup, the snapshot runs out of space. What will happen to the original logical volume?

Question 20hardmultiple choice
Review the full routing breakdown →

You are a systems administrator for a company that runs a critical web application on a Linux server. The server has two network interfaces: eth0 (public IP 203.0.113.10/24, gateway 203.0.113.1) and eth1 (private IP 10.0.0.10/24). The web server listens on port 443 (HTTPS) and must be accessible from the internet. The server also needs to connect to an internal database server at 10.0.0.50/24 on port 3306. Recently, users reported that the website is intermittently unreachable. You SSH into the server and run 'ss -tln' and see that the web server is listening on 0.0.0.0:443. You check the routing table with 'ip route show' and see: default via 203.0.113.1 dev eth0; 10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.10. You also run 'iptables -L -n -v' and see: Chain INPUT (policy ACCEPT), with no rules. However, you notice that the server's default gateway is unreachable from the server itself when you run 'ping 203.0.113.1' (100% packet loss). What is the most likely cause of the intermittent unreachability?

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.