Microsoft AZ-140 Exam Practice Questions (P. 4)
- Full Access (290 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #16
You have the Azure Virtual Desktop deployment shown in the following table.

You plan to deploy a new host pool as shown in the following table.

You need to ensure that you can deploy the host pool.
What should you do?

You plan to deploy a new host pool as shown in the following table.

You need to ensure that you can deploy the host pool.
What should you do?
- AAdd a lock to the existing host pool.
- BStop and deallocate one of the currently deployed virtual machines.
- CSubmit a support request for service and subscription limits.Most Voted
- DChange the proposed virtual machine size for the session hosts to D4s_v3.
Correct Answer:
C
Reference:
https://docs.microsoft.com/en-us/azure/azure-portal/supportability/per-vm-quota-requests
C
Reference:
https://docs.microsoft.com/en-us/azure/azure-portal/supportability/per-vm-quota-requests
send
light_mode
delete
Question #17
You have an Azure subscription that contains 500 users. The users are assigned Microsoft Office 365 E1 licenses.
You deploy an Azure Virtual Desktop solution that contains Windows 10 multi-session hosts and streams a custom remote app named App1.
You need to ensure that the users are licensed to stream App1. The solution must minimize costs.
Which license should you use?
You deploy an Azure Virtual Desktop solution that contains Windows 10 multi-session hosts and streams a custom remote app named App1.
You need to ensure that the users are licensed to stream App1. The solution must minimize costs.
Which license should you use?
- AMicrosoft 365 E5
- BOffice 365 E3
- Ca Remote Desktop Services (RDS) client access license (CAL)
- DWindows 10 Enterprise E3Most Voted
Correct Answer:
D
App-V client. The App-V client must be enabled on any client device on which apps will be run from the App-V server. These will be the Windows 10/11 Enterprise
E3 devices.
Reference:
https://docs.microsoft.com/sv-se/windows/deployment/windows-10-enterprise-e3-overview
D
App-V client. The App-V client must be enabled on any client device on which apps will be run from the App-V server. These will be the Windows 10/11 Enterprise
E3 devices.
Reference:
https://docs.microsoft.com/sv-se/windows/deployment/windows-10-enterprise-e3-overview
send
light_mode
delete
Question #18
DRAG DROP -
You have an Azure subscription that contains a virtual machine named VM1. VM1 runs a customized version of Windows 10 Enterprise.
You generalize the operating system on VM1 and shut down the virtual machine.
You need to deploy additional virtual machines based on an image of VM1 by using the Azure portal.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

You have an Azure subscription that contains a virtual machine named VM1. VM1 runs a customized version of Windows 10 Enterprise.
You generalize the operating system on VM1 and shut down the virtual machine.
You need to deploy additional virtual machines based on an image of VM1 by using the Azure portal.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Correct Answer:
Create a managed image from a snapshot using PowerShell.
You can create a managed image from a snapshot of a generalized VM by following these steps:
1. Create an image of a VM in the portal, capture a VM in the portal
2. Go to the Azure portal, then search for and select Virtual machines.
3. Select your VM from the list.
4. On the page for the VM, on the upper menu, select Capture.
5. The Create an image page appears.
6. For Resource group, either select Create new and enter a name, or select a resource group to use from the drop-down list. If you want to use an existing gallery, select the resource group for the gallery you want to use.
7. To create the image in a gallery, select Yes, share it to a gallery as an image version.
8. To only create a managed image, select No, capture only a managed image. The VM must have been generalized to create a managed image. The only other required information is a name for the image.
9. If you want to delete the source VM after the image has been created, select Automatically delete this virtual machine after creating the image. This is not recommended.
10.For Gallery details, select the gallery or create a new gallery by selecting Create new. (Step 1)
11.In Operating system state select generalized or specialized. For more information, see Generalized and specialized images.
12.Select an image definition or select create new and provide a name and information for a new Image definition. (Step 2)
13.Enter an image version number. If this is the first version of this image, type 1.0.0. (Step 3)
14.If you want this version to be included when you specify latest for the image version, then leave Exclude from latest unchecked.
15.Select an End of life date. This date can be used to track when older images need to be retired.
16.Under Replication, select a default replica count and then select any additional regions where you would like your image replicated.
17.When you are done, select Review + create.
18.After validation passes, select Create to create the image.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/capture-image-portal

Create a managed image from a snapshot using PowerShell.
You can create a managed image from a snapshot of a generalized VM by following these steps:
1. Create an image of a VM in the portal, capture a VM in the portal
2. Go to the Azure portal, then search for and select Virtual machines.
3. Select your VM from the list.
4. On the page for the VM, on the upper menu, select Capture.
5. The Create an image page appears.
6. For Resource group, either select Create new and enter a name, or select a resource group to use from the drop-down list. If you want to use an existing gallery, select the resource group for the gallery you want to use.
7. To create the image in a gallery, select Yes, share it to a gallery as an image version.
8. To only create a managed image, select No, capture only a managed image. The VM must have been generalized to create a managed image. The only other required information is a name for the image.
9. If you want to delete the source VM after the image has been created, select Automatically delete this virtual machine after creating the image. This is not recommended.
10.For Gallery details, select the gallery or create a new gallery by selecting Create new. (Step 1)
11.In Operating system state select generalized or specialized. For more information, see Generalized and specialized images.
12.Select an image definition or select create new and provide a name and information for a new Image definition. (Step 2)
13.Enter an image version number. If this is the first version of this image, type 1.0.0. (Step 3)
14.If you want this version to be included when you specify latest for the image version, then leave Exclude from latest unchecked.
15.Select an End of life date. This date can be used to track when older images need to be retired.
16.Under Replication, select a default replica count and then select any additional regions where you would like your image replicated.
17.When you are done, select Review + create.
18.After validation passes, select Create to create the image.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/capture-image-portal
send
light_mode
delete
Question #19
You have an Azure Virtual Desktop deployment that contains an Azure compute gallery. The Azure compute gallery contains an image definition named
Definitions Definitionl contains the following image versions:
* 1.0.0
* 1.1.0
* 1.2.0
You need to ensure that when a virtual machine is created from the Azure compute gallery, the 1.1.0 image version is used by default.
What should you do?
Definitions Definitionl contains the following image versions:
* 1.0.0
* 1.1.0
* 1.2.0
You need to ensure that when a virtual machine is created from the Azure compute gallery, the 1.1.0 image version is used by default.
What should you do?
- ASelect Exclude from latest for image version 1.0.0.
- BSelect Exclude from latest for image version 1.2.0.Most Voted
- CApply a lock to image version 1.1.0.
- DApply a tag named default to image version 1.1.0.
Correct Answer:
B
Updating resources.
Once created, you can make some changes to the gallery resources. These are limited to:
* Azure Compute Gallery:
* Image definition:
* Image version:
Regional replica count -
Target regions -
Exclude from latest -
End of life date -
Note: When you specify to use latest when creating a VM, the latest image is chosen based on the highest MajorVersion, then MinorVersion, then Patch.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/shared-image-galleries
B
Updating resources.
Once created, you can make some changes to the gallery resources. These are limited to:
* Azure Compute Gallery:
* Image definition:
* Image version:
Regional replica count -
Target regions -
Exclude from latest -
End of life date -
Note: When you specify to use latest when creating a VM, the latest image is chosen based on the highest MajorVersion, then MinorVersion, then Patch.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/shared-image-galleries
send
light_mode
delete
Question #20
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.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure Virtual Desktop host pool that contains five session hosts. The session hosts run Windows 10 Enterprise multi-session.
You need to prevent users from accessing the internet from Azure Virtual Desktop sessions. The session hosts must be allowed to access all the required
Microsoft services.
Solution: You configure the RDP Properties of the host pool.
Does this meet the goal?
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure Virtual Desktop host pool that contains five session hosts. The session hosts run Windows 10 Enterprise multi-session.
You need to prevent users from accessing the internet from Azure Virtual Desktop sessions. The session hosts must be allowed to access all the required
Microsoft services.
Solution: You configure the RDP Properties of the host pool.
Does this meet the goal?
- AYes
- BNoMost Voted
Correct Answer:
B
B

Adjusting the RDP properties won't restrict internet access from session hosts. A more effective approach is to modify the Network Security Group (NSG) settings associated with the session hosts. This allows for specific traffic rules to be enforced, effectively blocking internet access while still permitting connections to essential Microsoft services as required. Setting up Azure Firewall or similar configurations could also help, where policies can explicitly control and monitor the flow of traffic.
send
light_mode
delete
All Pages