Microsoft AZ-104 Practice Questions with Explanations
Free Microsoft AZ-104 practice questions. 144 of them, each with the correct answer, a full explanation, and the reason every other option is wrong.
AZ-104 practice questions
Question 1
Your company has several departments. Each department has a number of virtual machines (VMs). The company has an Azure subscription that contains a resource group named RG1. All VMs are located in RG1. You want to associate each VM with its respective department. What should you do?
- A. Create Azure Management Groups for each department.
- B. Create a resource group for each department.
- C. Assign tags to the virtual machines.
- D. Modify the settings of the virtual machines.
Show answer and explanation ▾
Correct answer: C
Tags are the appropriate mechanism for associating metadata with Azure resources like VMs without restructuring the resource hierarchy. Since all VMs are already in RG1 and the company wants to maintain this structure while simply identifying which department owns each VM, tags provide a lightweight, flexible solution. Tags allow for arbitrary key-value pairs that enable categorization, billing tracking, and automation without moving resources between groups.
Why the other options are wrong:
- A. Management Groups are for managing policies and access across multiple subscriptions and resource groups, not for organizing VMs within a single resource group by department.
- B. Creating a resource group per department would mean moving the VMs out of RG1 and restructuring the deployment, when tags can associate each VM with its department without any move.
- D. Modifying VM settings does not provide a systematic way to track and organize VMs by department for reporting or billing purposes.
Question 2
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) subscription. You want to implement an Azure AD conditional access policy. The policy must be configured to require members of the Global Administrators group to use Multi-Factor Authentication and an Azure AD-joined device when they connect to Azure AD from untrusted locations. Solution: You access the multi-factor authentication page to alter the user settings. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Altering user settings on the multi-factor authentication page configures MFA authentication methods but does not create or configure a conditional access policy. Conditional access policies are specifically configured in Azure AD under the Conditional Access blade, not through the MFA user settings page. The solution addresses only MFA enablement, not the policy requirements for device compliance and location-based restrictions.
Why the other options are wrong:
- A. The MFA settings page is insufficient for implementing conditional access policies, which require explicit policy configuration in the Conditional Access section of Azure AD.
Question 3
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) subscription. You want to implement an Azure AD conditional access policy. The policy must be configured to require members of the Global Administrators group to use Multi-Factor Authentication and an Azure AD-joined device when they connect to Azure AD from untrusted locations. Solution: You access the Azure portal to alter the session control of the Azure AD conditional access policy. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Session controls in conditional access policies manage ongoing session behavior (such as sign-in frequency and browser session lifetime) but do not enforce MFA or device compliance requirements. Session controls are insufficient to meet the requirement of mandating MFA and Azure AD-joined devices. Grant controls are the correct setting for requiring MFA and device compliance checks during access.
Why the other options are wrong:
- A. Session controls do not enforce authentication method or device requirements; they only manage active session characteristics after initial access decisions are made.
Question 4
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) subscription. You want to implement an Azure AD conditional access policy. The policy must be configured to require members of the Global Administrators group to use Multi-Factor Authentication and an Azure AD-joined device when they connect to Azure AD from untrusted locations. Solution: You access the Azure portal to alter the grant control of the Azure AD conditional access policy. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
Grant controls in conditional access policies are exactly where MFA and device compliance requirements are configured. By accessing the Azure portal and modifying the grant control settings, an administrator can require that Global Administrators must satisfy both MFA and Azure AD-joined device conditions when accessing from untrusted locations. This directly addresses all stated requirements.
Why the other options are wrong:
- B. Grant controls are the proper mechanism for enforcing authentication and device requirements in conditional access policies.
Question 5
You are planning to deploy an Ubuntu Server virtual machine to your company's Azure subscription. You are required to implement a custom deployment that includes adding a particular trusted root certification authority (CA). Which of the following should you use to create the virtual machine?
- A. The New-AzureRmVm cmdlet.
- B. The New-AzVM cmdlet.
- C. The Create-AzVM cmdlet.
- D. The az vm create command.
Show answer and explanation ▾
Correct answer: D
The az vm create command from Azure CLI is the appropriate tool for creating custom VM deployments with advanced configurations such as adding trusted root certification authorities. Azure CLI provides the flexibility needed for custom deployments and allows passing parameters for certificate configuration. PowerShell cmdlets like New-AzureRmVm and New-AzVM are less suitable for this scenario as they require more complex scripting for custom certificate installation.
Why the other options are wrong:
- A. New-AzureRmVm is an older cmdlet that has been superseded and is less flexible for custom deployments.
- B. New-AzVM is a PowerShell cmdlet that requires additional scripting steps to configure custom certificates compared to CLI approaches.
- C. Create-AzVM is not a standard Azure PowerShell cmdlet; the correct cmdlet is New-AzVM.
Question 6
Your company has a Microsoft Azure subscription. The company has datacenters in Los Angeles and New York. You are configuring the two datacenters as geo-clustered sites for site resiliency. You need to recommend an Azure storage redundancy option. You have the following data storage requirements:
- Data must be stored on multiple nodes.
- Data must be stored on nodes in separate geographic locations.
- Data can be read from the secondary location as well as from the primary location.
Which of the following Azure storage redundancy options should you recommend?
- A. Geo-redundant storage
- B. Read-access geo-redundant storage
- C. Zone-redundant storage
- D. Locally redundant storage
Show answer and explanation ▾
Correct answer: B
Read-access geo-redundant storage (RA-GRS) replicates data three times in the primary region and asynchronously to a paired region far away. Unlike plain GRS, it also allows data to be read from the secondary region at any time. That meets all three requirements, including reads from both locations.
Why the other options are wrong:
- A. Plain GRS replicates to a secondary region but does not allow reads from it unless a failover occurs.
- C. Zone-redundant storage keeps data within a single region, so it does not provide separate geographic locations.
- D. Locally redundant storage keeps all copies in one datacenter, so it offers no geographic separation.
Question 7
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure subscription that includes a storage account, a resource group, a blob container and a file share. A colleague named Jon Ross makes use of a solitary Azure Resource Manager (ARM) template to deploy a virtual machine and an additional Azure Storage account. You want to review the ARM template that was used by Jon Ross. Solution: You access the Virtual Machine blade. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Accessing the Virtual Machine blade will show details about the specific VM that was deployed, but it does not provide access to the ARM template that was used to deploy it. The ARM template is a deployment artifact that is not directly accessible from the individual resource's properties blade. To review the template used during deployment, you need to access the Resource Group blade where deployment history and templates are stored.
Why the other options are wrong:
- A. The Virtual Machine blade shows VM properties and settings, not the ARM template used for deployment.
Question 8
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure subscription that includes a storage account, a resource group, a blob container and a file share. A colleague named Jon Ross makes use of a solitary Azure Resource Manager (ARM) template to deploy a virtual machine and an additional Azure Storage account. You want to review the ARM template that was used by Jon Ross. Solution: You access the Resource Group blade. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Resource Group blade provides access to the deployment history and templates. Within the Resource Group blade, you can navigate to Deployments to view all ARM templates that have been used to deploy resources in that resource group, including the template Jon Ross used to deploy the virtual machine and storage account. This is the correct location to review historical ARM templates.
Why the other options are wrong:
- B. The Resource Group blade is the correct location to access ARM template deployment history and review templates.
Question 9
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure subscription that includes a storage account, a resource group, a blob container and a file share. A colleague named Jon Ross makes use of a solitary Azure Resource Manager (ARM) template to deploy a virtual machine and an additional Azure Storage account. You want to review the ARM template that was used by Jon Ross. Solution: You access the Container blade. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Accessing the Container blade shows properties and contents of the blob container itself, but does not provide access to the ARM template that was used for deployment. The blob container is just one of the deployed resources and does not contain or display the deployment template or deployment history. ARM templates are managed at the Resource Group level, not at the individual container level.
Why the other options are wrong:
- A. The Container blade does not provide access to ARM templates or deployment history.
Question 10
Your company has three virtual machines (VMs) that are included in an availability set. You try to resize one of the VMs, which returns an allocation failure message. It is imperative that the VM is resized. Which of the following actions should you take?
- A. You should only stop one of the VMs.
- B. You should stop two of the VMs.
- C. You should stop all three VMs.
- D. You should remove the necessary VM from the availability set.
Show answer and explanation ▾
Correct answer: C
When a VM resize fails due to allocation constraints within an availability set, you must stop all VMs in the availability set before attempting the resize. This deallocates all compute resources and allows the Azure fabric to reallocate them with the new VM size. Stopping all three VMs ensures that the resize operation has sufficient resources and can succeed, as the reallocation can consolidate the resources needed for the resized VM.
Why the other options are wrong:
- A. Stopping only one VM does not free sufficient resources for the reallocation to succeed.
- B. Stopping two VMs is insufficient; all VMs in the availability set must be stopped.
- D. Removing the VM from the availability set is unnecessary and removes the resiliency benefits; stopping all VMs is the proper solution.
Getting these right? Take the first 303 with you.
The free PDF is the first half of the full Microsoft AZ-104 pack: 303 questions with every answer explained, as one PDF in your inbox.
Get the free PDFQuestion 11
You have an Azure subscription. You create the following Azure Resource Manager (ARM) template named Template.json. You need to deploy Template.json. Which PowerShell cmdlet should you run from Azure Cloud Shell?
- A. New-AzSubscriptionDeployment
- B. New-AzManagementGroupDeployment
- C. New-AzResourceGroupDeployment
- D. New-AzTenantDeployment
Show answer and explanation ▾
Correct answer: A
The ARM template shown contains a resource group resource definition with apiVersion '2022-12-01' and type 'Microsoft.Resources/resourceGroups', indicating this template is designed to deploy at the subscription scope. When deploying a template at the subscription scope (which creates or manages resource groups), you must use New-AzSubscriptionDeployment. This cmdlet deploys templates at the subscription level, allowing you to create resource groups and assign policies across the subscription. Resource group scope deployments use New-AzResourceGroupDeployment, but that requires the resource group to already exist, whereas this template is creating the resource group itself.
Why the other options are wrong:
- B. New-AzManagementGroupDeployment is used for deployments at the management group scope, not subscription scope.
- C. New-AzResourceGroupDeployment is used when deploying to an existing resource group, but this template creates a resource group at subscription scope.
- D. New-AzTenantDeployment is used for tenant-level deployments, which is not the appropriate scope for this template.
Question 12
You have an Azure subscription named Subscription1 that contains a virtual network named VNet1. VNet1 is in a resource group named RG1. Subscription1 has a user named User1. User1 has the following roles:
- Reader
- Security Admin
- Security Reader
You need to ensure that User1 can assign the Reader role for VNet1 to other users. What should you do?
- A. Remove User1 from the Security Reader role for Subscription1. Assign User1 the Contributor role for RG1.
- B. Assign User1 the Owner role for VNet1.
- C. Assign User1 the Contributor role for VNet1.
- D. Assign User1 the Network Contributor role for VNet1.
Show answer and explanation ▾
Correct answer: B
To assign roles to other users, User1 needs the Owner role at the resource scope (VNet1). The Owner role includes the ability to manage role-based access control (RBAC) assignments. This is the only role among the options that grants the permission to assign roles to others at a specific resource level.
Why the other options are wrong:
- A. Contributor at RG1 does not allow role assignment, because Contributor excludes Microsoft.Authorization write actions, and removing Security Reader is unnecessary.
- C. Contributor role allows management but does not specifically grant role assignment permissions; Owner is required for RBAC management.
- D. Network Contributor is limited to network resource management and does not grant RBAC assignment permissions.
Question 13
You have an Azure subscription that contains a virtual machine named VM1 and an Azure key vault named KV1. You need to configure encryption for VM1. The solution must meet the following requirements:
- Store and use the encryption key in KV1.
- Maintain encryption if VM1 is downloaded from Azure.
- Encrypt both the operating system disk and the data disks.
Which encryption method should you use?
- A. customer-managed keys
- B. Confidential disk encryption
- C. Azure Disk Encryption
- D. encryption at host
Show answer and explanation ▾
Correct answer: C
Azure Disk Encryption (C) meets all requirements: it stores encryption keys in the Key Vault (KV1), maintains encryption even when the VM is downloaded from Azure (persistent encryption of the disk files themselves), and encrypts both OS and data disks. This is the standard solution for VM-level encryption with key management requirements.
Why the other options are wrong:
- A. Customer-managed keys is a broader concept applicable to various services; Azure Disk Encryption specifically is the correct implementation for VM disk encryption.
- B. Confidential disk encryption is for protecting data at rest on confidential VMs but is not the standard disk encryption method being requested.
- D. Encryption at host encrypts data at the physical host level but does not meet the requirement to maintain encryption when the VM is downloaded.
Question 14
You have an Azure subscription that contains a storage account named storage1. The storage1 account contains blob data. You need to assign a role to a user named User1 to ensure that the user can access the blob data in storage1. The role assignment must support conditions. Which two roles can you assign to User1? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
- A. Owner
- B. Storage Account Contributor
- C. Storage Account Backup Contributor
- D. Storage Blob Data Contributor
- E. Storage Blob Data Owner
- F. Storage Blob Delegator
Show answer and explanation ▾
Correct answer: D, E
Of the listed roles, Storage Blob Data Contributor (D) and Storage Blob Data Owner (E) grant access to blob data and support attribute-based access control (ABAC) conditions on their role assignments. These data plane roles allow conditional assignment based on blob properties like name, path, and tags. Owner and Storage Account Contributor are management plane roles with no blob data actions, so a condition on them cannot control access to blob data. Storage Account Backup Contributor and Storage Blob Delegator do not support conditions either.
Why the other options are wrong:
- A. Owner is a management plane role with no blob data actions, so it cannot provide condition-based access to blob data.
- B. Storage Account Contributor is a management plane role and does not support ABAC conditions.
- C. Storage Account Backup Contributor does not support attribute-based access control conditions.
- F. Storage Blob Delegator does not support ABAC conditions for blob access.
Question 15
Your company's Azure subscription includes Azure virtual machines (VMs) that run Windows Server 2016. One of the VMs is backed up every day using Azure Backup Instant Restore. When the VM becomes infected with data encrypting ransomware, you decide to recover the VM's files. Which of the following is TRUE in this scenario?
- A. You can only recover the files to the infected VM.
- B. You can recover the files to any VM within the company's subscription.
- C. You can only recover the files to a new VM.
- D. You will not be able to recover the files.
Show answer and explanation ▾
Correct answer: B
With Azure Backup Instant Restore, files can be recovered to any VM within the company's subscription, not just the infected VM or a new VM. The Instant Restore feature provides the flexibility to mount the recovery point and browse/copy files to any accessible location, including any VM in the subscription. This allows for flexible recovery scenarios beyond just the original VM.
Why the other options are wrong:
- A. Files can be recovered to VMs other than the infected one, providing recovery flexibility.
- C. A new VM is not required; files can be recovered to any existing VM in the subscription.
- D. Files can definitely be recovered when using Azure Backup Instant Restore, even from ransomware-infected VMs if backups were taken before infection.
Question 16
You have an Azure subscription that contains an Azure container registry named ContReg1. You enable the Admin user for ContReg1. Which username can you use to sign in to ContReg1?
- A. root
- B. admin
- C. administrator
- D. ContReg1
Show answer and explanation ▾
Correct answer: D
When you enable the Admin user for an Azure Container Registry, the username is the registry name itself. In this case, with a registry named ContReg1, you would use 'ContReg1' as the username to sign in.
Why the other options are wrong:
- A. root is not a valid username for ACR authentication
- B. admin is not the correct username format for ACR
- C. administrator is not a valid ACR username
Question 17
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 Storage account named storage1. You need to enable a user named User1 to list and regenerate storage account keys for storage1. Solution: You assign the Storage Account Encryption Scope Contributor Role to User1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Storage Account Encryption Scope Contributor role is specifically for managing encryption scopes and does not grant permissions to list or regenerate storage account keys. To enable a user to list and regenerate storage account keys, you need the Storage Account Key Operator Service Role or a role with the Microsoft.Storage/storageAccounts/listkeys/action and Microsoft.Storage/storageAccounts/regeneratekey/action permissions.
Why the other options are wrong:
- A. The Storage Account Encryption Scope Contributor role does not provide permissions for key management operations.
Question 18
You sign up for Azure Active Directory (Azure AD) Premium P2. You need to add a user named admin1@contoso.com as an administrator on all the computers that will be joined to the Azure AD domain. What should you configure in Azure AD?
- A. Device settings from the Devices blade
- B. Providers from the MFA Server blade
- C. User settings from the Users blade
- D. General settings from the Groups blade
Show answer and explanation ▾
Correct answer: A
To configure a user as a local administrator on all computers joined to an Azure AD domain, you must configure Device settings from the Devices blade in Azure AD. This setting controls which users are granted administrative privileges on Azure AD-joined devices.
Why the other options are wrong:
- B. The MFA Server blade is for multi-factor authentication configuration, not device administrator assignment.
- C. User settings do not control local device administrator privileges.
- D. Group settings are not the location for configuring device-level administrative access.
Question 19
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has a Microsoft SQL Server Always On availability group configured on their Azure virtual machines (VMs). You need to configure an Azure internal load balancer as a listener for the availability group. Solution: You enable Floating IP. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
Enabling Floating IP does meet the goal for configuring an Azure internal load balancer as a listener for SQL Server Always On availability groups. Floating IP (Direct Server Return) is a critical requirement for SQL Server Always On listeners because it allows the load balancer to route traffic directly to the backend VM with the same IP address and port that the client connected to, which is essential for the listener's functionality.
Why the other options are wrong:
- B. Floating IP is specifically required and essential for SQL Server Always On listener configuration.
Question 20
You have an Azure Storage account named storage1 that contains a blob container named container1. You need to prevent new content added to container1 from being modified for one year. What should you configure?
- A. the access tier
- B. an access policy
- C. the Access control (IAM) settings
- D. the access level
Show answer and explanation ▾
Correct answer: B
To prevent new content added to a container from being modified for a specified period, you need to configure an access policy with immutability settings. Azure Storage supports time-based retention policies that lock blobs in a write-once-read-many (WORM) state, preventing any modifications for the specified duration (one year in this case).
Why the other options are wrong:
- A. The access tier (hot, cool, archive) controls pricing and performance, not immutability.
- C. Access control (IAM) manages who can access resources, not whether content can be modified after creation.
- D. The access level (public/private) controls visibility, not modification restrictions.
Question 21
Your company's Azure subscription includes Azure virtual machines (VMs) that run Windows Server 2016. One of the VMs is backed up every day using Azure Backup Instant Restore. When the VM becomes infected with data encrypting ransomware, you are required to restore the VM. Which of the following actions should you take?
- A. You should restore the VM after deleting the infected VM.
- B. You should restore the VM to any VM within the company's subscription.
- C. You should restore the VM to a new Azure VM.
- D. You should restore the VM to an on-premises Windows device.
Show answer and explanation ▾
Correct answer: C
When restoring a VM infected with ransomware, you must restore to a new Azure VM rather than overwriting the original infected VM. This ensures the malware is not carried forward and allows for a clean recovery. Deleting the infected VM first (option A) is unnecessary since restoration creates a new instance anyway. Restoring to any existing VM (option B) risks infecting other systems. Restoring to on-premises (option D) is not a capability of Azure Backup Instant Restore for Azure VMs.
Why the other options are wrong:
- A. Deletion is not required; the restore operation itself creates a new VM instance.
- B. Restoring to an existing VM would overwrite it and potentially spread the infection.
- D. Azure Backup cannot restore Azure VMs to on-premises Windows devices.
Question 22
You recently created a new Azure subscription that contains a user named Admin1. Admin1 attempts to deploy an Azure Marketplace resource by using an Azure Resource Manager template. Admin1 deploys the template by using Azure PowerShell and receives the following error message: `User failed validation to purchase resources. Error message: Legal terms have not been accepted for this item on this subscription. To accept legal terms, please go to the Azure portal (http://go.microsoft.com/fwlink/?LinkId=534873) and configure programmatic deployment for the Marketplace item or create it there for the first time.` You need to ensure that Admin1 can deploy the Marketplace resource successfully. What should you do?
- A. From Azure PowerShell, run the Set-AzApiManagementSubscription cmdlet
- B. From the Azure portal, register the Microsoft.Marketplace resource provider
- C. From Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet
- D. From the Azure portal, assign the Billing administrator role to Admin1
Show answer and explanation ▾
Correct answer: C
The error message explicitly states that legal terms have not been accepted for the Marketplace item on the subscription. The Set-AzMarketplaceTerms cmdlet is the PowerShell command used to accept programmatic deployment terms for Marketplace items, enabling deployment via ARM templates and automation.
Why the other options are wrong:
- A. Set-AzApiManagementSubscription is for configuring API Management subscriptions, not Marketplace terms.
- B. Registering the Microsoft.Marketplace resource provider does not accept the legal terms named in the error; the terms must be accepted for the Marketplace item on the subscription.
- D. Assigning the Billing administrator role does not accept the Marketplace terms; the error states that the terms must be accepted for this item on this subscription.
Question 23
You have an Azure subscription named Subscription1 that contains an Azure Log Analytics workspace named Workspace1. You need to view the error events from a table named Event. Which query should you run in Workspace1?
- A. Get-Event Event | where {$_.EventType == "error"}
- B. search in (Event) "error"
- C. select * from Event where EventType == "error"
- D. search in (Event) * | where EventType -eq "error"
Show answer and explanation ▾
Correct answer: B
The correct syntax for querying Log Analytics is Kusto Query Language (KQL). The 'search in (Event) "error"' syntax properly searches within the Event table for records containing 'error', which will return error events in the most appropriate format for Log Analytics.
Why the other options are wrong:
- A. PowerShell Get-Event syntax is not valid for Log Analytics queries.
- C. SQL-style 'select * from' syntax is not valid KQL for Log Analytics.
- D. This mixes KQL with the PowerShell -eq operator; KQL uses == for equality, so the query is not valid.
Question 24
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 Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: You create a PowerShell script that runs the New-MgInvitation cmdlet for each external user. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The New-MgInvitation cmdlet is the correct PowerShell cmdlet for inviting external users to Azure AD as guest users. It sends invitation emails and creates guest user accounts in a single operation, making it ideal for bulk invitations from a CSV file. Running this cmdlet for each of the 500 external users will successfully create their guest accounts in contoso.com.
Why the other options are wrong:
- B. This answer is incorrect because New-MgInvitation is the appropriate cmdlet for this task.
Question 25
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 Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: From Azure AD in the Azure portal, you use the Bulk invite users operation. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Bulk invite users operation in Azure AD is designed for bulk inviting external users and creates them as guest users, sending invitation emails to their external addresses. For creating guest accounts from a CSV file with names and email addresses, the bulk invite feature works correctly and does meet the goal of creating 500 guest user accounts in the tenant.
Why the other options are wrong:
- B. No does not fit: the bulk invite operation reads a CSV file of names and email addresses and creates a guest account for each external user, which is exactly the goal.
Question 26
You have an Azure subscription that contains a resource group named TestRG. You use TestRG to validate an Azure deployment. TestRG contains the following resources: You need to delete TestRG. What should you do first?
- A. Modify the backup configurations of VM1 and modify the resource lock type of VNET1
- B. Remove the resource lock from VNET1 and delete all data in Vault1
- C. Turn off VM1 and remove the resource lock from VNET1
- D. Turn off VM1 and delete all data in Vault1
Show answer and explanation ▾
Correct answer: B
To delete a resource group in Azure, you must first remove any blocking elements. VNET1 has a Delete resource lock that prevents deletion of the resource group. Additionally, Vault1 contains backup data for VM1, and Azure Recovery Services Vaults cannot be deleted while they contain backup data. Therefore, you must remove the resource lock from VNET1 and delete all data in Vault1 before the resource group can be successfully deleted. Turning off VM1 is not a prerequisite for deletion, nor is modifying backup configurations.
Why the other options are wrong:
- A. Modifying backup configurations alone does not remove the backup data from Vault1, and the Delete lock on VNET1 must be removed entirely, not just modified.
- C. Turning off VM1 is unnecessary for resource group deletion; the Delete lock on VNET1 must be removed, but backup data in Vault1 must also be deleted.
- D. Turning off VM1 is not a prerequisite for deletion; the Delete resource lock on VNET1 must be removed before the resource group can be deleted.
Question 27
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 machine named VM1 that runs Windows Server 2016. You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour. Solution: You create an Azure storage account and configure shared access signatures (SASs). You install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify the storage account as the source. Does that meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Specifying a storage account as the source for an Azure Monitor alert is incorrect, and the Microsoft Monitoring Agent (Log Analytics agent) is retired. To alert on System event log errors, you install the Azure Monitor Agent with a data collection rule that sends the events to a Log Analytics workspace, and then create a log search alert rule on that data. Storage accounts with SAS tokens are not the appropriate source for event-based alerting in Azure Monitor.
Why the other options are wrong:
- A. The storage account and SAS configuration is unnecessary; Azure Monitor should collect the events with the Azure Monitor Agent and a data collection rule into a Log Analytics workspace and alert on that data, not directly from storage accounts.
Question 28
You create an Azure Storage account. You plan to add 10 blob containers to the storage account. For one of the containers, you need to use a different key to encrypt data at rest. What should you do before you create the container?
- A. Generate a shared access signature (SAS).
- B. Modify the minimum TLS version.
- C. Rotate the access keys.
- D. Create an encryption scope.
Show answer and explanation ▾
Correct answer: D
Encryption scopes allow you to configure different encryption keys for different containers within the same storage account. Before creating a container that requires a different encryption key than the default storage account key, you must first create an encryption scope that specifies the custom key to be used for that container.
Why the other options are wrong:
- A. A shared access signature (SAS) is for access control and authentication, not for configuring encryption keys at the container level.
- B. Modifying the TLS version affects transport security, not data encryption at rest or per-container encryption configuration.
- C. Rotating access keys affects all containers uniformly and does not allow different keys for different containers within the same account.
Question 29
You have an Azure Storage account that contains 5,000 blobs accessed by multiple users. You need to ensure that the users can view only specific blobs based on blob index tags. What should you include in the solution?
- A. a role assignment condition
- B. a stored access policy
- C. just-in-time (JIT) VM access
- D. a shared access signature (SAS)
Show answer and explanation ▾
Correct answer: A
A role assignment condition allows you to restrict access to blobs based on blob index tags. This is the Azure RBAC feature that enables attribute-based access control (ABAC) for Azure Storage, allowing users to view only specific blobs that match the conditions defined in their role assignments based on blob index tags.
Why the other options are wrong:
- B. Stored access policies are used for shared access signatures but do not provide tag-based filtering.
- C. JIT VM access is for managing virtual machine access, not blob access.
- D. While SAS can restrict access, it does not natively support blob index tag-based filtering in the way RBAC conditions do.
Question 30
You have an Azure subscription. You plan to deploy a container. You need to recommend which Azure services can scale the container automatically. What should you recommend?
- A. Azure Container Apps only
- B. Azure Container Instances only
- C. Azure Container Apps or Azure App Service only
- D. Azure Container Instances or Azure App Service only
- E. Azure Container Apps, Azure Container Instances, or Azure App Service
Show answer and explanation ▾
Correct answer: C
Azure Container Apps and Azure App Service both support automatic scaling. Container Instances does not have built-in auto-scaling capabilities, so the correct answer includes only Container Apps and App Service.
Why the other options are wrong:
- A. While Container Apps can auto-scale, App Service also supports this capability
- B. Container Instances does not support automatic scaling
- D. Container Instances does not have auto-scaling; App Service does but Container Instances does not
- E. Container Instances cannot scale automatically.
Question 31
You have two Azure virtual machines named VM1 and VM2. You have two Recovery Services vaults named RSV1 and RSV2. VM2 is backed up to RSV1. You need to back up VM2 to RSV2. What should you do first?
- A. From the RSV1 blade, click Backup items and stop the VM2 backup
- B. From the RSV2 blade, click Backup. From the Backup blade, select the backup for the virtual machine, and then click Backup
- C. From the VM2 blade, click Disaster recovery, click Replication settings, and then select RSV2 as the Recovery Services vault
- D. From the RSV1 blade, click Backup Jobs and export the VM2 job
Show answer and explanation ▾
Correct answer: A
Before backing up a VM to a different Recovery Services vault, you must first stop the existing backup in the current vault (RSV1). This prevents conflicts between two backup jobs for the same VM running simultaneously. Once the backup is stopped in RSV1, you can then configure and start a new backup to RSV2.
Why the other options are wrong:
- B. You cannot initiate a backup to RSV2 while the VM is still actively backed up to RSV1.
- C. Disaster recovery replication settings are separate from backup configuration and do not address the backup vault conflict.
- D. Exporting a backup job does not accomplish the goal of changing backup destinations; you must stop the existing backup first.
Question 32
You plan to move a distributed on-premises app named App1 to an Azure subscription. After the planned move, App1 will be hosted on several Azure virtual machines. You need to ensure that App1 always runs on at least eight virtual machines during planned Azure maintenance. If you use a virtual machine scale set, it must use Uniform orchestration. The solution must minimize costs. What should you create?
- A. one virtual machine scale set that has 10 virtual machines instances
- B. one Availability Set that has three fault domains and one update domain
- C. one Availability Set that has 10 update domains and one fault domain
- D. one virtual machine scale set that has 12 virtual machines instances
Show answer and explanation ▾
Correct answer: A
Planned platform maintenance that requires a reboot proceeds one update domain at a time. A virtual machine scale set that uses Uniform orchestration spreads its instances evenly across five update domains, so 10 instances place two in each domain. When one update domain is under maintenance, at most two instances are down and at least eight keep running, which meets the requirement. Twelve instances would also keep eight running, but the extra two virtual machines add cost without being needed, so 10 instances is the lowest-cost scale set that keeps App1 on at least eight virtual machines.
Why the other options are wrong:
- B. With only one update domain, every virtual machine in the availability set is in the same maintenance group, so all of them can be rebooted together.
- C. A single fault domain places every virtual machine on the same rack and power source, so one hardware failure can stop all of them. That design gives up the resilience a distributed app needs.
- D. Twelve instances also keep eight running during maintenance, but the two extra virtual machines raise the cost without adding needed availability.
Question 33
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 need to ensure that an Azure Active Directory (Azure AD) user named Admin1 is assigned the required role to enable Traffic Analytics for an Azure subscription. Solution: You assign the Network Contributor role at the subscription level to Admin1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Traffic analytics is enabled on a flow log, so the user needs the flow log permissions plus the traffic analytics permissions. Network Contributor covers the Microsoft.Network actions, but Microsoft Learn states that it does not include the Microsoft.Storage actions that let flow logs write to the storage account. It also lacks the Microsoft.OperationalInsights workspace actions, such as reading the workspace and retrieving its shared keys, and the data collection rule and endpoint actions that traffic analytics needs. Assigning Network Contributor alone at the subscription level therefore does not give Admin1 everything required to enable traffic analytics.
Why the other options are wrong:
- A. Network Contributor manages networking resources only. It lacks the storage account and Log Analytics workspace permissions that traffic analytics requires, so it does not meet the goal.
Question 34
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 Active Directory (Azure AD) tenant named Adatum and an Azure Subscription named Subscription1. Adatum contains a group named Developers. Subscription1 contains a resource group named Dev. You need to provide the Developers group with the ability to create Azure logic apps in the Dev resource group. Solution: On Dev, you assign the Contributor role to the Developers group. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Contributor role at the resource group level (Dev) grants full permissions to create, modify, and delete resources within that resource group, including Azure logic apps. This meets the requirement to enable the Developers group to create logic apps in the Dev resource group.
Why the other options are wrong:
- B. Contributor role provides sufficient permissions for this task, so the answer is yes.
Question 35
You have an Azure AD tenant named contoso.com. You have an Azure subscription that contains an Azure App Service web app named App1 and an Azure key vault named KV1. KV1 contains a wildcard certificate for contoso.com. You have a user named user1@contoso.com that is assigned the Owner role for App1 and KV1. You need to configure App1 to use the wildcard certificate of KV1. What should you do first?
- A. Create an access policy for KV1 and assign the Microsoft Azure App Service principal to the policy.
- B. Assign a managed user identity to App1.
- C. Configure KV1 to use the role-based access control (RBAC) authorization system.
- D. Create an access policy for KV1 and assign the policy to User1.
Show answer and explanation ▾
Correct answer: A
When App Service imports a certificate from Key Vault, the App Service resource provider reads the certificate from the vault. It does this as the Microsoft Azure App Service service principal, not as the signed-in user or the app's own identity. That principal has no access to KV1 by default, so the first step is to grant it access. With the vault access policy model, an access policy for the Microsoft Azure App Service principal gives it Get permission on secrets (and certificates). After that, user1, who is Owner of App1 and KV1, can import the wildcard certificate into App1 and bind it to the custom domains.
Why the other options are wrong:
- B. A managed identity on App1 does not grant the App Service resource provider access to KV1, and the resource provider is what reads the certificate during import.
- C. Switching KV1 to Azure RBAC only changes the permission model. Access would still have to be granted to the App Service principal afterward.
- D. user1 already manages KV1 as Owner, but the certificate is read by the App Service resource provider, so a policy for user1 does not give App Service access.
Question 36
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 Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: You create a PowerShell script that runs the New-AzureADUser cmdlet for each user. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The New-AzureADUser cmdlet is used to create regular member users in Azure AD, not guest users. To create guest user accounts, you must use the New-AzureADMSInvitation cmdlet, which properly initializes guest accounts with the correct user type and sends invitation emails. Using New-AzureADUser for external users would not create proper guest accounts with the appropriate permissions and invitation workflow.
Why the other options are wrong:
- A. New-AzureADUser creates internal member accounts, not guest accounts.
Question 37
You have three offices and an Azure subscription that contains an Azure Active Directory (Azure AD) tenant. You need to grant user management permissions to a local administrator in each office. What should you use?
- A. Azure AD roles
- B. administrative units
- C. access packages in Azure AD entitlement management
- D. Azure roles
Show answer and explanation ▾
Correct answer: B
Administrative units in Azure AD allow you to delegate user management permissions to local administrators for specific organizational units without granting tenant-wide permissions. Each office can have an administrative unit with its own administrator, enabling granular permission delegation across multiple locations.
Why the other options are wrong:
- A. Azure AD roles on their own apply at the tenant level; scoping them to a single office requires administrative units.
- C. Access packages in entitlement management are for managing access to resources and groups, not for delegating administrative permissions.
- D. Azure roles are for managing Azure subscription resources, not for managing Azure AD users.
Question 38
You have a Microsoft 365 tenant and an Azure Active Directory (Azure AD) tenant named contoso.com. You plan to grant three users named User1, User2, and User3 access to a temporary Microsoft SharePoint document library named Library1. You need to create groups for the users. The solution must ensure that the groups are deleted automatically after 180 days. Which two groups should you create? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
- A. a Microsoft 365 group that uses the Assigned membership type
- B. a Security group that uses the Assigned membership type
- C. a Microsoft 365 group that uses the Dynamic User membership type
- D. a Security group that uses the Dynamic User membership type
- E. a Security group that uses the Dynamic Device membership type
Show answer and explanation ▾
Correct answer: A, C
To grant temporary access to a SharePoint library with automatic group deletion after 180 days, you should create a Microsoft 365 group with Assigned membership (option A) to manage the three specific users. A Microsoft 365 group with Dynamic User membership (option C) is an equally complete solution, because the expiration policy applies to Microsoft 365 groups whatever their membership type. Microsoft 365 groups support expiration policies that automatically delete the group after a specified period. Security groups do not support automatic expiration policies, and Dynamic Device membership is irrelevant for granting user access to a document library.
Why the other options are wrong:
- B. Security groups with Assigned membership do not support automatic expiration.
- D. Security groups do not have auto-expiration capabilities.
- E. Dynamic Device membership is for device-based policies, not user access management.
Question 39
You have an Azure virtual machine named VM1 that runs Windows Server 2019. The VM was deployed using default drive settings. You sign in to VM1 as a user named User1 and perform the following actions:
- Create files on drive C.
- Create files on drive D.
- Modify the screen saver timeout.
- Change the desktop background.
You plan to redeploy VM1. Which changes will be lost after you redeploy VM1?
- A. the modified screen saver timeout
- B. the new desktop background
- C. the new files on drive D
- D. the new files on drive C
Show answer and explanation ▾
Correct answer: C
In Azure VMs with default settings, drive D is the temporary storage drive (resource disk) whose data can be lost when the VM is redeployed, resized, or stopped (deallocated). Drive C is the OS disk which persists across redeployments, and user settings like screen saver and desktop background are stored on the OS disk. Only files on the temporary drive D will be lost after redeployment.
Why the other options are wrong:
- A. Screen saver timeout is a user setting stored in the Windows profile on the C drive, which persists.
- B. Desktop background is stored in the user profile on the C drive and persists across redeployment.
- D. Files on drive C (the OS disk) are persistent and survive redeployment.
Question 40
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 subscription named Subscription1. Subscription1 contains a resource group named RG1. RG1 contains resources that were deployed by using templates. You need to view the date and time when the resources were created in RG1. Solution: From the Subscriptions blade, you select the subscription, and then click Programmatic deployment. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Clicking 'Programmatic deployment' from the Subscriptions blade does not show resource creation dates and times. To view when resources in RG1 were created, you need to access the resource group's Deployments blade or view individual resource properties, which show creation timestamps and deployment history.
Why the other options are wrong:
- A. Programmatic deployment is for viewing deployment templates and code, not resource creation dates.
Question 41
You have an Azure subscription that contains a resource group named RG1. You plan to create a storage account named storage1. You have a Bicep file named File1. You need to modify File1 so that it can be used to automate the deployment of storage1 to RG1. Which property should you modify?
- A. kind
- B. scope
- C. sku
- D. location
Show answer and explanation ▾
Correct answer: B
In a Bicep file, the 'scope' property determines the target resource group or subscription where resources will be deployed. To deploy storage1 to RG1 specifically, you must set the scope property to target that resource group. The kind property relates to storage account type, sku relates to performance tier, and location specifies the Azure region; none of these control which resource group receives the deployment.
Why the other options are wrong:
- A. The kind property specifies storage account type (e.g., StorageV2), not deployment destination.
- C. The sku property specifies performance and redundancy settings, not deployment target.
- D. The location property specifies the Azure region, not which resource group receives the deployment.
Question 42
Your company has an Azure Active Directory (Azure AD) tenant that is configured for hybrid coexistence with the on-premises Active Directory domain. You plan to deploy several new virtual machines (VMs) in Azure. The VMs will have the same operating system and custom software requirements. You configure a reference VM in the on-premises virtual environment. You then generalize the VM to create an image. You need to upload the image to Azure to ensure that it is available for selection when you create the new Azure VMs. Which PowerShell cmdlets should you use?
- A. Add-AzVM
- B. Add-AzVhd
- C. Add-AzImage
- D. Add-AzImageDataDisk
Show answer and explanation ▾
Correct answer: B
The Add-AzVhd cmdlet is used to upload a generalized VHD (Virtual Hard Disk) file from an on-premises environment to Azure storage. Once the VHD is uploaded, it can be used as a source to create managed images or deploy VMs directly. This is the correct cmdlet for the upload operation in a hybrid migration scenario.
Why the other options are wrong:
- A. Add-AzVM is not an Az PowerShell cmdlet (VMs are created with New-AzVM), so it cannot upload an image to Azure.
- C. Add-AzImage is not an Az PowerShell cmdlet; managed images are created with New-AzImage, which does not upload VHD files either.
- D. Add-AzImageDataDisk adds a data disk to a local image configuration object; it doesn't upload VHD files.
Question 43
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 Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: You create a PowerShell script that runs the New-MgUser cmdlet for each external user. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The New-MgUser cmdlet creates regular user accounts, not guest user accounts. To create guest accounts in Azure AD, the New-MgInvitation cmdlet must be used, which sends invitation emails and properly provisions guest accounts. Using New-MgUser for 500 external users would create internal user accounts rather than guest accounts with the appropriate guest user type and invitation flow.
Why the other options are wrong:
- A. New-MgUser is designed for creating member users, not guest users, so the solution fails to meet the goal of creating guest accounts.
Question 44
You administer a solution in Azure that is currently having performance issues. You need to find the cause of the performance issues pertaining to metrics on the Azure infrastructure. Which of the following is the tool you should use?
- A. Azure Traffic Analytics
- B. Azure Monitor
- C. Azure Activity Log
- D. Azure Advisor
Show answer and explanation ▾
Correct answer: B
Azure Monitor is the primary tool for collecting, analyzing, and acting on metrics and performance data from Azure infrastructure. It provides detailed metrics about VM performance, resource utilization, and infrastructure health. Azure Traffic Analytics monitors network traffic patterns, Azure Activity Log tracks management operations and resource changes, and Azure Advisor provides optimization recommendations, but none of these are the primary tool for real-time infrastructure metrics analysis.
Why the other options are wrong:
- A. Azure Traffic Analytics focuses on network traffic analysis, not general infrastructure metrics.
- C. Azure Activity Log tracks management events and changes, not performance metrics.
- D. Azure Advisor provides recommendations but does not directly diagnose performance issues through metrics.
Question 45
You have an Azure App Services web app named App1. You plan to deploy App1 by using Web Deploy. You need to ensure that the developers of App1 can use their Azure AD credentials to deploy content to App1. The solution must use the principle of least privilege. What should you do?
- A. Assign the Owner role to the developers
- B. Configure app-level credentials for FTPS
- C. Assign the Website Contributor role to the developers
- D. Configure user-level credentials for FTPS
Show answer and explanation ▾
Correct answer: C
The Website Contributor role is the least privileged role needed for developers to deploy content to App Service via Web Deploy while using Azure AD credentials. It grants deployment permissions without Owner-level access. This role is specifically designed for web app deployment scenarios and aligns with least privilege by not granting broader subscription-level permissions.
Why the other options are wrong:
- A. Owner role grants excessive permissions beyond what is needed for Web Deploy deployment.
- B. App-level FTPS credentials do not leverage Azure AD credentials as required.
- D. User-level FTPS credentials do not leverage Azure AD credentials as required.
Question 46
You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image. You need to ensure that when the scale set virtual machines are provisioned, they have web server components installed. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A. Upload a configuration script
- B. Create an automation account
- C. Create an Azure policy
- D. Modify the extensionProfile section of the Azure Resource Manager template
- E. Create a new virtual machine scale set in the Azure portal
Show answer and explanation ▾
Correct answer: A, D
To automate web server component installation on scale set VMs, you must upload a configuration script (such as a PowerShell DSC script or custom script) that executes during provisioning, and modify the extensionProfile section of the ARM template to reference and execute this script. This ensures web server components are installed automatically when each VM is provisioned.
Why the other options are wrong:
- B. An Automation account is used for runbooks, not for provisioning-time script execution on scale sets.
- C. Azure Policy is for governance and compliance, not for installing software during VM provisioning.
- E. Manual portal creation does not automate the deployment; automation requires ARM template modification and scripts.
Question 47
You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual machine scale set by using an Azure Resource Manager template. You need to ensure that NGINX is available on all the virtual machines after they are deployed. What should you use?
- A. Deployment Center in Azure App Service
- B. A Desired State Configuration (DSC) extension
- C. the New-AzConfigurationAssignment cmdlet
- D. a Microsoft Intune device configuration profile
Show answer and explanation ▾
Correct answer: B
A Desired State Configuration (DSC) extension is the appropriate tool to ensure that NGINX is installed on all VMs in a scale set after deployment. DSC extensions can be specified in ARM templates and will automatically configure each VM instance with the desired software and settings as it is created.
Why the other options are wrong:
- A. Deployment Center is specific to Azure App Service, not virtual machines or scale sets.
- C. The New-AzConfigurationAssignment cmdlet assigns a maintenance configuration to a resource; it does not install software.
- D. Microsoft Intune profiles manage device configuration for Windows devices but are not the mechanism for scale set VM provisioning.
Question 48
You are configuring Azure Active Directory (Azure AD) authentication for an Azure Storage account named storage1. You need to ensure that the members of a group named Group1 can upload files by using the Azure portal. The solution must use the principle of least privilege. Which two roles should you configure for storage1? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A. Storage Account Contributor
- B. Storage Blob Data Contributor
- C. Reader
- D. Contributor
- E. Storage Blob Data Reader
Show answer and explanation ▾
Correct answer: B, C
To allow Group1 members to upload files via the Azure portal with least privilege, you need: (B) Storage Blob Data Contributor, which grants permissions to read, write, and delete blobs, and (C) Reader, which allows viewing the storage account and navigating the portal interface. Reader provides the minimum permissions to access the portal, while Storage Blob Data Contributor provides the specific data operations needed for uploading. Storage Account Contributor grants too much access (account-level management), and Storage Blob Data Reader only allows reading, not uploading.
Why the other options are wrong:
- A. Storage Account Contributor provides excessive permissions for account management, violating least privilege.
- D. Contributor grants full management of storage1, including access to its keys, which is far more than needed and does not adhere to least privilege.
- E. Storage Blob Data Reader only allows reading blobs, not uploading/writing new content.
Question 49
You have an Azure Active Directory (Azure AD) tenant. You plan to delete multiple users by using Bulk delete in the Azure Active Directory admin center. You need to create and upload a file for the bulk delete. Which user attributes should you include in the file?
- A. The user principal name and usage location of each user only
- B. The user principal name of each user only
- C. The display name of each user only
- D. The display name and usage location of each user only
- E. The display name and user principal name of each user only
Show answer and explanation ▾
Correct answer: B
For bulk delete operations in Azure AD, the required attribute is the user principal name (UPN) of each user only. This is the unique identifier that Azure AD uses to identify users in the tenant. While other attributes like display name or usage location may be useful for identification purposes, only the UPN is required and sufficient for the bulk delete operation.
Why the other options are wrong:
- A. Usage location is not required for bulk delete; only UPN is mandatory.
- C. Display name alone is not sufficient as it may not be unique; UPN is required.
- D. Usage location is not required for bulk delete operations.
- E. The bulk delete template identifies each user by user principal name only, so a display name column is not used.
Question 50
You plan to create an Azure Storage account named storage1 that will contain a file share named share1. You need to ensure that share1 can support SMB Multichannel. The solution must minimize costs. How should you configure storage?
- A. Premium performance with locally-redundant storage (LRS)
- B. Standard performance with zone-redundant storage (ZRS)
- C. Premium performance with geo-redundant storage (GRS)
- D. Standard performance with locally-redundant storage (LRS)
Show answer and explanation ▾
Correct answer: A
SMB Multichannel is only supported on Premium performance tier Azure Files. Premium file shares support only LRS and ZRS, and LRS is the cheaper of the two, so Premium with LRS supports SMB Multichannel at the lowest cost.
Why the other options are wrong:
- B. Standard performance tier does not support SMB Multichannel; only Premium tier does.
- C. Premium (SSD) file shares do not support GRS; they can use only LRS or ZRS (https://learn.microsoft.com/en-us/azure/storage/files/files-redundancy).
- D. Standard performance tier does not support SMB Multichannel regardless of redundancy type.
Question 51
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 Storage account named storage1. You need to enable a user named User1 to list and regenerate storage account keys for storage1. Solution: You assign the Reader and Data Access role to User1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Reader and Data Access role includes permission to list the storage account keys (listKeys), but it does not include permission to regenerate them (regenerateKey), so it cannot meet the goal. A role that includes the regenerateKey permission, such as the Storage Account Key Operator Service Role, is required for key regeneration operations.
Why the other options are wrong:
- A. This role can list the storage account keys but cannot regenerate them, so it does not meet the goal.
Question 52
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 machine named VM1 that runs Windows Server 2016. You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour. Solution: You create an Azure Log Analytics workspace and a data collection rule that collects only performance counters from VM1, which installs the Azure Monitor Agent on VM1. You create a metric alert rule in Azure Monitor and specify VM1 as the source. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Windows event log entries reach Azure Monitor only when a data collection rule includes a Windows Event Logs data source, which sends the events to the Event table of a Log Analytics workspace. Here the rule collects only performance counters, so no System log errors are ever recorded, and a metric alert rule on VM1 evaluates numeric metrics rather than counting log records. Meeting the goal requires a Windows Event Logs source for System Error events and a log search alert rule with a threshold of more than 2 in one hour.
Why the other options are wrong:
- A. The Azure Monitor Agent sends only what its data collection rule defines; with performance counters alone no event records exist, and a metric alert cannot count event log entries.
Question 53
You have a Microsoft Entra tenant named contoso.com. You collaborate with an external partner named fabrikam.com. You plan to invite users in fabrikam.com to the contoso.com tenant. You need to ensure that invitations can be sent only to fabrikam.com users. What should you do in the Microsoft Entra admin center?
- A. From Cross-tenant access settings, configure the Tenant restrictions settings.
- B. From Cross-tenant access settings, configure the Microsoft cloud settings.
- C. From External collaboration settings, configure the Guest user access restrictions settings.
- D. From External collaboration settings, configure the Collaboration restrictions settings.
Show answer and explanation ▾
Correct answer: D
Collaboration restrictions in External collaboration settings allow administrators to control which external domains can be invited to the tenant. By configuring collaboration restrictions, you can specify that only fabrikam.com users can be invited, preventing invitations from being sent to other external domains.
Why the other options are wrong:
- A. Tenant restrictions control which external tenants your users can access from your network or devices; they do not limit which domains can be invited as guests.
- B. Microsoft cloud settings in cross-tenant access control cloud environment interactions, not guest user restrictions.
- C. Guest user access restrictions control permissions for guest users already in the tenant, not which external domains can be invited.
Question 54
You have an Azure subscription named Subscription1 that contains an Azure virtual machine named VM1. VM1 is in a resource group named RG1. VM1 runs services that will be used to deploy resources to RG1. You need to ensure that a service running on VM1 can manage the resources in RG1 by using the identity of VM1. What should you do first?
- A. From the Azure portal, modify the Managed Identity settings of VM1
- B. From the Azure portal, modify the Access control (IAM) settings of RG1
- C. From the Azure portal, modify the Access control (IAM) settings of VM1
- D. From the Azure portal, modify the Policies settings of RG1
Show answer and explanation ▾
Correct answer: A
To enable a service running on VM1 to manage resources using the VM's identity, the first step is to enable a managed identity on the VM itself. This creates the identity that the service will use. After the managed identity is enabled, you would then configure IAM permissions on the resource group to grant that identity the necessary access, but enabling the managed identity on the VM must come first.
Why the other options are wrong:
- B. While IAM settings of RG1 must be modified eventually, the managed identity must exist first on the VM.
- C. Access control (IAM) settings on the VM itself do not enable managed identity.
- D. Policies on RG1 do not enable managed identity for the VM.
Question 55
You have an Azure subscription that contains a virtual machine named VM1. VM1 hosts a line-of-business application that is available 24 hours a day. VM1 has one network interface and one managed disk. VM1 uses the D4s v3 size. You plan to make the following changes to VM1:
- Change the size to D8s v3.
- Add a 500-GB managed disk.
- Add the Puppet Agent extension.
- Enable Desired State Configuration Management.
Which change will cause downtime for VM1?
- A. Enable Desired State Configuration Management
- B. Add a 500-GB managed disk
- C. Change the size to D8s v3
- D. Add the Puppet Agent extension
Show answer and explanation ▾
Correct answer: C
Changing the VM size from D4s v3 to D8s v3 restarts the VM, which causes downtime. Adding managed disks and extensions can be done without downtime, and Desired State Configuration Management can be enabled without stopping the VM.
Why the other options are wrong:
- A. Desired State Configuration Management can be enabled on a running VM without causing downtime.
- B. Adding a managed disk to a VM does not require downtime.
- D. Adding the Puppet Agent extension can be completed without stopping the VM.
Question 56
You have an Azure subscription that contains a virtual network named VNet1. VNet1 contains four subnets named Gateway, Perimeter, NVA, and Production. The NVA subnet contains two network virtual appliances (NVAs) that will perform network traffic inspection between the Perimeter subnet and the Production subnet. You need to implement an Azure load balancer for the NVAs. The solution must meet the following requirements:
- The NVAs must run in an active-active configuration that uses automatic failover.
- The load balancer must load balance traffic to two services on the Production subnet. The services have different IP addresses.
Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A. Deploy a basic load balancer
- B. Deploy a standard load balancer
- C. Add two load balancing rules that have HA Ports and Floating IP enabled
- D. Add two load balancing rules that have HA Ports enabled and Floating IP disabled
- E. Add a frontend IP configuration, a backend pool, and a health probe
- F. Add two frontend IP configurations, a backend pool, and a health probe
Show answer and explanation ▾
Correct answer: B, C, F
An active-active NVA pair behind a load balancer relies on HA Ports, which load-balance all TCP and UDP flows on all ports to the healthy appliances. HA Ports is available only on an internal Standard Load Balancer. A health probe detects a failed appliance and stops sending it traffic, which provides automatic failover. To handle two services with different IP addresses, you add two HA Ports rules on the same backend pool. Microsoft supports multiple HA Ports rules for one backend pool only when each rule uses its own frontend IP configuration and has Floating IP enabled. That requires a Standard load balancer, two HA Ports rules with Floating IP, and two frontends, one backend pool and a health probe.
Why the other options are wrong:
- A. The Basic Load Balancer does not support HA Ports and was retired on September 30, 2025.
- D. Two HA Ports rules that share one backend pool must have Floating IP enabled, so rules with Floating IP disabled cannot be configured together.
- E. Each HA Ports rule needs a unique frontend IP configuration, so one frontend cannot support two HA Ports rules for the two services.
Question 57
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 machine named VM1. VM1 was deployed by using a custom Azure Resource Manager template named ARM1.json. You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to a different host immediately. Solution: From the Overview blade, you move the virtual machine to a different resource group. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Moving a VM to a different resource group does not move it to a different physical host. The VM would remain on the same host where the maintenance is scheduled. To move a VM to a different host immediately during maintenance, you must deallocate and reallocate the VM, which forces Azure to provision it on a different host.
Why the other options are wrong:
- A. Resource group assignment is a logical organizational construct and does not affect the physical host on which the VM runs.
Question 58
You have an Azure virtual machine (VM) that has a single data disk. You have been tasked with attaching this data disk to another Azure VM. You need to make sure that your strategy allows for the virtual machines to be offline for the least amount of time possible. Which of the following is the action you should take FIRST?
- A. Stop the VM that includes the data disk.
- B. Stop the VM that the data disk must be attached to.
- C. Detach the data disk.
- D. Delete the VM that includes the data disk.
Show answer and explanation ▾
Correct answer: C
Azure supports hot-detaching a data disk from a running VM and hot-attaching it to another running VM. Detaching the disk first therefore avoids stopping either VM, which keeps downtime to a minimum.
Why the other options are wrong:
- A. Stopping the source VM is unnecessary because data disks can be detached while the VM is running.
- B. Stopping the target VM is unnecessary because data disks can be attached while the VM is running.
- D. Deleting the source VM is destructive and not required to move a data disk.
Question 59
You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual machine scale set by using an Azure Resource Manager template. You need to ensure that NGINX is available on all the virtual machines after they are deployed. What should you use?
- A. the Publish-AzVMDscConfiguration cmdlet
- B. Azure Application Insights
- C. Azure Custom Script Extension
- D. a Microsoft Endpoint Manager device configuration profile
Show answer and explanation ▾
Correct answer: C
The Azure Custom Script Extension is the appropriate tool for deploying applications like NGINX to VMs in a scale set during or after deployment. It allows you to run scripts that install software on all instances. DSC is for configuration management, Application Insights is for monitoring, and Endpoint Manager is for device management, none of which are designed for post-deployment software installation across a scale set.
Why the other options are wrong:
- A. DSC is for configuration management, not for direct application installation in scale sets.
- B. Application Insights is a monitoring tool, not for deploying applications.
- D. Endpoint Manager device profiles are for managing device policies, not deploying applications to Azure VMs.
Question 60
You have a Recovery Services vault that you use to test backups. The test backups contain two protected virtual machines. You need to delete the Recovery Services vault. What should you do first?
- A. From the Recovery Services vault, delete the backup data.
- B. Modify the disaster recovery properties of each virtual machine.
- C. Modify the locks of each virtual machine.
- D. From the Recovery Services vault, stop the backup of each backup item.
Show answer and explanation ▾
Correct answer: D
Before deleting a Recovery Services vault, you must stop the backup of each protected item (D). The vault cannot be deleted while it contains active backup items with ongoing protection. Deleting backup data alone is insufficient; the protection must be stopped first. Modifying disaster recovery properties or locks does not address the underlying requirement to cease protection. The backup items must have their protection stopped before vault deletion is permitted.
Why the other options are wrong:
- A. Deleting backup data does not disable protection; the vault will not delete while backup items remain protected.
- B. Modifying disaster recovery properties does not stop the backup protection required for vault deletion.
- C. Modifying VM locks does not address the backup protection status that prevents vault deletion.
Question 61
You have an Azure subscription that contains 10 virtual machines, a key vault named Vault1, and a network security group (NSG) named NSG1. All the resources are deployed to the East US Azure region. The virtual machines are protected by using NSG1. NSG1 is configured to block all outbound traffic to the internet. You need to ensure that the virtual machines can access Vault1. The solution must use the principle of least privilege and minimize administrative effort. What should you configure as the destination of the outbound security rule for NSG1?
- A. an application security group
- B. a service tag
- C. an IP address range
Show answer and explanation ▾
Correct answer: B
Service tags represent Azure service IP ranges and are the best choice for configuring outbound access to Azure Key Vault. The 'KeyVault' service tag automatically includes all IP addresses for the Key Vault service, reducing administrative overhead and following least privilege by allowing only the necessary service traffic. This is more efficient than managing IP ranges or application security groups.
Why the other options are wrong:
- A. Application security groups require manual configuration and maintenance of VM membership, creating unnecessary administrative effort.
- C. IP address ranges are difficult to maintain, lack abstraction, and require manual updates when Microsoft changes infrastructure IPs.
Question 62
You have an Azure Resource Manager template named Template1 that is used to deploy an Azure virtual machine. Template1 contains the following text: The variables section in Template1 contains the following text: "location": "westeurope". The resources section in Template1 contains the following text: You need to deploy the virtual machine to the West US location by using Template1. What should you do?
- A. Modify the location in the resources section to westus
- B. Select West US during the deployment
- C. Modify the location in the variables section to westus
Show answer and explanation ▾
Correct answer: A
The virtual machine resource has its location hard-coded as westeurope in the resources section. It does not read the location parameter or the variables section, so the region chosen at deployment and the variables section have no effect on the VM. Change the location in the resources section to westus.
Why the other options are wrong:
- B. The region selected at deployment only stores the deployment metadata. The VM location comes from the resource definition, which is fixed to westeurope.
- C. The resource does not reference the location in the variables section, so changing it does not move the virtual machine.
Question 63
Your company has two on-premises servers named SRV01 and SRV02. Developers have created an application that runs on SRV01. The application calls a service on SRV02 by IP address. You plan to migrate the application on Azure virtual machines (VMs). You have configured two VMs on a single subnet in an Azure virtual network. You need to configure the two VMs with static internal IP addresses. What should you do?
- A. Run the New-AzVMConfig PowerShell cmdlet.
- B. Run the Set-AzVirtualNetworkSubnetConfig PowerShell cmdlet.
- C. Create a public IP address that uses the Static allocation method and associate it with each VM.
- D. Modify the IP properties in Windows Network and Sharing Center.
- E. Set the private IP address assignment to Static in the IP configuration of each VM's network interface.
Show answer and explanation ▾
Correct answer: E
In Azure Resource Manager the private IP address of a VM belongs to the IP configuration of its network interface, so that is where it is made static: open the network interface of each VM, select IP configurations, set Assignment to Static and save (Set-AzNetworkInterfaceIpConfig or az network nic ip-config update do the same). Azure then reserves the address for the VM, so the migrated application can keep calling its service by IP address. Microsoft advises against assigning the private IP inside the guest operating system, because a mismatch with the NIC setting can cut connectivity.
Why the other options are wrong:
- A. New-AzVMConfig only builds a local configuration object with a VM name and size for a new deployment; it does not change the IP assignment on the network interfaces of the existing VMs.
- B. Set-AzVirtualNetworkSubnetConfig changes subnet properties such as the address prefix, network security group or route table; it cannot reserve an address for an individual VM.
- C. A static public IP address is a fixed internet-facing address. The VMs need fixed internal addresses on the subnet, which come from the private IP configuration of each network interface.
- D. Network and Sharing Center changes only the guest OS setting. Azure still assigns the NIC address, and a mismatch between the two can make the VM lose connectivity.
Question 64
You have an Azure subscription named Subscription1. You deploy a Linux virtual machine named VM1 to Subscription1. You need to monitor the metrics and the logs of VM1. What should you use?
- A. Azure HDInsight
- B. the Azure Monitor Agent with a data collection rule
- C. the AzurePerformanceDiagnostics extension
- D. Azure Analysis Services
Show answer and explanation ▾
Correct answer: B
The Azure Monitor Agent collects guest operating system data from Linux VMs, and a data collection rule associated with VM1 defines what it collects and where it goes: performance counters for metrics and Syslog or text logs for logs, delivered to a Log Analytics workspace. Creating the rule in the portal and adding VM1 as a resource installs the agent automatically. Host metrics arrive without any agent, but guest metrics and logs need the agent and its data collection rule.
Why the other options are wrong:
- A. Azure HDInsight is a managed analytics service for big data clusters such as Spark and Hadoop; it does not collect metrics or logs from a virtual machine.
- C. The AzurePerformanceDiagnostics extension runs on-demand performance diagnostics and produces a troubleshooting report; it does not continuously collect metrics and logs for monitoring.
- D. Azure Analysis Services hosts semantic data models for business intelligence tools; it has no way to collect metrics or logs from VM1.
Question 65
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 machine named VM1 that runs Windows Server 2016. You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour. Solution: You create an Azure Log Analytics workspace and a data collection rule that collects Error events from the System event log, sends them to the workspace and adds VM1 as a resource, which installs the Azure Monitor Agent on VM1. You create a log search alert rule on the workspace that counts these events and fires when more than 2 are logged within one hour. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The goal needs System log Error events from VM1 in a Log Analytics workspace and an alert that counts them per hour. A data collection rule with a Windows Event Logs source for the System log at the Error level sends the events to the Event table, and adding VM1 to the rule in the portal installs the Azure Monitor Agent. A log search alert rule on the workspace that counts these rows, with a threshold of greater than 2 over a one hour window, fires exactly when required.
Why the other options are wrong:
- B. The solution collects the right events with the Azure Monitor Agent, stores them in the workspace and alerts on their hourly count, so every part of the requirement is covered.
Question 66
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 subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com: User1 creates a new Azure Active Directory tenant named external.contoso.onmicrosoft.com. You need to create new user accounts in external.contoso.onmicrosoft.com. Solution: You instruct User4 to create the user accounts. Does that meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
User4 has the 'Owner' role scoped to the Azure Subscription, not to the Azure Active Directory tenant. The Owner role at the subscription level grants permissions over subscription resources, but does not grant permissions to manage users in an Azure AD tenant. To create user accounts in the external.contoso.onmicrosoft.com tenant, a user must have a Global Administrator or User Administrator role scoped to that specific Azure AD tenant. User4 lacks the necessary Azure AD administrative role in the external tenant, so they cannot create user accounts there.
Why the other options are wrong:
- A. User4 is a Subscription Owner, not an Azure AD administrator in the external tenant, so they lack the required permissions to create user accounts in the Azure AD tenant.
Question 67
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 Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: From Azure AD in the Azure portal, you use the Bulk create user operation. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Bulk create user operation in Azure AD is designed for creating member users, not guest users. While bulk operations exist in Azure AD, the standard bulk create functionality creates internal member accounts. To bulk-invite external users as guests, you need to use the bulk invite feature (based on New-AzureADMSInvitation), which is different from the standard bulk user creation tool.
Why the other options are wrong:
- A. Bulk create user is for member accounts; bulk invite is needed for guest accounts.
Question 68
You have an Azure subscription that contains a storage account named account1. You plan to upload the disk files of a virtual machine to account1 from your on-premises network. The on-premises network uses a public IP address space of 131.107.1.0/24. You plan to use the disk files to provision an Azure virtual machine named VM1. VM1 will be attached to a virtual network named VNet1. VNet1 uses an IP address space of 192.168.0.0/24. You need to configure account1 to meet the following requirements:
- Ensure that you can upload the disk files to account1.
- Ensure that you can attach the disks to VM1.
- Prevent all other access to account1.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A. From the Networking blade of account1, select Selected networks.
- B. From the Networking blade of account1, select Allow trusted Microsoft services to access this storage account.
- C. From the Networking blade of account1, add the 131.107.1.0/24 IP address range.
- D. From the Networking blade of account1, add VNet1.
- E. From the Service endpoints blade of VNet1, add a service endpoint.
Show answer and explanation ▾
Correct answer: A, C
To upload disk files from on-premises (131.107.1.0/24) and allow attachment to VM1 in VNet1, you must: (A) Select 'Selected networks' to restrict access to only approved networks, and (C) add the on-premises IP address range 131.107.1.0/24 to allow uploads from that location. Adding VNet1 is not necessary because VM1 can access storage through Microsoft's backbone without explicit VNet configuration. Service endpoints are not required here. Trusted Microsoft services applies to specific services like backup, not general VM disk attachment.
Why the other options are wrong:
- B. Allowing trusted Microsoft services is not necessary for VM disk attachment and would override the network restrictions.
- D. Adding VNet1 is not required; VM1 can access the storage account through the Azure backbone even when network restrictions are in place.
- E. Service endpoints are not required to enable VM disk attachment to a storage account with network restrictions.
Question 69
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 subscription named Subscription1. Subscription1 contains a resource group named RG1. RG1 contains resources that were deployed by using templates. You need to view the date and time when the resources were created in RG1. Solution: From the RG1 blade, you click Deployments. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
Clicking 'Deployments' from the RG1 blade displays the deployment history for all resources in that resource group, including deployment dates and times when resources were created. This is the correct location to view when template-deployed resources were provisioned.
Why the other options are wrong:
- B. No does not fit: the Deployments page of RG1 lists each template deployment with its date and time, which shows when the deployed resources were created.
Question 70
You have an Azure Active Directory (Azure AD) tenant named contosocloud.onmicrosoft.com. Your company has a public DNS zone for contoso.com. You add contoso.com as a custom domain name to Azure AD. You need to ensure that Azure can verify the domain name. Which type of DNS record should you create?
- A. MX
- B. NSEC
- C. PTR
- D. RRSIG
Show answer and explanation ▾
Correct answer: A
When adding a custom domain to Azure AD, the system requires DNS verification. Azure AD verifies domain ownership with either a TXT record or an MX record, and MX is the only one of these record types among the options. You must create the specified DNS record in your public DNS zone so Azure can confirm you control the domain.
Why the other options are wrong:
- B. NSEC records are DNSSEC-related security records, not used for domain verification.
- C. PTR records are used for reverse DNS lookups, not domain ownership verification.
- D. RRSIG records are DNSSEC signatures, not used for Azure AD domain verification.
Question 71
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 need to ensure that an Azure Active Directory (Azure AD) user named Admin1 is assigned the required role to enable Traffic Analytics for an Azure subscription. Solution: You assign the Owner role at the subscription level to Admin1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Owner role at the subscription level grants full permissions to manage all resources within the subscription, including the ability to enable Traffic Analytics. Owner is a highly privileged role that includes all necessary permissions for this task. Because Owner at the subscription level covers every flow log, storage account and Log Analytics workspace action in the subscription, assigning it meets the requirement.
Why the other options are wrong:
- B. No does not fit: the Owner role at subscription scope includes every action traffic analytics needs, including the Network Watcher, storage and Log Analytics workspace permissions.
Question 72
You create an App Service plan named Plan1 and an Azure web app named webapp1. You discover that the option to create a staging slot is unavailable. You need to create a staging slot for Plan1. What should you do first?
- A. From Plan1, scale up the App Service plan
- B. From webapp1, modify the Application settings
- C. From webapp1, add a custom domain
- D. From Plan1, scale out the App Service plan
Show answer and explanation ▾
Correct answer: A
Staging slots are only available in the Standard tier or higher of App Service plans. If the staging slot option is unavailable, the plan is likely in the Free or Basic tier. Scaling up the App Service plan to Standard or Premium will enable the staging slot feature.
Why the other options are wrong:
- B. Application settings modifications do not affect staging slot availability, which is determined by the pricing tier.
- C. Custom domains do not enable staging slots; tier level is the controlling factor.
- D. Scaling out (adding more instances) does not change the pricing tier; you must scale up to a higher tier.
Question 73
You have an Azure subscription that contains a storage account named storage1. You plan to use conditions when assigning role-based access control (RBAC) roles to storage1. Which storage1 services support conditions when assigning roles?
- A. containers only
- B. file shares only
- C. tables only
- D. queues only
- E. containers and queues only
- F. file shares and tables only
Show answer and explanation ▾
Correct answer: E
RBAC conditions are supported for containers and queues in Azure Storage. These conditions allow fine-grained access control based on attributes like blob index tags and blob properties for containers, and queue names for queues. Tables and file shares do not support attribute-based conditions in RBAC role assignments.
Why the other options are wrong:
- A. Only containers is incomplete; queues also support conditions.
- B. File shares do not support RBAC conditions.
- C. Tables do not support RBAC conditions.
- D. Queues alone is incomplete; containers also support conditions.
- F. Neither file shares nor tables support RBAC conditions.
Question 74
You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com that contains 100 user accounts. You purchase 10 Azure AD Premium P2 licenses for the tenant. You need to ensure that 10 users can use all the Azure AD Premium features. What should you do?
- A. From the Licenses blade of Azure AD, assign a license
- B. From the Groups blade of each user, invite the users to a group
- C. From the Azure AD domain, add an enterprise application
- D. From the Directory role blade of each user, modify the directory role
Show answer and explanation ▾
Correct answer: A
To enable Azure AD Premium P2 features for users, you must assign the purchased licenses to those users. This is done from the Licenses blade in Azure AD, where you can select users and allocate the premium licenses to them.
Why the other options are wrong:
- B. Adding users to groups does not grant them premium features; licenses must be explicitly assigned.
- C. Adding enterprise applications is unrelated to assigning premium licenses to users.
- D. Modifying directory roles does not activate premium feature access; licenses must be assigned.
Question 75
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 Active Directory (Azure AD) tenant named Adatum and an Azure Subscription named Subscription1. Adatum contains a group named Developers. Subscription1 contains a resource group named Dev. You need to provide the Developers group with the ability to create Azure logic apps in the Dev resource group. Solution: On Subscription1, you assign the DevTest Labs User role to the Developers group. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The DevTest Labs User role is designed for DevTest Labs environments specifically and does not grant permissions to create logic apps in a standard resource group. To enable the Developers group to create logic apps in the Dev resource group, they would need a role such as Logic App Contributor or Contributor at the resource group level.
Why the other options are wrong:
- A. DevTest Labs User role is scoped to DevTest Labs resources and does not provide the necessary permissions for logic app creation in standard resource groups.
Question 76
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 machine named VM1. VM1 was deployed by using a custom Azure Resource Manager template named ARM1.json. You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to a different host immediately. Solution: From the VM1 Updates blade, select One-time update. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Updates blade and One-time update option are used to install Windows patches and updates on the VM, not to move it to a different physical host. This does not address the maintenance requirement to relocate the VM to another host.
Why the other options are wrong:
- A. Applying updates through the Updates blade does not move the VM to a different host.
Question 77
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has a Microsoft SQL Server Always On availability group configured on their Azure virtual machines (VMs). You need to configure an Azure internal load balancer as a listener for the availability group. Solution: You create an HTTP health probe on port 1433. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
An HTTP health probe on port 1433 does not meet the goal. SQL Server Always On uses port 1433 for database connections, but the health probe for an availability group listener should be a TCP probe on a separate, unused probe port (for example 59999) that the cluster IP resource answers on, not an HTTP probe. HTTP probes are application-level checks inappropriate for SQL Server availability groups, which require direct TCP connectivity to verify instance health.
Why the other options are wrong:
- A. HTTP probes are not suitable for SQL Server Always On listeners; TCP probes on the correct port are required.
Question 78
You have an app named App1 that runs on two Azure virtual machines named VM1 and VM2. You plan to implement an Azure Availability Set for App1. The solution must ensure that App1 is available during planned maintenance of the hardware hosting VM1 and VM2. What should you include in the Availability Set?
- A. one update domain
- B. two fault domains
- C. one fault domain
- D. two update domains
Show answer and explanation ▾
Correct answer: D
To ensure App1 remains available during planned maintenance, you need multiple update domains. Azure Availability Sets use update domains to stagger maintenance windows so that not all VMs are updated simultaneously. With two VMs, you need at least two update domains to guarantee one VM remains online during maintenance of the other. Fault domains protect against hardware failures, but update domains specifically address planned maintenance scenarios.
Why the other options are wrong:
- A. One update domain means both VMs could be updated simultaneously, causing downtime.
- B. Fault domains protect against hardware failures, not planned maintenance windows.
- C. One fault domain provides no redundancy for planned maintenance events.
Question 79
You have an Azure subscription. You plan to create an Azure container registry named ContReg1. You need to ensure that you can push and pull signed images for ContReg1. What should you do for ContReg1?
- A. Enable encryption by using a customer-managed key.
- B. Create a connected registry.
- C. Add a token.
- D. Sign the images by using Notation (Notary Project) and store the signatures in ContReg1.
Show answer and explanation ▾
Correct answer: D
ContReg1 is a new registry, and since May 31, 2026, Docker Content Trust cannot be enabled on new Azure container registries. Microsoft recommends the Notary Project as the replacement for signed images. You sign an image with the Notation CLI, usually with a signing key and certificate stored in Azure Key Vault, and the signature is pushed to ContReg1 as an OCI artifact linked to the image. Clients pull the image and verify the signature against a trust policy before they deploy it. Signing with Notation and storing the signatures in ContReg1 is therefore what lets you push and pull signed images.
Why the other options are wrong:
- A. A customer-managed key encrypts registry content at rest. It does not sign images or let clients verify signatures.
- B. A connected registry is an on-premises or edge replica of a cloud registry for local access. It does not provide image signing.
- C. A token grants repository-scoped push or pull access. It controls authentication, not image signing or verification.
Question 80
You have 15 Azure subscriptions. You have an Azure Active Directory (Azure AD) tenant that contains a security group named Group1. You plan to purchase additional Azure subscriptions. You need to ensure that Group1 can manage role assignments for the existing subscriptions and the planned subscriptions. The solution must meet the following requirements:
- Use the principle of least privilege.
- Minimize administrative effort.
What should you do?
- A. Assign Group1 the Owner role for the root management group.
- B. Assign Group1 the User Access Administrator role for the root management group.
- C. Create a new management group and assign Group1 the User Access Administrator role for the group.
- D. Create a new management group and assign Group1 the Owner role for the group.
Show answer and explanation ▾
Correct answer: B
The User Access Administrator role at the root management group level allows Group1 to manage role assignments across all current and future subscriptions while following the principle of least privilege. This role specifically enables RBAC management without granting full administrative capabilities like Owner, and it automatically applies to planned subscriptions.
Why the other options are wrong:
- A. Owner role grants excessive permissions beyond what is needed for role assignment management, violating least privilege.
- C. Creating a new management group would require moving subscriptions to it, adding complexity; using root management group minimizes administrative effort.
- D. Creating a new management group with Owner role adds unnecessary complexity and grants excess permissions beyond role assignment management needs.
Question 81
You have an Azure Active Directory (Azure AD) tenant that contains 5,000 user accounts. You create a new user account named AdminUser1. You need to assign the User administrator administrative role to AdminUser1. What should you do from the user account properties?
- A. From the Licenses blade, assign a new license
- B. From the Directory role blade, modify the directory role
- C. From the Groups blade, invite the user account to a new group
Show answer and explanation ▾
Correct answer: B
To assign an administrative role such as User administrator to a user account in Azure AD, you must navigate to the Directory role blade within the user's properties and modify the directory role assignment from there.
Why the other options are wrong:
- A. The Licenses blade is for assigning product licenses, not administrative roles.
- C. The Groups blade is for managing group membership, not for assigning administrative roles.
Question 82
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 subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com: User1 creates a new Azure Active Directory tenant named external.contoso.onmicrosoft.com. You need to create new user accounts in external.contoso.onmicrosoft.com. Solution: You instruct User3 to create the user accounts. Does that meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
User3 is a User administrator with scope limited to Azure Active Directory (the contoso.onmicrosoft.com tenant). When User1 creates a new Azure AD tenant named external.contoso.onmicrosoft.com, User3's administrative permissions do not automatically transfer to this new tenant. User3 would need to be explicitly assigned administrative roles in the external.contoso.onmicrosoft.com tenant to create user accounts there. Since User3's current permissions are scoped only to the original Azure AD tenant, instructing User3 to create accounts in the new tenant would not work without first granting User3 the appropriate role in that new tenant.
Why the other options are wrong:
- A. User3's administrative scope is limited to the original Azure Active Directory tenant and does not extend to the newly created external tenant.
Question 83
Your company has an Azure Active Directory (Azure AD) subscription. You need to deploy five virtual machines (VMs) to your company's virtual network subnet. The VMs will each have both a public and private IP address. Inbound and outbound security rules for all of these virtual machines must be identical. Which of the following is the least amount of network interfaces needed for this configuration?
- A. 5
- B. 10
- C. 20
- D. 40
Show answer and explanation ▾
Correct answer: A
The minimum number of network interfaces needed is 5. Each VM requires only one network interface, which can have multiple IP address configurations. A single IP configuration on a network interface holds the private IP address and can also have a public IP address associated with it, so five VMs need only five network interfaces total. Public IP addresses are associated with private IP configurations on the NIC, not as separate interfaces.
Why the other options are wrong:
- B. Ten interfaces are not necessary; each VM needs only one NIC, whose IP configuration holds both the private and the public IP address.
- C. Twenty interfaces are far more than required for this configuration.
- D. Forty interfaces are completely unnecessary; this exceeds requirements by an order of magnitude.
Question 84
You develop the following Azure Resource Manager (ARM) template to create a resource group and deploy an Azure Storage account to the resource group. Which cmdlet should you run to deploy the template?
- A. New-AzResource
- B. New-AzResourceGroupDeployment
- C. New-AzTenantDeployment
- D. New-AzDeployment
Show answer and explanation ▾
Correct answer: D
The template creates a resource group (Microsoft.Resources/resourceGroups). A resource group can only be created by a deployment at subscription scope. New-AzDeployment (alias New-AzSubscriptionDeployment) deploys to a subscription, so it can create RG1 and then deploy the storage account into it.
Why the other options are wrong:
- A. New-AzResource creates a single resource. It does not deploy an ARM template.
- B. New-AzResourceGroupDeployment deploys at resource group scope and needs an existing resource group, so it cannot create RG1.
- C. New-AzTenantDeployment deploys at tenant scope, which is not needed to create a resource group in a subscription.
Question 85
You need to deploy an Azure virtual machine scale set that contains five instances as quickly as possible. What should you do?
- A. Deploy five virtual machines. Modify the Availability Zones settings for each virtual machine.
- B. Deploy five virtual machines. Modify the Size setting for each virtual machine.
- C. Deploy one availability set that contains five virtual machines.
- D. Deploy one virtual machine scale set that is set to ScaleSetVM orchestration mode.
Show answer and explanation ▾
Correct answer: D
The requirement is a virtual machine scale set with five instances, deployed as quickly as possible. One scale set deployment creates all five instances from a single model in one operation, and the platform provisions them in parallel. ScaleSetVM is the orchestration mode value used for Uniform orchestration, in which the scale set manages identical instances directly from its model, so a single deployment with an instance count of five meets the goal. Deploying separate virtual machines or an availability set produces individual VMs that must each be configured, and the result is not a scale set at all.
Why the other options are wrong:
- A. Five separate virtual machines are not a scale set, and changing the Availability Zones setting on each one adds manual work.
- B. Five separate virtual machines are not a scale set, and resizing each one adds manual work without creating the required scale set.
- C. An availability set groups individually deployed virtual machines for fault and update domain placement. It is not a virtual machine scale set.
Question 86
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 Active Directory (Azure AD) tenant named Adatum and an Azure Subscription named Subscription1. Adatum contains a group named Developers. Subscription1 contains a resource group named Dev. You need to provide the Developers group with the ability to create Azure logic apps in the Dev resource group. Solution: On Subscription1, you assign the Logic App Operator role to the Developers group. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Logic App Operator role allows users to read, enable, and disable logic apps, but does not grant the ability to create new logic apps. To create logic apps, users need the Contributor or Logic App Contributor role, which provides full management capabilities including creation of new resources.
Why the other options are wrong:
- A. Logic App Operator only permits reading and managing existing logic apps, not creating new ones.
Question 87
You have an Azure subscription that contains an Azure virtual machine named VM1. VM1 runs a financial reporting app named App1 that does not support multiple active instances. At the end of each month, CPU usage for VM1 peaks when App1 runs. You need to create a scheduled runbook to increase the processor performance of VM1 at the end of each month. What task should you include in the runbook?
- A. Add the Azure Performance Diagnostics agent to VM1.
- B. Modify the VM size property of VM1.
- C. Add VM1 to a scale set.
- D. Increase the vCPU quota for the subscription.
- E. Add a Desired State Configuration (DSC) extension to VM1.
Show answer and explanation ▾
Correct answer: B
To increase processor performance of a VM, you must modify its size to one with more vCPUs or better performance characteristics. This is done by changing the VM size property, which restarts the VM, or requires deallocating it first if the new size is not available on the current hardware cluster. This is the appropriate mechanism for increasing computational resources for scheduled workloads.
Why the other options are wrong:
- A. Performance Diagnostics agent only monitors and diagnoses performance issues; it does not improve performance.
- C. Scale sets are for managing multiple VMs with load distribution, not for increasing single-instance performance.
- D. vCPU quota is a subscription-level limit; it doesn't increase individual VM performance once within quota.
- E. DSC extensions configure desired state but do not improve hardware performance characteristics.
Question 88
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 container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You set Admin user to Enable for Registry1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
Enabling the Admin user on an Azure Container Registry provides admin credentials that allow authentication when deploying container instances. Without proper authentication credentials configured, deployments will fail. Enabling the Admin user is a straightforward solution that provides the necessary authentication mechanism for container instance deployment.
Why the other options are wrong:
- B. Enabling Admin user access is the correct approach to resolve authentication issues with container deployments.
Question 89
You have an Azure subscription named Subscription1 that contains a virtual network named VNet1. VNet1 is in a resource group named RG1. Subscription1 has a user named User1. User1 has the following roles:
- Reader
- Security Admin
- Security Reader
You need to ensure that User1 can assign the Reader role for VNet1 to other users. What should you do?
- A. Remove User1 from the Security Reader and Reader roles for Subscription1.
- B. Assign User1 the User Access Administrator role for VNet1.
- C. Assign User1 the Network Contributor role for VNet1.
- D. Assign User1 the Network Contributor role for RG1.
Show answer and explanation ▾
Correct answer: B
To allow User1 to assign the Reader role to other users for VNet1, User1 must have the User Access Administrator role scoped to VNet1. This role grants the ability to manage role assignments, which the current roles (Reader, Security Admin, Security Reader) do not provide.
Why the other options are wrong:
- A. Removing roles would further restrict User1's permissions and prevent role assignment.
- C. Network Contributor allows network resource management but not role assignment authority.
- D. Network Contributor, even at the RG1 scope, manages network resources but does not include the Microsoft.Authorization permissions needed to assign roles.
Question 90
You plan to back up an Azure virtual machine named VM1. You discover that the Backup Pre-Check status displays a status of Warning. What is a possible cause of the Warning status?
- A. VM1 is stopped.
- B. VM1 does not have the latest version of the Azure VM Agent (WaAppAgent.exe) installed.
- C. VM1 has an unmanaged disk.
- D. A Recovery Services vault is unavailable.
Show answer and explanation ▾
Correct answer: B
A Warning status in Backup Pre-Check typically indicates a condition that does not prevent backup but should be remedied for optimal backup operation. The absence of the latest Azure VM Agent version is a common cause of Warning status, as the agent is required for backup functionality and older versions may have compatibility or feature issues.
Why the other options are wrong:
- A. A stopped VM can still be backed up; this would not typically produce a Warning status.
- C. Unmanaged disks can be backed up and would not specifically cause a Warning status for this scenario.
- D. An unavailable Recovery Services vault would prevent backup and produce a Critical status, not a Warning.
Question 91
Your company has an Azure Active Directory (Azure AD) subscription. You need to deploy five virtual machines (VMs) to your company's virtual network subnet. The VMs will each have both a public and private IP address. Inbound and outbound security rules for all of these virtual machines must be identical. Which of the following is the least amount of security groups needed for this configuration?
- A. 4
- B. 3
- C. 2
- D. 1
Show answer and explanation ▾
Correct answer: D
The minimum number of security groups needed is 1. Since all five VMs have identical inbound and outbound security rules, a single Network Security Group (NSG) can be associated with the subnet or with the network interfaces of all five VMs. There is no requirement to create separate NSGs when the security requirements are identical across all resources.
Why the other options are wrong:
- A. Four security groups are more than necessary when all VMs have identical rules.
- B. Three security groups are unnecessary; identical rules can all be in one NSG.
- C. Two security groups are redundant when one NSG can serve all identical rule requirements.
Question 92
You have an Azure subscription that contains a web app named webapp1. You need to add a custom domain named www.contoso.com to webapp1. What should you do first?
- A. Create a DNS record
- B. Add a connection string
- C. Upload a certificate.
- D. Stop webapp1.
Show answer and explanation ▾
Correct answer: A
Before adding a custom domain to a web app, you must first create a DNS record that points the custom domain to the web app's IP address or domain. This DNS configuration is the prerequisite step. You would then verify the domain ownership in Azure Portal.
Why the other options are wrong:
- B. Connection strings are for database connectivity and are unrelated to custom domain setup.
- C. A certificate is needed for HTTPS/SSL but only after the domain is added and verified.
- D. There is no need to stop the web app to add a custom domain.
Question 93
You have an on-premises server that contains a folder named D:\Folder1. You need to copy the contents of D:\Folder1 to the public container in an Azure Storage account named contosodata. Which command should you run?
- A. azcopy make https://contosodata.blob.core.windows.net/public
- B. azcopy sync D:\folder1 https://contosodata.blob.core.windows.net/public --snapshot
- C. azcopy copy D:\folder1 https://contosodata.blob.core.windows.net/public --recursive
- D. az storage blob copy start-batch D:\Folder1 https://contosodata.blob.core.windows.net/public
Show answer and explanation ▾
Correct answer: C
The azcopy copy command with the --recursive flag is the correct tool for copying the contents of a local folder to an Azure blob container. This command recursively copies all files and subdirectories from D:\folder1 to the public container in the Azure Storage account. The syntax is correct and matches the standard AzCopy usage pattern for uploading local data to blob storage.
Why the other options are wrong:
- A. azcopy make creates a container; it does not copy any files from D:\Folder1 to the public container.
- B. The azcopy sync command is used for synchronizing data, not for initial bulk copies, and the --snapshot flag is not the appropriate flag for this operation.
- D. The az storage blob copy start-batch command copies blobs from a source container, share or URI in Azure; it does not upload files from a local folder such as D:\Folder1.
Question 94
You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com. The User administrator role is assigned to a user named Admin1. An external partner has a Microsoft account that uses the user1@outlook.com sign in. Admin1 attempts to invite the external partner to sign in to the Azure AD tenant and receives the following error message: `Unable to invite user user1@outlook.com - Generic authorization exception.` You need to ensure that Admin1 can invite the external partner to sign in to the Azure AD tenant. What should you do?
- A. From the Users settings blade, modify the External collaboration settings.
- B. From the Custom domain names blade, add a custom domain.
- C. From the Organizational relationships blade, add an identity provider.
- D. From the Roles and administrators blade, assign the Security administrator role to Admin1.
Show answer and explanation ▾
Correct answer: A
The External collaboration settings blade controls whether external users can be invited to the Azure AD tenant. The error occurs because the External collaboration settings in this tenant have been changed to restrict who can invite guests or which domains can be invited; by default, anyone in the organization can invite guest users. Modifying the External collaboration settings to allow invitations will enable Admin1 to invite user1@outlook.com.
Why the other options are wrong:
- B. Custom domain names are not related to the ability to invite external users.
- C. Adding an identity provider is unnecessary for inviting Microsoft account users to Azure AD.
- D. The Security administrator role is not required; the User administrator role already has sufficient permissions to invite users when external collaboration settings are configured correctly.
Question 95
You have an Azure subscription named Subscription1 that has the following providers registered:
- Authorization
- Automation
- Resources
- Compute
- KeyVault
- Network
- Storage
- Billing
- Web
Subscription1 contains an Azure virtual machine named VM1 that has the following configurations:
- Private IP address: 10.0.0.4 (dynamic)
- Network security group (NSG): NSG1
- Public IP address: None
- Availability set: AVSet
- Subnet: 10.0.0.0/24
- Managed disks: No
- Location: East US
You need to record all the successful and failed connection attempts to VM1. Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A. Enable Azure Network Watcher in the East US Azure region.
- B. Add an Azure Network Watcher connection monitor.
- C. Register the MicrosoftLogAnalytics provider.
- D. Create an Azure Storage account.
- E. Register the Microsoft.Insights resource provider.
- F. Enable Azure Network Watcher flow logs.
Show answer and explanation ▾
Correct answer: D, E, F
To record all successful and failed connection attempts to VM1, you need to: Create an Azure Storage account (D) to store the flow log data, Register the Microsoft.Insights resource provider (E) to enable logging and monitoring services, and Enable Azure Network Watcher flow logs (F) to capture network traffic and connection information. These three components work together to provide comprehensive connection logging.
Why the other options are wrong:
- A. Network Watcher must be enabled, but this is handled automatically in most regions; the focus should be on flow logs and insights provider.
- B. Connection Monitor is used for monitoring connectivity to specific endpoints, not for recording all connections to the VM.
- C. MicrosoftLogAnalytics is not required; Microsoft.Insights is the correct provider for monitoring and logging.
Question 96
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 Storage account named storage1. You need to enable a user named User1 to list and regenerate storage account keys for storage1. Solution: You assign the Storage Account Key Operator Service Role to User1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Storage Account Key Operator Service Role is specifically designed to allow users to list and regenerate storage account keys. This role grants exactly the permissions needed to meet the stated goal without providing broader access to the storage account.
Why the other options are wrong:
- B. This role is the correct assignment for the task, so the answer is not 'No'.
Question 97
You create an Azure Storage account named contosostorage. You plan to create a file share named data. Users need to map a drive to the data file share from home computers that run Windows 10. Which outbound port should you open between the home computers and the data file share?
- A. 80
- B. 443
- C. 445
- D. 3389
Show answer and explanation ▾
Correct answer: C
Azure File Shares use the SMB (Server Message Block) protocol, which operates on port 445. This port must be open in outbound firewall rules on client computers to enable mapping and accessing Azure file shares from Windows 10 machines. SMB is the standard protocol for network file sharing in Windows environments.
Why the other options are wrong:
- A. Port 80 is used for HTTP web traffic, not file sharing.
- B. Port 443 is used for HTTPS web traffic and some REST APIs, not SMB file sharing.
- D. Port 3389 is used for Remote Desktop Protocol (RDP), not file sharing.
Question 98
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 container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You assign the AcrPull role to ACR-Tasks-Network for Registry1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Assigning the AcrPull role to ACR-Tasks-Network does not directly solve the problem of deploying a container instance. The issue typically relates to the identity used by the container instance lacking pull permissions, which would require assigning AcrPull to the appropriate service principal or managed identity of the container instance itself.
Why the other options are wrong:
- A. This solution targets the wrong identity; ACR-Tasks-Network is not the service principal for the container instance deployment
Question 99
You have a Standard Azure App Service plan named Plan1. You need to ensure that Plan1 will scale automatically when the CPU usage of the web app exceeds 80 percent. What should you select for Plan1?
- A. Automatic in the Scale out method settings
- B. Rules Based in the Scale out method settings
- C. Premium P1 in the Scale up (App Service plan) settings
- D. Standard S1 in the Scale up (App Service plan) settings
- E. Manual in the Scale out method settings
Show answer and explanation ▾
Correct answer: B
Rules Based scaling in the Scale out method settings allows you to create custom metrics-based rules, such as automatically scaling when CPU usage exceeds a specified threshold like 80 percent. This is the correct configuration method for conditional auto-scaling.
Why the other options are wrong:
- A. Automatic scaling is a simpler option but does not provide the ability to set specific CPU threshold conditions
- C. Premium P1 is a scale-up option (changing plan tier), not a scale-out method for auto-scaling instances
- D. Standard S1 is a scale-up option, not related to auto-scaling configuration
- E. Manual scaling requires human intervention and does not provide automatic scaling based on CPU metrics
Question 100
You have an Azure DNS zone named adatum.com. You need to delegate a subdomain named research.adatum.com to a different DNS server in Azure. What should you do?
- A. Create an NS record named research in the adatum.com zone.
- B. Create a PTR record named research in the adatum.com zone.
- C. Modify the SOA record of adatum.com.
- D. Create an A record named *.research in the adatum.com zone.
Show answer and explanation ▾
Correct answer: A
To delegate a subdomain to a different DNS server, you create an NS (Name Server) record in the parent zone pointing to the authoritative nameservers of the subdomain. In this case, an NS record named 'research' in the adatum.com zone will delegate research.adatum.com to the specified DNS server. This is the standard method for DNS delegation.
Why the other options are wrong:
- B. PTR records are used for reverse DNS lookups, not subdomain delegation.
- C. The SOA record identifies the primary nameserver but does not perform delegation.
- D. An A record creates a host record and cannot delegate a subdomain to another DNS server.
Question 101
Your company has an Azure Active Directory (Azure AD) tenant that is configured for hybrid coexistence with the on-premises Active Directory domain. The on-premises virtual environment consists of virtual machines (VMs) running on Windows Server 2012 R2 Hyper-V host servers. You have created some PowerShell scripts to automate the configuration of newly created VMs. You plan to create several new VMs. You need a solution that ensures the scripts are run on the new VMs. Which of the following is the best solution?
- A. Configure a SetupComplete.cmd batch file in the %windir%\setup\scripts directory.
- B. Configure a Group Policy Object (GPO) to run the scripts as logon scripts.
- C. Configure a Group Policy Object (GPO) to run the scripts as startup scripts.
- D. Place the scripts in a new virtual hard disk (VHD).
Show answer and explanation ▾
Correct answer: A
SetupComplete.cmd is a batch file that runs automatically during Windows Setup after the operating system has been installed and before the user logs in for the first time. For on-premises Hyper-V environments creating new VMs, this approach executes PowerShell scripts reliably during initial VM setup without requiring AD infrastructure or domain membership to be already configured. This is the most reliable method for new VM configuration automation.
Why the other options are wrong:
- B. Logon scripts require a user to log in and depend on Group Policy processing; they won't run before user authentication.
- C. Startup scripts require the VM to be domain-joined and GPO processing to be complete, which may not be ready for new VMs.
- D. Placing scripts in a VHD doesn't execute them automatically; they would need to be manually invoked.
Question 102
You have an Azure subscription. In the Azure portal, you plan to create a storage account named storage1 that will have the following settings:
- Performance: Standard
- Replication: Zone-redundant storage (ZRS)
- Access tier (default): Cool
- Hierarchical namespace: Disabled
You need to ensure that you can set Account kind for storage1 to BlockBlobStorage. Which setting should you modify first?
- A. Performance
- B. Replication
- C. Access tier (default)
- D. Hierarchical namespace
Show answer and explanation ▾
Correct answer: A
BlockBlobStorage account kind requires Premium performance tier, not Standard performance. Since the current configuration has Standard performance selected, you must change the Performance setting first to Premium. Only after switching to Premium performance will the BlockBlobStorage option become available for the Account kind setting.
Why the other options are wrong:
- B. Replication type does not prevent selecting BlockBlobStorage; you can use ZRS with BlockBlobStorage.
- C. Access tier setting does not restrict BlockBlobStorage selection; the access tier is independent of account kind.
- D. Hierarchical namespace setting does not affect BlockBlobStorage availability; this setting is relevant for Data Lake Storage capabilities.
Question 103
You have an Azure subscription that contains an Azure Storage account. You plan to create an Azure container instance named container1 that will use a Docker image named Image1. Image1 contains a Microsoft SQL Server instance that requires persistent storage. You need to configure a storage service for Container1. What should you use?
- A. Azure Files
- B. Azure Blob storage
- C. Azure Queue storage
- D. Azure Table storage
Show answer and explanation ▾
Correct answer: A
Azure Files (A) is the appropriate storage service for Azure Container Instances that require persistent storage, particularly for databases like SQL Server. Azure Files provides SMB-based file shares that can be mounted to containers and persist data across container restarts and instances. Blob Storage is for unstructured data and does not provide the file system semantics needed for database instances. Queue and Table storage are not suitable for persistent file system requirements.
Why the other options are wrong:
- B. Azure Blob Storage does not provide file system semantics required for SQL Server persistent storage in containers.
- C. Azure Queue Storage is for message queuing, not persistent storage for applications like SQL Server.
- D. Azure Table Storage provides NoSQL key-value storage, not file system persistence needed for database instances.
Question 104
Your company has an Azure subscription. You need to deploy a number of Azure virtual machines (VMs) using Azure Resource Manager (ARM) templates. You have been informed that the VMs will be included in a single availability set. You are required to make sure that the ARM template you configure allows for as many VMs as possible to remain accessible in the event of fabric failure or maintenance. Which of the following is the value that you should configure for the platformUpdateDomainCount property?
- A. 10
- B. 20
- C. 30
- D. 40
Show answer and explanation ▾
Correct answer: B
The platformUpdateDomainCount property defines how many update domains an availability set uses. In Azure, the maximum value for update domains is 20. Setting this to 20 ensures that during planned maintenance, Azure spreads updates across the maximum number of update domains, so fewer VMs are taken offline simultaneously. This minimizes service disruption during maintenance windows.
Why the other options are wrong:
- A. 10 is less than the maximum update domain count of 20.
- C. 30 exceeds Azure's maximum update domain count of 20.
- D. 40 exceeds Azure's maximum update domain count of 20.
Question 105
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 machine named VM1 that runs Windows Server 2016. You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour. Solution: You create an Azure Log Analytics workspace and install the Azure Monitor Agent VM extension on VM1. You associate VM1 with a data collection rule that uses the XPath query System!*[System[(Level=2)]] and sends the events to the workspace. You create a log search alert rule in Azure Monitor that uses the workspace as the source and fires when the Event table returns more than 2 matching rows in one hour. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Azure Monitor Agent collects only what an associated data collection rule defines. A custom Windows Event Logs source with the XPath query System!*[System[(Level=2)]] selects events from the System log with level 2, which is Error, and the rule sends them to the Event table of the workspace. A log search alert rule scoped to the workspace that counts those rows, with a threshold of greater than 2 and a one hour window, raises the alert when more than two errors occur within an hour.
Why the other options are wrong:
- B. Installing the agent extension and then associating the rule is a supported sequence, and the XPath filter plus the hourly count alert covers every part of the goal.
Question 106
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 subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com: User1 creates a new Azure Active Directory tenant named external.contoso.onmicrosoft.com. You need to create new user accounts in external.contoso.onmicrosoft.com. Solution: You instruct User2 to create the user accounts. Does that meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
User1 created the new Azure Active Directory tenant named external.contoso.onmicrosoft.com, which means User1 is the Global Administrator of that tenant. User2 is a Global Administrator only in the original contoso.onmicrosoft.com tenant, not in the newly created external.contoso.onmicrosoft.com tenant. User2 would have no permissions in the external tenant unless explicitly granted access by User1. Therefore, User2 cannot create user accounts in external.contoso.onmicrosoft.com without being assigned appropriate permissions in that specific tenant first.
Why the other options are wrong:
- A. User2 lacks permissions in the external.contoso.onmicrosoft.com tenant and cannot create accounts there without explicit authorization from User1.
Question 107
You have an Azure subscription that contains a storage account named storage1. The storage account contains a blob that stores images. Client access to storage1 is granted by using a shared access signature (SAS). You need to ensure that users receive a warning message when they generate a SAS that exceeds a seven-day time period. What should you do for storage1?
- A. Enable a read-only lock.
- B. Configure an alert rule.
- C. Add a lifecycle management rule.
- D. Set Allow recommended upper limit for shared access signature (SAS) expiry interval to Enabled.
Show answer and explanation ▾
Correct answer: D
The 'Allow recommended upper limit for shared access signature (SAS) expiry interval' setting, when enabled, displays a warning message to users when they attempt to generate a SAS token with an expiration time that exceeds the upper limit you configure for the policy, which here is seven days. This is a storage account security feature designed to promote best practices. Read-only locks prevent modifications but don't warn about SAS duration. Alert rules monitor metrics but don't provide generation-time warnings. Lifecycle management rules manage blob retention, not SAS generation.
Why the other options are wrong:
- A. A read-only lock prevents modifications to the storage account but does not warn about SAS expiry periods.
- B. An alert rule monitors metrics and can trigger notifications, but it does not warn during SAS generation itself.
- C. Lifecycle management rules control blob retention and deletion policies, not SAS token generation warnings.
Question 108
You have an Azure Storage account named storage1. You plan to use AzCopy to copy data to storage1. You need to identify the storage services in storage1 to which you can copy the data. Which storage services should you identify?
- A. blob, file, table, and queue
- B. blob and file only
- C. file and table only
- D. file only
- E. blob, table, and queue only
Show answer and explanation ▾
Correct answer: B
AzCopy supports copying data to and from Blob Storage and File Storage only (B). These are the two storage services with AzCopy compatibility. Table and Queue storage services do not support AzCopy operations. AzCopy is optimized for high-performance bulk data transfer to these object and file storage services.
Why the other options are wrong:
- A. Table and Queue storage services are not supported by AzCopy; only Blob and File are.
- C. Table storage is not supported by AzCopy, and Blob storage, which is supported, is missing.
- D. While File is supported, Blob storage is also supported, making this incomplete.
- E. Table and Queue storage services do not support AzCopy operations.
Question 109
You have a deployment template named Template1 that is used to deploy 10 Azure web apps. You need to identify what to deploy before you deploy Template1. The solution must minimize Azure costs. What should you identify?
- A. five Azure Application Gateways
- B. one App Service plan
- C. 10 App Service plans
- D. one Azure Traffic Manager
- E. one Azure Application Gateway
Show answer and explanation ▾
Correct answer: B
To minimize costs when deploying 10 web apps, you should use one App Service plan shared across all 10 web apps. An App Service plan defines the compute resources, and multiple web apps can share the same plan, reducing costs significantly compared to dedicated plans for each app.
Why the other options are wrong:
- A. Application Gateways are load balancers for traffic routing and are unnecessary for this deployment.
- C. Creating 10 App Service plans would maximize costs instead of minimizing them.
- D. Azure Traffic Manager is for global load balancing and would add unnecessary cost.
- E. A single Application Gateway is unnecessary and would increase costs without providing value for web app deployment.
Question 110
You have an Azure subscription that contains a user named User1. You need to ensure that User1 can deploy virtual machines and manage virtual networks. The solution must use the principle of least privilege. Which role-based access control (RBAC) role should you assign to User1?
- A. Owner
- B. Virtual Machine Contributor
- C. Contributor
- D. Virtual Machine Administrator Login
Show answer and explanation ▾
Correct answer: C
The Contributor role allows users to create and manage all types of Azure resources, including virtual machines and virtual networks, while explicitly preventing role assignment. This aligns with the principle of least privilege because it grants necessary permissions without the elevated privilege of the Owner role. Virtual Machine Contributor is too narrow (only VMs), Administrator Login is for login access, and Owner violates least privilege.
Why the other options are wrong:
- A. Owner grants excessive permissions beyond what is needed.
- B. Virtual Machine Contributor only allows VM management, not virtual network management.
- D. Virtual Machine Administrator Login is for remote access, not resource deployment.
Question 111
You have an Azure subscription named Subscription1 that contains an Azure Log Analytics workspace named Workspace1. You need to view the error events from a table named Event. Which query should you run in Workspace1?
- A. Get-Event Event | where {$_.EventType == "error"}
- B. Event | search "error"
- C. select * from Event where EventType == "error"
- D. search in (Event) * | where EventType -eq "error"
Show answer and explanation ▾
Correct answer: B
The correct syntax for querying an Azure Log Analytics workspace uses Kusto Query Language (KQL). The query 'Event | search "error"' uses the pipe operator to pass the Event table to the search operator, which filters for records containing 'error'. This is the proper KQL syntax. Options A and C use PowerShell and SQL syntax respectively, which are not valid in Log Analytics. Option D has incorrect comparison operator syntax.
Why the other options are wrong:
- A. Get-Event and PowerShell syntax are not used in Log Analytics queries.
- C. SQL SELECT syntax is not valid in Log Analytics; KQL is required.
- D. The comparison operator syntax is incorrect for KQL; should use '==' or other valid KQL operators.
Question 112
You have an Azure virtual machine named VM1 that runs Windows Server 2019. You save VM1 as a template named Template1 to the Azure Resource Manager library. You plan to deploy a virtual machine named VM2 from Template1. What can you configure during the deployment of VM2?
- A. operating system
- B. administrator username
- C. virtual machine size
- D. resource group
Show answer and explanation ▾
Correct answer: D
When deploying a VM from an ARM template, the template itself defines the OS, VM size, and other infrastructure properties that cannot be changed during deployment. However, the resource group must be specified at deployment time because it determines where the VM will be created. The resource group is a deployment-level parameter that must be selected or created during the deployment process.
Why the other options are wrong:
- A. The operating system is defined in the template and cannot be changed during deployment.
- B. The administrator username is fixed in the template saved from VM1, so it cannot be changed during the deployment.
- C. Virtual machine size is specified in the template and is not configurable at deployment time.
Question 113
You have an Azure subscription linked to an Azure Active Directory tenant. The tenant includes a user account named User1. You need to ensure that User1 can assign a policy to the tenant root management group. What should you do?
- A. Assign the Owner role for the Azure Subscription to User1, and then modify the default conditional access policies.
- B. Assign the Owner role for the Azure subscription to User1, and then instruct User1 to configure access management for Azure resources.
- C. Assign the Global administrator role to User1, and then instruct User1 to configure access management for Azure resources.
- D. Create a new management group and delegate User1 as the owner of the new management group.
Show answer and explanation ▾
Correct answer: C
To assign policies at the tenant root management group level, a user must have the Global Administrator role in Azure AD and must explicitly enable access management for Azure resources. The Global Administrator role alone has no access to Azure resources; turning on access management for Azure resources elevates the user to User Access Administrator at root scope (/), which lets User1 grant itself the role needed to assign a policy at the tenant root management group (see learn.microsoft.com/en-us/azure/role-based-access-control/elevate-access-global-admin).
Why the other options are wrong:
- A. Subscription-level Owner role does not grant permissions at the management group level; conditional access policies are unrelated.
- B. Subscription-level Owner role is insufficient for root management group policy assignment.
- D. Creating a new management group and delegating ownership does not provide access to the tenant root management group.
Question 114
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 machine named VM1. VM1 was deployed by using a custom Azure Resource Manager template named ARM1.json. You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to a different host immediately. Solution: From the Redeploy blade, you click Redeploy. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Redeploy blade in Azure Portal provides the ability to redeploy a virtual machine to a different physical host. This operation deallocates the VM, moves it to a new host, and reallocates it. This is the correct method to move a VM to a different host immediately during planned maintenance notifications.
Why the other options are wrong:
- B. Redeploy is specifically designed for this scenario and is the recommended solution.
Question 115
You plan to deploy three Azure virtual machines named VM1, VM2, and VM3. The virtual machines will host a web app named App1. You need to ensure that at least two virtual machines are available if a single Azure datacenter becomes unavailable. What should you deploy?
- A. all three virtual machines in a single Availability Zone
- B. all virtual machines in a single Availability Set
- C. each virtual machine in a separate Availability Zone
- D. each virtual machine in a separate Availability Set
Show answer and explanation ▾
Correct answer: C
Deploying each virtual machine in a separate Availability Zone ensures that at least two VMs remain available if a single datacenter becomes unavailable. Availability Zones are physically separated datacenters within an Azure region, providing protection against complete datacenter failure. This is superior to Availability Sets, which only protect against rack-level failures within a single datacenter.
Why the other options are wrong:
- A. All VMs in a single Availability Zone would all fail if that zone's datacenter becomes unavailable.
- B. Availability Sets only protect against rack-level failures within a single datacenter, not full datacenter outages.
- D. Each VM in separate Availability Sets still places them in the same datacenter, not protecting against datacenter failure.
Question 116
You have an Azure subscription that contains a storage account named storage1. You plan to create a blob container named container1. You need to use customer-managed key encryption for container1. Which key should you use?
- A. an EC key that uses the P-384 curve only
- B. an EC key that uses the P-521 curve only
- C. an EC key that uses the P-384 curve or P-521 curve only
- D. an RSA key with a key size of 4096 only
- E. an RSA key type with a key size of 2048, 3072, or 4096 only
Show answer and explanation ▾
Correct answer: E
Azure Storage customer-managed key encryption using Azure Key Vault supports RSA keys with key sizes of 2048, 3072, or 4096 bits. These are the only supported RSA key configurations for encrypting blob containers with customer-managed keys.
Why the other options are wrong:
- A. Elliptic Curve (EC) keys with P-384 curve are not supported for Azure Storage customer-managed encryption.
- B. Elliptic Curve (EC) keys with P-521 curve are not supported for Azure Storage customer-managed encryption.
- C. EC keys with either P-384 or P-521 curves are not supported; Azure Storage requires RSA keys for customer-managed encryption.
- D. RSA 4096 is supported, but so are RSA 2048 and 3072, so limiting the choice to 4096 only is incorrect.
Question 117
You have an Azure subscription named Subscription1 and an on-premises deployment of Microsoft System Center Service Manager. Subscription1 contains a virtual machine named VM1. You need to ensure that an alert is set in Service Manager when the amount of available memory on VM1 is below 10 percent. What should you do first?
- A. Create an automation runbook
- B. Deploy a function app
- C. Deploy the IT Service Management Connector (ITSM)
- D. Create a notification
Show answer and explanation ▾
Correct answer: C
To create alerts in an on-premises Service Manager when Azure VM conditions are met, you must first deploy the IT Service Management Connector (ITSM). This connector establishes the bridge between Azure Monitor alerts and Service Manager, allowing alerts to be triggered in the on-premises system.
Why the other options are wrong:
- A. Creating an automation runbook alone does not establish the connection to Service Manager; the ITSM Connector is the prerequisite.
- B. A function app is not the correct tool for integrating with Service Manager.
- D. Creating a notification in Azure is not sufficient without the ITSM Connector to forward alerts to Service Manager.
Question 118
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has a Microsoft SQL Server Always On availability group configured on their Azure virtual machines (VMs). You need to configure an Azure internal load balancer as a listener for the availability group. Solution: You set Session persistence to Client IP. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Setting Session persistence to Client IP does not meet the goal for SQL Server Always On availability group listeners. SQL Server Always On requires Floating IP (Direct Server Return) to be enabled on the load balancer rule to function properly. Session persistence settings are irrelevant to the core requirement of establishing the availability group listener, which depends on Floating IP functionality.
Why the other options are wrong:
- A. Session persistence settings do not address the fundamental requirement for Floating IP in SQL Server Always On listener configuration.
Question 119
You have an Azure subscription that contains a storage account named storage1. The storage1 account contains a file share named share1. The subscription is linked to a hybrid Azure Active Directory (Azure AD) tenant that contains a security group named Group1. You need to grant Group1 the Storage File Data SMB Share Elevated Contributor role for share1. What should you do first?
- A. Enable Active Directory Domain Services (AD DS) authentication for storage1.
- B. Grant share-level permissions by using File Explorer.
- C. Mount share1 by using File Explorer.
- D. Create a private endpoint.
Show answer and explanation ▾
Correct answer: A
Before assigning Azure RBAC share-level roles for file share access, you must first enable an identity source on the storage account, here on-premises Active Directory Domain Services (AD DS) authentication. This prerequisite lets the storage account authenticate hybrid users against AD DS over SMB, which is necessary for share-level roles like Storage File Data SMB Share Elevated Contributor to take effect.
Why the other options are wrong:
- B. File Explorer sets directory and file-level (Windows ACL) permissions, not share-level permissions, and it cannot be used until AD DS authentication is enabled.
- C. Mounting the share requires authentication to be configured first; this is not the prerequisite step.
- D. A private endpoint is optional networking configuration and not required for Azure RBAC role assignments to file shares.
Question 120
You have an Azure subscription that contains a Standard SKU Azure container registry named ContReg1. You need to ensure that ContReg1 supports geo-replication. What should you do first for ContReg1?
- A. Enable Admin user.
- B. Add a scope map.
- C. Add an automation task.
- D. Create a cache rule.
- E. Upgrade the SKU.
Show answer and explanation ▾
Correct answer: E
Geo-replication is only available in Premium SKU container registries. Since ContReg1 is Standard SKU, it must first be upgraded to Premium SKU (E) before geo-replication can be enabled. This is a prerequisite requirement.
Why the other options are wrong:
- A. Enabling Admin user does not enable geo-replication capability.
- B. Adding a scope map is for managing access tokens, not for geo-replication.
- C. Adding an automation task does not enable geo-replication functionality.
- D. Cache rules are for registry content caching, not for geo-replication.
Question 121
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 container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You create a private endpoint connection for Registry1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Creating a private endpoint connection configures network access but does not resolve the core authentication or authorization issues preventing container instance deployment. A private endpoint alone does not grant the container instance permission to pull images.
Why the other options are wrong:
- A. Private endpoint is a network configuration that does not address the fundamental access permission problem
Question 122
You have two Azure subscriptions named Sub1 and Sub2. An administrator creates a custom role that has an assignable scope to a resource group named RG1 in Sub1. You need to ensure that you can apply the custom role to any resource group in Sub1 and Sub2. The solution must minimize administrative effort. What should you do?
- A. Select the custom role and add Sub1 and Sub2 to the assignable scopes. Remove RG1 from the assignable scopes.
- B. Create a new custom role for Sub1. Create a new custom role for Sub2. Remove the role from RG1.
- C. Create a new custom role for Sub1 and add Sub2 to the assignable scopes. Remove the role from RG1.
- D. Select the custom role and add Sub1 to the assignable scopes. Remove RG1 from the assignable scopes. Create a new custom role for Sub2.
Show answer and explanation ▾
Correct answer: A
Custom role assignable scopes define where the role can be assigned. By updating the existing custom role to include both Sub1 and Sub2 as assignable scopes and removing RG1, the role becomes available for assignment at the subscription level, covering all resource groups in both subscriptions with minimal administrative effort.
Why the other options are wrong:
- B. Creating separate custom roles for each subscription adds administrative overhead when a single role can be configured for both.
- C. Creating a new custom role is unnecessary extra work when the existing role can simply be updated to list Sub1 and Sub2 as assignable scopes.
- D. Creating a separate custom role for Sub2 introduces unnecessary complexity and additional administrative effort.
Question 123
You have an Azure subscription. Users access the resources in the subscription from either home or from customer sites. From home, users must establish a point-to-site VPN to access the Azure resources. The users on the customer sites access the Azure resources by using site-to-site VPNs. You have a line-of-business app named App1 that runs on several Azure virtual machines. The virtual machines run Windows Server 2016. You need to ensure that the connections to App1 are spread across all the virtual machines. What are two possible Azure services that you can use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
- A. an internal load balancer
- B. a public load balancer
- C. an Azure Content Delivery Network (CDN)
- D. Traffic Manager
- E. an Azure Application Gateway
Show answer and explanation ▾
Correct answer: A, E
An internal load balancer distributes traffic across VMs within a private network, suitable for both point-to-site and site-to-site VPN users. An Application Gateway provides layer-7 load balancing with advanced routing and SSL termination capabilities, suitable for both point-to-site and site-to-site VPN users. Both solutions effectively spread connections across multiple virtual machines.
Why the other options are wrong:
- B. A public load balancer exposes resources to the internet, which is not appropriate for internal VPN-accessed resources.
- C. Azure CDN is designed for content caching and distribution, not for spreading connections to application servers.
- D. Traffic Manager operates at DNS level for geo-distribution and failover, not for spreading load among VMs in a single region.
Question 124
You have an Azure subscription. You have 100 Azure virtual machines. You need to quickly identify underutilized virtual machines that can have their service tier changed to a less expensive offering. Which blade should you use?
- A. Monitor
- B. Advisor
- C. Metrics
- D. Customer insights
Show answer and explanation ▾
Correct answer: B
Azure Advisor provides personalized recommendations to optimize Azure resources, including identifying underutilized virtual machines that can be resized to lower-cost service tiers. It is specifically designed to help reduce costs and improve performance across subscriptions.
Why the other options are wrong:
- A. Monitor is used for tracking metrics and logs but does not provide optimization recommendations.
- C. Metrics shows performance data but does not identify underutilization or provide recommendations.
- D. Customer insights is not a standard Azure blade for resource optimization.
Question 125
You need to create an Azure Storage account named storage1. The solution must meet the following requirements:
- Support Azure Data Lake Storage.
- Minimize costs for infrequently accessed data.
- Automatically replicate data to a secondary Azure region.
Which three options should you configure for storage1? Each correct answer presents part of the solution. NOTE: Each correct answer is worth one point.
- A. zone-redundant storage (ZRS)
- B. the Cool access tier
- C. geo-redundant storage (GRS)
- D. the Hot access tier
- E. hierarchical namespace
Show answer and explanation ▾
Correct answer: B, C, E
To support Azure Data Lake Storage, you need the hierarchical namespace (E). To minimize costs for infrequently accessed data, use the Cool access tier (B). To automatically replicate to a secondary region, use geo-redundant storage (C). Together, these three options create a cost-optimized, geo-redundant Data Lake Storage setup.
Why the other options are wrong:
- A. Zone-redundant storage (ZRS) replicates within a single region only, not to a secondary region as required.
- D. The Hot access tier is for frequently accessed data and does not minimize costs for infrequently accessed data.
Question 126
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 subscription named Subscription1. Subscription1 contains a resource group named RG1. RG1 contains resources that were deployed by using templates. You need to view the date and time when the resources were created in RG1. Solution: From the RG1 blade, you click Automation script. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Clicking 'Automation script' (also called Export template) from the RG1 blade exports the ARM template for resources, but does not display creation dates and times. To view resource creation metadata, you need to access the Deployments blade which shows deployment history with timestamps.
Why the other options are wrong:
- A. Automation script exports template code, not resource creation dates.
Question 127
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 need to ensure that an Azure Active Directory (Azure AD) user named Admin1 is assigned the required role to enable Traffic Analytics for an Azure subscription. Solution: You assign the Reader role at the subscription level to Admin1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Reader role provides only read-only access to resources and cannot perform configuration or management tasks. Enabling Traffic Analytics requires write permissions and configuration capabilities that the Reader role does not provide. Therefore, assigning only the Reader role does not meet the goal.
Why the other options are wrong:
- A. Reader role lacks the write permissions needed to enable Traffic Analytics.
Question 128
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 need to ensure that an Azure Active Directory (Azure AD) user named Admin1 is assigned the required role to enable Traffic Analytics for an Azure subscription. Solution: You assign the Traffic Manager Contributor role at the subscription level to Admin1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Traffic Manager Contributor role is for managing Traffic Manager resources, not for enabling Traffic Analytics. Traffic Analytics is a Network Watcher feature that requires monitoring and logging permissions. Enabling it needs the flow log permissions plus the storage and Log Analytics workspace permissions that traffic analytics uses, such as those in the Owner role or a custom role that includes them, and Traffic Manager-specific permissions provide none of these.
Why the other options are wrong:
- A. Traffic Manager Contributor does not grant the necessary permissions to enable Traffic Analytics, which is a Network Watcher monitoring feature.
Question 129
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 Active Directory (Azure AD) tenant named Adatum and an Azure Subscription named Subscription1. Adatum contains a group named Developers. Subscription1 contains a resource group named Dev. You need to provide the Developers group with the ability to create Azure logic apps in the Dev resource group. Solution: On Dev, you assign the Logic App Contributor role to the Developers group. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Logic App Contributor role grants full permissions to create, manage, and deploy Azure Logic Apps within the assigned scope. Assigning this role to the Developers group at the Dev resource group level provides them the ability to create Logic Apps without additional permissions.
Why the other options are wrong:
- B. The Logic App Contributor role is the appropriate built-in role for creating and managing Logic Apps in Azure.
Question 130
Your company has an Azure subscription. You need to deploy a number of Azure virtual machines (VMs) using Azure Resource Manager (ARM) templates. You have been informed that the VMs will be included in a single availability set. You are required to make sure that the ARM template you configure allows for as many VMs as possible to remain accessible in the event of fabric failure or maintenance. Which of the following is the value that you should configure for the platformFaultDomainCount property?
- A. 10
- B. 30
- C. Min Value
- D. Max Value
Show answer and explanation ▾
Correct answer: D
The platformFaultDomainCount property defines how many fault domains an availability set uses. Setting this to the maximum value (2 or 3 for managed availability sets, depending on the region) ensures that VMs are distributed across the maximum number of independent hardware failure domains. This maximizes availability because a single hardware failure will impact the fewest VMs. A higher fault domain count means better isolation from fabric failures.
Why the other options are wrong:
- A. 10 exceeds Azure's maximum fault domain count of 3.
- B. 30 exceeds Azure's maximum fault domain count of 3.
- C. Minimum value would concentrate VMs on fewer fault domains, reducing fault tolerance.
Question 131
You have a Microsoft Entra tenant. You plan to perform a bulk import of users. You need to ensure that imported user objects are added automatically as the members of a specific group based on each user's department. The solution must minimize administrative effort. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A. Create groups that use the Assigned membership type.
- B. Create an Azure Resource Manager (ARM) template.
- C. Create groups that use the Dynamic User membership type.
- D. Write a PowerShell script that parses an import file.
- E. Create an XML file that contains user information and the appropriate attributes.
- F. Create a CSV file that contains user information and the appropriate attributes.
Show answer and explanation ▾
Correct answer: C, F
Creating a CSV file with user information and attributes allows bulk import of users efficiently. Dynamic User group membership type automatically assigns users to groups based on their attributes (such as department) defined in the CSV file. This combination minimizes administrative effort by automating the group assignment process based on user attributes specified during import, eliminating the need for manual group assignment or scripting.
Why the other options are wrong:
- A. Assigned membership requires manual management of group members, which does not minimize administrative effort.
- B. ARM templates are not the appropriate tool for bulk user import with attribute-based group assignment.
- D. Writing a PowerShell script would increase administrative effort when dynamic groups can automate this task.
- E. XML files are not the standard format for Azure AD user imports; CSV is the standard format.
Question 132
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 machine named VM1. VM1 was deployed by using a custom Azure Resource Manager template named ARM1.json. You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to a different host immediately. Solution: From the Overview blade, you move the virtual machine to a different subscription. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Moving a VM to a different subscription does not move it to a different host. The subscription is just a billing and organizational container. To move a VM to a different host during planned maintenance, you need to use the Redeploy function, which deallocates the VM and redeploys it on a different physical host within Azure infrastructure.
Why the other options are wrong:
- A. Moving to a different subscription only changes the billing/management context, not the physical host where the VM runs.
Question 133
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 machine named VM1. VM1 was deployed by using a custom Azure Resource Manager template named ARM1.json. You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to a different host immediately. Solution: From the Update management blade, you click Enable. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Update Management is used to manage OS patches and updates for VMs, not to migrate them to different hosts. Enabling Update Management does not move a VM to a different physical host. The Redeploy function is the appropriate tool for host migration during maintenance.
Why the other options are wrong:
- A. Update Management handles patching schedules and compliance, not physical host migration.
Question 134
Your company has an Azure subscription that includes a Recovery Services vault. You want to use Azure Backup to schedule a backup of your company's virtual machines (VMs) to the Recovery Services vault. Which of the following VMs can you back up? Choose all that apply.
- A. VMs that run Windows 10.
- B. VMs that run Windows Server 2012 or higher.
- C. VMs that have NOT been shut down.
- D. VMs that run Debian 8.2+.
- E. VMs that have been shut down.
Show answer and explanation ▾
Correct answer: A, B, C, D, E
Azure Backup supports a wide range of operating systems and VM states. Windows 10 and Windows Server 2012+ are both supported operating systems for Azure Backup. Linux distributions like Debian 8.2+ are also supported. Importantly, Azure Backup can back up both running VMs (option C) and shut down VMs (option E), as the backup service can access stopped VMs in the subscription. The service is flexible regarding the VM's operational state at backup time.
Question 135
You have an Azure subscription that contains three virtual machines named VM1, VM2, and VM3. All the virtual machines are in an availability set named AVSet1. You need to scale up VM1 to a new virtual machine size, but the intended size is unavailable. What should you do first?
- A. Create a proximity placement group.
- B. Deallocate VM1.
- C. Convert AVSet1 into a managed availability set.
- D. Shut down VM2 and VM3.
Show answer and explanation ▾
Correct answer: B
Because the intended size is not available on the hardware cluster that currently hosts VM1, you must deallocate VM1 first. Deallocation releases the VM's current hardware resources, which may allow Azure to move it to a cluster where the larger size is available. If the new size is not available on the current cluster, Microsoft Learn notes that all VMs in the availability set may need to be deallocated, and that starts with deallocating VM1; creating a proximity placement group or converting to a managed availability set does not address the hardware availability of the new size.
Why the other options are wrong:
- A. Creating a proximity placement group does not help when a specific VM size is unavailable.
- C. Converting to managed availability sets is not necessary to resize a VM.
- D. Shutting down VM2 and VM3 from inside the guest leaves them allocated, so the availability set cannot move to hardware that offers the new size, and VM1 itself is still running.
Question 136
You have a general-purpose v2 Azure Storage account named storage1 that uses locally-redundant storage (LRS). You need to ensure that the data in the storage account is protected if a zone fails. The solution must minimize costs and administrative effort. What should you do first?
- A. Create a new storage account.
- B. Configure object replication rules.
- C. Configure a lifecycle management policy.
- D. Modify the Replication setting of storage1.
Show answer and explanation ▾
Correct answer: D
storage1 is already a general-purpose v2 account, and general-purpose v2 supports zone-redundant storage (ZRS). Locally-redundant storage keeps all three copies in a single datacenter, so a zone failure can make the data unavailable. ZRS copies data synchronously across three availability zones in the region. Microsoft supports a customer-initiated conversion from LRS to ZRS by changing the Redundancy (replication) setting on the existing account, and Azure moves the data in the background. This keeps the same account, name and endpoints, needs no data copy work, and is cheaper than geo-redundant options, so it meets both the cost and the administrative-effort requirements.
Why the other options are wrong:
- A. A new ZRS account would also require copying all the data and repointing every client to new endpoints, which adds effort that an in-place conversion avoids.
- B. Object replication asynchronously copies block blobs to another account. It needs a second account and covers only block blobs, so it adds cost and effort.
- C. A lifecycle management policy moves blobs between access tiers or deletes them. It does not change redundancy or protect data from a zone failure.
Question 137
You have an Azure subscription that contains a storage account named storage1. The storage1 account contains a container named container1. You need to configure access to container1. The solution must meet the following requirements:
- Only allow read access.
- Allow both HTTP and HTTPS protocols.
- Apply access permissions to all the content in the container.
What should you use?
- A. an access policy
- B. a shared access signature (SAS)
- C. Azure Content Delivery Network (CDN)
- D. access keys
Show answer and explanation ▾
Correct answer: B
A Shared Access Signature (SAS) is the correct choice because it provides granular access control that can be configured for read-only access, supports both HTTP and HTTPS protocols, and can be scoped to apply permissions to all content in a container. SAS tokens offer time-limited, delegated access with specific permissions.
Why the other options are wrong:
- A. A stored access policy only defines constraints for a SAS; on its own it does not grant any access to container1.
- C. Azure CDN is for content delivery and caching, not for managing direct access permissions to container contents.
- D. Access keys grant full administrative access to the entire storage account, not read-only access to a specific container.
Question 138
You have an Azure Storage account named storage1. For storage1, you create an encryption scope named Scope1. Which storage types can you encrypt by using Scope1?
- A. file shares only
- B. containers only
- C. file shares and containers only
- D. containers and tables only
- E. file shares, containers, and tables only
- F. file shares, containers, tables, and queues
Show answer and explanation ▾
Correct answer: B
Encryption scopes in Azure Storage can only be used to encrypt containers (Blob Storage). File shares, tables, and queues cannot be encrypted using encryption scopes. Encryption scopes let you use either Microsoft-managed keys or customer-managed keys for specific blob containers or blobs.
Why the other options are wrong:
- A. File shares cannot be encrypted using encryption scopes.
- C. File shares cannot be encrypted using encryption scopes.
- D. Tables cannot be encrypted using encryption scopes.
- E. File shares, tables, and queues cannot be encrypted using encryption scopes.
- F. File shares, tables, and queues cannot be encrypted using encryption scopes.
Question 139
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 machine named VM1 that runs Windows Server 2016. You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour. Solution: You create an event subscription on VM1. You create an alert in Azure Monitor and specify VM1 as the source. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Creating an event subscription on VM1 alone is not sufficient to alert on error events in Azure Monitor. You must install the Azure Monitor Agent with a data collection rule that sends the Windows event log data to a Log Analytics workspace, then create an alert rule in Azure Monitor based on that log data. Simply creating an event subscription and pointing Azure Monitor to VM1 as a source does not establish the necessary data collection pipeline for alerting on specific event log errors.
Why the other options are wrong:
- A. An event subscription on the VM itself does not integrate with Azure Monitor alerting; you need the Azure Monitor Agent with a data collection rule, a Log Analytics workspace, and a log search alert rule in Azure Monitor to achieve this goal.
Question 140
You have an Azure subscription that contains a storage account named storage1. You need to ensure that the access keys for storage1 rotate automatically. What should you configure?
- A. a backup vault
- B. redundancy for storage1
- C. lifecycle management for storage1
- D. an Azure key vault
- E. a Recovery Services vault
Show answer and explanation ▾
Correct answer: D
Azure Key Vault provides managed storage account features that enable automatic rotation of storage account access keys. Key Vault can manage the lifecycle of storage keys and rotate them automatically on a configured schedule, ensuring security best practices are maintained without manual intervention.
Why the other options are wrong:
- A. Backup vaults are used for data backup and recovery, not for key rotation management.
- B. Redundancy configuration does not address key rotation requirements.
- C. Lifecycle management handles blob storage retention policies, not access key rotation.
- E. Recovery Services vaults are designed for backup and disaster recovery, not for key rotation management.
Question 141
You have a registered DNS domain named contoso.com. You create a public Azure DNS zone named contoso.com. You need to ensure that records created in the contoso.com zone are resolvable from the internet. What should you do?
- A. Create NS records in contoso.com.
- B. Modify the SOA record in the DNS domain registrar.
- C. Create the SOA record in contoso.com.
- D. Modify the NS records in the DNS domain registrar.
Show answer and explanation ▾
Correct answer: D
To make records in the Azure DNS zone resolvable from the internet, you must update the NS (Name Server) records at your DNS domain registrar to point to the Azure DNS nameservers. The registrar holds the authoritative delegation information that directs internet traffic to your Azure DNS zone. Simply creating records within the Azure zone is not sufficient; the registrar must know where to find the zone.
Why the other options are wrong:
- A. The NS record set at the zone apex is created automatically in Azure DNS, and creating NS records inside the zone does not tell the registrar to delegate the domain to Azure DNS.
- B. The SOA record at the registrar is not what enables zone resolution; the NS records are.
- C. SOA records are automatically created in Azure DNS and do not affect internet resolution.
Question 142
You have an Azure virtual machine named VM1 and an Azure key vault named Vault1. On VM1, you plan to configure Azure Disk Encryption to use a key encryption key (KEK). You need to prepare Vault1 for Azure Disk Encryption. Which two actions should you perform on Vault1? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A. Select Azure Virtual machines for deployment.
- B. Create a new key.
- C. Create a new secret.
- D. Configure a key rotation policy.
- E. Select Azure Disk Encryption for volume encryption.
Show answer and explanation ▾
Correct answer: B, E
To prepare a Key Vault for Azure Disk Encryption using a Key Encryption Key (KEK), you must create a new key (B) to serve as the KEK that will encrypt the disk encryption keys, and enable the vault for Azure Disk Encryption for volume encryption (E) by setting the appropriate access policy. The Key Vault must be explicitly configured to allow Azure Disk Encryption to access it for encryption operations.
Why the other options are wrong:
- A. Selecting Azure Virtual Machines for deployment is a general vault setting not specifically required for disk encryption preparation.
- C. Creating a secret is not necessary; disk encryption requires keys, not secrets.
- D. Configuring a key rotation policy is optional and not required for initial disk encryption setup.
Question 143
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 subscription named Subscription1. Subscription1 contains a resource group named RG1. RG1 contains resources that were deployed by using templates. You need to view the date and time when the resources were created in RG1. Solution: From the Subscriptions blade, you select the subscription, and then click Resource providers. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Clicking 'Resource providers' from the Subscriptions blade shows which resource providers are registered, not the creation dates and times of resources. Resource providers are Azure services available for subscription use, not historical deployment or resource metadata.
Why the other options are wrong:
- A. Resource providers does not display resource creation information.
Question 144
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 container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You select Use dedicated data endpoint for Registry1. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Enabling a dedicated data endpoint is a networking configuration that does not address authentication or permission issues preventing container instance deployment. This setting is for advanced network scenarios and would not resolve the underlying access problem.
Why the other options are wrong:
- A. A dedicated data endpoint is a network configuration feature, not a solution for deployment access issues
Get the complete AZ-104 bank
These 144 questions are roughly 24% of the bank. The full pack has 606 practice questions, each with the same depth of explanation, plus a questions-only PDF for timed practice and free updates forever.
View the full Microsoft AZ-104 question bank →