Skip Navigation Links
 

Microsoft - AZ-140: Configuring and Operating Microsoft Azure Virtual Desktop

Sample Questions

Question: 349
Measured Skill: Monitor and maintain an Azure Virtual Desktop infrastructure (10–15%)

You have an Azure subscription that contains an Azure Virtual Desktop deployment. The deployment contains two session hosts.

You need to enable Azure Virtual Desktop Insights for the deployment.

What should you do?

(To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.)

www.cert2brain.com

AIn the subscription: Enable Application Insights
On the session hosts, deploy: The Windows Azure VM Agent
B In the subscription: Enable Application Insights
On the session hosts, deploy: The Azure Connected Machine agent
C In the subscription: Deploy a Log Analytics workspace
On the session hosts, deploy: The Azure Monitor Agent
D In the subscription: Deploy a Log Analytics workspace
On the session hosts, deploy: The Windows Azure VM Agent
E In the subscription: Deploy a SCOM Managed Instance
On the session hosts, deploy: The Azure Connected Machine agent
F In the subscription: Deploy a SCOM Managed Instance
On the session hosts, deploy: The Azure Monitor Agent

Correct answer: C

Explanation:

Azure Virtual Desktop Insights is a dashboard built on Azure Monitor Workbooks that helps IT professionals understand their Azure Virtual Desktop environments.

To start using Azure Virtual Desktop Insights, you need at least one Log Analytics workspace. Use a designated Log Analytics workspace for your Azure Virtual Desktop session hosts to ensure that performance counters and events are only collected from session hosts in your Azure Virtual Desktop deployment.

You use the Azure Monitor Agent to collect information on your Azure Virtual Desktop session hosts.

Reference: Enable Insights to monitor Azure Virtual Desktop



Question: 350
Measured Skill: Monitor and maintain an Azure Virtual Desktop infrastructure (10–15%)

You have an Azure subscription that contains an Azure Virtual Desktop host pool named Pool1 and a Log Analytics workspace named Workspace1. Pool1 forwards diagnostic data to Workspaces1.

You need to query Workspace1 to identify how many times a user named user1©contoso.com connected to the session hosts in Pool1 per day.

How should you complete the query?

(To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.)

www.cert2brain.com

AP1: WVDCheckpoints
P2: countif
B P1: WVDCheckpoints
P2: count
C P1: WVDConnections
P2: countif
D P1: WVDConnections
P2: dcount
E P1: WVDManagement
P2: dcount
F P1: WVDManagement
P2: count

Correct answer: D

Explanation:

Azure Virtual Desktop uses Azure Monitor for monitoring and alerts like many other Azure services. This lets admins identify issues through a single interface. The service creates activity logs for both user and administrative actions.

Connections that don't reach Azure Virtual Desktop won't show up in diagnostics results because the diagnostics role service itself is part of Azure Virtual Desktop. Azure Virtual Desktop connection issues can happen when the user is experiencing network connectivity issues.

The following query list lets you review connection information or issues for a single user. You can run these queries in the Log Analytics query editor. For each query, replace userupn with the UPN of the user you want to look up.

To find all connections for a single user:

WVDConnections
|where UserName == "userupn"
|take 100
|sort by TimeGenerated asc, CorrelationId


To find the number of times a user connected per day:

WVDConnections
|where UserName == "userupn"
|take 100
|sort by TimeGenerated asc, CorrelationId
|summarize dcount(CorrelationId) by bin(TimeGenerated, 1d)


To find session duration by user:

let Events = WVDConnections | where UserName == "userupn";
Events
| where State == "Connected"
| project CorrelationId , UserName, ResourceAlias , StartTime=TimeGenerated
| join (Events
| where State == "Completed"
| project EndTime=TimeGenerated, CorrelationId)
on CorrelationId
| project Duration = EndTime - StartTime, ResourceAlias
| sort by Duration asc

Reference: Send diagnostic data to Log Analytics for Azure Virtual Desktop



Question: 351
Measured Skill: Plan and implement an Azure Virtual Desktop infrastructure (40–45%)

You have an on-premises Hyper-V host named Server1.

You have an Azure subscription.

You plan to deploy Azure Virtual Desktop by using a custom image.

On Server1, you create a virtual machine named CustomImage that has the following configurations:
  • Generation: 2
  • Virtual disk name: ImageC.vhdx
  • Virtual disk type: Dynamically expanding
You build the custom image and generalize the operating system.

You need to prepare the virtual disk to ensure that you can deploy new hosts by using the custom image.

What should you do?

(To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.)

www.cert2brain.com

