Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Linux Foundation LFCS Dumps 2026 with Free Practice Questions and Answers

Practise for the Linux Foundation Certified System Administrator exam with 12 original questions, each with an answer and explanation.

Topics: Networking, Operations Deployment, Essential Commands, Storage and 1 more.

Includes single answer, multiple answers and dropdown. A new question is added every 15 days.

LFCS Practice Set Details

Exam Code
LFCS
Questions On This Page
12
Exam Topics Covered
5 of 5
Question Types
3
Newest Question
New Question
Every 15 days
Full Question Set
260
Certification
Linux Foundation Certified SYSADMIN
12 questions

Linux Foundation LFCS Exam Questions and Answers by Topic

Essential Commands

20% of the exam

2 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A production service is managed by a systemd unit named inventory-api.service. After a deployment, requests fail because the service cannot read its configuration file. The file is owned by root and has mode 0600, while the service runs as user inventory. The unit has no application-specific file-access restrictions, and the deployment cannot change the service account or make the configuration readable by other users. You have confirmed the path and contents are correct. What is the best next action to restore access while preserving the stated confidentiality requirement?

Correct answer: C

A named-user ACL grants the service account read access without granting access to all local users. The ACL can be verified with getfacl, and the file remains protected from unrelated accounts. Mode 0644 exposes the configuration to every local user, violating the confidentiality constraint. Running the service as root changes its security boundary and is unnecessary. Moving the file does not change its ownership or permissions, so access would still fail.

Question 2

Added

Multiple Answers

A Git repository on an internal server contains a production branch and a feature branch. A developer must bring the latest production changes into the feature branch, resolve any conflicts locally, and publish the updated feature branch. The developer must preserve the existing commit history; rewriting shared history is prohibited. The working tree is clean, and the remote is named origin. Which two command sequences meet these requirements? (Choose two.)

Correct answer: A, B

Fetching and merging origin/production into the checked-out feature branch preserves existing commits and allows conflicts to be resolved before an ordinary push. Pulling the production ref while on feature fetches and merges that ref into the current branch, so it also meets the requirement. Rebasing rewrites feature commits and generally requires a force push, which the policy forbids. Updating production does not merge it into feature, and force-pushing feature violates the shared-history rule. Pushing production publishes the wrong branch.

Users and Groups

10% of the exam

1 practice question on this topicWhat this topic covers

Question 3

Added

Multiple Answers

A compliance review found that the local account buildsvc can read a restricted directory, /srv/release, because it belongs to the release group. The account still needs read and execute access to that directory, but must no longer receive access through group membership. Other members of release must retain their current access, and the directory's existing ownership and group must not change. Which two actions meet these requirements? (Choose two.)

Correct answer: A, C

Removing buildsvc from the supplementary release group eliminates the unwanted source of access for that account while leaving other group members unaffected. A named-user ACL then grants buildsvc the required read and execute permissions without changing the directory's owner or group. Changing ownership or removing the group violates the preservation requirement. Mode 0700 would deny access to other release members and group membership would retain the original access path. POSIX ACLs do not provide a general per-user deny entry that overrides the group permissions.

Networking

25% of the exam

4 practice questions on this topicWhat this topic covers

Question 4

Added

Single Answer

A Linux gateway has a single Internet-facing interface, enp1s0, and routes traffic for a private LAN on enp2s0. LAN clients can reach the gateway but cannot reach external IPv4 addresses. The gateway's IPv4 forwarding is already enabled, and the upstream router has no route for the private LAN. The organization will not change upstream routing or install another appliance. The host uses nftables, and its existing input and forward rules permit the required traffic. Which additional configuration is the most direct way to let LAN clients access the Internet while preserving their private source addresses on the internal network?

Correct answer: A

Masquerading in a postrouting chain translates matching LAN source addresses to the gateway's outgoing interface address, so replies return to the gateway and can be tracked back to each client. The existing forwarding policy and IP forwarding satisfy the other requirements. DNAT changes destination addresses and is used for inbound destination translation, not general outbound access. A route through the upstream router does not help because that router has no route for the private subnet. Redirect is a special form of destination translation, not source NAT for forwarded client traffic.

Question 5

Added

Single Answer

An internal API listens only on 127.0.0.1:9000 on a Linux host. A reverse proxy running on the same host must expose the API to clients on the management network at 192.0.2.0/24, while clients on other interfaces must not be able to reach it. The proxy already terminates TLS and is configured to connect to the API over loopback. Host firewall policy is managed with nftables, and changing the API bind address is not permitted. Which firewall approach meets the access requirement without exposing port 9000 directly?

Correct answer: A

The proxy is the network-facing service, so permitting its TCP 443 listener from the management subnet gives clients access through the existing TLS and proxy configuration. The API remains bound to loopback and is not exposed directly. An input rule for port 9000 cannot make a loopback-only listener reachable on the external interface. Forward-chain filtering is for routed traffic, not connections terminating on this host. Redirecting 443 to the API bypasses the configured reverse proxy and TLS termination.

Question 6

Added

Dropdown

A dual-stack server has a stable IPv6 address configured manually. The network team requires the host to use the organization's NTP server, time.example.net, and to synchronize the hardware clock from system time. chrony is installed and managed through systemd. Complete the configuration and activation commands using the chrony directive and command-line option that apply.

Choose the correct value for each blank.

Append the directive to /etc/chrony.conf, then run to enable and start chronyd.
Correct answer:

Append the directive server time.example.net iburst to /etc/chrony.conf, then run systemctl enable --now chronyd to enable and start chronyd.

