Courseiva
Manage Virtual MachinesmediumMultiple ChoiceObjective-mapped

AZ-802 Manage Virtual Machines Practice Question

You want to run a Hyper-V virtual machine inside another virtual machine for testing purposes. After creating the guest VM, you find that you cannot install the Hyper-V role within it. Which PowerShell command must you run on the physical host to enable this capability?

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

Nested virtualization allows you to run Hyper-V inside a guest VM, which is invaluable for lab environments and training. This requires exposing the hardware virtualization extensions of the physical CPU to the guest OS. Administrators must know the specific PowerShell cmdlet and parameter required to enable this advanced virtualization feature.

Answer analysis

Option-by-option breakdown

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

  • Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V

    Why it's wrong here

    This command is used to install the Hyper-V role on a Windows operating system. While it is necessary to run this inside the guest VM eventually, it will fail unless the physical host has first been configured to pass through the virtualization extensions to that specific virtual machine's hardware profile.

  • Set-VMNetworkAdapter -MacAddressSpoofing On

    Why it's wrong here

    MAC address spoofing is often required in nested virtualization to allow the inner VMs to communicate over the network through the outer VM's adapter. However, this command does not enable the CPU's virtualization extensions, which is the primary hardware requirement for installing the Hyper-V role in a guest.

  • Set-VMMemory -DynamicMemoryEnabled $false

    Why it's wrong here

    Nested virtualization in earlier versions of Hyper-V required static memory, but modern versions on Windows Server 2022 are more flexible. Regardless, disabling dynamic memory is not the action that enables the virtualization extensions needed to run a hypervisor within the guest; that requires a specific processor-level configuration.

  • Set-VMProcessor -ExposeVirtualizationExtensions $true

    Why it's wrong here

    This command is the essential step for enabling nested virtualization. By setting the -ExposeVirtualizationExtensions parameter to true for a specific VM, the Hyper-V host passes the hardware-assisted virtualization features (like Intel VT-x or AMD-V) to the guest VM, allowing it to function as a hypervisor itself.

About these practice questions

One of 116 original AZ-802 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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Microsoft exam blueprint

This AZ-802 practice question is part of Courseiva's free Microsoft 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 AZ-802 exam.