Exam 702 BSD Specialist Free Sample Questions

Description

Covers BSD installation, software and package management, partitioning, disk labels and filesystem integrity, user account and job scheduling administration, and basic Unix skills.

20 free sample questions256 in the full practice test

Try simulator

702-100 Sample Questions

  1. Question 1

    Intermediate

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

    A system administrator is hardening a new FreeBSD server that will host critical financial data. A primary requirement is to prevent any modifications to kernel modules at runtime, even by the root user, once the system is fully booted. Which configuration in /etc/sysctl.conf will achieve this specific security objective?

    Answer and explanation

    Correct answer: B

    Setting kern.securelevel to 2 provides all the protections of level 1 (such as immutable file flags and preventing writing to raw disk devices) and additionally prevents the loading or unloading of kernel modules. This directly meets the requirement of preventing runtime modifications to kernel modules.

  2. Question 2

    Advanced

    713: Basic BSD System Administration · 713.7 Manage User Sessions

    During a post-incident review of a compromised NetBSD server, an analyst needs to determine the exact commands executed by a specific user, 'rogueuser', during their logged-in sessions. Which command should the analyst use to get the most detailed process accounting information for this purpose?

    Answer and explanation

    Correct answer: D

    The lastcomm utility, when process accounting is enabled, provides detailed information about previously executed commands from the accounting file. Specifying the username rogueuser filters the output to show only commands executed by that user, which is exactly what is needed for the forensic analysis. last shows login sessions, ac shows connect time, and sa summarizes accounting information, but lastcomm lists the actual commands.

  3. Question 3

    Intermediate

    714: Basic BSD Network Administration · 714.4 Configure Client Side DNS

    An administrator is setting up a new OpenBSD firewall. To ensure maximum security and adhere to the principle of least privilege, they want to prevent the resolution of DNS queries for any domain not explicitly listed in /etc/hosts. Which of the following lines, when added to /etc/resolv.conf, will enforce this policy?

    Answer and explanation

    Correct answer: B

    In OpenBSD's /etc/resolv.conf, the lookup directive specifies the sources and order for name resolution. By setting it to lookup file, the system is instructed to ONLY use the /etc/hosts file for lookups and to not query any DNS servers (bind). This effectively blocks external DNS queries and meets the security requirement.

  4. Question 4

    Beginner

    711: BSD Installation and Software Management · 711.2 BSD Software and Package Management

    A developer needs to compile a custom application on a FreeBSD server that has several build-time dependencies. They want to ensure that all required dependencies are installed automatically before the compilation begins, using the native source-based package management system. Which command should be executed from within the application's source directory in the ports tree?

    Answer and explanation

    Correct answer: D

    In the FreeBSD ports system, the make install command will automatically fetch, extract, patch, configure, build, and install the software. Crucially, it also handles dependencies recursively. If a dependency is not found, the ports framework will descend into that dependency's port directory and build and install it first. The install-recursive target is an alias that makes this behavior explicit, but make install is the standard, idiomatic way to achieve this.

  5. Question 5

    Intermediate

    715: Basic Unix Skills · 715.2 Perform Basic File Management

    A systems administrator is scripting a backup solution for a NetBSD server. The script needs to create a compressed archive of the /etc directory. The administrator wants to use tar and pipe its output to xz for high-ratio compression. Which of the following commands correctly achieves this?

    Answer and explanation

    Correct answer: B

    This command correctly uses a standard Unix pipeline. tar -cf - /etc creates an archive of /etc and writes it to standard output (the - filename). The pipe | redirects this standard output to the standard input of the xz command, which compresses the data and writes it to its standard output. Finally, the > redirects the compressed output stream to the specified file /backups/etc.tar.xz. While BSD tar often has integrated compression flags (-J for xz), this pipeline method is the most portable and fundamental way to accomplish the task.

  6. Question 6

    IntermediateMultiple answers

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

    Answer and 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.

  7. Question 7

    Intermediate

    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?

    Answer and 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.

  8. Question 8

    Beginner

    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?

    Answer and 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.

  9. Question 9

    Intermediate

    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.

    Answer and 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.

  10. Question 10

    Intermediate

    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?

    Answer and 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.

Register free for 10 more questions

Or unlock all 256 702-100 questions with explanations, timed mode and flashcards.