Courseiva
mediumMultiple ChoiceObjective-mapped

CV0-004 Swap file Practice Question

A cloud administrator notices that a virtual machine is running out of memory and causing performance issues. The VM is part of a production web application. Which of the following actions should the administrator take FIRST to resolve the issue without impacting availability?

⚠ Common exam trap

Candidates often think live migration resolves memory pressure, but it only changes the host, not the VM's memory allocation. The correct first step is to add virtual memory via a swap file, which can be done without downtime.

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

Add a swap file to the VM's virtual disk.

Adding a swap file to the VM's virtual disk provides virtual memory, which can be allocated while the VM is running and does not require downtime. This is the first action to relieve memory pressure without impacting availability. Live migration (D) does not increase the VM's memory allocation, so it does not resolve the issue. Stopping the VM (A) causes downtime. Taking a snapshot (C) adds overhead and increasing memory may still require a restart.

Answer analysis

Option-by-option breakdown

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

  • Stop the VM and increase its memory allocation, then restart it.

    Why it's wrong here

    Stopping the VM to increase memory causes downtime, impacting availability.

  • Add a swap file to the VM's virtual disk.

    Why this is correct

    Adding a swap file provides virtual memory without downtime, relieving memory pressure.

  • Take a snapshot of the VM and then increase memory allocation.

    Why it's wrong here

    Taking a snapshot adds overhead and increasing memory may still require a restart, impacting availability.

  • Perform a live migration of the VM to a host with more memory.

    Why it's wrong here

    Live migration moves the VM to a host with more physical memory but does not increase the VM's allocated memory, so it does not resolve the issue.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

One of 977 original CV0-004 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 CV0-004 practice question is part of Courseiva's free CompTIA 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 CV0-004 exam.