Courseiva
Storage ManagementhardMultiple SelectObjective-mapped

LFCS Storage Management Practice Question

Which THREE are valid reasons to use a swap file instead of a swap partition? (Choose three.)

⚠ Common exam trap

It's easy for candidates to assume swap files are always slower than swap partitions, but the question asks for valid reasons to use a swap file, and performance is not one of them; the key is recognizing that swap files offer flexibility (sparse files, resizing, virtualization) at the cost of a slight performance penalty.

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

Can be placed on a filesystem that supports sparse files.

Swap files can be placed on filesystems that support sparse files (e.g., ext4, XFS). A sparse file allocates disk blocks only when data is written, allowing a large swap file to be created without consuming the full physical disk space immediately. This is useful for systems where disk space is at a premium or where swap size needs to be overcommitted.

Answer analysis

Option-by-option breakdown

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

  • Can be placed on a filesystem that supports sparse files.

    Why this is correct

    Sparse files save space until used.

  • Required for hibernation (suspend-to-disk).

    Why it's wrong here

    Hibernation requires a swap partition.

  • Easier to manage in virtualized environments.

    Why this is correct

    Adding a swap file is simpler than modifying virtual disk partitions.

  • Faster performance than swap partition.

    Why it's wrong here

    Swap files may have slightly more overhead due to filesystem layer.

  • Easier to resize without repartitioning.

    Why this is correct

    Swap files can be easily resized by removing and recreating with new size.

About these practice questions

One of 507 original LFCS practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.