Exam Information
Free practice questions with explanations
Linux Foundation LFCA Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 19
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice System Administration Fundamentals
A small company runs a Linux file server with an ext4 volume mounted at /srv/data. Its disk has started logging reallocated sector warnings, and the administrator must back up the data before replacing the disk. The data must be consistent, and the server cannot be taken offline for more than a few minutes during business hours. Which action is the BEST first step?
Correct Answer: DExplanationA snapshot of the logical volume gives a point-in-time, consistent image while the live service keeps running, which satisfies the short downtime limit during business hours. Stopping services and copying with cp -a would meet consistency but breaks the availability constraint. Running fsck on a mounted filesystem is unsafe and can corrupt data further. Waiting for the nightly job delays the backup while the failing disk keeps degrading, and remounting read-only adds downtime without guaranteeing a consistent copy of the live state.
-
2 Question 2 Single choice Cloud Computing Fundamentals
A retail company hosts its order-processing API on three virtual machines behind a cloud load balancer. During a flash sale, p95 response times rise sharply while CPU usage on the VMs stays below 40 percent. The team must restore performance within the current monthly budget and avoid raising the cost of always-on capacity. Which change is the MOST appropriate?
Correct Answer: AExplanationThe CPU metric is misleading here: the bottleneck is request latency or queueing, which a latency- or queue-based scaling rule captures. Autoscaling adds capacity only during the spike, so cost stays bounded, while the minimum of three keeps baseline availability. Resizing and adding a permanent VM raise always-on cost against the budget constraint. DNS round-robin removes health checking and does not add any capacity, so it cannot fix the latency.
-
3 Question 3 Single choice Linux Fundamentals
An operator is investigating why a daily backup script run by cron fails with a permission error, even though the same script succeeds when run manually as the operator's own account. The crontab entry belongs to the backup service account. The script writes to /var/backups/app, which is owned by root with mode 750 and group backup. The operator must find the cause using only command-line tools on the server. Which command should be run FIRST to see the identity and groups the cron job actually runs under?
Correct Answer: BExplanationVerifying the account's UID and group membership with id backup shows whether the service account belongs to the backup group that can traverse /var/backups/app, which is the likely gap. Listing the directory only shows the permissions the operator already suspects, and crontab -l shows the schedule rather than identity. sudo -l reports sudo privileges, which cron jobs do not use to gain write access to a directory unless the script invokes sudo explicitly.
-
4 Question 4 Multiple choice Security Fundamentals
A healthcare provider stores patient records in a PostgreSQL database hosted in a private cloud subnet. Auditors require that personally identifiable information is protected in transit and at rest, that administrators cannot read it without a logged reason, and that backups inherit the same protection. Which TWO actions meet these requirements? (Choose two.)
Correct Answer: B, CExplanationEnforcing TLS through hostssl rules in pg_hba.conf protects data in transit, and encryption of the volume and backups with a key service that logs key use covers data at rest and gives auditable access control. Network restriction alone does not satisfy in-transit or at-rest requirements. Superuser access defeats the requirement that administrators need a logged reason. An unencrypted backup bucket fails the at-rest and inheritance requirement even if public access is denied.
-
5 Question 5 Single choice Security Fundamentals
A startup stores customer invoices on a shared file server. A compliance review finds that a former contractor still has read access through a group membership, and that files containing bank account numbers are readable by all staff. The company wants to fix the issue with the least disruption and without moving the data. Which action BEST addresses the root cause?
Correct Answer: BExplanationThe root cause is an over-broad group membership and permissions that expose sensitive data to unnecessary users, so removing the stale membership and narrowing access to a finance-only group applies least privilege without moving the data. Making files world-writable creates a serious exposure rather than an audit benefit. A single shared administrator account removes accountability. Password rotation does not address a former contractor who retains access through group membership.
-
6 Question 6 Drag and drop Cloud Computing Fundamentals
A media company is planning its cloud footprint for three workloads: a public website with unpredictable traffic, a nightly video transcoding batch job that can tolerate interruptions, and an internal reporting database that must stay available during regional outages. Match each workload to the cloud design choice that best fits its requirement.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Nightly transcoding batch that tolerates interruptionsPublic website with spiky, unpredictable trafficReporting database that must survive regional outageDedicated bare-metal servers with manual scalingAutoscaling group behind a load balancerSpot or preemptible compute instancesReserved instances in a single availability zoneMulti-region replicated database with failoverCorrect Answer:- Public website with spiky, unpredictable traffic → Autoscaling group behind a load balancer
- Nightly transcoding batch that tolerates interruptions → Spot or preemptible compute instances
- Reporting database that must survive regional outage → Multi-region replicated database with failover
ExplanationAutoscaling behind a load balancer adds and removes capacity with demand, which suits spiky public traffic. Spot or preemptible instances are cheap but can be reclaimed, which is acceptable for restartable batch work. A multi-region replicated database with failover protects against a regional outage. Reserved instances in one zone cost less but fail with that zone, and manual bare-metal scaling cannot respond to unpredictable demand.
-
7 Question 7 Single choice DevOps Fundamentals
A team uses Git with a main branch that is protected and deploys automatically on every merge. A developer accidentally committed a database password to a feature branch and pushed it. The commit has been merged into main and the repository is hosted on a shared platform with several external contractors who have read access. The team must remove the secret from the repository history and prevent recurrence. Which action should be taken FIRST?
Correct Answer: DExplanationOnce a secret has been pushed and read by external parties, the credential must be considered compromised, so rotating it is the first priority; rewriting history does not undo copies already fetched. git revert leaves the secret in history, and .gitignore only affects untracked files, so it does nothing for a committed secret. History purging and force-pushing come after rotation and must be coordinated with the team.
-
8 Question 8 Order list System Administration Fundamentals
A system administrator must recover a web server after its root filesystem was corrupted by a failed update. The server has nightly full backups stored as compressed archives, and the recovery must restore the operating system and application configuration exactly as they were on the last good backup. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Create new filesystems on the root partition and mount them under a temporary directory
- Boot the server from rescue media and verify the target disk partitions are intact
- Reboot into the restored system and verify that services start and respond correctly
- Extract the most recent good backup archive into the mounted root filesystem preserving permissions
- Reinstall the boot loader on the disk so the system can start from the restored root
Correct Answer:- Boot the server from rescue media and verify the target disk partitions are intact
- Create new filesystems on the root partition and mount them under a temporary directory
- Extract the most recent good backup archive into the mounted root filesystem preserving permissions
- Reinstall the boot loader on the disk so the system can start from the restored root
- Reboot into the restored system and verify that services start and respond correctly
ExplanationThe recovery begins by booting rescue media and checking the partitions so the restore target is sound. Filesystems are then created and mounted, because extraction needs a destination. The archive is extracted with permissions preserved, and the boot loader is reinstalled since the restored root may not carry it. Only then is the system rebooted and verified, since testing before the boot loader is in place cannot succeed.
-
9 Question 9 Dropdown Linux Fundamentals
An administrator needs to find all regular files under /var/log that were modified in the last 24 hours and are larger than 10 megabytes, then display their sizes and paths. Complete the command by selecting the correct value for each blank.
Choose the correct value for each blank.
find /var/log -type f -mtime -size +10M -exec ls -lh {}Correct Answer:find /var/log -name *.log -type f -mtime -1 -size +10M -exec ls -lh {} \;
ExplanationThe -mtime -1 test matches files modified within the last 24 hours, and the -size +10M test selects files above 10 megabytes. The -exec clause must end with an escaped semicolon so find runs ls once per file. Restricting names to *.log would exclude other regular files, which the requirement does not ask for, so the first blank must be a filter that does not narrow scope unnecessarily; the correct choice here is the option that keeps the scope to all regular files as listed. A plus sign terminator would batch multiple files into one ls call, and a pipe is not valid inside find's -exec syntax.
-
10 Question 10 Single choice IT Project Management Fundamentals
A company is evaluating a third-party open source logging library for an internal product. Legal notes that the product will be distributed to customers as part of a commercial binary, and that the library is licensed under the GNU General Public License version 2 with no linking exception. The project manager must choose a course of action before the release is scheduled. Which action is MOST appropriate?
Correct Answer: DExplanationGPLv2 without a linking exception carries copyleft obligations when the library is distributed in a combined work, so the correct path is a legal review followed by compliance or replacement. Treating open source as free of conditions ignores the license terms. Renaming the library does not change its license, and distributing a product in another language has no bearing on the licensing obligations.
-
11 Question 11 Multiple choice Cloud Computing Fundamentals
A finance team runs a reporting application on cloud virtual machines that operate continuously at about 60 percent utilization, and a batch analytics cluster that runs only four hours a night. Leadership wants to reduce the monthly cloud bill without reducing reliability of the reporting application. Which TWO actions are the MOST appropriate? (Choose two.)
Correct Answer: B, CExplanationCommitted or reserved capacity lowers the rate for steady, always-on workloads like the reporting application without affecting reliability. Scheduling the batch cluster to run and stop with its window eliminates idle charges. Turning off the reporting app conflicts with its availability needs, spot instances can be interrupted and harm reliability, and oversizing a cluster does not guarantee lower total cost.
-
12 Question 12 Single choice Cloud Computing Fundamentals
A SaaS vendor hosts customer data across two regions. Its contracts guarantee 99.9 percent monthly availability for the API. During a regional outage, the team discovers that the standby region cannot serve traffic because its database replica is 45 minutes behind and failover requires manual steps that take an hour. Which change is MOST important for meeting the availability commitment?
Correct Answer: CExplanationThe gap is recovery time and replication lag: an hour-long manual failover and a 45-minute lag both exceed what a 99.9 percent monthly target allows, which is roughly 43 minutes. Automating failover and tightening replication directly addresses that gap. Adding CPU does not protect against regional outages, a longer maintenance window misrepresents downtime, and log retention does not change availability.
-
13 Question 13 Dropdown Security Fundamentals
A security engineer must ensure that a Linux server's SSH daemon accepts only key-based authentication and never allows direct root login. The engineer will edit the daemon configuration and apply the change without restarting unrelated services. Complete the configuration lines by selecting the correct value for each blank.
Choose the correct value for each blank.
PasswordAuthentication
PermitRootLogin
After editing, run systemctl sshd to apply the changes.Correct Answer:PasswordAuthentication no
PermitRootLogin no
After editing, run systemctl reload sshd to apply the changes.ExplanationSetting PasswordAuthentication to no forces key-based logins, and PermitRootLogin no blocks direct root access entirely. Reloading sshd applies the configuration changes without dropping existing sessions, whereas daemon-reload only reloads unit files and enable or mask affect boot behavior rather than the running configuration. The prohibit-password option would still allow root with keys, which the requirement forbids.
-
14 Question 14 Single choice DevOps Fundamentals
A development team packages its web service as a container image. Each build currently pulls the latest base image tag, and last month a silent update to that base image broke production in a way that was hard to diagnose. The team needs builds to be reproducible and wants to keep using a maintained base image. Which practice BEST meets this requirement?
Correct Answer: BExplanationPinning the base image to an immutable digest or a specific version tag makes builds reproducible, while deliberate reviewed updates keep the image maintained. Installing unversioned packages reintroduces the same silent drift, and building on production hosts or abandoning the Dockerfile removes the reproducibility a build pipeline depends on.
-
15 Question 15 Single choice System Administration Fundamentals
An administrator must restore a critical PostgreSQL database after a logical error deleted rows at 10:15. Point-in-time recovery is configured with continuous WAL archiving, and the database must be restored to 10:14 with its data intact on a separate server so production can be inspected. Production must not be overwritten until the team confirms the recovered data. Which approach is MOST appropriate?
Correct Answer: CExplanationRestoring the base backup on a separate server and replaying archived WAL to a recovery target time of 10:14 reconstructs the state before the deletion without touching production. Restoring over production violates the requirement to preserve it until verification. Reinserting from a cache risks incomplete or inconsistent data, and waiting for the next backup does not recover the lost rows.
-
16 Question 16 Single choice Linux Fundamentals
An administrator is troubleshooting a server where a service reports 'address already in use' when it starts. The administrator needs to identify which process is listening on TCP port 8080 without installing new software, and must see the owning process name and PID. Which command is the MOST appropriate?
Correct Answer: CExplanationThe ss utility with -t, -l, -n and -p lists listening TCP sockets numerically with their owning process names and PIDs, and filtering for 8080 identifies the conflict. ps aux matches command text rather than socket ownership, so it may miss the listener. df reports disk usage, and ip route inspects routing tables, neither of which show listening ports.
-
17 Question 17 Drag and drop Security Fundamentals
A company that processes card payments must meet a regulatory requirement set. The security team needs to match each requirement to the control that most directly satisfies it. Match each requirement to the control that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Security-relevant events must be retained and reviewableOnly authorized staff may access systems holding cardholder dataCardholder data must be unreadable if storage media is stolenRole-based access restricted by least privilegeEncryption of stored cardholder data at restQuarterly external penetration reportCentralized, tamper-resistant audit loggingAntivirus signatures updated weeklyCorrect Answer:- Cardholder data must be unreadable if storage media is stolen → Encryption of stored cardholder data at rest
- Only authorized staff may access systems holding cardholder data → Role-based access restricted by least privilege
- Security-relevant events must be retained and reviewable → Centralized, tamper-resistant audit logging
ExplanationEncryption at rest keeps stolen media unreadable, least-privilege role access restricts who can reach cardholder systems, and centralized tamper-resistant audit logs preserve reviewable records of security events. Antivirus signature updates and penetration reports are valuable controls, but they do not directly satisfy any of these three requirements.
-
18 Question 18 Single choice Cloud Computing Fundamentals
A company runs its internal wiki on a single cloud virtual machine with local disk storage. Recent weeks show the wiki becoming slow during morning peaks, and the team wants to improve performance and availability without rewriting the application. The VM currently has 4 vCPUs and the application uses a shared network file store for attachments. Which change is the MOST appropriate?
Correct Answer: AExplanationSeparating the database into a managed service and running two instances behind a load balancer improves availability and handles peak load without rewriting the application, which the requirements allow. A single oversized VM remains a single point of failure, periodic restarts mask rather than fix the bottleneck, and static HTML breaks the dynamic editing function the wiki requires.
-
19 Question 19 Single choice System Administration Fundamentals
A monitoring alert shows that a Linux server's root filesystem reached 100 percent usage and the application is failing to write logs. The administrator must free space quickly and identify the cause. Logs are rotated by logrotate, but the application keeps a large file open that was deleted. Which action is the MOST appropriate next step?
Correct Answer: BExplanationA deleted file still held open by a process keeps its blocks allocated, and lsof with +L1 lists open files with a link count below one, revealing the holder. Restarting that process releases the space. Deleting all of /var/log destroys evidence and does not free the held file, rebooting is unnecessary since the process holds the blocks, and swap lives on a different allocation so enlarging it does not free root space.
These are 19 of the 60 questions in the full LFCA pack.
Get All 60 QuestionsGet all 60 questions & answers
Full access options for Linux Foundation LFCA
Self-study
PDF Version
- 60 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
- 60 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
- 60 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 LFCA Exam (Linux Foundation Certified IT Associate) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.