Microsoft

AZ-104 Free Practice Questions — Page 2

Question 11

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
Correct Answer: C, F
Explanation:
Use Dynamic User membership groups with a rule based on the department attribute so users are added automatically after import. Bulk user import into Microsoft Entra ID is performed using a CSV file that includes the required user attributes, such as department. This minimizes administrative effort by avoiding manual assignment or custom scripting.

Question 12

Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Overview - ADatum Corporation is consulting firm that has a main office in Montreal and branch offices in Seattle and New York. Existing Environment - Azure Environment - ADatum has an Azure subscription that contains three resource groups named RG1, RG2, and RG3. The subscription contains the storage accounts shown in the following table. The subscription contains the virtual machines shown in the following table. The subscription has an Azure container registry that contains the images shown in the following table. The subscription contains the resources shown in the following table. Azure Key Vault - The subscription contains an Azure key vault named Vault1. Vault1 contains the certificates shown in the following table. Vault1 contains the keys shown in the following table. Microsoft Entra Environment - ADatum has a Microsoft Entra tenant named adatum.com that is linked to the Azure subscription and contains the users shown in the following table. The tenant contains the groups shown in the following table. The adatum.com tenant has a custom security attribute named Attribute1. Planned Changes - ADatum plans to implement the following changes: • Configure a data collection rule (DCR) named DCR1 to collect only system events that have an event ID of 4648 from VM2 and VM4. • In storage1, create a new container named cont2 that has the following access policies: o Three stored access policies named Stored1, Stored2, and Stored3 o A legal hold for immutable blob storage • Whenever possible, use directories to organize storage account content. • Grant User1 the permissions required to link Zone1 to VNet1. • Assign Attribute1 to supported adatum.com resources. • In storage2, create an encryption scope named Scope1. • Deploy new containers by using Image1 or Image2. Technical Requirements - ADatum must meet the following technical requirements: • Use TLS for WebApp1. • Follow the principle of least privilege. • Grant permissions at the required scope only. • Ensure that Scope1 is used to encrypt storage services. • Use Azure Backup to back up cont1 and share1 as frequently as possible. • Whenever possible, use Azure Disk Encryption and a key encryption key (KEK) to encrypt the virtual machines. You need to implement the planned changes for the storage account content. Which containers and file shares can you use to organize the content?

A. share1 only
B. cont1 and share1 only
C. share1 and share2 only
D. cont1, share1, and share2 only
E. cont1, cont2, share1, and share2
Show Answer
Correct Answer: D
Explanation:
The requirement is to use directories whenever possible to organize storage content. Blob containers support true directories only when the storage account has a hierarchical namespace (Azure Data Lake Storage Gen2). Therefore cont1 (in the HNS-enabled account) qualifies, while cont2 does not. Azure Files supports directories regardless of hierarchical namespace, so both share1 and share2 can be organized with directories. Therefore the usable locations are cont1, share1, and share2.

Question 13

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
Correct Answer: B
Explanation:
Assigning the AcrPull role to ACR-Tasks-Network does not enable Azure Container Instances to pull images from the registry. The AcrPull role must be granted to the identity used by the container instance (such as its managed identity or the service principal/user performing the pull). Therefore, assigning the role to ACR-Tasks-Network does not meet the stated goal.

Question 14

Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Overview - ADatum Corporation is consulting firm that has a main office in Montreal and branch offices in Seattle and New York. Existing Environment - Azure Environment - ADatum has an Azure subscription that contains three resource groups named RG1, RG2, and RG3. The subscription contains the storage accounts shown in the following table. The subscription contains the virtual machines shown in the following table. The subscription has an Azure container registry that contains the images shown in the following table. The subscription contains the resources shown in the following table. Azure Key Vault - The subscription contains an Azure key vault named Vault1. Vault1 contains the certificates shown in the following table. Vault1 contains the keys shown in the following table. Microsoft Entra Environment - ADatum has a Microsoft Entra tenant named adatum.com that is linked to the Azure subscription and contains the users shown in the following table. The tenant contains the groups shown in the following table. The adatum.com tenant has a custom security attribute named Attribute1. Planned Changes - ADatum plans to implement the following changes: • Configure a data collection rule (DCR) named DCR1 to collect only system events that have an event ID of 4648 from VM2 and VM4. • In storage1, create a new container named cont2 that has the following access policies: o Three stored access policies named Stored1, Stored2, and Stored3 o A legal hold for immutable blob storage • Whenever possible, use directories to organize storage account content. • Grant User1 the permissions required to link Zone1 to VNet1. • Assign Attribute1 to supported adatum.com resources. • In storage2, create an encryption scope named Scope1. • Deploy new containers by using Image1 or Image2. Technical Requirements - ADatum must meet the following technical requirements: • Use TLS for WebApp1. • Follow the principle of least privilege. • Grant permissions at the required scope only. • Ensure that Scope1 is used to encrypt storage services. • Use Azure Backup to back up cont1 and share1 as frequently as possible. • Whenever possible, use Azure Disk Encryption and a key encryption key (KEK) to encrypt the virtual machines. You need to configure WebApp1 to meet the technical requirements. Which certificate can you use from Vault1?

