702-100 Sample Questions

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.

  1. 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 -a is 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 sysctl utility is fundamental to all BSDs for querying kernel state. The kern.version MIB specifically contains a detailed string with the OS name, release, and build information. Using sysctl -n kern.version provides this data in a clean, scriptable format across FreeBSD, OpenBSD, and NetBSD.

  2. 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/log directory 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 find and grep. find /var/log -mtime -1 -type f locates all regular files (-type f) in /var/log modified within the last 24 hours (-mtime -1). The -exec grep -il "error" {} + part is the most efficient way to process the results. It executes grep with -i (case-insensitive) and -l (list filenames only), passing multiple filenames found by find ({}) at once (+) to a single grep command, which is much more efficient than executing grep for every single file.

  3. 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 du command estimates file space usage. The -s flag provides a summary for each argument, and -h makes the output human-readable (e.g., KB, MB, GB). The glob /* expands to all files and directories directly under the root /, so du -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.

  4. 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_add command 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_add utility is configured by default to use https://cdn.openbsd.org for fetching packages. This simplifies the initial setup process as administrators no longer need to manually edit /etc/installurl to point to a suitable mirror.

  5. 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 ntpd daemon 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.

  6. Question 6Intermediate

    713: Basic BSD System Administration · 713.1 Manage User Accounts and Groups

    An administrator on a FreeBSD 13 system is using the pw command to create a new user. They need to add the user to the wheel and webdev groups, 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 pw command is the standard utility for user and group management in FreeBSD. The correct syntax is pw useradd [username]. The -G flag specifies supplementary groups. The -s flag sets the login shell. The -d flag sets the home directory, and -m is crucial as it creates the home directory if it doesn't exist. The -g flag (lowercase) sets the primary group, not supplementary groups.

  7. 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 traceroute command 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.

  8. Question 8Advanced

    711: BSD Installation and Software Management · 711.5 BSD Kernel Parameters and System Security Level

    A file named config.txt has its immutable flag set using chflags. 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.securelevel is 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.

  9. 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.

  10. 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-daemon sends the TERM signal, which is a graceful shutdown request. The && operator ensures the rest of the command only runs if the pkill command succeeds (i.e., it found and signaled a process). sleep 5 waits for five seconds. The final pkill -KILL transcode-daemon sends the non-ignorable KILL signal to any transcode-daemon process 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.