AConvert the virtual disk to: Dynamically expanding VHD
Store the virtual disk by using: Azure Blob Storage
B Convert the virtual disk to: Dynamically expanding VHD
Store the virtual disk by using: Azure Files
C Convert the virtual disk to: Fixed-size VHD
Store the virtual disk by using: Azure Blob Storage
D Convert the virtual disk to: Fixed-size VHD
Store the virtual disk by using: Azure Container Registry
E Convert the virtual disk to: Fixed-size VHDX
Store the virtual disk by using: Azure Files
F Convert the virtual disk to: Fixed-size VHDX
Store the virtual disk by using: Azure Container Registry

Correct answer: C

Explanation:

Before you upload a Windows virtual machine (VM) from on-premises to Azure, you must prepare the virtual hard disk (VHD or VHDX). Azure supports both generation 1 and generation 2 VMs that are in VHD file format and that have a fixed-size disk. The maximum size allowed for the OS VHD on a generation 1 VM is 2 TB.

You can convert a VHDX file to VHD, convert a dynamically expanding disk to a fixed-size disk, but you can't change a VM's generation.

You can run the following PowerShell command to change the disk to a fixed disk.

Convert-VHD –Path c:\test\MY-VM.vhdx –DestinationPath c:\test\MY-NEW-VM.vhd -VHDType Fixed

Upload the VHD to a blob container in your storage account and use the Create an image page from the Azure Portal to create a managed image that can be used to deploy virtual machines and virtual machine scale sets.

References:

Prepare a Windows VHD or VHDX to upload to Azure

Prepare and customize a VHD image for Azure Virtual Desktop



Question: 352
Measured Skill: Plan and implement an Azure Virtual Desktop infrastructure (40–45%)

You have an Azure Virtual Desktop deployment.

You use Hyper-V to create a virtual machine that runs Windows 11 and has the following configurations:
  • Virtual machine generation: Generation 2
  • Disk type: Dynamically expanding
  • Disk format: VHDX
  • Disk size: 2 TB
You need to prepare the virtual machine before uploading it to Azure.

Which two actions should you perform?

(Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.)

ADecrease the disk size to 1 TB.
B Change the disk type to fixed.
C Change the disk type to differencing.
D Change the disk format to VHD.
E Change the virtual machine generation to generation 1.

Correct answer: B, D

Explanation:

Before you upload a Windows virtual machine (VM) from on-premises to Azure, you must prepare the virtual hard disk (VHD or VHDX). Azure supports both generation 1 and generation 2 VMs that are in VHD file format and that have a fixed-size disk. The maximum size allowed for the OS VHD on a generation 1 VM is 2 TB.

You can convert a VHDX file to VHD, convert a dynamically expanding disk to a fixed-size disk, but you can't change a VM's generation.

You can run the following PowerShell command to change the disk to a fixed disk.

Convert-VHD –Path c:\test\MY-VM.vhdx –DestinationPath c:\test\MY-NEW-VM.vhd -VHDType Fixed

Upload the VHD to a blob container in your storage account and use the Create an image page from the Azure Portal to create a managed image that can be used to deploy virtual machines and virtual machine scale sets.

References:

Prepare a Windows VHD or VHDX to upload to Azure

Prepare and customize a VHD image for Azure Virtual Desktop



Question: 353
Measured Skill: Plan and implement an Azure Virtual Desktop infrastructure (40–45%)

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. Determine whether the solution meets the stated goals.

You have an Azure subscription that contains a virtual network named VNet1, a storage account named storage1, and five Azure Virtual Desktop session hosts. VNet1 and storage1 are in the East US Azure region. The session hosts are connected to VNet1.

In storage1, you create an Azure Files share named share1.

You need to ensure that the session hosts connect to share1 by using the Microsoft backbone network.

Solution: You add a service endpoint to VNet1.

Does this meet the goal?

AYes
B No

Correct answer: A

Explanation:

We should add either a private endpoint to storage1 or a service endpoint to VNet1.

A private endpoint is a network interface that uses a private IP address from your virtual network. This network interface connects you privately and securely to a service that's powered by Azure Private Link. By enabling a private endpoint, you're bringing the service into your virtual network.

Azure virtual network service endpoints provide secure and direct connectivity to Azure services over an optimized route through the Azure backbone network. These endpoints allow you to secure critical Azure service resources exclusively to your virtual networks, enabling private IP addresses to reach Azure services without requiring public IP addresses.

References:

Azure virtual network service endpoints

What is a private endpoint?

Service Endpoints vs Private Endpoints





 
Tags: exam, examcollection, exam simulation, exam questions, questions & answers, training course, study guide, vce, braindumps, practice test
 
 

© Copyright 2014 - 2025 by cert2brain.com