A. Cert1 only
B. Cert1 or Cert2 only
C. Cert1 or Cert3 only
D. Cert3 or Cert4 only
E. Cert1, Cert2 Cert3, or Cert4
Show Answer
Correct Answer: B
Explanation:
Azure App Service TLS bindings using a certificate imported from Azure Key Vault require a private certificate in PKCS#12 (PFX) format. Certificates stored only as PEM are not directly usable for this scenario without conversion/import. Therefore, the usable certificates are the PKCS#12 certificates (Cert1 and Cert2).

Question 15

HOTSPOT - You have a Microsoft Entra tenant that contains the users shown in the following table. The tenant contains the groups shown in the following table. Which users and groups can be deleted? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 15 Illustration for AZ-104 question 15 Illustration for AZ-104 question 15
Show Answer
Correct Answer: Users: User1, User2, User3, and User4 Groups: Group1 and Group3 only
Explanation:
Users can be deleted even if they have directly assigned licenses; the licenses are removed with the user. Groups with licenses assigned directly (Group2 and Group4) cannot be deleted until the license assignment is removed. Nested groups are not used for group-based licensing, so Group3 can be deleted despite being a member of Group4.

Question 16

Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Overview - ADatum Corporation is consulting firm that has a main office in Montreal and branch offices in Seattle and New York. Existing Environment - Azure Environment - ADatum has an Azure subscription that contains three resource groups named RG1, RG2, and RG3. The subscription contains the storage accounts shown in the following table. The subscription contains the virtual machines shown in the following table. The subscription has an Azure container registry that contains the images shown in the following table. The subscription contains the resources shown in the following table. Azure Key Vault - The subscription contains an Azure key vault named Vault1. Vault1 contains the certificates shown in the following table. Vault1 contains the keys shown in the following table. Microsoft Entra Environment - ADatum has a Microsoft Entra tenant named adatum.com that is linked to the Azure subscription and contains the users shown in the following table. The tenant contains the groups shown in the following table. The adatum.com tenant has a custom security attribute named Attribute1. Planned Changes - ADatum plans to implement the following changes: • Configure a data collection rule (DCR) named DCR1 to collect only system events that have an event ID of 4648 from VM2 and VM4. • In storage1, create a new container named cont2 that has the following access policies: o Three stored access policies named Stored1, Stored2, and Stored3 o A legal hold for immutable blob storage • Whenever possible, use directories to organize storage account content. • Grant User1 the permissions required to link Zone1 to VNet1. • Assign Attribute1 to supported adatum.com resources. • In storage2, create an encryption scope named Scope1. • Deploy new containers by using Image1 or Image2. Technical Requirements - ADatum must meet the following technical requirements: • Use TLS for WebApp1. • Follow the principle of least privilege. • Grant permissions at the required scope only. • Ensure that Scope1 is used to encrypt storage services. • Use Azure Backup to back up cont1 and share1 as frequently as possible. • Whenever possible, use Azure Disk Encryption and a key encryption key (KEK) to encrypt the virtual machines. You need to meet the technical requirements for the KEK. Which PowerShell cmdlet and key should you use?

A. Set-AzVMDiskEncryptionExtension and Key2.
B. Set-AzDiskEncryptionKey and Key2.
C. Set-AzDiskDiskEncryptionKey and Key1.
D. Set-AzVMDiskEncryptionExtension and Key1.
Show Answer
Correct Answer: D
Explanation:
Azure Disk Encryption for virtual machines is enabled with the Set-AzVMDiskEncryptionExtension cmdlet. When using a key encryption key (KEK), Azure Disk Encryption requires an RSA key stored in Azure Key Vault; elliptic curve keys are not supported for KEKs. Therefore the correct combination is Set-AzVMDiskEncryptionExtension with the RSA key (Key1).

Question 17

HOTSPOT - You have an Azure subscription that has the Azure container registries shown in the following table. You plan to use ACR Tasks and configure private endpoint connections. Which container registries support ACR Tasks and private endpoints? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 17 Illustration for AZ-104 question 17
Show Answer
Correct Answer: ACR Tasks: ContReg1, ContReg2, and ContReg3 Private endpoints: ContReg1 only
Explanation:
ACR Tasks are supported on Basic, Standard, and Premium SKUs (with differing limits). Private endpoint connections are supported only on the Premium SKU.

Question 18

You have an Azure subscription that contains a storage account named storage. 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 storage?

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
Correct Answer: D
Explanation:
Enabling the recommended upper limit for SAS expiry interval and configuring it to seven days causes users to receive a warning when they generate a SAS that exceeds the recommended validity period. A read-only lock, alert rule, and lifecycle management rule do not provide this SAS generation warning behavior.

Question 19

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
Correct Answer: D
Explanation:
To allow invitations only to users from a specific external domain (fabrikam.com), configure External collaboration settings > Collaboration restrictions and use an allowlist of permitted domains. Guest user access restrictions affect guest permissions after invitation, while Cross-tenant access settings govern cross-tenant access/trust scenarios rather than restricting which domains can be invited.

Question 20

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
Correct Answer: C
Explanation:
Azure Container Apps supports automatic scaling (including scale-to-zero and event-driven autoscaling via KEDA). Azure App Service supports autoscale for hosted apps, including containerized web apps, when using supported plans. Azure Container Instances does not provide built-in automatic autoscaling for standalone container instances.

$19

Get all 555 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.