Microsoft Azure Administrator (AZ-104) Exam-style mock test
Microsoft Azure Administrator (AZ-104) Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Manage Azure identities and governance
A retail bank's treasury desk gains several new analysts each month. The identity team wants every user whose department attribute equals Treasury to receive the desk's resource access automatically, with no manual group maintenance. What should they create in Microsoft Entra ID?
・A security group with assigned membership that owners update after each hire
Incorrect. Assigned membership still requires an owner to add every new analyst by hand.
・An administrative unit that scopes helpdesk permissions to the treasury analysts
Incorrect. Administrative units delegate administrative scope; they do not grant resource access to members.
✓A security group with a dynamic membership rule on the department attribute
Correct. A dynamic membership rule such as user.department -eq "Treasury" adds and removes members automatically as the attribute changes.
・A Microsoft 365 group whose membership is imported monthly from a CSV file
Incorrect. A monthly CSV import leaves gaps between hires and still depends on manual upkeep.
Explanation
Dynamic membership groups evaluate attribute rules continuously, so access tied to the group follows the department attribute without any manual maintenance.
Example2 · Implement and manage storage
An administrator at a card issuer runs: az storage account update -n stcards -g rg-pay --default-action Deny, followed by: az storage account network-rule add -g rg-pay --account-name stcards --vnet-name vnet-pay --subnet snet-app. What is the resulting access state?
・Only traffic from snet-app is accepted, and the subnet needs no additional configuration
Incorrect. The subnet must have the Microsoft.Storage service endpoint enabled or its traffic still arrives with a public source address.
✓Only traffic from snet-app, which needs a Microsoft.Storage service endpoint, is accepted
Correct. With default-action Deny, only the listed subnet may connect, and virtual network rules require the Microsoft.Storage service endpoint on that subnet.
・All virtual network traffic is accepted while internet traffic prompts for a SAS token
Incorrect. Only subnets added as network rules are allowed; a SAS token does not bypass the firewall.
・Public access continues until the storage account firewall is also enabled in the portal
Incorrect. The CLI update already set the firewall's default action; no separate portal step exists.
Explanation
Setting the default action to Deny closes the account to all networks except configured rules, and a virtual network rule works only when the subnet has the Microsoft.Storage service endpoint enabled.
Example3 · Deploy and manage Azure compute resources
A Bicep file for a lending platform declares: param location string = resourceGroup().location, and every resource uses this parameter. The template is deployed to a resource group in Japan East with no parameter overrides. Where are the resources created?
・In the subscription's default region, which overrides values computed inside templates
Incorrect. Subscriptions have no default region that overrides template expressions.
✓In Japan East, because the parameter defaults to the target resource group's region
Correct. resourceGroup().location resolves to the target resource group's region, so the default places everything in Japan East.
・Nowhere, because the deployment fails until an explicit location value is supplied
Incorrect. The parameter has a default value, so the deployment proceeds without an explicit one.
・In the region recorded in the deployment metadata, which is always East US
Incorrect. Deployment metadata location does not dictate where resources are created.
Explanation
The common pattern param location string = resourceGroup().location pins resources to the deployment's target resource group region unless the caller overrides the parameter.
Example4 · Implement and manage virtual networking
A hospital hub virtual network peers with spoke-ehr and spoke-analytics. VMs in spoke-ehr cannot reach VMs in spoke-analytics, although both spokes communicate with the hub normally. What is the root cause?
・Global peering is required whenever more than two networks connect
Incorrect. Global peering concerns cross-region links, not the number of participating networks.
・The spokes' address spaces must overlap before they exchange traffic
Incorrect. Peered address spaces must never overlap; overlap blocks peering entirely.
✓Peering is not transitive, so the spokes have no direct path
Correct. Peering links exactly two VNets; spoke-to-spoke traffic needs its own peering or a routed hub appliance.
・The hub's default NSG rules block forwarded traffic between spokes
Incorrect. Default NSG rules allow VNet traffic, and no NSG was said to intervene; transitivity is the real limit.
Explanation
VNet peering is strictly pairwise and non-transitive, so two spokes sharing a hub still need direct peering or an NVA route to talk. (AZ-104 skills measured 4.1: Create and configure virtual network peering)
Example5 · Monitor and maintain Azure resources
An administrator runs this query in a hospital's Log Analytics workspace: Heartbeat | summarize arg_max(TimeGenerated, *) by Computer | where TimeGenerated < ago(10m). What does the result list?
・Machines that have restarted at least once within the last ten minutes
Incorrect. Heartbeat records carry agent liveness, and nothing here detects restarts.
・Every heartbeat written in the last ten minutes, grouped by machine
Incorrect. The filter keeps old timestamps, excluding rather than selecting the recent records.
✓Machines whose most recent heartbeat is older than ten minutes
Correct. arg_max keeps each computer's latest heartbeat, and the filter keeps only those whose latest beat predates the ten-minute window: silent machines.
・The ten machines that produced the most heartbeat records today
Incorrect. No count or top operator appears; ago(10m) is a time boundary, not a row limit.
Explanation
The arg_max-then-filter pattern is the standard KQL idiom for finding machines that have stopped reporting within a given window. (AZ-104 skills measured 5.1: Query and analyze logs in Azure Monitor)
Example6 · Manage Azure identities and governance
A regional hospital network assigns Microsoft 365 licenses through a group. Nurses whose department attribute is Oncology must join the group automatically, and nurses who transfer out must leave it without any manual edits. What should the administrator create?
・Create an assigned group and update membership with a nightly script
Incorrect. A scripted assigned group is still manual maintenance by another name and lags behind HR changes between runs.
✓Create a dynamic membership group with a rule on the department attribute
Correct. A dynamic membership rule such as user.department -eq "Oncology" adds and removes members automatically as the attribute changes.
・Create an administrative unit scoped to the oncology department staff
Incorrect. Administrative units delegate administration over a subset of objects; they do not manage group membership.
・Create a distribution group and ask team leads to maintain members
Incorrect. Distribution groups are for email delivery and their membership would still be curated by hand.
Explanation
Dynamic membership groups evaluate attribute-based rules continuously, so membership tracks the department attribute with no manual work. (AZ-104 skills measured 1.1: Create users and groups)
Example7 · Manage Azure identities and governance
An online marketplace hires 400 seasonal warehouse packers for the holiday quarter. The identity team receives a spreadsheet from HR and must create all the Microsoft Entra accounts in a single portal operation. What should they use?
・A PowerShell loop that calls the Microsoft Graph API for every row
Incorrect. A script can create the accounts, but it is not the single portal operation the team was asked to use.
・The Microsoft Entra Connect wizard pointed at the exported HR spreadsheet file
Incorrect. Microsoft Entra Connect synchronizes an on-premises Active Directory; it cannot ingest a spreadsheet.
・A dynamic membership group that provisions accounts from the department attribute
Incorrect. Dynamic membership rules add existing users to groups; they never create user accounts.
✓The bulk create operation on the Users blade with the completed CSV template
Correct. The Users blade offers a bulk create operation: download the CSV template, fill it from the HR sheet, and upload it once.
Explanation
Bulk user create in the Microsoft Entra admin center takes one CSV upload and provisions every listed account in a single job. (AZ-104 skills measured 1.1: Create users and groups)
Example8 · Manage Azure identities and governance
A fashion e-commerce company has assigned Microsoft 365 licenses directly to 2,000 store associates. The admin wants to move to group-based licensing without any associate losing service during the transition. What is the correct order of operations?
・Remove every direct assignment first, then add the group-based license afterward
Incorrect. Removing the direct licenses first leaves users unlicensed until the group assignment processes, interrupting service.
✓Add the group-based license first, then remove each direct assignment afterward
Correct. When the group license is applied before the direct one is removed, the service plans stay active for the whole transition.
・Delete the user accounts and recreate them inside the licensed group
Incorrect. Recreating accounts destroys mailboxes and sign-in history and is never required for a licensing change.
・Open a billing support ticket to convert the licenses into a subscription transfer
Incorrect. Moving from direct to group-based licensing is an assignment change, not a billing transfer.
Explanation
The supported migration is add the group license on top, verify it is active, then remove the direct assignments so coverage never lapses. (AZ-104 skills measured 1.1: Manage licenses in Microsoft Entra ID)
Example9 · Manage Azure identities and governance
A marketplace operator invites third-party sellers as guest accounts. Security now requires that only the partner-management team can send new guest invitations, while all other employees are blocked from inviting anyone. Which setting should the administrator change?
・Enable the security defaults feature so invitations always require multifactor authentication approval
Incorrect. Security defaults enforce MFA baselines; they do not control who may send guest invitations.
・Create a Conditional Access policy that blocks sign-ins from unknown partner domains
Incorrect. Conditional Access governs sign-in conditions for existing accounts, not who can invite new guests.
✓Restrict invitations to users holding the Guest Inviter role in external collaboration settings
Correct. External collaboration settings can limit invitations to admins and users in the Guest Inviter role, which is then granted to the partner-management team.
・Switch all of the existing guest accounts to member accounts in the directory
Incorrect. Converting guests to members changes their user type and does nothing to restrict future invitations.
Explanation
Guest invite settings under external collaboration control who can invite; choosing the most restrictive option plus the Guest Inviter role scopes it to one team. (AZ-104 skills measured 1.1: Manage external users)
Example10 · Manage Azure identities and governance
A robotics manufacturer opens a new smart factory and must create Microsoft Entra accounts for 60 newly hired line operators before Monday. The identity administrator wants a single operation driven from the Microsoft Entra admin center rather than writing a script. What should the administrator use?
・Synchronize the operator accounts from on-premises AD with Microsoft Entra Connect
Incorrect. Entra Connect synchronizes existing on-premises AD accounts; these hires have no directory accounts to synchronize yet.
・Create a dynamic membership group whose rule matches the operators' job titles
Incorrect. Dynamic groups organize users that already exist; a membership rule never creates user accounts.
✓Use the Bulk create operation on the Users blade with the CSV template
Correct. The Users blade offers a Bulk create operation: download the CSV template, fill in the 60 operators, and upload it once.
・Send each operator a B2B invitation so accounts appear as they redeem
Incorrect. B2B invitations create guest identities tied to an external directory, not workforce member accounts.
Explanation
Bulk create on the Users blade accepts a completed CSV template and provisions all the accounts in one portal-driven operation. (AZ-104 skills measured 1.1: Create users and groups)
Example11 · Manage Azure identities and governance
A precision-bearings maker invited a quality auditor from a partner firm as a guest, but the auditor never redeemed the invitation and now reports that the link has expired. The auditor must continue signing in with partner credentials. What should the administrator do?
・Delete the guest object and recreate the auditor as a member with a temporary password
Incorrect. A member account with a local password breaks the requirement that the auditor keep using partner credentials.
・Reset the guest user's password in Microsoft Entra ID and share it with the auditor
Incorrect. The guest authenticates against the partner directory; the inviting tenant does not manage that password.
・Ask the partner organization to re-register the auditor's account in its home tenant
Incorrect. The auditor's home account is fine; only the redemption link on the inviting side expired.
✓Resend the invitation from the guest user's profile to issue a fresh redemption link
Correct. The guest user's profile offers a resend invitation action that issues a new redemption link while keeping the same guest object.
Explanation
An unredeemed B2B invitation can be resent from the guest's profile, generating a new redemption link without recreating the user. (AZ-104 skills measured 1.1: Manage external users)
Example12 · Manage Azure identities and governance
The city of Alderton enables self-service password reset for a pilot group of permit-office staff. Policy requires every reset to demand two different authentication methods, and the Microsoft Authenticator notification must be accepted as one of them. Where should the administrator configure these requirements?
✓On the Password reset blade, set required methods to two and enable mobile app notification
Correct. Authentication methods settings under Password reset control how many methods a reset requires and which methods, including the Authenticator notification, are allowed.
・In Conditional Access, build a policy that requires multifactor authentication for the password reset web portal
Incorrect. Conditional Access governs sign-in to applications; it does not define how many methods the SSPR process itself demands.
・In tenant properties, turn on security defaults so resets always prompt users for two separate factors
Incorrect. Security defaults enforce baseline MFA at sign-in and do not set the number of methods required for self-service reset.
・In Password protection, publish a custom banned password list that enforces two registered authentication methods
Incorrect. Password protection blocks weak passwords from being chosen; it has no setting for the number of reset methods.
Explanation
The Password reset authentication methods settings define both how many methods a reset requires and which methods qualify. (AZ-104 skills measured 1.1: Configure self-service password reset (SSPR))
Example13 · Manage Azure identities and governance
A national statistics office collaborates with two partner universities. Compliance now demands that staff be able to send B2B guest invitations only to recipients in the domains stat-u.edu and censuslab.org, with every other domain refused. What should the administrator configure?
・A cross-tenant synchronization job that provisions users from both universities into the tenant
Incorrect. Cross-tenant synchronization provisions accounts automatically; it does not restrict which domains staff can invite.
✓An allow list of the two domains under collaboration restrictions in external collaboration settings
Correct. External collaboration settings include collaboration restrictions where you allow invitations only to specified domains, blocking all others.
・A dynamic membership group whose rule matches guest accounts from the two domains
Incorrect. A dynamic group organizes guests after they already exist; it cannot prevent invitations to other domains.
・An entitlement management access package that assigns guests to the statistics projects
Incorrect. Access packages govern what resources guests receive; staff could still send ad hoc invitations to any domain.
Explanation
Collaboration restrictions in the external collaboration settings accept an allow list of target domains, so invitations to any other domain are refused. (AZ-104 skills measured 1.1: Manage external users)
Example14 · Manage Azure identities and governance
A video streaming platform wants to pilot self-service password reset with its customer-support team before a company-wide rollout. Password resets for everyone else must keep going through the help desk during the pilot. How should the administrator configure SSPR in Microsoft Entra ID?
・Set SSPR to Enabled and instruct other employees to keep using the help desk
Incorrect. Enabled turns SSPR on for every user, so the pilot boundary would depend on people ignoring a visible feature.
・Create a Conditional Access policy that blocks password changes for non-support staff
Incorrect. Conditional Access governs sign-in conditions; it is not the mechanism that scopes who may use SSPR.
・Enable combined security information registration for the support team only
Incorrect. Combined registration changes how users register security info; it does not limit which users can reset passwords.
✓Set SSPR to Selected and pick the customer-support group
Correct. The Selected option scopes SSPR to one chosen group, which is exactly how Microsoft recommends running a pilot.
Explanation
SSPR supports None, Selected, and Enabled; Selected limits the capability to a single group, which is the supported way to run a pilot. (AZ-104 skills measured 1.1: Configure self-service password reset (SSPR))
Example15 · Manage Azure identities and governance
A multi-tenant SaaS vendor assigns Microsoft 365 licenses through a Microsoft Entra group. Last week the tenant ran out of available seats, and several newly added engineers were flagged with license assignment failures. The vendor has now purchased additional seats. What should the administrator do to clear the failed assignments fastest?
・Remove the affected engineers from the group and add them back one by one
Incorrect. Re-adding members eventually triggers evaluation, but it is slow, manual, and unnecessary when a retry action exists.
✓Select Reprocess on the group's licenses page so Entra retries the failed assignments
Correct. Reprocess forces group-based licensing to re-evaluate the group immediately and apply licenses now that seats exist.
・Convert the group to assigned membership before the new seats can take effect
Incorrect. Membership type has nothing to do with licensing errors caused by insufficient seats.
・Delete the failed users and recreate their accounts with direct license assignments
Incorrect. Deleting accounts destroys user data and history; the failed state only needs a licensing retry.
Explanation
When group-based licensing fails because seats ran out, buying seats and selecting Reprocess on the group re-evaluates members and resolves the error state. (AZ-104 skills measured 1.1: Manage licenses in Microsoft Entra ID)
▶ Try 10 free questions (graded)