Microsoft AZ-104 Practice Exam Questions & Answers

7 Free Questions Last reviewed October 27, 2026 Prepared & Reviewed by the ValidExamDumps Editorial Team

510 Practice Questions (Our Bank)
100 minutes Exam Duration
USD 165 Official Exam Fee
Exam Facts

Microsoft AZ-104 Exam Details

Key details for this exam, checked against the published exam outline

Exam Code
AZ-104
Full Name
Microsoft Azure Administrator Exam
Issuing Body
Microsoft
Question Format (Our Bank)
Multiple Choice, Hotspot, Order List, Drag & Drop, Case Studies
Delivery
Online proctored
Eligibility
Hands-on experience administering Azure recommended, plus understanding of core Azure services, workloads, security, and governance. Experience with PowerShell, Azure CLI, Azure portal, and Azure Resource Manager templates recommended.
Practice Questions

Free AZ-104 Practice Questions

Each question shows the correct answer and an explanation of why it is right

VA
ValidExamDumps Editorial Team Every question and its answer is checked by our AZ-104 exam preparation team, who also write the explanation shown with each one. How we research and review these pages

Question 1 Domain 2 Manage Azure identities and governance

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 10 virtual networks. The virtual networks are hosted in separate resource groups.

Another administrator plans to create several network security groups (NSGs) in the subscription

You need to ensure that when an NSG is created, it automatically blocks TCP port 8080 between the virtual networks.

Solution: You assign a built-in policy definition to the subscription.

Does this meet the goal?

Correct Answer B
Explanation

No, this does not meet the goal. Assigning a built-in policy definition to the subscription is not enough to ensure that when an NSG is created, it automatically blocks TCP port 8080 between the virtual networks. This is because there is no built-in policy definition that matches this requirement.The closest built-in policy definition is ''Network security groups should not allow unrestricted inbound traffic on well-known ports'', but this policy only blocks TCP port 80 and 443, not 80801.

To meet the goal, you need to create a custom policy definition that enforces a default security rule for NSGs.A policy definition is a set of rules and actions that Azure performs when evaluating your resources2. You can use a policy definition to specify the required properties and values for NSGs, such as the direction, protocol, source, destination, and port of the security rule. You can then assign the policy definition to the subscription scope, so that it applies to all the resource groups and virtual networks in the subscription.

Question 2 Domain 1 Implement and manage virtual networking

Which blade should you instruct the finance department auditors to use?

Correct Answer C
Explanation

Cost analysis: Correct Option

In cost analysis blade of Azure, you can see all the detail for custom time span. You can use this to determine expenditure of last few day, weeks, and month. Below options are available in Cost analysis blade for filtering information by time span:last 7 days, last 30 days, and custom date range. Choosing the first option (last 7 days) auditors can view the costs by time span.

Cost analysis shows data for the current month by default. Use the date selector to switch to common date ranges quickly. Examples include the last seven days, the last month, the current year, or a custom date range. Pay-as-you-go subscriptions also include date ranges based on your billing period, which isn't bound to the calendar month, like the current billing period or last invoice. Use the<PREVIOUSandNEXT>links at the top of the menu to jump to the previous or next period, respectively. For example,<PREVIOUSwill switch from theLast 7 daysto8-14 days agoor15-21 days ago.

Question 2 explanation

Invoice: Incorrect Option

Invoices can only be used for past billing periods not for current billing period, i.e. if your requirement is to know the last week's cost then that also not filled by invoices because Azure generates invoice at the end of the month. Even though Invoices have custom timespan, but when you put in dates for a week, the pane would be empty. Below is from Microsoft document:

Question 2 explanation

Resource Provider: Incorrect Option

When deploying resources, you frequently need to retrieve information about the resource providers and types. For example, if you want to store keys and secrets, you work with the Microsoft.KeyVault resource provider. This resource provider offers a resource type called vaults for creating the key vault. This is not useful for reviewing all Azure costs from the past week which is required for audit.

Payment method: Incorrect Option

Payment methods is not useful for reviewing all Azure costs from the past week which is required for audit.


https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/quick-acm-cost-analysis

