Microsoft Azure Administrator Associate Practice Test (AZ-104)
Use the form below to configure your Microsoft Azure Administrator Associate Practice Test (AZ-104). The practice test can be configured to only include certain exam objectives and domains. You can choose between 5-100 questions and set a time limit.

Microsoft Azure Administrator Associate AZ-104 Information
As a candidate for this certification, you should have subject matter expertise in implementing, managing, and monitoring an organization’s Azure environment, including:
- Virtual networks
- Storage
- Compute
- Identity
- Security
- Governance
As an Azure administrator, you often serve as part of a larger team dedicated to implementing an organization's cloud infrastructure. You also coordinate with other roles to deliver Azure networking, security, database, application development, and DevOps solutions.
You should be familiar with:
- Operating systems
- Networking
- Servers
- Virtualization
In addition, you should have experience with:
- PowerShell
- Azure CLI
- The Azure portal
- Azure Resource Manager templates
- Microsoft Entra ID
Skills measured
- Manage Azure identities and governance
- Implement and manage storage
- Deploy and manage Azure compute resources
- Implement and manage virtual networking
- Monitor and maintain Azure resources
Scroll down to see your responses and detailed results
Free Microsoft Azure Administrator Associate AZ-104 Practice Test
Press start when you are ready, or press Change to modify any settings for the practice test.
- Questions: 15
- Time: Unlimited
- Included Topics:Manage Azure identities and governanceImplement and manage storageDeploy and manage Azure compute resourcesConfigure and manage virtual networkingMonitor and maintain Azure resources
Free Preview
This test is a free preview, no account required.
Subscribe to unlock all content, keep track of your scores, and access AI features!
You are an Azure administrator for your organization. You need to ensure that devices running Windows 10 are automatically registered in Azure Entra ID when users sign in with their corporate credentials. Which device identity feature should you configure?
Configure Azure Entra ID registered devices
Configure Azure Entra ID Join
Configure Hybrid Azure AD Join
Configure Windows Hello for Business
Answer Description
To automatically register Windows 10 devices in Azure Entra ID when users sign in with their corporate credentials, you should configure Azure AD Join. Azure AD Join allows devices to be joined directly to Azure AD, enabling centralized management and access to resources. This is suitable for corporate-owned devices and simplifies the sign-in experience for users. Azure AD registered devices are typically used for personally owned devices (BYOD) and do not provide the same level of management. Windows Hello for Business is a sign-in method that enhances authentication security but does not handle device registration. Hybrid Azure AD Join is intended for devices joined to an on-premises Active Directory domain that are also registered with Azure AD; since there is no mention of on-premises Active Directory in this scenario, Azure AD Join is the appropriate choice.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure AD Join and how does it work?
What are the benefits of using Azure AD Join for device registration?
How does Azure AD Join differ from Hybrid Azure AD Join?
Your organization has recently acquired licenses for a new enterprise application integrated with Azure Entra ID. As an administrator, you need to assign these licenses to a group of users, ensuring that license assignments automatically update when users join or leave the group. What should you do to accomplish this?
Configure an Azure Policy to enforce license assignments.
Create a dynamic device group and assign licenses to it.
Assign licenses directly to each user manually.
Assign licenses to users by adding them to a group with the licenses assigned.
Answer Description
By assigning licenses to a group in Azure Entra ID, you ensure that all current and future members of the group automatically receive the licenses, and licenses are revoked when users leave the group. This method is known as group-based licensing and simplifies license management. Assigning licenses directly to each user is time-consuming and does not automatically update when group membership changes. Dynamic device groups manage devices, not user accounts or licenses. Azure Policy is used for policy-based management and cannot assign licenses to users.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure Entra ID?
What is group-based licensing?
What are the benefits of automatic license assignments?
You manage an Azure Storage account containing confidential data. You need to grant temporary access with write permissions to a container for an external vendor. The access should be revocable before its expiration without affecting other users. What should you do to meet these requirements?
Share the storage account key with the vendor.
Change the container's access level to public and share the container's URI.
Generate a user delegation SAS token with write permissions and share it with the vendor.
Create a shared access signature token linked to a stored access policy and provide it to the vendor.
Answer Description
Creating a shared access signature (SAS) token linked to a stored access policy allows you to grant temporary access to the vendor and manage it centrally. By associating the SAS with a stored access policy, you can revoke the access by modifying or deleting the policy before its expiration without impacting other users. Sharing the storage account key compromises security and revoking it would affect all services using that key. Generating a user delegation SAS does not offer a way to revoke access before expiration without regenerating keys, which could disrupt other users. Changing the container's access level to public exposes your data to anyone with the URI, which is not secure.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a Shared Access Signature (SAS) token in Azure?
What is a stored access policy and how does it work with SAS tokens?
Why is it insecure to share the storage account key?
You have an Azure Resource Manager (ARM) template that deploys a storage account and a virtual network. You need to update the template to include a virtual machine that is connected to the virtual network defined in the same template. What is the most appropriate way to modify the template to accomplish this?
Add new variables for the virtual machine properties to the 'variables' section of the template.
Add new resources for the virtual machine and its network interface to the 'resources' section of the template.
Add new parameters for the virtual machine configuration to the 'parameters' section of the template.
Modify the 'outputs' section to include details of the virtual machine.
Answer Description
To include a virtual machine in the ARM template and connect it to the existing virtual network, adding new resources for the virtual machine and its network interface in the 'resources' section is necessary. This ensures that the virtual machine and its dependencies are properly defined and deployed within the same template. Modifying parameters or variables would not create the actual resources; they only define values used by resources. The outputs section is used to return values from the deployment and does not affect resource creation.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Azure Resource Manager (ARM) templates?
What is the purpose of the 'resources' section in an ARM template?
What is the difference between 'parameters' and 'variables' in an ARM template?
You are an Azure Entra ID administrator for your company. You need to create a group that automatically includes all users whose department is set to "Sales" in their user profiles. The group membership should update automatically when users change departments or new users are added to the Sales department. What should you do?
Create a security group with assigned membership and add users from the Sales department
Create an administrative unit for the Sales department
Create a Microsoft 365 group with assigned membership and add users from the Sales department
Create a security group with dynamic user membership using a department attribute query
Answer Description
To achieve automatic updates to the group membership based on user attributes, you should create a security group with dynamic user membership using a department attribute query. This allows Azure Entra ID to automatically add or remove users from the group when their department attribute changes. Assigned membership requires manual management of group members, which does not meet the requirement for automatic updates. A Microsoft 365 group is typically used for collaboration features in Microsoft 365 services and may not be necessary if those features aren't required. An administrative unit is used for delegating administrative permissions and scoping administrative tasks, not for grouping users based on attributes.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a dynamic user membership in Azure Entra ID?
What is a department attribute query and how is it used?
How does a security group differ from a Microsoft 365 group?
You are an Azure administrator for a company that stores sensitive data in Azure Blob Storage. You want to ensure that users can access the blobs using their existing corporate credentials without managing storage account keys or shared access signatures. What should you configure to achieve this?
Enable anonymous access on the storage account.
Use shared access signatures to grant access to users.
Provide users with the storage account access keys.
Configure Azure Entra ID authentication for the storage account.
Answer Description
Configuring Azure Entra ID authentication for the storage account enables users to access blobs using their corporate credentials. This approach integrates with your organization's existing identity management, enhancing security and simplifying access control. Using shared access signatures or distributing access keys would require managing and securing keys or tokens, which you aim to avoid. Enabling anonymous access would significantly reduce security and is not appropriate for sensitive data.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure Entra ID and how does it relate to accessing Azure resources?
Why is managing storage account keys or shared access signatures less desirable for security?
What are the implications of enabling anonymous access for Azure Blob Storage?
Which Azure Storage feature allows you to delegate limited permissions to storage resources for a specified time without sharing your account keys?
Shared Access Signature
Stored Access Policies
Access Control Lists
Managed Identities
Answer Description
Shared Access Signatures (SAS) enable you to grant clients limited access rights to storage resources without exposing your account keys. A SAS token specifies permissions and an expiration time, enhancing security when sharing resources. Managed Identities allow Azure services to authenticate to other services but do not directly delegate storage permissions. Access Control Lists (ACLs) are used to define permissions for files and directories in Azure Data Lake Storage Gen2 but are not used for time-limited access. Stored Access Policies help manage SAS by providing additional restrictions but are not used alone to delegate permissions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Shared Access Signatures (SAS) and how do they work?
What are Managed Identities and how are they different from SAS?
What are Stored Access Policies and how do they enhance SAS security?
An Azure administrator needs to add 500 new users to Azure Entra ID quickly and efficiently. The user data has been provided by the HR department. Which method should the administrator use to accomplish this task?
Use PowerShell to script the creation of user accounts.
Create the user accounts manually through the Azure portal.
Use the bulk create users feature in Azure Active Directory.
Set up Azure AD Connect to sync the accounts from an on-premises Active Directory.
Answer Description
The most efficient method is to use the bulk create users feature in Azure Entra ID. This feature allows the administrator to import multiple users at once by uploading a CSV file. Manually creating users through the portal is impractical for a large number of accounts. While a PowerShell script could automate the process, it requires scripting knowledge and additional time to develop and test. Syncing from an on-premises Entra ID is not applicable if the users are not present there.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the bulk create users feature in Azure Entra ID?
What kind of data needs to be included in the CSV file for bulk user creation?
How does Azure AD Connect work in relation to user accounts?
You are deploying an Azure infrastructure template that provisions a server. You need to ensure that additional software is automatically installed on the server after deployment. What is the best way to achieve this within the template?
Use Azure CLI to run the installation script after the server is deployed.
Manually connect to the server and install the software.
Enable Azure Automation to install the software on the server.
Include a custom script extension in the template.
Answer Description
Including a custom script extension in the template is the best way to automatically install additional software on the server after deployment. Extensions like the Custom Script Extension allow you to run scripts during or after the provisioning process as part of the deployment. This method ensures that the software installation is automated and integrated within the template, providing consistency and scalability. Using Azure CLI or Azure Automation requires additional configurations outside the template and does not embed the installation process within the deployment. Manually installing the software is inefficient and does not leverage automation.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a custom script extension in Azure?
How does a custom script extension improve Azure deployment?
Can you run PowerShell scripts using custom script extensions?
An organization needs to delegate administrative permissions so that certain administrators can manage users and groups within their own department without affecting other departments. Which Azure feature should you implement to achieve this?
Azure Entra ID Administrative Units
Azure Entra ID Privileged Identity Management
Azure Management Groups
Azure Role-Based Access Control (RBAC)
Answer Description
Administrative Units in Azure Entra ID allow you to delegate administrative permissions to specific subsets of users or groups within your organization, such as by department or region. By using Administrative Units, you can assign administrators to manage only the users and groups within a particular Administrative Unit, without giving them broader access to other resources in Azure Entra ID. Other features like Azure Entra ID Privileged Identity Management, Management Groups, and Role-Based Access Control (RBAC) do not provide the necessary scope limitation at the department level within Azure AD user and group management.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Azure Entra ID Administrative Units?
How do Administrative Units differ from Role-Based Access Control (RBAC)?
What are some best practices for using Administrative Units in Azure AD?
You are an Azure Administrator at Contoso Ltd. The company needs to add a new user who does not have an existing Microsoft account or email address. The user should be able to sign in and access resources assigned to them in the company's Azure environment. Which of the following actions should you take to create this user account?
Use a synchronization tool to sync their account from on-premises.
Create a new cloud user with a username and password.
Invite the user as a guest to the directory.
Create an application registration for the user.
Answer Description
Creating a new cloud-based user with a username and password allows you to set up an account without requiring an existing email address. The user will receive a unique User Principal Name (UPN) and can sign in using the credentials you provide. Inviting a guest user requires an email address to send the invitation. Using synchronization tools to sync an account from on-premises is not applicable since there is no on-premises account to synchronize. Creating an application registration is intended for application identities, not individual user accounts.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a User Principal Name (UPN)?
What is the difference between a cloud user and a guest user in Azure?
What is the purpose of application registration in Azure?
As an Azure Administrator, you need to restrict access to a storage account so that it is accessible only from specific on-premises locations over the Internet, while blocking all other network traffic. What is the best method to achieve this?
Activate Azure Active Directory authentication for the storage account.
Set the storage account's firewall settings to permit access from the required external sources.
Integrate the storage account with a virtual network created in Azure.
Enable private endpoints on the storage account.
Answer Description
To achieve this, you should set the storage account's firewall settings to permit access from the required external sources. This involves configuring the firewall to allow traffic only from the specific public IP addresses associated with your on-premises locations. This approach effectively blocks all other network traffic over the Internet. Integrating the storage account with a virtual network in Azure won't help because on-premises networks aren't part of Azure's virtual networks. Enabling private endpoints restricts access to within Azure virtual networks or through private connections, not over the Internet from specific external locations. Activating Azure Active Directory authentication manages identity-based access but doesn't control network-level access based on source addresses.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are firewall settings in Azure and how do they work?
What is a public IP address, and why is it important for restricting access?
What are private endpoints in Azure, and how do they differ from public access?
You are an Azure administrator tasked with deploying a storage solution for a new application. The application requires high-performance file shares accessible via the NFS protocol. The data stored is sensitive financial information. Which storage account configuration should you choose to meet these requirements?
Create a general-purpose v2 storage account with standard performance tier
Create a FileStorage storage account with premium performance tier
Create a general-purpose v2 storage account with premium performance tier
Create a Blob storage account with premium performance tier
Answer Description
To meet the requirements, you should create a FileStorage storage account with the premium performance tier. FileStorage accounts are specifically designed for high-performance Azure Files workloads and support both SMB (Server Message Block) and NFS (Network File System) protocols. The premium tier provides the necessary low latency and high throughput for performance-intensive applications. Additionally, data in Azure Storage is encrypted at rest by default, ensuring the security of sensitive information. General-purpose v2 storage accounts with standard performance do not offer the required performance levels. Blob storage accounts are intended for object storage and do not support file shares. General-purpose v2 storage accounts with premium performance tier do not support premium file shares with NFS; this capability is exclusive to FileStorage accounts.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between NFS and SMB protocols?
Why is the FileStorage account optimal for sensitive financial information?
What are the performance characteristics of the premium performance tier in Azure?
You are an Azure administrator for Contoso Ltd. The company has two virtual networks, VNetA and VNetB, located in the same Azure region but in different subscriptions. You need to establish connectivity between the resources in VNetA and VNetB with minimal latency and bandwidth limitations. What should you do?
Create a virtual network peering between VNetA and VNetB using their resource IDs
Implement an Azure Load Balancer to route traffic between VNetA and VNetB
Configure a site-to-site VPN connection between VNetA and VNetB
Establish an ExpressRoute circuit between VNetA and VNetB
Answer Description
To connect virtual networks in different subscriptions within the same Azure region, you can create a virtual network peering between them. By using virtual network peering with resource IDs, you enable direct connectivity between VNetA and VNetB without the need for additional gateways or complex configurations. This approach provides low-latency, high-bandwidth connectivity between the networks. Other options like ExpressRoute or VPN connections are unnecessary and more complex for this scenario, and an Azure Load Balancer does not facilitate network connectivity between virtual networks.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is virtual network peering in Azure?
What are the limitations of using a site-to-site VPN or ExpressRoute between VNets?
Can resources in different subscriptions access each other after setting up VNet peering?
An Azure Administrator needs to securely manage and regularly rotate the access keys for an Azure Storage account. What is the best method to achieve this?
Automate the regeneration of access keys using scripts and scheduled tasks.
Manually regenerate the access keys periodically using the Azure portal.
Use Azure Key Vault to store and manage the storage account access keys.
Implement Azure AD authentication to eliminate the need for access keys.
Answer Description
Using Azure Key Vault to store and manage the storage account access keys is the best method. Azure Key Vault provides a secure, centralized repository for managing secrets, keys, and certificates, including storage account access keys. It offers features like automated key rotation, fine-grained access control through Azure RBAC (Role-Based Access Control), and logging of key usage. While manually regenerating keys or automating key regeneration with scripts can help with rotation, they do not provide the same level of security, auditing, and management capabilities. Implementing Azure AD authentication reduces reliance on access keys by enabling identity-based access, but access keys may still be required for certain applications or scenarios.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure Key Vault and why is it important for managing access keys?
What features does Azure Key Vault provide for key rotation?
What is Azure RBAC and how does it relate to Azure Key Vault?
Cool beans!
Looks like that's it! You can go back and review your answers or click the button below to grade your test.