Microsoft

AZ-104 Free Practice Questions — Page 5

Question 21

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 built-in automatic scaling based on events and load. Azure App Service (including containerized apps) supports autoscale based on metrics like CPU, memory, or HTTP queue length. Azure Container Instances does not support automatic scaling, so it is excluded.

Question 21

HOTSPOT - You have Azure subscription that includes following Azure file shares: You have the following on-premises servers: You create a Storage Sync Service named Sync1 and an Azure File Sync group named Group1. Group1 uses share1 as a cloud endpoint. You register Server1 and Server2 in Sync1. You add D:\Folder1 on Server1 as a server endpoint of Group1. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for AZ-104 question 21 Illustration for AZ-104 question 21 Illustration for AZ-104 question 21
Show Answer
Correct Answer: No No Yes
Explanation:
A sync group supports only one cloud endpoint, so share2 cannot be added. A sync group can have only one server endpoint per registered server, so a second endpoint on Server1 is not allowed. A different registered server (Server2) can be added as a server endpoint to the same sync group.

Question 22

You have an Azure subscription that contains a container group named Group1. Group1 contains two Azure container instances as shown in the following table. You need to ensure that container2 can use CPU resources without negatively affecting container1. What should you do?

A. Increase the resource limit of container1 to three CPUs.
B. Increase the resource limit of container2 to six CPUs.
C. Remove the resource limit for both containers.
D. Decrease the resource limit of container2 to two CPUs.
Show Answer
Correct Answer: C
Explanation:
In Azure Container Instances, CPU requests guarantee a minimum, while limits cap maximum usage. If no limit is specified, the maximum CPU usage equals the request. By removing the resource limits for both containers, each container is capped at its requested CPU and cannot burst beyond it. This ensures container2 cannot consume additional CPU that would negatively affect container1.

Question 22

HOTSPOT - You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com that contains the users shown in the following table. You enable password reset for contoso.onmicrosoft.com as shown in the Password Reset exhibit. (Click the Password Reset tab.) You configure the authentication methods for password reset as shown in the Authentication Methods exhibit. (Click the Authentication Methods tab.) For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for AZ-104 question 22 Illustration for AZ-104 question 22 Illustration for AZ-104 question 22 Illustration for AZ-104 question 22
Show Answer
Correct Answer: No No No
Explanation:
SSPR is enabled only for Group2 and requires two authentication methods (mobile phone and security questions), so answering only security questions is insufficient. User1 is not a member of Group2, so SSPR does not apply. Only Global/Authentication Administrators can configure SSPR authentication methods; a User Administrator cannot add security questions.

Question 23

HOTSPOT - You have an Azure subscription that contains an Azure Backup vault named Backup1, a Recovery Services vault named Recovery1, and the resources shown in the following table. You plan to back up the resources. Which resource can be backed up to Backup1, and which resource can be backed up to Recovery1? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 23 Illustration for AZ-104 question 23
Show Answer
Correct Answer: Backup1: Disk1 Recovery1: VM1
Explanation:
An Azure Backup vault supports newer workload types such as Azure Disks, but not virtual machines. A Recovery Services vault is required to back up Azure virtual machines. App Service web apps and Azure SQL Database are not backed up directly by either vault type in this context.

Question 23

HOTSPOT - You have an Azure subscription named Subscription1 that has a subscription ID of c276fc76-9cd4-44c9-99a7-4fd71546436e. You need to create a custom RBAC role named CR1 that meets the following requirements: ✑ Can be assigned only to the resource groups in Subscription1 ✑ Prevents the management of the access permissions for the resource groups ✑ Allows the viewing, creating, modifying, and deleting of resources within the resource groups What should you specify in the assignable scopes and the permission elements of the definition of CR1? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for AZ-104 question 23
Show Answer
Correct Answer: AssignableScopes: /subscriptions/c276fc76-9cd4-44c9-99a7-4fd71546436e Permissions (notActions): Microsoft.Authorization/*
Explanation:
Setting the assignable scope to the subscription limits where the custom role can be assigned, while still allowing assignment at resource-group level within that subscription. Granting all actions (*) enables full resource management, and excluding Microsoft.Authorization/* prevents managing role assignments and access permissions.

Question 24

HOTSPOT - 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 implement the planned changes for cont2. What is the maximum number of additional access policies you can create for cont2? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24
Show Answer
Correct Answer: Stored access policies: 2 Immutable blob storage policies: 1
Explanation:
A blob container supports a maximum of 5 stored access policies. Since cont2 already has Stored1–Stored3, only 2 more can be added. For immutable storage, a container can have one legal hold and one time-based retention policy simultaneously. With a legal hold already configured, one additional immutable (time-based retention) policy can still be added.

Question 24

HOTSPOT - You have a virtual network named VNET1 that contains the subnets shown in the following table: You have Azure virtual machines that have the network configurations shown in the following table: For NSG1, you create the inbound security rule shown in the following table: For NSG2, you create the inbound security rule shown in the following table: For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24 Illustration for AZ-104 question 24
Show Answer
Correct Answer: VM2 → VM1 (TCP 1433): No VM1 → VM2 (TCP 1433): Yes VM2 → VM3 (TCP 1433): Yes
Explanation:
Inbound traffic to VM1 is evaluated by both NSG1 (subnet) and NSG2 (NIC). Although NSG1 allows TCP 1433 from Subnet2, NSG2 has a higher‑specific inbound rule that blocks traffic from 10.10.2.5 to 10.10.1.5, so VM2 cannot reach VM1. For VM1 → VM2, only outbound rules apply on VM1 and default AllowVNetOutbound permits the traffic; VM2 has no NSG, so inbound is allowed. VM2 → VM3 is within Subnet2 with no NSGs applied, so traffic is allowed.

Question 25

HOTSPOT - You have an Azure subscription linked to a hybrid Microsoft Entra tenant. The tenant contains the users shown in the following table. You create the Azure Files shares shown in the following table. You configure identity-based access for contoso2024 as shown in the following exhibit. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 25 Illustration for AZ-104 question 25 Illustration for AZ-104 question 25 Illustration for AZ-104 question 25
Show Answer
Correct Answer: User1 can access the content in share1: No User2 can access the content in share2: Yes User2 can access the content in share3: No
Explanation:
Azure Files identity-based access using AD requires hybrid (on‑premises synced) identities. User1 is cloud-only, so access is denied. User2 is synced and can access shares in contoso2024 where AD authentication is enabled. Share3 is in contoso2025, which does not have AD identity-based access configured.

Question 25

HOTSPOT - You create a virtual machine scale set named Scale1. Scale1 is configured as shown in the following exhibit. Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for AZ-104 question 25 Illustration for AZ-104 question 25
Show Answer
Correct Answer: 6 virtual machines 2 virtual machines
Explanation:
Initial instances = 4. Case 1: CPU at 85% for >5 minutes exceeds the 80% scale-out threshold, so the scale set increases by 2 VMs → 6 total. Case 2: CPU at 25% for >5 minutes triggers scale-in by 4 VMs, but the minimum is 2, so it scales down from 4 to 2. Subsequent 50% utilization does not trigger scaling.

$19

Get all 558 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.