Curated

System Management

0 votes

Questions206

  1. Question 151

    System Management

    A user runs ls /nonexistent | wc -l in Bash. What appears on the terminal?

    Show the answer

    Correct answerC. The error message from ls and the count 0 from wc

    AWhy not this: The error goes to stderr, which the pipe does not carry, so wc never sees it; that would need 2>&1 or |&.

    BWhy not this: The pipe does not discard stderr; it simply is not connected to it, so the error still reaches the terminal.

    CWhy this is right: The pipe carries only stdout, so the error from ls goes to the terminal and wc counts 0 lines.

    DWhy not this: wc still prints a count when its input is empty, so it shows 0 rather than nothing.

    A pipe connects stdout of the first command to stdin of the second. Stderr is not connected to the pipe unless it is redirected with 2>&1 or |&, so the error goes to the terminal and wc reports 0.

    Open this question
  2. Question 152

    System Management

    A deployment script, ./deploy.sh, writes progress messages to standard output and problems to standard error. An administrator wants to filter both streams through grep for the word "failed". Which TWO commands do this? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. ./deploy.sh 2>&1 | grep failedD. ./deploy.sh |& grep failed

    Both 2>&1 before the pipe and the Bash shorthand |& merge stderr into stdout, so grep receives both streams. A plain pipe passes only stdout, so error messages bypass grep and go to the terminal.

    Open this question
  3. Question 153

    System Management

    A nightly script runs rsync and must overwrite /var/log/sync.log with everything rsync prints, both normal output and error messages, in the order it was produced. Which command does this?

    Show the answer

    Correct answerA. rsync -a /data /mnt/backup > /var/log/sync.log 2>&1

    Redirecting stdout to the file first and then duplicating stderr onto it with 2>&1 sends both streams to the file. Reversing the order sends stderr to the terminal, because 2>&1 copies stdout's destination at that moment, before the file redirect is applied.

    Open this question
  4. Question 154

    System Management

    A non-root user runs find / -name "*.conf" and the matches are buried among many "Permission denied" messages. The user wants the matching paths to remain on the terminal and the error messages to disappear. Which command does this?

    Show the answer

    Correct answerB. find / -name "*.conf" 2> /dev/null

    File descriptor 2 is stderr, so 2> /dev/null discards only the error messages and leaves stdout on the terminal. Redirecting stdout to /dev/null does the opposite and hides the matches while the errors remain.

    Open this question
  5. Question 155

    System Management

    The file /opt/app/env.sh contains export statements that set DB_HOST and DB_PORT. After an administrator runs /opt/app/env.sh, echo $DB_HOST in the same terminal prints nothing. Which command makes the variables available in the current shell?

    Show the answer

    Correct answerD. source /opt/app/env.sh

    source runs the file's commands inside the current shell, so the exports persist. Running the script directly or through bash starts a child process, and its variables vanish when it exits. nohup and & also run it as a separate process.

    Open this question
  6. Question 156

    System Management

    An administrator runs mkdir -p /srv/projects/alpha and then wants to change into that new directory without retyping the path. Which command does this using history expansion?

    Show the answer

    Correct answerD. cd !$

    !$ expands to the last argument of the previous command, here /srv/projects/alpha. !^ expands to the first argument, which is -p, so cd would fail. !* inserts all arguments, and !! inserts the whole previous command.

    Open this question
  7. Question 157

    System Management

    The file dos.txt has DOS-style CR+LF line endings. Which command writes a copy named unix.txt with Unix-style line endings?

    Show the answer

    Correct answerA. tr -d '\r' < dos.txt > unix.txt

    AWhy this is right: Deleting every carriage return leaves the LF that ends each Unix line.

    BWhy not this: Deleting \n removes the line feeds, joining the file into one line that still holds CRs.

    CWhy not this: Turning each CR into LF gives two line feeds per line, so a blank line follows each one.

    DWhy not this: tr takes no file name argument, and -s only squeezes repeats instead of removing CRs.

    DOS files end lines with CR+LF. tr -d deletes the listed characters, so removing \r leaves only the LF that Unix tools expect. tr reads only standard input, which is why the file is redirected with <.

    Open this question
  8. Question 158

    System Management

    An administrator must delete all .bak files under /srv/uploads (none have whitespace in their names) and save the list of deleted paths to /tmp/bak.lst in a single pipeline. Which command does this?

    Show the answer

    Correct answerC. find /srv/uploads -name '*.bak' | tee /tmp/bak.lst | xargs rm

    tee writes the path list to the file and passes it unchanged to xargs, which supplies the paths to rm as arguments. Placing tee after xargs rm captures only rm's output, which is empty. rm ignores standard input, so it cannot take the paths from a pipe.

    Open this question
  9. Question 159

    System Management

    In a bash session, alias rm='rm -i' is defined. An administrator must delete /tmp/old.log once without the interactive prompt, and the alias must remain defined for the rest of the session. Which command does this?

    Show the answer

    Correct answerD. \rm /tmp/old.log

    A leading backslash makes bash skip alias expansion for that one invocation, so the alias stays defined. unalias removes the alias for the rest of the session. !rm re-runs a previous history entry and is not alias handling, and rm has no --no-alias option.

    Open this question
  10. Question 160

    System Management

    A junior administrator opens /etc/hosts in vim, adds a new entry, and then realizes the edit was made in the wrong file. The administrator wants to leave vim immediately, discard every change made in this session, and keep the file exactly as it was on disk. While in command mode, which key sequence should the administrator enter?

    Show the answer

    Correct answerA. :q!

    :q! quits vim and discards unsaved changes, leaving the file on disk untouched. :w! forces a write, so it would save the unwanted edit to the file rather than discard it, and it also does not exit the editor.

    Open this question
  11. Question 161

    System Management

    An administrator wants to back up every file ending in .conf under /etc into a single cpio archive named /backup/conf.cpio. The list of files must come from a search of the directory tree. Which command does this?

    Show the answer

    Correct answerB. find /etc -name "*.conf" | cpio -o > /backup/conf.cpio

    In copy-out mode (-o), cpio reads file names from standard input and writes the archive to standard output, so find supplies the list and the redirect saves the archive. Copy-in mode (-i) reads an existing archive from standard input to extract it, so it cannot create one.

    Open this question
  12. Question 162

    System Management

    An administrator must archive the /home/user1 directory into a gzip-compressed tar file at /backup/user1.tar.gz. The member names must begin with user1/ so the archive can be extracted under any directory on another server. Which command does this?

    Show the answer

    Correct answerB. tar -czf /backup/user1.tar.gz -C /home user1

    The -C option makes tar change to /home before reading user1, so members are stored as user1/... and can be extracted anywhere. Naming /home/user1 directly creates the archive but stores the members as home/user1/..., which would recreate the extra home directory level on extraction.

    Open this question
  13. Question 163

    System Management

    An administrator copies /tmp/db_dump.sql.xz to a recovery server. The file must be decompressed to /tmp/db_dump.sql, and the original .xz file must stay in place for auditing. Which command does this?

    Show the answer

    Correct answerD. xz -dk /tmp/db_dump.sql.xz

    xz -d decompresses .xz files and -k keeps the input file. gunzip and bunzip2 only handle gzip and bzip2 formats, so they reject the .xz suffix. xz -z compresses rather than decompresses, so it would skip a file that already has the .xz suffix.

    Open this question
  14. Question 164

    System Management

    An administrator has an existing nightly job that runs rsync -av --delete /srv/data/ bk01:/srv/backup/data/. Before the next run, the administrator wants to see which files would be copied and which would be removed on bk01, without changing anything. Which command does this?

    Show the answer

    Correct answerC. rsync -avn --delete /srv/data/ bk01:/srv/backup/data/

    The -n (--dry-run) option makes rsync report what it would transfer and delete without making changes. --progress only displays transfer progress while the sync still runs, so deletions would happen; -c changes comparison to checksums and --partial keeps interrupted files, neither of which previews.

    Open this question
  15. Question 165

    System Management

    A rotated log, /var/log/app.log.3.gz, has been compressed by logrotate. An administrator needs the number of lines containing the word timeout in it, without first decompressing the file to disk. Which command does this?

    Show the answer

    Correct answerC. zgrep -c "timeout" /var/log/app.log.3.gz

    zgrep decompresses the data on the fly and applies grep, so -c returns the count of matching lines. Piping zcat into wc -l counts every line in the file rather than only matches; plain grep would search the compressed bytes, and gzip -l only reports compression statistics.

    Open this question
  16. Question 166

    System Management

    A backup host, bk01, accepts SSH connections only on TCP port 2222. An administrator must copy /data/ to /backup/data/ on bk01 with rsync, preserving permissions, ownership and timestamps. Which command does this?

    Show the answer

    Correct answerD. rsync -a -e "ssh -p 2222" /data/ bk01:/backup/data/

    The -e option sets the remote shell command, so "ssh -p 2222" makes rsync tunnel over SSH on the nonstandard port. --port applies only to connections to an rsync daemon, which is why it is tempting but wrong here; -p preserves permissions and takes no port, and -P means --partial --progress.

    Open this question
  17. Question 167

    System Management

    Before changing the partition table on a BIOS-based server, an administrator wants a backup of only the first 512-byte sector of /dev/sda, which holds the boot code and the MBR partition table. The copy must be saved as /root/mbr.bak. Which command does this?

    Show the answer

    Correct answerC. dd if=/dev/sda of=/root/mbr.bak bs=512 count=1

    With if=/dev/sda as the source, bs=512 and count=1 copy exactly one 512-byte block, the MBR. Omitting count copies the entire disk, which is the tempting mistake; skip=1 would discard the first sector, and swapping if and of would overwrite the disk.

    Open this question
  18. Question 168

    System Management

    A partition image was saved earlier with dd if=/dev/sdb1 bs=4M | gzip > /backup/sdb1.img.gz. The administrator must now restore it to the same-sized partition /dev/sdc1. Which command does this?

    Show the answer

    Correct answerC. zcat /backup/sdb1.img.gz | dd of=/dev/sdc1 bs=4M

    zcat decompresses the image to standard output, and dd writes the raw data to /dev/sdc1 as its output file. Reading the .gz file directly with dd would write compressed bytes to the partition, which is the tempting shortcut; gzip -c would compress it again, and swapping if and of would overwrite the backup.

    Open this question
  19. Question 169

    System Management

    An engineer is explaining the division of work between KVM and QEMU on a Linux host with a CPU that supports hardware virtualization extensions. Which statement BEST describes the role KVM plays?

    Show the answer

    Correct answerB. It provides a kernel-level interface that lets user-space software run guest code directly on the CPU

    KVM is a kernel module that turns Linux into a hypervisor by exposing hardware virtualization (via /dev/kvm) so guest code runs directly on the CPU. Image creation and conversion is done by qemu-img, and device emulation is done by QEMU, not KVM.

    Open this question
  20. Question 170

    System Management

    A systems administrator is documenting how virtual machines run on a Linux host that uses QEMU with KVM. A colleague asks which component is responsible for emulating the virtual machine's disk controllers, network cards and other devices in user space. Which component performs this role?

    Show the answer

    Correct answerD. The QEMU process, which emulates the guest's hardware devices

    QEMU runs as a user-space process for each guest and emulates devices such as disk controllers and NICs. KVM is tempting, but the kernel module only exposes the CPU and memory virtualization features of the hardware and does not emulate devices.

    Open this question
  21. Question 171

    System Management

    An administrator runs virsh suspend db01 on a running KVM guest so the host can briefly free CPU time. virsh list --all then shows the guest's state. Which description matches that state?

    Show the answer

    Correct answerD. Paused: the vCPUs stop running, and the guest's memory stays allocated in host RAM.

    virsh suspend moves the domain to the paused state: vCPU execution stops while the QEMU process and the guest's RAM remain on the host. Saving memory to disk and exiting QEMU describes virsh save or managedsave, which leaves the guest shut off.

    Open this question
  22. Question 172

    System Management

    Running qemu-img info on a guest's disk shows file format qcow2, virtual size 50 GiB and disk size 4.2 GiB. The administrator wants to know how the image is currently stored. Which statement is correct?

    Show the answer

    Correct answerC. The guest sees a 50 GiB disk, and the file uses about 4.2 GiB on the host because unwritten space is not allocated.

    Virtual size is what the guest sees; disk size is the space actually allocated on the host, so a thin-provisioned qcow2 file stays small until data is written. The compression explanation is tempting, but the gap comes from unallocated space, not compression. A backing file would be listed separately.

    Open this question
  23. Question 173

    System Management

    An administrator is converting and resizing VM disk images with qemu-img. Which three statements are correct? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. qemu-img convert writes the result to a new file and leaves the source image unchanged.B. Before shrinking an image with qemu-img resize --shrink, the filesystem and partitions inside the guest must already be reduced.F. After qemu-img resize grows an image, the guest's partition and filesystem must still be extended separately.

    Convert creates a separate output file, shrinking can destroy data unless the guest's contents are reduced first, and growing the virtual disk does not grow the partitions or filesystem inside it. The -f option names the source format; -O names the output format.

    Open this question
  24. Question 174

    System Management

    An engineer runs a KVM guest on an Intel host and installs libvirt inside it to host test VMs. Inside the guest, /dev/kvm does not exist and virt-host-validate reports that hardware virtualization is unavailable. Which host-side change is needed?

    Show the answer

    Correct answerC. Set the kvm_intel module's nested parameter to 1 and expose the vmx CPU flag to the guest, such as with host-passthrough.

    Nested virtualization requires the host's KVM module to allow nesting and the guest CPU to expose the hardware virtualization flag (vmx on Intel). VirtIO drivers improve guest I/O performance but do not provide virtualization extensions, and kvm_amd does not apply to an Intel host.

    Open this question
  25. Question 175

    System Management

    A team is migrating a guest from VMware to KVM. They have a disk image named app.vmdk and want a qcow2 copy named app.qcow2 that KVM can use, with the original file left in place. Which command does this?

    Show the answer

    Correct answerD. qemu-img convert -f vmdk -O qcow2 app.vmdk app.qcow2

    qemu-img convert reads the source format given by -f and writes a new image in the format given by -O, leaving the source untouched. The reversed command is tempting, but it would treat the VMDK as qcow2 and write VMDK output.

    Open this question
  26. Question 176

    System Management

    A shut-off KVM guest named web01 is configured as a standard web server. An administrator needs a second, independent guest named web02 with its own copy of the disk and a new MAC address and UUID. Which command BEST accomplishes this?

    Show the answer

    Correct answerC. virt-clone --original web01 --name web02 --auto-clone

    virt-clone copies the disk images and generates a new name, UUID and MAC address for the new guest. Redefining from a dumped XML file reuses the original name, UUID and disk path, so it creates a conflict instead of a clone.

    Open this question
  27. Question 177

    System Management

    An administrator is about to apply a kernel update to a running KVM guest named app01. A quick rollback must be possible if the update fails, and the guest must keep running. Which command BEST captures the guest's current state?

    Show the answer

    Correct answerA. virsh snapshot-create-as app01 pre-update

    A libvirt snapshot records a point-in-time state of the guest that can later be restored with snapshot-revert, while it keeps running. The save command writes the guest's state to a file but stops the guest, and it is not a managed rollback point.

    Open this question
  28. Question 178

    System Management

    A running KVM guest named app01 uses a qcow2 virtual disk attached as vda, currently 40 GiB. The disk must grow to 100 GiB without shutting the guest down. Which command BEST accomplishes this?

    Show the answer

    Correct answerC. virsh blockresize app01 vda 100G

    The blockresize command asks QEMU to enlarge the attached disk of a running guest, after which the partition and filesystem inside the guest can be grown. Running qemu-img on an image in use risks corruption and does not notify the running guest.

    Open this question
  29. Question 179

    System Management

    Before a baseline VM image is used as a template for clones, which data should be removed so that each clone generates its own on first boot?

    Show the answer

    Correct answerA. The SSH host keys and the /etc/machine-id value

    AWhy this is right: Host keys and machine-id identify one machine, so clones must regenerate them to be unique.

    BWhy not this: Fstab entries are needed to boot and are the same for every clone, so they stay.

    CWhy not this: Repository GPG keys are shared trust anchors, not per-machine identity, so every clone keeps them.

    DWhy not this: Service unit files are shared configuration; removing them would break the clones.

    Generalizing a template, for example with virt-sysprep, removes per-machine identity so each clone creates unique keys and IDs on first boot. Leaving them in place gives every clone the same identity.

    Open this question
  30. Question 180

    System Management

    A KVM guest named app01 is running with 2 vCPUs. Its maximum vCPU count is already set to 8 in the persistent configuration. Load has increased, and the guest must have 4 vCPUs now and after future reboots, without a restart. Which command BEST accomplishes this?

    Show the answer

    Correct answerC. virsh setvcpus app01 4 --live --config

    Using --live with --config changes the running vCPU count and also persists it for later boots. Using --config alone only changes the stored definition, so the guest keeps 2 vCPUs until it is restarted.

    Open this question
  31. Question 181

    System Management

    A team runs a latency-sensitive Linux database directly on bare metal instead of in a virtual machine. Which trade-off does this choice bring?

    Show the answer

    Correct answerB. Direct hardware access with no hypervisor overhead, but less consolidation

    AWhy not this: Live migration needs a hypervisor; bare metal has none, and it has less I/O overhead, not more.

    BWhy this is right: With no hypervisor the database gets direct device access, but the server cannot easily host other workloads.

    CWhy not this: Consolidation is the strength of VMs; bare metal gives direct access to NICs and storage controllers.

    DWhy not this: Hypervisor snapshots are a VM feature; a bare-metal install has no hypervisor to take them.

    Bare metal runs on the hardware with no hypervisor, giving the lowest overhead and direct device access, but one OS per server limits consolidation. VMs share hardware among guests, which is why they consolidate better but add overhead.

    Open this question
  32. Question 182

    System Management

    A company runs ten lightly used Linux services, each on its own physical server that averages 10 percent CPU utilization. Management wants to cut hardware costs and be able to move workloads between hosts during maintenance without downtime. Which approach BEST meets these goals?

    Show the answer

    Correct answerC. Consolidate the services into virtual machines on a smaller cluster of hypervisor hosts

    Virtual machines let many underused workloads share fewer hosts and support live migration between hypervisors. Adding RAM or newer or minimal bare metal servers does not improve utilization or provide workload mobility.

    Open this question
  33. Question 183

    System Management

    A systems administrator runs several KVM guests on a Linux host for a development team. The guests must reach the internet to download packages, but the corporate network team does not want the guests to receive addresses on the physical LAN or be reachable directly from other LAN hosts. Which VM network type BEST meets these requirements?

    Show the answer

    Correct answerB. NAT

    NAT places guests on a private subnet and translates their traffic to the host's address, so they reach the internet without being directly reachable from the LAN. Bridged is tempting, but it attaches guests to the physical LAN with LAN addresses, which violates the requirement.

    Open this question
  34. Question 184

    System Management

    An administrator at a Linux workstation wants to view and manage the guests on a remote KVM host using virt-manager. SSH access to the host is already working. Which action in virt-manager accomplishes this?

    Show the answer

    Correct answerC. Use File > Add Connection, select the QEMU/KVM hypervisor, and connect to the remote host over SSH

    virt-manager is a libvirt front end, and Add Connection lets it manage a remote QEMU/KVM host over SSH. Importing a disk image creates a new guest on the connected host and does not add a connection to another host.

    Open this question
  35. Question 185

    System Management

    A KVM guest named app01 has hung. It no longer responds to network requests or console input, and an earlier graceful shutdown request had no effect. The administrator must power it off immediately and keep its libvirt definition and disk image so it can be started again later. Which command should be used?

    Show the answer

    Correct answerD. virsh destroy app01

    virsh destroy forcibly stops the running domain, like pulling the power, and leaves its persistent definition and disks intact. virsh shutdown only sends a graceful ACPI request, which a hung guest can ignore.

    Open this question
  36. Question 186

    System Management

    A guest named db01 is defined on host kvm1. Its disk image sits on shared storage at the same path on host kvm2. The administrator wants db01 defined on kvm2 so that the definition persists across libvirtd and host restarts. Which procedure achieves this?

    Show the answer

    Correct answerA. Run virsh dumpxml on kvm1, copy the XML file to kvm2, then run virsh define on kvm2

    virsh dumpxml exports the domain definition, and virsh define on the new host stores it as a persistent domain. virsh create starts the guest as a transient domain, so its definition disappears once it stops.

    Open this question
  37. Question 187

    System Management

    A junior administrator asks why the bootloader loads an initial RAM disk (initrd) along with the kernel image. Which three statements correctly describe the purpose of the initrd? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. It supplies the drivers and modules needed to reach the real root filesystem when they are not built into the kernelB. It provides a temporary root filesystem in memory for the kernel to use during early bootE. It runs early-userspace scripts that locate and mount the real root filesystem before handing control to init

    The initrd is a temporary in-memory root holding the modules and early scripts that find and mount the real root, then hand off to init. Bootloader menu entries live in the bootloader configuration, not the initrd, which is a common mix-up.

    Open this question
  38. Question 188

    System Management

    An administrator is troubleshooting a slow boot on a Linux server. The console shows only a splash screen and no kernel messages, and the kernel command line contains "quiet splash". Which change to the kernel parameters makes the kernel's boot messages appear on the console?

    Show the answer

    Correct answerC. Remove quiet and splash from the kernel command line

    The quiet parameter suppresses most kernel messages during boot, and splash shows a graphical screen instead, so removing both exposes the text output. nomodeset only disables kernel video mode setting and does not control message verbosity.

    Open this question
  39. Question 189

    System Management

    An administrator is correlating a kernel disk error with entries in an application log that uses wall-clock times. The default dmesg output prefixes each line with the number of seconds since boot. Which command displays the kernel ring buffer with human-readable timestamps?

    Show the answer

    Correct answerB. dmesg -T

    The -T (--ctime) option converts the seconds-since-boot prefixes into human-readable date and time. The -x option only decodes the facility and priority level into text and leaves the timestamps unchanged, so it does not help with log correlation.

    Open this question
  40. Question 190

    System Management

    An ext4 filesystem on the unmounted partition /dev/sdb1 may be damaged. The administrator wants a report of any errors found, but nothing on the filesystem may be modified. Which command does this?

    Show the answer

    Correct answerA. fsck.ext4 -n /dev/sdb1

    fsck.ext4 -n opens the filesystem read-only and answers no to every repair prompt, so errors are reported without changes. fsck -N is tempting but only prints what would be run and performs no check at all. The -y and -p options apply repairs.

    Open this question
  41. Question 191

    System Management

    An administrator must format the partition /dev/sdd1 on a removable drive so that Windows hosts can read it. The filesystem must be FAT32 and carry the label TRANSFER. Which command does this?

    Show the answer

    Correct answerB. mkfs.vfat -F 32 -n TRANSFER /dev/sdd1

    mkfs.vfat uses -F 32 to select FAT32 and -n to set the volume label. The -L option is the label flag for ext4 and XFS tools, not for mkfs.vfat. The -F 16 option builds FAT16, and ext4 is not natively readable by Windows.

    Open this question
  42. Question 192

    System Management

    The root filesystem on a server is 95% full. /home and /var are separate filesystems on their own partitions. The administrator wants the size of each top-level directory, counting only data stored on the root filesystem. Which command does this?

    Show the answer

    Correct answerA. du -xh --max-depth=1 /

    du -x stays on one filesystem, and --max-depth=1 reports each top-level directory, so /home and /var data is not counted. Without -x, du descends into the other mounted filesystems and inflates the totals, even with --apparent-size.

    Open this question
  43. Question 193

    System Management

    A technician must inspect the files on the ext4 partition /dev/sdc1 from a failing disk. The directory /mnt/inspect already exists, the partition is not mounted, and /etc/fstab must not be changed. The data must not be modifiable during the inspection. Which command does this?

    Show the answer

    Correct answerC. mount -o ro /dev/sdc1 /mnt/inspect

    mount takes the device first and the mount point second, and -o ro attaches the filesystem read-only. The remount option only changes a filesystem that is already mounted, so it cannot attach /dev/sdc1 for the first time.

    Open this question
  44. Question 194

    System Management

    A read-heavy log archive on an ext4 volume generates a metadata write for every file and directory read because access times are updated. The volume must stay writable for new logs. Which mount option removes these writes for both files and directories?

    Show the answer

    Correct answerA. noatime

    noatime stops access-time updates on files and also on directories, since it implies nodiratime, and the volume stays writable. nodiratime alone covers only directories, so file reads would still trigger timestamp writes.

    Open this question
  45. Question 195

    System Management

    An NFSv4 export nfs01:/export/data must be mounted read-only at /mnt/data on every boot. The system must wait for networking before mounting it, and fsck must never be run on it. Which /etc/fstab entry meets these requirements?

    Show the answer

    Correct answerA. nfs01:/export/data /mnt/data nfs4 ro,_netdev 0 0

    An fstab line lists the device (server:/path for NFS), the mount point, the type and the options. _netdev defers the mount until the network is up, and a pass value of 0 skips fsck. A pass value of 2 would schedule fsck on a remote filesystem, which cannot be checked locally.

    Open this question
  46. Question 196

    System Management

    An iperf3 server is already listening on 10.0.0.5. From a client, an administrator must measure throughput in the direction from the server to the client, without starting a server process on the client. Which command does this?

    Show the answer

    Correct answerB. iperf3 -c 10.0.0.5 -R

    The -R option runs iperf3 in reverse mode, so the server sends data to the client over the same connection. -P 4 is tempting, but it only adds parallel streams and the data still flows from client to server.

    Open this question
  47. Question 197

    System Management

    A storage network uses jumbo frames. The interface eth2 is up and must have its MTU set to 9000 immediately. The change does not need to survive a reboot. Which command does this?

    Show the answer

    Correct answerC. ip link set dev eth2 mtu 9000

    MTU is a link-layer property, so ip link set dev eth2 mtu 9000 changes it at runtime. ethtool -s is tempting because it also adjusts link settings, but it sets speed, duplex and autonegotiation, not the MTU.

    Open this question
  48. Question 198

    System Management

    An administrator must find which TCP ports are open on the host 10.0.0.20 and also identify the service and version behind each open port. Which command does this?

    Show the answer

    Correct answerD. nmap -sV 10.0.0.20

    nmap -sV scans ports and probes each open one to determine the service and its version. nmap -O is tempting, but it fingerprints the operating system rather than the services on the open ports.

    Open this question
  49. Question 199

    System Management

    A non-root user must list each hop on the path to 203.0.113.50 and see the path MTU discovered along the way. The user has no elevated privileges. Which command does this?

    Show the answer

    Correct answerB. tracepath 203.0.113.50

    tracepath runs without root privileges, lists the hops and reports the path MTU it discovers. mtr -r is tempting because it also reports per-hop data, but it shows loss and latency statistics and does not report path MTU.

    Open this question
  50. Question 200

    System Management

    An administrator wants to see the delegation chain that resolves www.example.com, starting at the root servers and following each referral down to the authoritative server. Which command does this?

    Show the answer

    Correct answerB. dig +trace www.example.com

    dig +trace starts at the root servers and follows each referral until it reaches the authoritative answer. dig +nssearch is tempting, but it only queries each authoritative name server for the zone's SOA record and does not walk the delegation from the root.

    Open this question