Exam Information
Free practice questions with explanations
LPI 702-100 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 17
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Basic BSD Network Administration
A FreeBSD server at a small clinic has a static IPv4 address configured in /etc/rc.conf. After a maintenance window, the server must keep its address across reboots and must not use DHCP, since the clinic's router reserves that address for an internal firewall rule. A technician finds that ifconfig shows the correct address but the default route is missing after reboot. The gateway address is 192.0.2.1. Which change makes the configuration persistent and complete with the least risk of breaking the firewall rule?
Correct Answer: DExplanationOn FreeBSD the static address belongs in the ifconfig_ variable in /etc/rc.conf, and the default route is set with defaultrouter. Both must be present for the route to return after reboot. Enabling DHCP would replace the reserved static address, which the clinic cannot tolerate. Putting the address in sysctl.conf does not configure interfaces, and /etc/hosts is name resolution, not routing. gateway_enable only lets the host forward packets, which does not add a default route.
-
2 Question 2 Multiple choice Basic BSD System Administration
A university lab runs several FreeBSD machines where students submit jobs. The administrator must ensure that a nightly cleanup of /tmp runs as root at 02:30 every day, that the job is defined in a way that survives reboots, and that users cannot schedule jobs that interfere with the system cron. Which two actions together meet these requirements? (Choose two.)
Correct Answer: A, EExplanationThe system crontab in /etc/crontab has an explicit user field, so a root job at 02:30 can be defined there and survives reboots. Restricting who may use crontab is done with /var/cron/allow, which, when present, is the only list consulted for access. Root's personal crontab also works for the job, but it does not give a specific 02:30 schedule with a user column. The periodic daily directory runs at a fixed time that does not match 02:30. The deny file blocks users only when no allow file exists, so using it alone is an incomplete control.
-
3 Question 3 Order list Basic BSD System Administration
A FreeBSD print server is shared by three departments. A job from a finance user is stuck in the queue for the printer lp0, and the administrator must clear that single job without disturbing other queued jobs, then confirm the queue is clean. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Run lpq -P lp0 again to verify the remaining jobs are intact
- Check the printer status with lpc status lp0 to confirm the queue state
- Run lpq -P lp0 to identify the job number of the stuck finance job
- Run lprm -P lp0 with the job number to remove only that job
Correct Answer:- Run lpq -P lp0 to identify the job number of the stuck finance job
- Run lprm -P lp0 with the job number to remove only that job
- Check the printer status with lpc status lp0 to confirm the queue state
- Run lpq -P lp0 again to verify the remaining jobs are intact
ExplanationThe job number must be read from lpq output before lprm can remove exactly that entry. Removing the job first would be impossible without knowing the identifier. Once the job is gone, lpc status shows whether the printer daemon is accepting work, and a final lpq confirms the other jobs remain. Verifying the queue before identifying the job would produce nothing actionable, and checking status before removal does not clear anything.
-
4 Question 4 Drag and drop Basic Unix Skills
An operator is working on a FreeBSD workstation where a runaway build process has created many child processes, and a second user needs to search log files for error lines while preserving the original text. Match each requirement to the command that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
List the running processes owned by the current user for a quick reviewShow the process ID of a running process by its name without listing all processesSend the terminate signal to a specific process ID that is ignoring the default requestFind every line containing ERROR at the start of a line in all .log filespgrepps -Ugrep ^ERROR *.logsed -n /ERROR/pkill -9 -1kill -TERMCorrect Answer:- Send the terminate signal to a specific process ID that is ignoring the default request → kill -TERM
- Find every line containing ERROR at the start of a line in all .log files → grep ^ERROR *.log
- Show the process ID of a running process by its name without listing all processes → pgrep
- List the running processes owned by the current user for a quick review → ps -U
Explanationkill -TERM asks a process to exit cleanly and is the first choice before forcing termination. grep with an anchored pattern matches only lines beginning with ERROR across the log set. pgrep returns matching PIDs directly by name, avoiding manual filtering of ps output. ps -U filters processes by user and is the right view for reviewing one user's processes. kill -9 -1 would signal every process the user can reach, far beyond the requirement. sed -n with a substring pattern does not anchor to the line start and is not a search tool here.
-
5 Question 5 Single choice Basic Unix Skills
A developer on a FreeBSD server must replace every occurrence of the word colour with color in a configuration file named app.conf, and must keep a backup copy of the original file as app.conf.orig before any change is made. The developer wants the edit to happen in one non-interactive command. Which command meets these requirements?
Correct Answer: CExplanationFreeBSD sed supports in-place editing with -i followed by a suffix, which saves the original file with that suffix appended before rewriting the target. The g flag replaces every occurrence on each line. Using -n suppresses output and writes nothing to the real file, so the edit never happens. The ed approach is interactive and was excluded by the non-interactive requirement. Editing app.conf.orig would change the backup, not the live configuration.
-
6 Question 6 Dropdown Storage Devices and BSD Filesystems
A FreeBSD host has a new second disk, ada1, which must be partitioned with a GPT scheme and formatted with UFS. The partition must be mounted at /data at boot, and the mount must allow normal user writes while blocking execution of binaries from that volume for security. Complete the commands by selecting the correct value for each blank.
Choose the correct value for each blank.
gpart create -s ada1
gpart add -t freebsd-ufs ada1
newfs -U /dev/ada1p1
# In /etc/fstab: /dev/ada1p1 /data ufs rw, 2 2Correct Answer:gpart create -s gpt ada1
gpart add -t freebsd-ufs ada1
newfs -U /dev/ada1p1
# In /etc/fstab: /dev/ada1p1 /data ufs rw,noexec 2 2Explanationgpart create -s gpt sets a GUID partition table, which the task requires, while mbr would give the wrong scheme and bsd is a disk label not a partition scheme. The noexec mount option prevents execution of binaries on that filesystem, meeting the security requirement while rw still allows user writes. exec would allow execution, the opposite of what is required. nosuid addresses set-user-ID bits, not execution, and ro would block the required writes.
-
7 Question 7 Single choice Storage Devices and BSD Filesystems
A storage administrator on FreeBSD runs a UFS filesystem on /dev/ada0p2 that reports inconsistencies after an unclean shutdown. The server hosts a database that must not be taken offline for long, and the filesystem is mounted read-write. The administrator plans to repair it with fsck. Which action should be taken FIRST?
Correct Answer: DExplanationfsck must not modify a filesystem that is mounted read-write, because the kernel and fsck would both change metadata and corrupt it. Unmounting first is the required safe step, even though the database outage must be minimised; the administrator should plan the downtime for that repair. Running fsck -y on a mounted filesystem risks serious damage. newfs destroys all data on the partition. Enabling soft updates changes future behaviour and does not repair the current inconsistency.
-
8 Question 8 Multiple choice Storage Devices and BSD Filesystems
A FreeBSD file server holds a shared project directory /srv/project owned by group devs. Members of devs must read and write files and create new ones, but other users must have no access, and a file created by one member must remain writable by the group. The administrator wants a solution that does not require giving everyone sudo rights. Which two actions together meet these requirements? (Choose two.)
Correct Answer: A, EExplanationSetting the group to devs and using mode 2770 gives group read, write and search with other access removed, and the setgid bit makes new files inherit the devs group. Option C also restricts access to group devs and sets the directory owner to root, but mode 750 does not grant group write, so only the first option satisfies the write requirement with the setgid bit. Option C is therefore a near-miss that fails write access. Mode 777 grants world access, violating the constraint. Hard links to directories are not permitted, and a symbolic link does not change permissions at all.
-
9 Question 9 Single choice BSD Installation and Software Management
A FreeBSD administrator must install and keep up to date a set of third-party packages on a production server. The company's security policy requires all packages to come from the official binary repository and forbids compiling software on production machines. The administrator also needs the package database to show exactly which packages were installed by the admin rather than as dependencies. Which approach best satisfies these constraints?
Correct Answer: DExplanationpkg installs binary packages from the configured repository, which meets the policy against compiling on production. pkg set -A 0 changes the automatic flag so that a manually installed package is marked as not automatic and is not removed when its dependents go away. Building from ports violates the no-compile rule. Copying binaries from another host bypasses the repository and the package database, so pkg does not track them. pkg_add -r is an obsolete tool on current FreeBSD and does not fetch source tarballs.
-
10 Question 10 Order list BSD Installation and Software Management
A FreeBSD server must be configured so that a custom service daemon named mydaemon starts automatically at boot with a specific user, and the kernel must allow the service to use a larger number of open files without a reboot delay. The administrator has written the rc script for the daemon. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Run service mydaemon status to confirm the daemon is running
- Place the rc script in /usr/local/etc/rc.d and make it executable
- Add mydaemon_enable="YES" to /etc/rc.conf
- Run service mydaemon start to test the service before the next reboot
- Set kern.maxfiles in /etc/sysctl.conf so it applies at the next boot
Correct Answer:- Place the rc script in /usr/local/etc/rc.d and make it executable
- Add mydaemon_enable="YES" to /etc/rc.conf
- Set kern.maxfiles in /etc/sysctl.conf so it applies at the next boot
- Run service mydaemon start to test the service before the next reboot
- Run service mydaemon status to confirm the daemon is running
ExplanationThe rc script must exist and be executable in the local rc.d directory before the service can be enabled. The enable variable in rc.conf then makes the service start at boot. Kernel tunables such as kern.maxfiles go into sysctl.conf so they are applied during startup. Testing with service start and then checking status follows once everything is configured. Testing before the script is installed, or checking status before the daemon has been started, would give meaningless results.
-
11 Question 11 Dropdown BSD System Administration
A FreeBSD host's system clock drifts by several seconds each day, and the administrator must enable an NTP client that starts at boot and synchronises once immediately at startup. The administrator must also verify the sync status without changing the system clock manually. Complete the configuration by selecting the correct value for each blank.
Choose the correct value for each blank.
# In /etc/rc.conf:
_enable="YES"
# Then synchronise once immediately:
-q pool.ntp.orgCorrect Answer:# In /etc/rc.conf:
ntpd_enable="YES"
# Then synchronise once immediately:
ntpdate -q pool.ntp.orgExplanationntpd is the FreeBSD daemon that disciplines the clock continuously and is enabled through ntpd_enable in rc.conf. ntpdate performs a one-shot synchronisation with the -q query-only option, which reports the offset without setting the clock, satisfying the verification requirement. chronyd is not part of the base system and timed is the obsolete time daemon. ntpq queries a running daemon rather than setting time, and ntptrace traces the chain of servers, neither of which performs the immediate sync.
-
12 Question 12 Single choice BSD System Administration
A FreeBSD server's syslog output shows that authentication failures from a service are being written to /var/log/messages with no separation. The security team requires that auth messages be stored in /var/log/auth.log while all other messages keep going to /var/log/messages, and the change must take effect without restarting the machine. Which action meets these requirements?
Correct Answer: DExplanationsyslogd reads its selector rules from /etc/syslog.conf, and an entry such as auth.* /var/log/auth.log routes those messages to a separate file. Restarting syslogd applies the change without a reboot, which satisfies the constraint. Rebooting is excluded by the requirement, and rc.conf does not hold syslog selectors. Creating the file does not redirect messages on its own. kern.logsigpipe is unrelated to routing messages to files.
-
13 Question 13 Drag and drop Basic BSD Network Administration
A FreeBSD server at a branch office must resolve internal hostnames under the company domain and use a corporate resolver, while leaving the default name lookup order unchanged. The admin is working through client-side DNS settings. Match each requirement to the configuration element that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Point the host at the corporate recursive resolver addressAppend the company domain so short hostnames resolveSet the local hostname that the machine announces about itselfControl the order in which name sources are consultedhostname setting in /etc/rc.conf/etc/nsswitch.conf hosts entrynameserver line in /etc/resolv.conf/etc/hosts.allownamed.conf zone filesearch line in /etc/resolv.confCorrect Answer:- Point the host at the corporate recursive resolver address → nameserver line in /etc/resolv.conf
- Append the company domain so short hostnames resolve → search line in /etc/resolv.conf
- Control the order in which name sources are consulted → /etc/nsswitch.conf hosts entry
- Set the local hostname that the machine announces about itself → hostname setting in /etc/rc.conf
Explanationnameserver lines in resolv.conf define which recursive resolver the client queries. The search line appends the domain to short names. The name service switch file controls lookup order among files, DNS and other sources, which is why it is separate from resolv.conf. The hostname in rc.conf sets the machine's own name rather than resolution rules. hosts.allow governs TCP wrappers access control, not name lookup, and a zone file belongs on an authoritative server, not a client.
-
14 Question 14 Single choice Basic BSD Network Administration
A FreeBSD server cannot reach a remote web server. The administrator runs ping 198.51.100.40 and gets replies, but ping www.example.net fails with an unknown host error. The resolver configuration in /etc/resolv.conf lists nameserver 10.0.0.53. The administrator wants the most direct test to isolate the fault between the resolver and the network path, without changing any configuration. Which command is the best next step?
Correct Answer: DExplanationBecause the IP address responds while the name fails, the network path is working and the problem lies in name resolution. dig with @10.0.0.53 queries exactly the configured resolver and shows whether it returns an answer, isolating the resolver as the fault. traceroute depends on a name that already failed to resolve. The routing table and interface state are already shown to be healthy by the successful ping to a numeric address, so checking them does not isolate the DNS fault.
-
15 Question 15 Multiple choice Basic BSD Network Administration
A FreeBSD workstation must obtain its IPv4 address and DNS settings automatically from a DHCP server on the office network. After configuration, the administrator notices the workstation has a valid address but cannot reach external sites by name. The network team states the DHCP server issues the correct options. Which two checks or actions are most appropriate to diagnose and resolve the issue? (Choose two.)
Correct Answer: C, EExplanationifconfig_em0="DHCP" in rc.conf is what tells the client to request an address and options, and networking must be restarted for the change to take effect. Checking resolv.conf confirms that the DNS options from the lease were actually applied, since the address alone is not enough for name lookup. A static nameserver line would be overwritten by the DHCP client and does not fix the cause. The IPv6 forwarding setting is unrelated to resolver behaviour. Mapping individual hosts in /etc/hosts does not scale and does not address the root DNS configuration.
-
16 Question 16 Single choice Basic Unix Skills
A system operator on a FreeBSD machine needs to find all regular files under /var/log that are larger than 10 megabytes and were modified in the last seven days, then list them with their sizes. Some directories contain files that the operator cannot read, and the operator does not want error messages cluttering the output. Which command best meets these requirements?
Correct Answer: CExplanationfind with -type f restricts results to regular files, -size +10M selects those above 10 megabytes, and -mtime -7 picks files modified within seven days. Redirecting standard error to /dev/null suppresses permission messages. Using -mtime +7 selects files older than seven days, which is the reverse of the requirement. -type d restricts results to directories, which is wrong. ls -lR with grep does not filter by size or modification time at all.
-
17 Question 17 Dropdown Basic Unix Skills
A FreeBSD administrator is managing a long-running process whose PID is 4821 and that is consuming excessive memory. The administrator must first send the polite termination request, and only if the process still does not exit should a forced kill be used. The administrator wants the commands to be entered in the right sequence. Complete the commands by selecting the correct value for each blank.
Choose the correct value for each blank.
kill - 4821
sleep 10
kill - 4821Correct Answer:kill -TERM 4821
sleep 10
kill -KILL 4821ExplanationThe TERM signal asks the process to shut down cleanly and gives it a chance to release resources, so it is the appropriate first request. KILL cannot be caught or ignored and is reserved for when TERM is ineffective. HUP is conventionally used to reload configuration rather than to end a process, and INT is the interrupt triggered by Ctrl-C, which many programs handle differently. QUIT and STOP are not appropriate final-stage terminations, and STOP only suspends the process.
These are 17 of the 60 questions in the full 702-100 pack.
Get All 60 QuestionsGet all 60 questions & answers
Full access options for LPI 702-100
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 702-100 Exam (Linux Professional Institute BSD Specialist (version 1.0)) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.