CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux administrator is configuring a service named webapp.service that depends on a remote NFS share. This share must be mounted at /srv/data before the service can start. Using a traditional /etc/fstab entry for this mount causes significant delays during the system boot process if the NFS server is unavailable. Which of the following is the BEST systemd-native approach to ensure the webapp.service only attempts to start after the NFS share is successfully mounted, while also preventing long boot delays?

  • Add the x-systemd.automount option to the /etc/fstab entry for the /srv/data mount point and add Requires=remote-fs.target to webapp.service.

  • Modify the webapp.service unit file to include an ExecStartPre=/usr/bin/mount /srv/data directive to ensure the mount is present before the main process starts.

  • Create a srv-data.mount unit file to define the NFS mount and add Requires=srv-data.mount and After=srv-data.mount to the [Unit] section of webapp.service.

  • Create a custom service unit named mount-nfs.service that contains the ExecStart=/usr/bin/mount /srv/data command, and add Wants=mount-nfs.service to webapp.service.

CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot