Courseiva
Storage ManagementmediumMultiple SelectObjective-mapped

LFCS Storage Management Practice Question

Which TWO of the following are valid ways to mount a filesystem with the 'noexec' option to prevent execution of binaries?

⚠ Common exam trap

Candidates often confuse the 'defaults' option in fstab with a safe or neutral setting, not realizing that 'defaults' implicitly includes 'exec', so they incorrectly select option C as a valid way to prevent execution.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

mount -o noexec /dev/sdb1 /mnt/data

The `mount -o noexec /dev/sdb1 /mnt/data` command explicitly sets the `noexec` mount option at runtime, which prevents execution of any binaries on the mounted filesystem. This is a direct and valid way to apply the `noexec` flag without modifying configuration files.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • mount -o noexec /dev/sdb1 /mnt/data

    Why this is correct

    Correct: mount with noexec option.

  • Add 'exec' to the fourth field of /etc/fstab for the entry.

    Why it's wrong here

    Allows execution, opposite of noexec.

  • Add 'defaults' to the fourth field of /etc/fstab for the entry.

    Why it's wrong here

    Default options include exec, not noexec.

  • mount --bind /mnt/data1 /mnt/data2

    Why it's wrong here

    Bind mount does not set noexec unless specified.

  • Add 'noexec' to the fourth field of /etc/fstab for the entry.

    Why this is correct

    Correct: fstab option noexec.

About these practice questions

Courseiva writes every LFCS question from scratch — 507 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LFCS practice question is part of Courseiva's free Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LFCS exam.