702-100 Sample Questions & Answers
Installing and managing BSD software ties with everyday system administration like user accounts and scheduled jobs for the top weight, alongside partitioning and disk labels, basic network configuration and troubleshooting, and core Unix shell skills.
Launch the full 702-100 simulator →Showing 10 of 20 free samples.
- Question 1IntermediateSelect 2
715: Basic Unix Skills · 715.1 Use the Shell and Work on the Command Line
A consultant is tasked with auditing a mixed environment of FreeBSD, OpenBSD, and NetBSD servers. They need to create a script that reliably identifies the specific BSD variant and its release version on each machine. Which combination of commands would be the most effective and portable across all three platforms for this task? (Select TWO).
Show answer & explanation
Correct answers: A, C
uname -ais a standard POSIX command available on all three BSD variants. It prints all available system information, including the operating system name, hostname, release level, version, and machine hardware name, making it a reliable first step for identification.The
sysctlutility is fundamental to all BSDs for querying kernel state. Thekern.versionMIB specifically contains a detailed string with the OS name, release, and build information. Usingsysctl -n kern.versionprovides this data in a clean, scriptable format across FreeBSD, OpenBSD, and NetBSD. - Question 2Intermediate
712: Storage Devices and BSD Filesystems · 712.6 Find Files and BSD Directory Layout
An administrator is trying to find all files in the
/var/logdirectory on a FreeBSD system that have been modified in the last 24 hours and contain the case-insensitive string "error". Which of the following commands will accomplish this most efficiently?Show answer & explanation
Correct answer: C
This command correctly combines
findandgrep.find /var/log -mtime -1 -type flocates all regular files (-type f) in/var/logmodified within the last 24 hours (-mtime -1). The-exec grep -il "error" {} +part is the most efficient way to process the results. It executesgrepwith-i(case-insensitive) and-l(list filenames only), passing multiple filenames found byfind({}) at once (+) to a singlegrepcommand, which is much more efficient than executinggrepfor every single file. - Question 3Beginner
712: Storage Devices and BSD Filesystems · 712.2 Create File Systems and Maintain Integrity
A new administrator is working on an OpenBSD server and notices that the root filesystem is nearly full. They need to identify which subdirectories within
/are consuming the most space. Which command provides a human-readable summary of disk usage for the immediate subdirectories of the root directory?Show answer & explanation
Correct answer: B
The
ducommand estimates file space usage. The-sflag provides a summary for each argument, and-hmakes the output human-readable (e.g., KB, MB, GB). The glob/*expands to all files and directories directly under the root/, sodu -sh /*will calculate and display the total size of each top-level directory individually, allowing the administrator to quickly identify the largest consumers of space. - Question 4Intermediate
711: BSD Installation and Software Management · 711.2 BSD Software and Package Management
True or False: In a default OpenBSD installation, the
pkg_addcommand will automatically use a CDN mirror for fetching packages without any manual configuration of mirror paths.Show answer & explanation
Correct answer: A
True. Since OpenBSD 6.0, the
pkg_addutility is configured by default to usehttps://cdn.openbsd.orgfor fetching packages. This simplifies the initial setup process as administrators no longer need to manually edit/etc/installurlto point to a suitable mirror. - Question 5Intermediate
713: Basic BSD System Administration · 713.3 Maintain System Time
A research institution is deploying a fleet of NetBSD servers for data analysis. The lead architect has mandated that all servers must synchronize their time with the institution's internal stratum 1 NTP servers. The administrator needs to configure the NTP client daemon. In which file should the list of internal NTP servers be primarily configured on a NetBSD system?
Show answer & explanation
Correct answer: A
The standard configuration file for the
ntpddaemon on NetBSD (and most other Unix-like systems, including FreeBSD) is/etc/ntp.conf. This file is used to specify the upstream time servers, restrict access, and configure other operational parameters of the NTP daemon. - Question 6Intermediate
713: Basic BSD System Administration · 713.1 Manage User Accounts and Groups
An administrator on a FreeBSD 13 system is using the
pwcommand to create a new user. They need to add the user to thewheelandwebdevgroups, set their login shell to/bin/csh, and define their home directory as/usr/home/newdev. Which of the following commands correctly accomplishes all these tasks in a single operation?Show answer & explanation
Correct answer: B
The
pwcommand is the standard utility for user and group management in FreeBSD. The correct syntax ispw useradd [username]. The-Gflag specifies supplementary groups. The-sflag sets the login shell. The-dflag sets the home directory, and-mis crucial as it creates the home directory if it doesn't exist. The-gflag (lowercase) sets the primary group, not supplementary groups. - Question 7Intermediate
714: Basic BSD Network Administration · 714.3 Basic Network Troubleshooting
A network administrator is troubleshooting a connectivity issue to a remote server from a NetBSD machine. They suspect a routing problem or a firewall blocking packets somewhere along the path. They want to trace the path using ICMP echo packets instead of the default UDP packets. Which command should they use?
Show answer & explanation
Correct answer: C
The
traceroutecommand on BSD systems uses the-I(uppercase i) flag to specify the use of ICMP ECHO_REQUEST packets for probing, instead of the default UDP datagrams. This is often useful for bypassing firewalls that might block UDP but allow ICMP for diagnostics. - Question 8Advanced
711: BSD Installation and Software Management · 711.5 BSD Kernel Parameters and System Security Level
A file named
config.txthas its immutable flag set usingchflags. An administrator, logged in as root, attempts to delete this file but receives a "Permission denied" error. The system is running at the default securelevel. What is the most likely reason for this failure?Show answer & explanation
Correct answer: B
When a BSD system's
kern.securelevelis raised to 1 or higher, certain restrictions are enforced, even for the root user. One of the primary restrictions is that flags on files marked as immutable (schg) or append-only (sappnd) cannot be removed. Therefore, even as root, the administrator cannot unset the flag to delete the file until the system is brought back to single-user mode and the securelevel is lowered. - Question 9IntermediateSelect 2
712: Storage Devices and BSD Filesystems · 712.5 Create and Change Hard and Symbolic Links
A junior administrator is trying to understand the difference between hard links and symbolic links on a FreeBSD filesystem. Which of the following statements accurately describe the properties of hard links? (Select TWO).
Show answer & explanation
Correct answers: B, D
A hard link is a directory entry that points to the same inode as another file. The file's data is only removed from the disk when the inode's link count drops to zero. Deleting one hard link (or the 'original' file) just decrements the link count.
Since a hard link is a pointer to an inode, and inode numbers are unique only within a specific filesystem, a hard link cannot point to an inode on a different filesystem.
- Question 10Advanced
715: Basic Unix Skills · 715.3 Create, Monitor and Kill Processes
You are a consultant for a media company that uses FreeBSD servers for video transcoding. The transcoding application frequently hangs, and you need to terminate it gracefully first, and if that fails after 5 seconds, forcefully terminate it. The process is named
transcode-daemon. Which command sequence best implements this logic?Show answer & explanation
Correct answer: B
This sequence correctly implements the desired logic.
pkill -TERM transcode-daemonsends the TERM signal, which is a graceful shutdown request. The&&operator ensures the rest of the command only runs if thepkillcommand succeeds (i.e., it found and signaled a process).sleep 5waits for five seconds. The finalpkill -KILL transcode-daemonsends the non-ignorable KILL signal to anytranscode-daemonprocess that might still be running. This is a common and robust pattern for service shutdown scripts.
Ready for the real thing?
The full 702-100 simulator has every exam-style question, timed mode, and instant scoring.