https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/download-azure-invoice-daily-usage-date

Question 3 Domain 4 Deploy and manage Azure compute resources

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, those questions will not appear in the review screen.

You have a Microsoft Entra 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 Microsoft Entra ID in the Azure portal, you use the Bulk create user operation.

Does this meet the goal?

Correct Answer B
Explanation

In Microsoft Entra ID (Azure Active Directory), creating guest user accounts for external users involves the B2B collaboration invitation process, not the Bulk create user operation. The Bulk create user feature in the Azure portal is used exclusively for creating member users (internal accounts) within your tenant --- users that belong directly to your organization.

The Microsoft Azure Administrator official study guide and documentation specify that to onboard external users (guests), you must invite them using the B2B invitation mechanism. This process creates user objects with userType = Guest in your directory. The correct method to achieve this in bulk is by using the PowerShell cmdlet New-AzureADMSInvitation or Microsoft Graph API to send invitations automatically to all external users listed in your CSV file.

Bulk create user operation does not support adding guest accounts because it doesn't generate the B2B invitation link or email, which is required for the external user to accept and authenticate using their own identity provider (e.g., Microsoft account, Google, or another Entra tenant).

Therefore, the proposed solution fails to meet the requirement of creating guest accounts for the 500 external users in the contoso.com tenant. The correct solution would be to use PowerShell with the New-AzureADMSInvitation command or the Azure AD portal's ''Invite external users'' bulk import option designed specifically for guest creation.

Get the complete AZ-104 question set $20$40

Get Full Access

Question 4 Domain 3 Implement and manage storage

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 Contributor role to User1.

Does this meet the goal?

Correct Answer A
Explanation

The Storage Account Contributor role provides the necessary permissions to manage a storage account except for access to data itself. According to Microsoft's Azure RBAC documentation, this role includes the following actions:

Microsoft.Storage/storageAccounts/regenerateKey/action

Microsoft.Storage/storageAccounts/listKeys/action

Microsoft.Storage/storageAccounts/read

Therefore, a user assigned the Storage Account Contributor role can list and regenerate access keys for the assigned storage account.

Reference from Azure documentation (Built-in roles for Azure RBAC):

''Storage Account Contributor -- Manage storage accounts, including access keys. Can't manage access to data.''

Hence, assigning Storage Account Contributor to User1 meets the requirement.

Question 5 Domain 1 Implement and manage virtual networking

You manage multiple Azure subscriptions that each contains multiple virtual machines.

You plan to monitor read and write operations on the disks of a virtual machine named VM1.

You need to configure Azure Monitor to meet the following requirements:

Correct Answer A
Explanation

The correct first action is to create a data collection rule (DCR). Azure Monitor can collect host-level platform metrics automatically, but metrics from inside the guest operating system require an agent-based collection path. Microsoft states that Azure Monitor Agent collects monitoring data from the guest operating system of Azure and hybrid VMs, and that it collects data according to data collection rules, which define what data is collected, processed, and sent.

Question 6 Domain 4 Deploy and manage Azure compute resources

You have an Azure subscription that contains a storage account named storage 1.

You need to ensure that the access keys for storage! rotate automatically.

What should you configure?

Correct Answer D
Explanation

In Azure, a storage account access key provides full access to all data within the account. To reduce risk and follow security best practices, these keys should be rotated (regenerated) periodically.

According to the Microsoft Azure Storage and Security documentation, Azure Key Vault can be used to automate access key rotation for storage accounts.

Azure Key Vault allows you to:

Store and manage secrets, keys, and certificates securely.

Integrate directly with Azure Storage to manage account keys and Shared Access Signatures (SAS).

Enable automated key rotation when using Azure Key Vault managed storage account keys.

Here's how it works:

In Azure Key Vault, add the storage account (storage1) as a managed storage account.

Key Vault periodically regenerates (rotates) the storage access keys automatically.

Applications can retrieve updated keys via Key Vault APIs or managed identities without manual key updates.

This process ensures consistent security and reduces the administrative effort required for key rotation.

Other options such as backup vaults, redundancy, or lifecycle management do not handle access key rotation---they serve data protection or retention purposes, not key management.

