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

Free LPI Linux Professional Institute BSD Specialist (version 1.0) 702-100 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 6 Total 60 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: BSD Installation and Software Management

Skill tested: Configures FreeBSD startup services and kernel parameters using persistent system settings.

A small hosting provider is standardizing FreeBSD servers. Each server must start the SSH daemon after reboot, while a kernel tunable required by the storage driver must also be applied persistently. Administrators want changes to survive upgrades where practical and avoid editing generated or transient files. Which approach best meets both requirements?

Correct Answer: A. Enable sshd with `sysrc sshd_enable=YES` and set the tunable in `/etc/sysctl.conf`.
Explanation:

`sysrc` manages FreeBSD's rc configuration, and `sshd_enable=YES` causes the rc system to start sshd during normal boot. Persistent runtime kernel tunables can be placed in `/etc/sysctl.conf`, which is applied during startup. `/etc/rc.local` is not the preferred mechanism for enabling a standard rc service; `onestart` and an interactive `sysctl` command are not persistent. `/boot/loader.conf` is read by the boot loader for loader tunables, not for starting rc services, so it cannot satisfy both requirements.

Question 2

New Multiple answers

Topic: BSD Installation and Software Management

Skill tested: Selects secure FreeBSD package-management practices for repeatable system updates.

A systems team maintains a fleet of FreeBSD hosts using binary packages. The hosts must receive security fixes without compiling ports, and administrators need to review changes before they are applied. They also want to avoid unintentionally upgrading every installed package during a routine security-maintenance window. Which TWO actions best fit these requirements? Select TWO.

Correct Answer: C. Use `pkg upgrade` and review the proposed package transaction before confirming it.; D. Run `pkg audit -F` to check installed packages against the vulnerability database.
Explanation:

`pkg audit -F` fetches or updates the vulnerability database and checks installed packages for known vulnerabilities. `pkg upgrade` presents the planned transaction, allowing administrators to review package changes before proceeding; routine package upgrades may include more than security fixes, so reviewing the proposal is important. The `-f` option forces an upgrade rather than limiting it to security updates. Building from ports conflicts with the binary-package constraint, and `pkg autoremove` removes unneeded dependencies rather than applying updates.

Question 3

New Single answer

Topic: Storage Devices and BSD Filesystems

Skill tested: Partitions and labels FreeBSD storage before creating and mounting a filesystem.

A FreeBSD server receives a new disk that must be used as a single data filesystem. The installation uses GPT, and administrators want a stable device reference in `/etc/fstab` rather than relying on a disk's enumeration order. No data is present on the new disk. Which sequence is the most appropriate?

Correct Answer: A. Create a GPT partition, create a UFS filesystem on that partition, assign a GPT label, then use the label in `/etc/fstab`.
Explanation:

A GPT partition should be created before placing a UFS filesystem on it. A GPT label provides a descriptive, stable device path that can be referenced from `/etc/fstab`, reducing dependence on device enumeration such as `/dev/adaN`. A filesystem cannot be mounted from a raw, unpartitioned device as described, and partition-table changes should not be made to a mounted data filesystem. A swap partition is not the appropriate partition type or content for a UFS data volume.

Question 4

New Multiple answers

Topic: Storage Devices and BSD Filesystems

Skill tested: Applies Unix ownership and permission controls to protect shared project data.

A design firm needs a shared directory where members of the `design` group can create and modify project files. New files and subdirectories should inherit group ownership so collaboration remains reliable. Other local users must have no access, and project files should not become executable merely because they are created in this directory. Which TWO configuration choices best meet these needs? Select TWO.

Correct Answer: A. Set a suitable umask, such as `0007`, for users creating project files.; E. Set the directory's group to `design` and its mode to `2770`.
Explanation:

Mode `2770` grants full access to the owner and group, denies access to others, and sets the setgid bit so newly created entries inherit the directory's group. A suitable umask such as `0007` removes permissions for other users from newly created files and directories without adding executable bits; the creating application still determines the requested mode. Mode `2750` does not let group members create or modify entries. A world-writable directory is unnecessarily permissive, while mode `0700` excludes other group members.

Question 5

New Single answer

Topic: Storage Devices and BSD Filesystems

Skill tested: Finds files by metadata efficiently using BSD find predicates.

During an incident review, an administrator must locate regular files larger than 100 MiB beneath `/var`, but must not cross into filesystems mounted below that path. The search should report pathnames only and must not alter file metadata or contents. Which command best satisfies the requirement?

Correct Answer: B. `find /var -type f -size +100M -xdev -print`
Explanation:

The `find` expression selects regular files with `-type f`, uses `-size +100M` for files exceeding the threshold, and uses `-xdev` to avoid descending into other mounted filesystems. `-print` reports matching pathnames without changing them. The exact-size expression in B is not a greater-than test, and `touch` modifies timestamps. `du` reports disk usage rather than reliably filtering individual files by the stated size, while D searches directories, follows symbolic links, and omits the required file selection.

Question 6

New Single answer

Topic: Basic BSD System Administration

Skill tested: Schedules recurring system tasks with the appropriate BSD job scheduler.

A backup script must run every day at 02:15 under a dedicated, unprivileged account. The script reads files owned by that account and writes its report to the account's home directory. The operation must continue without an administrator being logged in, and the team wants to use the standard per-user scheduling facility. What is the best approach?

