Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Linux Foundation Certified IT Associate LFCA Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 6 Total 60 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Linux Fundamentals

Skill tested: Uses shell pipelines and text-search tools to locate matching records in a log file.

A support engineer must identify authentication failures recorded in `/var/log/auth.log` during an incident. The file is large, and the engineer needs a concise list of lines containing the exact text `Failed password` without modifying the source file. The system provides standard GNU/Linux command-line utilities. Which command best meets the requirement?

Correct Answer: D. `grep 'Failed password' /var/log/auth.log`
Explanation:

`grep` searches the file for lines matching the supplied text and writes matching lines to standard output, leaving the log unchanged. `sed -i` edits the file in place and would remove the matching text rather than simply report it. `tail` displays only the last specified lines, whether or not they contain failures. `chmod` changes permissions and does not search file contents.

Question 2

New Multiple answers

Topic: System Administration Fundamentals

Skill tested: Diagnoses name-resolution failures by separating DNS issues from IP connectivity problems.

A newly deployed Linux application server can reach a known external IP address using `ping`, but requests to a service by its fully qualified domain name fail. The server's IP address, subnet mask, default gateway, and interface state match the documented configuration. Other hosts on the same network resolve the name successfully. The application team has not authorized any network changes. Which two checks should the administrator perform first to isolate the likely fault? Select TWO.

Correct Answer: B. Query the configured DNS server directly with a lookup tool such as `dig` or `nslookup`.; D. Inspect the configured DNS resolver entries in `/etc/resolv.conf` or the system's active resolver configuration.
Explanation:

Successful connectivity to an external IP address indicates that basic IP routing is functioning, while other hosts resolving the same name makes a general DNS outage less likely. Inspecting the host's resolver configuration can reveal an incorrect or missing DNS server, and querying that server directly helps distinguish a local resolver configuration problem from a DNS response problem. Changing the gateway or subnet mask risks breaking working connectivity. Restarting the application or flushing filesystem caches does not diagnose DNS resolution.

Question 3

New Single answer

Topic: System Administration Fundamentals

Skill tested: Prioritizes safe service recovery by verifying system state before making changes.

A Linux server that hosts an internal reporting service is responding slowly after a storage alert. The service is still accepting some requests, and monitoring shows the filesystem holding its data is nearly full. A scheduled cleanup script also ran shortly before the slowdown, but its logs have not yet been reviewed. There is no confirmed data-loss event, and the service owner requires the data to be preserved. What should the administrator do FIRST?

Correct Answer: B. Check filesystem usage and relevant system and cleanup logs to identify what consumed the space.
Explanation:

The first step should establish the current filesystem state and identify the cause of the space consumption. Checking usage and relevant logs is non-destructive and helps determine whether the cleanup script, application data, or another process is responsible. Deleting data without understanding its purpose could violate the preservation requirement. A reboot does not reliably recover disk space and may disrupt service, while permanently disabling the service is disproportionate and does not address the underlying fault.

Question 4

New Single answer

Topic: System Administration Fundamentals

Skill tested: Applies least-privilege file permissions to separate user and group access.

A small operations team shares a Linux host. The account `analyst` must read and update files in `/srv/reports`; members of the `reporting` group must read those files but must not modify them. Other local users must have no access. New files created in the directory should inherit the `reporting` group so that access remains consistent. Which approach best satisfies these requirements?

Correct Answer: C. Set `analyst` as the owner, assign the directory to group `reporting`, grant owner read/write and group read access, remove other permissions, and set the setgid bit on the directory.
Explanation:

Owner read/write permissions let `analyst` manage the files, while group read-only permissions allow `reporting` members to view them without modifying them. Removing permissions for others enforces the access restriction. Setting the setgid bit on the directory causes newly created entries to inherit the directory's group, supporting consistent team access. World-writable or mode-777 permissions grant excessive access, and making the group owner with write permission would let group members modify the files.

Question 5

New Multiple answers

Topic: System Administration Fundamentals

Skill tested: Selects resilient backup and restore practices that protect against host and site failures.

A nonprofit stores its only copy of donor records on a Linux file server. The records must be recoverable if the server fails, and accidental deletion or a local incident must not destroy every backup. The organization has limited staff and needs a process it can verify periodically. Which TWO practices best reduce these risks? Select TWO.

Correct Answer: B. Keep a second backup on a separate system or location, with access protected from routine changes to the source server.; E. Perform documented restore tests periodically and confirm that recovered records are usable.
Explanation:

A separate, protected backup copy reduces the chance that a server failure, local incident, or routine compromise will destroy both the primary data and its backup. Periodic restore tests verify that backup data is actually recoverable and usable, rather than merely confirming that a job ran. A second directory on the same disk shares the disk's failure risk. Job status alone does not demonstrate successful recovery, and broad overwrite access increases the risk of accidental or malicious loss.

Question 6

New Multiple answers

Topic: Cloud Computing Fundamentals

Skill tested: Chooses cloud deployment and scaling measures that balance availability with workload demand.

A retailer runs a public web application in a cloud environment. Traffic rises sharply during short promotional events and then returns to a low baseline. The business requires the application to remain available if an individual compute instance fails, but it cannot justify paying for peak capacity all month. The application can run on interchangeable instances behind a load balancer, and its data is stored separately. Which TWO design choices best meet these requirements? Select TWO.

Correct Answer: C. Use demand-based scaling within defined minimum and maximum capacity limits, with monitoring and health checks.; E. Use multiple application instances behind a load balancer and distribute them across independent failure domains where supported.
Explanation:

Multiple instances behind a load balancer provide redundancy for an individual instance failure; distributing them across independent failure domains further reduces correlated infrastructure risk. Demand-based scaling can add capacity during promotions and reduce it afterward, while defined limits and health checks help control cost and detect unhealthy instances. A continuously oversized instance wastes money at baseline demand. Concentrating instances on one host creates a single failure point, and permanently retaining manually added capacity fails the cost requirement.