Final Verified Answe r: D. an Azure key vault

Question 7 Domain 2 Manage Azure identities and governance

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 Tempi ate 1. The solution must minimize Azure costs,

What should you identify?

Correct Answer A
Explanation

Unable to provide correction without seeing the answer options. To properly answer what should be identified before deploying Template1 to minimize Azure costs, I would need to see the available choices. However, the most cost-minimizing approach would be to identify the resources and costs BEFORE deployment. This typically means: reviewing the template's resource definitions, calculating estimated costs using Azure pricing calculator or cost estimation features, and identifying whether any resources are redundant or could be consolidated.

Study Guide

What the Microsoft AZ-104 Exam Covers

Exam domains verified against the Official Microsoft AZ-104 exam guide, last checked October 2026.

Domain 1 Implement and manage virtual networking

15% - 20%

Configure and manage virtual networks in Azure. Configure secure access to virtual networks. Configure name resolution and load balancing.

Sample questions from this domain above Q2Q5

Domain 2 Manage Azure identities and governance

20% - 25%

Manage Microsoft Entra users and groups. Manage access to Azure resources. Manage Azure subscriptions and governance.

Sample questions from this domain above Q1Q7

Domain 3 Implement and manage storage

15% - 20%

Configure access to storage. Configure and manage storage accounts. Configure Azure Files and Azure Blob Storage.

Sample question from this domain above Q4

Domain 4 Deploy and manage Azure compute resources

20% - 25%

Automate deployment of resources by using Azure Resource Manager (ARM) templates or Bicep files. Create and configure virtual machines. Provision and manage containers in the Azure portal. Create and configure Azure App Service.

Sample questions from this domain above Q3Q6

Domain 5 Monitor and maintain Azure resources

10% - 15%

Monitor resources in Azure. Implement backup and recovery.

FAQ

AZ-104 Exam FAQ

Common questions about the exam itself

What background do I need before taking AZ-104?
Microsoft recommends at least six months of hands-on experience administering Azure environments. You should understand core Azure services, workloads, security, and governance, and have practical experience with PowerShell, Azure CLI, Azure portal, and Azure Resource Manager templates.
Is AZ-104 a hard exam?
AZ-104 is an intermediate-level exam that tests practical administration skills rather than theory. Most candidates find the compute and identity domains most challenging because they involve complex real-world scenarios and hands-on configuration tasks.
How long should I study for AZ-104?
Most candidates prepare for 4 to 8 weeks depending on their existing Azure experience. The timeline depends heavily on your hands-on practice with actual Azure resources rather than just studying materials.
How many questions are on the AZ-104 exam?
The exam typically contains between 40 and 60 questions. Microsoft does not publish a fixed count because the exam uses adaptive technology and case studies that may vary between test sessions.
How long does the AZ-104 exam take?
You have 100 minutes to answer the exam questions. The full appointment time may be longer due to check-in procedures and instructions, but your actual testing time is 100 minutes.
What is the passing score for AZ-104?
Microsoft does not publish the exact passing score. You receive a score between 0 and 1000, and passing typically requires a score in the upper 600 to 700 range based on exam difficulty.
Can I retake AZ-104 if I fail?
You can retake the exam 24 hours after your first attempt. For subsequent retakes, the waiting period varies. There is no limit on the number of times you can attempt the exam.
How long is the Azure Administrator Associate certification valid?
The certification expires and must be renewed. You can renew at no cost by passing an online assessment on Microsoft Learn to stay current with Azure platform updates.
What job role is AZ-104 for?
AZ-104 is designed for Azure Administrators who implement, manage, and monitor identity, governance, storage, compute, and virtual networks in Azure environments. It suits system engineers, cloud architects, and IT operations professionals.
How does AZ-104 relate to other Azure certifications?
AZ-104 is the single exam required for the Azure Administrator Associate certification at the intermediate level. After passing AZ-104, you can pursue expert-level certifications like AZ-305 (Solutions Architect) or AZ-400 (DevOps Engineer).

Other Microsoft Exams

Free practice questions for more Microsoft certification exams

All Microsoft exams