AZ-800 · Question #285
You have an Azure subscription. The subscription contains a virtual machine that has the following configurations: - Name: VM1 - Size: Standard DS1 v2 - Operating system: Windows Server 2022…
The correct answer is A. Move Pagefile.sys to the C drive. In Azure VMs, the D drive is reserved by default for the temporary storage disk (ephemeral disk), and Windows places Pagefile.sys on that temporary D drive. To reassign drive letter D to the new persistent data disk (Disk1), you must first relocate Pagefile.sys off of D. Moving…
Question
You have an Azure subscription. The subscription contains a virtual machine that has the following configurations:
- Name: VM1
- Size: Standard DS1 v2
- Operating system: Windows Server 2022 Datacenter: Azure Edition
VM1 contains an OS disk named Disk0 that has the following configurations:
- Size: 127 GB
- Type: Standard SSD
- Redundancy: Locally-redundant storage (LRS)
You perform the following actions:
- From the Azure portal, you add a new data disk named Disk1 to VM1.
- From VM1, you install an app named App1.
You need to ensure that Disk1 will be used as the D drive for VM1. The solution must ensure that data written by App1 to drive D will be retained when VM1 restarts. What should you do first?
Options
- AMove Pagefile.sys to the C drive.
- BFrom Disk Management, change the drive letter assigned to the volume on Disk0.
- CFrom Disk Management, change the drive letter assigned to the volume on Disk1.
- DResize VM1 to Standard DS2 v2.
How the community answered
(63 responses)- A84% (53)
- B5% (3)
- C3% (2)
- D8% (5)
Explanation
In Azure VMs, the D drive is reserved by default for the temporary storage disk (ephemeral disk), and Windows places Pagefile.sys on that temporary D drive. To reassign drive letter D to the new persistent data disk (Disk1), you must first relocate Pagefile.sys off of D. Moving Pagefile.sys to the C drive frees up the D letter so it can be reassigned. After moving Pagefile.sys, you can change the temporary disk's drive letter (e.g., to Z), then assign D to Disk1. Since Disk1 is a managed data disk (not ephemeral), data written to it persists across restarts. Starting with moving Pagefile.sys is the required first step; skipping it would prevent you from changing the temporary disk's drive letter. Resizing the VM is irrelevant to drive letter assignment.
Topics
Community Discussion
No community discussion yet for this question.