Question 7

New Single answer

Topic: Cloud Computing Fundamentals

Skill tested: Evaluates cloud spending using workload patterns, resource sizing, and usage monitoring.

A startup moved a development environment to the cloud to avoid purchasing hardware. The environment is used by a small team on weekdays, but its virtual machines remain running overnight and on weekends. Performance monitoring shows that the current machines are lightly utilized, and the team does not need immediate access outside working hours. The startup wants to reduce recurring costs without affecting production systems or losing development data. What is the best initial action?

Correct Answer: A. Review utilization, right-size the development machines, and schedule them to stop outside the team's working hours while preserving persistent data.
Explanation:

The workload is lightly utilized and has predictable idle periods, so right-sizing and scheduled shutdowns target unnecessary compute consumption while retaining the environment's persistent data. Reviewing usage before changes also reduces the risk of cutting needed capacity. Increasing machine sizes would increase cost without evidence of a performance need. Deleting and recreating the environment introduces operational risk and may lose state, while moving development onto production could affect service reliability and isolation.

Question 8

New Single answer

Topic: Security Fundamentals

Skill tested: Protects sensitive data in transit and at rest while limiting unnecessary data exposure.

A clinic is preparing to store appointment records in an externally hosted service. The records contain personal information, and staff need access from approved devices. The organization has not completed its compliance review, so it cannot assume that a particular hosting service or jurisdiction is approved. Which action is the most appropriate before migrating real records?

Correct Answer: B. Classify the data, confirm applicable legal and organizational requirements and provider suitability, and define access controls and encryption safeguards before migration.
Explanation:

Sensitive data handling starts with classification and determining applicable legal, contractual, and organizational requirements. The clinic must establish that the provider and service are suitable, then define access controls and safeguards such as encryption for data in transit and at rest before using real records. A general security statement does not establish compliance or suitability. Public links expose data, and encryption does not replace authorization because users and services still require controlled access.

Question 9

New Single answer

Topic: DevOps Fundamentals

Skill tested: Uses Git commits and branches to isolate changes and support reviewable collaboration.

Two developers need to change the same application repository. One is adding a new report format, while the other is fixing an urgent defect. The team wants to keep the default branch deployable and review each change before integration. Neither change should overwrite the other's work, and the repository already uses Git. Which workflow is most appropriate?

Correct Answer: A. Create a separate branch for each change, commit the work there, review the changes, and merge each approved branch into the default branch.
Explanation:

Separate branches isolate the two streams of work while Git commits preserve reviewable history. Reviewing and merging approved changes into the default branch helps keep that branch deployable and reduces the chance that one developer will overwrite the other's changes. Direct concurrent edits to the default branch weaken review and isolation. Untracked copies and manual file replacement lose reliable change history and make conflicts and rollback harder to manage.

Question 10

New Single answer

Topic: DevOps Fundamentals

Skill tested: Distinguishes container image contents from runtime data that must persist across replacements.

A team packages a small web service as a container image. The service writes customer-generated documents to a directory inside the container. During updates, the team replaces the container with a new one from the updated image, and the documents disappear. The team wants to continue replacing containers cleanly while preserving documents independently of a container's lifecycle. What should they change?

Correct Answer: C. Store the documents in a persistent volume or mounted host storage that is retained when the container is replaced.
Explanation:

A container's writable layer belongs to that container and is not automatically carried into a replacement container. Persisting customer documents in a volume or mounted storage separates runtime data from the replaceable image and container lifecycle. Baking changing customer data into an image is operationally unsuitable and risks exposing data. Modifying a running container undermines repeatable deployments, and a new container does not automatically share the old container's writable layer.

Question 11

New Multiple answers

Topic: IT Project Management Fundamentals

Skill tested: Selects project practices that clarify requirements, validate acceptance, and manage scope changes.

A department is commissioning a small internal inventory application. Different staff members describe the required workflow differently, and the delivery date is fixed. The project sponsor wants to avoid building features that users do not need, while ensuring that the essential workflow is accepted before release. The team has not yet approved a detailed specification. Which TWO actions should the project lead take before committing to the full implementation scope? Select TWO.

Correct Answer: D. Meet representative users to document and resolve functional requirements, including priority and expected outcomes.; E. Define measurable acceptance criteria for the essential workflows and confirm them with the sponsor and users.
Explanation:

Eliciting and reconciling requirements with representative users addresses the conflicting workflow descriptions before they become costly implementation assumptions. Measurable acceptance criteria establish how the essential workflows will be judged and should be confirmed with the relevant stakeholders. Implementing every request before clarification increases rework and threatens the fixed date. Automatically adding later requests ignores scope control, and a fixed date makes clear requirements and prioritization more important, not less.

Question 12

New Single answer

Topic: IT Project Management Fundamentals

Skill tested: Assesses open-source license obligations before redistributing modified software.

A company plans to modify an open-source command-line utility and bundle it with a commercial product distributed to customers. The engineering team believes that publicly available source code can be used without further review. Before approving distribution, the project manager must identify obligations that could affect packaging and delivery. Which action is most appropriate?

Correct Answer: C. Review the utility's specific license and the planned use with the organization's appropriate legal or compliance reviewer before distribution.
Explanation:

Open-source licenses have different terms, and modification or redistribution may trigger obligations involving notices, source availability, attribution, or other conditions. Reviewing the actual license and intended distribution with an appropriate reviewer is necessary before packaging the software. Removing notices does not eliminate license obligations and may create additional problems. Public availability does not mean all licenses are equivalent, and omitting the component from an inventory does not change its licensing requirements.