The server directive configures chronyd to use the specified time source, and iburst accelerates initial synchronization by sending a burst of requests. Enabling and starting chronyd with systemctl makes the service active now and persistent across reboots. A pool directive is intended for a pool of servers, while ntpdate is not the chronyd configuration directive needed here. The peer directive selects symmetric peering. The other activation commands do not enable the installed chronyd systemd service.

Question 7

Added

Single Answer

A small office host has one physical Ethernet interface, enp2s0, connected to a switch that supports 802.1Q. The host must provide separate Layer 3 connectivity for VLANs 30 and 40, with addresses 10.30.0.2/24 and 10.40.0.2/24. There is no need to bridge virtual machines, and the existing physical link must remain the only cable. Which configuration design is appropriate?

Correct answer: D

Separate 802.1Q VLAN interfaces on the single physical NIC provide independent Layer 3 interfaces for the two tagged networks. Each interface can carry the address for its VLAN, matching the switch configuration and avoiding extra hardware. A bridge is for Layer 2 forwarding and is not required for this routed host design. A bond requires multiple physical links for meaningful aggregation or failover. Assigning addresses to the untagged parent does not select VLAN tags; route-table configuration cannot supply that function.

Operations Deployment

25% of the exam

3 practice questions on this topicWhat this topic covers

Question 8

Added

Single Answer

A host is reporting sustained memory pressure during a batch workload. The workload's systemd service must remain below 2 GiB of memory, including its child processes, so that interactive services retain capacity. Administrators want the limit enforced by the service manager rather than by application changes, and the limit must survive reboot. Which change is the best fit?

Correct answer: A

MemoryMax= configures a cgroup memory limit for the service and its processes, and a unit drop-in persists the setting. Reloading systemd and restarting ensures the service is launched under the updated configuration. LimitRSS is not a valid systemd unit directive for enforcing this cgroup limit. A shell-profile ulimit affects shells and their descendants, not a system service managed independently by systemd. vm.overcommit_memory controls allocation policy, not a per-service memory ceiling.

Question 9

Added

Multiple Answers

A maintenance window is available to investigate a Linux host that has become unresponsive under load. The service owner reports that a recently started worker may be stuck, but the worker's PID is unknown. You must identify processes consuming CPU, determine whether the worker is blocked in uninterruptible I/O, and avoid terminating unrelated processes. Which two actions are the safest useful next steps? (Choose two.)

Correct answer: B, D

Process listings can expose process state, CPU use, and command identity; checking the suspected process's state and wait channel helps distinguish uninterruptible I/O sleep from runnable CPU work. This gathers targeted evidence before any intervention and avoids disrupting unrelated services. The two selected approaches are compatible ways to identify and inspect the candidate. A broad kill risks terminating unrelated work. Changing PID 1's priority does not diagnose the worker and can impair system responsiveness. An immediate reboot discards evidence and is not required merely to inspect a blocked process.

Question 10

Added

Dropdown

A container host runs a workload image that has been validated by its supplier. The container must restart automatically after a host reboot, remain detached from the terminal, and be named report-worker. The application writes logs to standard output and does not require a privileged host namespace. Complete the Podman command using the appropriate options.

Choose the correct value for each blank.

podman run report-image:stable
Correct answer:

podman run -d --restart=always --name report-worker report-image:stable

Detached mode runs the container in the background, and Podman's restart policy can be set to always so the container is restarted when the container engine is brought back after a host reboot. The name option gives the requested stable container name. The --rm option removes the container on exit and conflicts with persistent restart behavior. Interactive mode does not meet the detached requirement, and privileged mode grants unnecessary host access. The remaining name-only form omits the required restart policy.

Storage

20% of the exam

2 practice questions on this topicWhat this topic covers

Question 11

Added

Single Answer

A server has a volume group named vgdata with 12 GiB of free extents. The logical volume lvarchive is mounted at /archive and contains a filesystem that must remain intact. The filesystem is ext4, and the application requires 8 GiB of additional space during an online maintenance window. Which sequence safely grows the logical volume and filesystem while preserving existing data?

Correct answer: C

The volume group has enough free extents, so extending the existing logical volume by 8 GiB is feasible. ext4 can be grown online, and resize2fs expands the filesystem to use the larger block device without recreating it. Resizing the filesystem before enlarging the device cannot add the requested capacity, and reducing the volume risks data loss. Creating another LV does not expand the mounted filesystem. Running mkfs.ext4 would overwrite the existing filesystem and its data.

Question 12

Added

Single Answer

An engineering team stores build artifacts on an NFS export mounted at /build-cache. The mount currently blocks boot when the storage server is unavailable, but builds can tolerate the cache being temporarily absent. Administrators want the mount to be attempted only when the path is accessed, and want inactive mounts to be released after a period without use. No application-specific service dependencies are required. Which fstab approach best meets these requirements?

Correct answer: B

The systemd automount option creates an automount unit so access to the path triggers the NFS mount rather than requiring it during normal boot. An idle timeout allows an unused mount to be detached, matching the cache's temporary-use pattern. _netdev marks a network mount but does not make access demand-triggered or provide idle unmounting. noauto alone leaves mounting to an administrator. A hard NFS mount can continue waiting on an unavailable server and does not address the requested automount behavior.

More Linux Foundation Practice Questions

Get the Full Linux Foundation LFCS Dumps as PDF and Practice Test

12 questions are free on this page and the full set has 260. It comes as a PDF and an online practice test, with 90 days of free updates.