Exam Information
Free practice questions with explanations
Linux Foundation LFCS Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 10
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Essential Commands
A production web server running on RHEL-family hosts is reporting that the root filesystem is 100% full, yet a du -sh / on the same filesystem only accounts for about 60% of the used space. The team has already confirmed no large files were deleted recently and the server must stay online during diagnosis. Which action is the BEST first step to locate the cause without restarting the service?
Correct Answer: CExplanationWhen du reports far less usage than df, the classic cause is a file that has been unlinked while a process still holds a file descriptor to it, so its blocks are not released. lsof +L1 lists open files with a link count below one, exposing the culprit without downtime. Checking inodes with df -i would reveal inode exhaustion, which produces a different symptom (no space errors with free blocks reported), so it does not explain a full block count. Rebooting into rescue mode causes an outage the team has ruled out, and extending the volume treats the symptom and hides the leak.
-
2 Question 2 Single choice Operations Deployment
A financial services company runs a libvirt-managed KVM host with several guest virtual machines. Auditors have required that guest disk images be stored on a dedicated directory with a persistent SELinux label so that the svirt confinement remains intact across relabels. An administrator created /srv/vmimages and placed images there, but after running restorecon -R on the directory the guests fail to start with permission denied errors. Which action correctly makes the labelling persistent and compatible with libvirt confinement?
Correct Answer: DExplanationLabels applied with chcon are temporary and are lost on a full relabel or restorecon run, which is exactly what happened here. Adding a persistent file-context rule with semanage fcontext records the mapping in the policy database so restorecon reapplies svirt_image_t reliably. Making the daemon permissive weakens the mandatory access control the auditors require. Moving images to the default libvirt directory would technically work but ignores the stated requirement for a dedicated directory, which is the constraint that rules it out.
-
3 Question 3 Multiple choice Storage
A media company hosts a Logical Volume Manager volume group named vg_media on two disks. The volume lv_archive is an XFS filesystem that has grown to fill its volume, and the team must add 300 GiB of capacity while keeping the filesystem online, with no reformatting and no extra disks available beyond the spare /dev/sdd already attached and initialised as a physical volume. Which TWO actions together achieve this? (Choose two.)
Correct Answer: B, EExplanationThe volume group must first have free extents, which vgextend supplies by adding /dev/sdd. Then lvextend allocates 300 GiB from those free extents to the logical volume. XFS grows online with xfs_growfs, so the correct filesystem step is not among the choices, but the two volume-level actions above are the required pair here. Recreating the filesystem destroys the data, the e2fsck and resize2fs tools only apply to ext filesystems and resize2fs would fail on XFS, so they do not fit the stated constraints.
-
4 Question 4 Single choice Users and Groups
A university research group stores shared datasets under /data/genomics owned by the group genomics with mode 2770. Several team members are external collaborators who must be able to read but never modify existing files, while the group owners keep full write access. The sysadmin wants to grant the external collaborator user carla read and traverse access through the existing group-based model without changing ownership or group membership of the directory. Which action is the most appropriate?
Correct Answer: AExplanationA POSIX ACL entry granting user carla the rX permissions gives exactly the read and traverse access requested without changing the owner or group of the directory. The capital X adds execute only on directories, which is what traversal needs. Adding carla to genomics would grant the group's write permission, violating the read-only requirement. Mode 2777 opens write access to everyone, and changing ownership to carla breaks the group owners' full write access.
-
5 Question 5 Single choice Networking
A SaaS provider runs a fleet of stateless API servers behind a load balancer. The servers use HTTPS with a certificate whose private key must never leave the load balancer tier because of a compliance requirement. Clients also need the original source IP address for rate limiting. Which configuration BEST meets both requirements?
Correct Answer: DExplanationA reverse proxy such as HAProxy or nginx that terminates TLS keeps the private key on the load balancer tier, as required. Because the proxy's connection to the backend is a new TCP session, the real client IP has to be carried explicitly, which is why X-Forwarded-For is set. Installing the key on every API server breaks the compliance rule, and source NAT on the balancer hides the true client address the rate limiter needs. DNS round robin removes the load balancer and TLS termination entirely, so it fails both constraints.
-
6 Question 6 Single choice Essential Commands
An on-call engineer is investigating a Node.js service managed by systemd that keeps being killed and restarted every few minutes. The unit file sets MemoryMax=512M and Restart=on-failure. journalctl shows the process ends with the message that the cgroup memory limit was reached. The application team says the service needs roughly 700 MB under peak load and they cannot change the code this week. Which action is the BEST immediate remediation?
Correct Answer: DExplanationThe scenario makes the cause clear: the cgroup memory ceiling is below the application's real peak working set of about 700 MB, so the kernel OOM-kills it. Raising MemoryMax through a drop-in override in /etc/systemd/system/ applies the fix without touching vendor files and survives package updates, then daemon-reload and a restart make it effective. Restart=always just churns through kills. Swap on zram does not raise the cgroup limit when memory accounting includes it, and editing files under /usr/lib is overwritten by package upgrades.
-
7 Question 7 Single choice Operations Deployment
A DevOps team runs a Podman-based deployment on a RHEL host. A container image built for their analytics service must run as a rootless container, and its data directory must be bind-mounted from the host. After the first run, the container logs show permission denied errors when writing to the bind-mounted path, even though the host directory is owned by the service account. The host runs SELinux in enforcing mode and the security policy forbids disabling it. Which action is the MOST appropriate fix?
Correct Answer: DExplanationUnder SELinux enforcing, a container process is confined to the container_t domain and cannot write to host files carrying a generic label, even when Unix permissions allow it. The :Z suffix tells Podman to relabel the host path with a private container label, granting the container write access while keeping enforcement on. Privileged mode and setenforce 0 both breach the policy, and opening the directory to 0777 does not address the SELinux denial that is causing the failure.
-
8 Question 8 Single choice Networking
An engineer is configuring a Linux host that must join two physical NICs, eno1 and eno2, into a single bonded interface bond0 for redundancy. The switch ports are configured for LACP, and the host must keep the link active during a single NIC failure. Using NetworkManager with nmcli, which set of settings correctly creates this bond?
Correct Answer: BExplanationLACP corresponds to the 802.3ad bonding mode, which negotiates an aggregated link with the switch and balances traffic across both members while providing failover. The switch-side LACP requirement forces this choice. Balance-rr sends frames across ports without LACP negotiation and can cause reordering or be rejected by LACP switches. Active-backup gives failover but uses only one link at a time, contrary to the stated switch configuration. A bridge does not aggregate links and is unrelated to LACP.
-
9 Question 9 Single choice Storage
A logistics company has a database server that must mount an NFS export from a storage appliance at boot. The mount must not block boot if the appliance is unavailable, and it should be mounted only when a process actually accesses the path. The admin has added an entry to /etc/fstab with the defaults option. Users report that boot hangs whenever the appliance is down. Which change to the fstab entry BEST resolves this?
Correct Answer: BExplanationThe x-systemd.automount option defers the mount until the path is accessed, satisfying the on-demand requirement, while nofail stops a failed mount from making the boot job fail, so boot no longer hangs. Noauto prevents on-demand mounting entirely, so it violates the requirement that the share mounts when accessed. Sync affects write semantics and does not change boot behaviour. Switching to nfs4 does not alter how boot handles an unreachable server.
-
10 Question 10 Multiple choice Operations Deployment
A platform team is preparing a RHEL 9 server for a regulated workload. They must recover from an unexpected failure that left the system unable to boot after a kernel update, and they must keep a known-good kernel available as a fallback. Which TWO actions together BEST satisfy these requirements? (Choose two.)
Correct Answer: A, EExplanationRescue boot with chroot gives access to the installed system so the bootloader and kernel configuration can be repaired, which is the standard recovery path. Keeping the previous kernel entry in the GRUB menu lets the system boot the known-good kernel while the fault is investigated, which satisfies the fallback requirement. Removing the kernel package deletes the fallback and risks leaving no bootable kernel. Forcing dracut without checking boot entries ignores the root cause, and reformatting the filesystem destroys the regulated data.
These are 10 of the 260 questions in the full LFCS pack.
Get All 260 QuestionsGet all 260 questions & answers
Full access options for Linux Foundation LFCS
Self-study
PDF Version
- 260 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 260 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 260 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the LFCS Exam (Linux Foundation Certified System Administrator) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.