# LFCS Linux Administration practice exams

> Prepare for LFCS with 290 practice questions across 5 full timed exams, weighted toward Operations Deployment and Networking. Every answer is explained.

Page: https://devopscodelab.com/exams/lfcs-linux-administration/

290 questions in 5 timed practice tests. Each test has about 60 questions and a 90-minute limit. The pass mark is 67%. Results are split across the 5 exam domains.

## Exam at a glance

| Setting | Value |
| --- | --- |
| Practice tests | 5 |
| Questions in total | 290 |
| Questions per test | About 60 |
| Time limit per test | 90 minutes |
| Pass mark | 67% |
| Question types | Single answer and multiple answer (24 multiple-answer questions) |
| Level | Associate |
| Category | DevOps & Cloud Native |

These are the settings of our practice tests. Check the official Linux Foundation exam page for the current format before you book.

## Domains and weights

| Domain | Weight | Questions in our bank |
| --- | --- | --- |
| Operations Deployment | 25% | 72 |
| Networking | 25% | 73 |
| Storage | 20% | 58 |
| Essential Commands | 20% | 58 |
| Users and Groups | 10% | 29 |

## Price and access

- LFCS practice exams: $12.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/lfcs-linux-administration/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/lfcs-linux-administration/free-practice-questions/

## Sample questions

### Question 1 of 3

A host sets net.bridge.bridge-nf-call-iptables = 1 in /etc/sysctl.d/k8s.conf, but after each reboot the key is missing and sysctl reports it unknown until br_netfilter is loaded manually. What is the correct persistent fix?

- A. Move the setting to /etc/sysctl.conf so it is applied later in the boot sequence
- B. Add options br_netfilter enable=1 to a file in /etc/modprobe.d/ and run depmod -a
- C. Add bridge-nf-call-iptables=1 to the kernel command line with grubby on every kernel
- D. Add br_netfilter to a file in /etc/modules-load.d/ so the module loads at boot

**Answer:** D

**Explanation:** The key exists only after br_netfilter is loaded, and modules listed in modules-load.d are loaded early by systemd-modules-load, so the sysctl applies afterwards (systemd also reapplies settings for modules it loads). Moving the setting to another sysctl file does not load the module. The setting is not a kernel boot parameter. modprobe.d options apply only when something loads the module, and br_netfilter has no enable parameter.

### Question 2 of 3

A rootless Podman user runs podman run -p 80:8080 and gets a permission error binding host port 80. Policy allows unprivileged services to use ports from 80 upwards on this host. Which change fixes this persistently?

- A. Add --cap-add=NET_BIND_SERVICE to the podman run command so the container can bind port 80
- B. Add --privileged to the podman run command so the container gets all capabilities on the host
- C. Set net.ipv4.ip_unprivileged_port_start = 80 in a file under /etc/sysctl.d/ and apply it
- D. Run setsebool -P container_manage_cgroup on so the rootless container can bind low ports

**Answer:** C

**Explanation:** Unprivileged users cannot bind ports below net.ipv4.ip_unprivileged_port_start, which defaults to 1024, so lowering it to 80 lets the rootless port forwarder bind port 80. Capabilities granted to the container apply inside its user namespace and do not let the host-side process bind a privileged port. --privileged does not grant real host root rights to a rootless container. The cgroup boolean is unrelated to port binding.

### Question 3 of 3

You reset the root password of a RHEL 9 system by booting with rd.break, remounting /sysroot read-write, running chroot /sysroot and passwd. SELinux is enforcing. What must you do before rebooting so logins keep working?

- A. Run restorecon -Rv / outside the chroot so the shadow file keeps its old label
- B. Run grub2-mkconfig -o /boot/grub2/grub.cfg so that rd.break is removed again
- C. Run setenforce 0 inside the chroot so that the new password is accepted at boot
- D. Run touch /.autorelabel inside the chroot so file contexts are restored at boot

**Answer:** D

**Explanation:** passwd in the rescue environment rewrites /etc/shadow without a proper SELinux label, and /.autorelabel triggers a relabel on the next boot so authentication can read it. setenforce does nothing in the initramfs chroot and is not persistent. restorecon outside the chroot runs against the initramfs, not the real root. rd.break was added only for one boot from the GRUB editor, so regenerating grub.cfg is unnecessary.


## Study plans

### Two weeks

1. Day 1: take practice test 1 in exam mode to get a baseline.
2. Days 2 to 5: domain mode on Operations Deployment and Networking, the two most heavily weighted domains.
3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

### Four weeks

1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

## Questions about the LFCS practice exams

**Are these real LFCS exam questions?**

No. We write every question ourselves and map it to the published LFCS exam objectives. We do not use leaked or recalled questions.

**Do the time limit and pass mark match the official exam?**

They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.

**Can I try it before I pay?**

Yes. The free mini exam has 15 questions with full explanations and needs no account.

**How long do I keep access?**

A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.

**What happens after I finish a test?**

You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026.

DevOpsCode Lab is not affiliated with Linux Foundation. LFCS and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