Correct Answer: B. Install the schedule with `crontab -e` while logged in as the dedicated account.
Explanation:

A user's crontab is the standard way to schedule a recurring task under that user's identity; a suitable entry can specify minute 15 and hour 2 every day. Running the crontab operation as the dedicated account ensures the job has the intended permissions and environment context. A login profile runs for interactive sessions, not as a scheduler. `at` schedules a one-time job, and `/etc/rc.local` is part of startup processing rather than a daily time-based scheduler.

Question 7

New Multiple answers

Topic: Basic BSD System Administration

Skill tested: Troubleshoots BSD system events by locating and querying system logs.

After a server reboot, an administrator needs to determine whether the kernel reported disk errors and whether the filesystem check completed successfully. The system uses standard FreeBSD logging, and the administrator has root access. The investigation should use existing log records and should not change logging configuration or restart services. Which TWO actions are appropriate? Select TWO.

Correct Answer: A. Inspect `/var/log/messages` for relevant system and kernel messages.; E. Inspect the applicable rotated or archived system log files as well as the current log.
Explanation:

FreeBSD system messages are commonly recorded in `/var/log/messages`, and log rotation may move earlier records into rotated or archived files, so both current and retained logs should be examined. `dmesg` reports the current kernel message buffer and is not a dependable source for messages from before a reboot. Restarting `syslogd` does not reconstruct historical events. `/etc/fstab` describes filesystem configuration, not the results of past checks.

Question 8

New Single answer

Topic: Basic BSD System Administration

Skill tested: Diagnoses client-side DNS resolution using resolver configuration and lookup tools.

Users can reach a service by IP address, but lookups for its hostname fail on one FreeBSD workstation. Other workstations on the same network resolve the name correctly. The affected workstation has a static network configuration and is not intended to query a local caching resolver. What is the most appropriate first diagnostic step?

Correct Answer: B. Check `/etc/resolv.conf` for the intended nameserver and search-domain settings, then query the configured server with a DNS lookup tool.
Explanation:

Because IP connectivity works and peers resolve the same hostname, the failure is likely specific to the workstation's resolver configuration or its communication with the configured DNS server. Checking `/etc/resolv.conf` and querying the listed server with a tool such as `drill` isolates these possibilities without changing unrelated services. Replacing DNS with a hosts file is not a scalable diagnosis or fix. A working IP connection does not establish that the default route is wrong, and package or printing operations do not repair DNS configuration.

Question 9

New Single answer

Topic: Basic BSD Network Administration

Skill tested: Diagnoses interface connectivity using FreeBSD network configuration and route inspection.

A FreeBSD application server has a configured IPv4 address and can communicate with hosts on its local subnet, but cannot reach an external monitoring endpoint. DNS lookups are not involved because the endpoint is tested by IP address. The gateway is managed by the network team, and the administrator must identify the failure before changing configuration. What should be checked next?

Correct Answer: A. Inspect the active routing table with `netstat -rn` and verify that a suitable default route exists.
Explanation:

Successful communication on the local subnet shows that the interface and local addressing are at least functioning, while failure to reach an external IP points toward routing or an upstream path. `netstat -rn` reveals whether the host has a default route and which gateway it uses, an appropriate non-destructive diagnostic before changing network settings. Recreating filesystems is unrelated. Adding the remote endpoint as a local address would misconfigure the host, and disabling the interface removes connectivity rather than diagnosing the route.

Question 10

New Multiple answers

Topic: Basic Unix Skills

Skill tested: Uses shell process-control commands to identify and terminate a specific process safely.

A batch process is consuming excessive CPU on a shared FreeBSD host. Several instances of the same program run for different users, so terminating every process with that command name would disrupt other work. An administrator must identify the instance owned by a specific account, request a clean shutdown first, and escalate only if it remains active. Which TWO actions are most appropriate? Select TWO.

Correct Answer: C. If the identified process does not exit after a reasonable interval, send `SIGKILL` to that specific PID.; E. Use `ps` with suitable user and command filtering to identify the target PID, then send it `SIGTERM` with `kill`.
Explanation:

Filtering process listings by user and command helps distinguish the intended instance and obtain its PID. Sending `SIGTERM` first gives the process an opportunity to clean up; if it does not exit, `SIGKILL` to that specific PID is an appropriate escalation. `killall -9` may terminate other users' instances and skips graceful shutdown. `SIGSTOP` suspends a process but does not terminate it, and rebooting is disruptive and unnecessary.

Question 11

New Single answer

Topic: Basic Unix Skills

Skill tested: Edits configuration files safely with basic vi search and substitution operations.

An administrator is editing a configuration file in `vi` and must replace every occurrence of the exact token `oldpool` with `newpool` throughout the file. The administrator wants to review the intended command before applying it and avoid replacing a longer token such as `myoldpool`. Which command sequence is best?

Correct Answer: A. Enter `:%s/oldpool/newpool/gc`, review each match, and confirm only the intended replacements.
Explanation:

In `vi`, `%` selects the whole file, and the substitution command replaces matching text; `g` applies the substitution to all matches on each line, while `c` prompts for confirmation. That allows the administrator to review each occurrence and reject matches that are part of a larger token. The command in C lacks the global flag, so it replaces only the first match per line. D applies changes without review and can alter substrings inside longer names; B deletes the file's contents.