Microsoft

Microsoft Certified: Azure Administrator Associate (AZ-104)

60 published questions across 5 topics. Every answer carries a worked explanation, and the results screen shows your accuracy topic by topic.

Last updated · questions are checked before publication — how we verify them

Or launch active-recall flashcards to revise key concepts and formulas. Nothing here needs an account.

The paper

Manage Azure Identities and Governance11
Implement and Manage Storage11
Deploy and Manage Azure Compute Resources11
Implement and Manage Virtual Networking12
Monitor and Maintain Azure Resources15

60 questions, banded by topic in the proportions the paper uses.

What the paper covers

  • 20%

    This topic covers how an administrator controls who can do what in an Azure environment, and how the environment is kept orderly and compliant. The official outline weights it at 20 to 25 percent of the exam, so it is one of the largest areas. It has three parts. The first is managing Microsoft Entra users and groups: creating them, maintaining their properties, assigning licenses, handling external users, and configuring self-service password reset. The second is managing access to Azure resources through built-in roles, assigning them at different scopes, and interpreting existing assignments. The third is subscriptions and governance: Azure Policy, resource locks, tags, resource groups, subscriptions, management groups, and cost control through alerts, budgets and Azure Advisor recommendations. The most important distinction is between the two permission systems. Microsoft Entra roles govern the directory, such as users, groups and passwords. Azure roles govern resources, and they are inherited down the hierarchy from management group to subscription to resource group to resource. Candidates should also separate Azure RBAC from Azure Policy. RBAC answers whether a person may perform an action. Policy answers whether a resource is allowed to exist in a given configuration, whoever creates it. Know that policy effects differ in how they behave: some only audit, some deny, and some change or add settings on resources. Policy applied to existing resources needs remediation, while new deployments are evaluated as they are created. For locks, learn the difference between the delete-only lock and the read-only lock, remember that locks apply to everyone including owners, and remember that locks are inherited by child resources. A read-only lock can block operations that look like reads but need a write behind the scenes. Tags do not inherit by default, and moving resources or subscriptions has its own rules and limits. Questions are usually short scenarios with a stated requirement and a constraint, such as least privilege, minimal administrative effort, or applying to every current and future subscription. You then choose the feature, the scope, or the correct sequence of steps. Common traps include picking a scope that is too narrow or too broad, confusing a group type or membership type with a role assignment, and choosing a tool that reports on compliance when the requirement is to enforce it. Another trap is forgetting that effective access is the sum of assignments across scopes, so an inherited role can explain access you did not expect. Cost questions often test whether a budget only notifies or actually stops spending, and it only notifies. To prepare, work in a free or trial subscription rather than only reading. Create users and groups, invite a guest, and turn on password reset for a test group. Assign a built-in role at several scopes and use the access checking view to confirm what a user really has. Build a small management group hierarchy, assign a policy, watch the compliance result, and then try a lock to see which operations it blocks. Repeat the same tasks in the portal, the command line and PowerShell, since the exam expects familiarity with all three. Finish with timed practice questions and review every wrong answer against the official documentation for Entra ID and Azure Policy.

    Topic study guide · Practice Manage Azure Identities and Governance (11 questions) →

  • 15%

    This topic carries a weighting of 15 to 20 percent in the official AZ-104 skills outline, so it is one of the larger blocks on the exam. It is organised into three groups of skills: configuring access to storage, configuring and managing storage accounts, and configuring Azure Files and Azure Blob Storage. The outline expects you to do these tasks as an administrator, not just describe them, so expect scenarios that ask which setting to change and in which order. Access is the first group. You need to separate the layers that control who or what can reach data. Storage firewalls and virtual network rules limit the network paths into an account. Shared access signature tokens grant time-limited, scoped delegated access, and stored access policies let you change or revoke those grants after issue. Access keys give broad control and are managed separately, and identity-based access for Azure Files ties file shares to directory identities instead of keys. A common distinction is network reachability versus authorization: a user with the right role still fails if the firewall blocks them, and an open firewall does nothing without a valid credential. The outline also places private endpoints and service endpoints under networking, so be ready for questions that mix the two areas. The second group covers creating and configuring storage accounts, choosing a redundancy option, setting up object replication, configuring encryption, and moving data with Azure Storage Explorer and AzCopy. Know what each redundancy level protects against, such as a single datacenter failure, a zone failure or a regional failure. Know whether the secondary copy can be read. Object replication is asynchronous copying between accounts, which is a different thing from account redundancy, and mixing them up is a frequent error. The third group covers file shares, blob containers, access tiers, snapshots and soft delete for Azure Files, blob lifecycle management, and blob versioning. Be clear on how soft delete, snapshots and versioning each help recovery and which service each applies to. Understand that lifecycle rules move or delete blobs automatically based on conditions, and that tier choice trades storage cost against access cost and retrieval delay. Questions are usually short scenarios with a stated requirement, such as limiting access to one subnet, revoking a token that was already issued, or cutting cost for rarely read data. Read for the exact constraint, then eliminate options that solve a neighbouring problem. Typical traps are choosing a solution that works but is not the least administrative effort, and ignoring a stated limit on scope or duration. To prepare, build a test account and do each task in the portal and with AzCopy or the command line. Create a SAS, then revoke it through a stored access policy. Change redundancy, set a lifecycle rule, and break access with a firewall rule so you can see the symptoms. Then review the official skills list and tick off each item you have actually performed.

    Topic study guide · Practice Implement and Manage Storage (11 questions) →

  • 20%

    This topic covers the compute services an Azure administrator is expected to deploy and run day to day. The official outline gives it a weight of 20 to 25 percent, which makes it one of the largest areas of the exam. It has four parts: automating deployments with Azure Resource Manager templates or Bicep files, creating and configuring virtual machines, provisioning and managing containers, and creating and configuring Azure App Service. For automation, you are expected to read a template or Bicep file and work out what it will create. You should also be able to modify one, deploy it, export an existing deployment as a template, and convert a template to Bicep. For virtual machines, the outline covers creation, sizes, disks, Azure Disk Encryption, moving a VM between resource groups, subscriptions or regions, placement in availability zones or availability sets, and Virtual Machine Scale Sets. The container objectives cover Azure Container Registry, Azure Container Instances and Azure Container Apps, along with sizing and scaling for the last two. App Service covers plans, scaling, certificates and TLS, custom DNS mapping, backup, networking settings and deployment slots. Several distinctions come up repeatedly. An availability set protects against hardware and maintenance events inside one datacenter, while availability zones separate instances into physically distinct locations. A scale set adds and removes identical instances automatically, which is different from simply placing several VMs in a set. Deployment mode matters for templates: incremental leaves unlisted resources alone, while complete removes them from the target resource group. Container Instances suit simple, short-lived or single-group workloads, whereas Container Apps add managed scaling and an environment for several apps. For App Service, scaling up changes the plan's size or tier, scaling out changes the instance count, and the tier decides which features, such as slots or autoscale, are available at all. Questions are usually short scenarios with a requirement, a constraint and a list of plausible options. The constraint is often the deciding detail, for example a ban on public IP addresses, a need to keep a database setting from moving with a swap, or a need to avoid deleting existing resources. Common traps include choosing a feature the current plan tier does not support, mixing up scale up with scale out, assuming a template deployment removes resources when it is run in incremental mode, and forgetting that moving a VM to another region is a different operation from moving it to another resource group. Read every option for the word that breaks it, such as a region, a tier or a scope. The most effective preparation is hands-on. Deploy a small Bicep file, then change it and redeploy it in both modes to see the difference. Build a VM, attach and resize a disk, and create a scale set with an autoscale rule. Run a container in both container services, and create an App Service with a staging slot and swap it. Then practise reading templates and command output without running them, since the exam often asks you to interpret rather than build.

    Topic study guide · Practice Deploy and Manage Azure Compute Resources (11 questions) →

  • 25%

    This topic covers how an Azure administrator builds and operates the network layer of a deployment. The current skills outline groups it into three areas. The first is configuring and managing virtual networks: creating networks and subnets, connecting them with peering, configuring public IP addresses, steering traffic with user-defined routes, and troubleshooting connectivity. The second is secure access: network security groups and application security groups, reading the effective security rules on a resource, Azure Bastion, and service endpoints and private endpoints for platform services. The third is name resolution and load balancing: Azure DNS, internal and public load balancers, and troubleshooting load balancing. Most of the exam value comes from telling similar features apart. Peering joins two networks but does not pass traffic on to a third, so a hub-and-spoke design needs deliberate gateway sharing or a routed appliance. System routes can be overridden by user-defined routes, and the most specific prefix wins. Service endpoints keep a public service address but restrict access to your subnet. Private endpoints place a private address for the service inside your network, which is why DNS matters so much with them. A public load balancer faces the internet, while an internal one only serves private frontends. A network security group is attached to a subnet or a network interface, and the rules from both levels combine, so the effective rules can differ from what you see on one resource. Application security groups let you write rules against named groups of machines rather than address lists. Public and private DNS zones solve different problems, and a private zone only resolves for the networks linked to it. Questions are usually short scenarios with a requirement and a symptom: a virtual machine cannot reach a peer, a backend pool shows unhealthy, a name resolves to the wrong address, or administrators need remote access without exposing a public address. You then pick the configuration change or the feature that fits. The common traps are choosing a feature that sounds right but works at the wrong level, such as a subnet-level control when the rule belongs on the interface. Others are forgetting that peering is not transitive, overlooking an inbound rule that is allowed in one security group but denied in the other, and ignoring the health probe or the lack of a DNS link when a load balancer or private name fails. Read for the exact words in the requirement, such as private, internal, minimal exposure or least effort, because they usually decide between two plausible answers. Also watch for deliberately overlapping address ranges, which block peering outright. The best preparation is hands-on. Build two networks in a free or sandbox subscription, peer them, deploy a small virtual machine in each, and test connectivity. Then add a route, a security rule and a private DNS zone one at a time, and use the effective routes and effective security rules views plus the connectivity tools to see why traffic succeeds or fails. Repeat with an internal load balancer and a Bastion host. Finish by explaining aloud, for each feature, what problem it solves and what it does not.

    Topic study guide · Practice Implement and Manage Virtual Networking (12 questions) →

  • 20%

    This topic covers keeping an Azure environment observable and recoverable. The official outline splits it into two areas: monitoring resources, and implementing backup and recovery. On the monitoring side you are expected to read metrics in Azure Monitor, configure log settings, query and analyse logs, and build alert rules with action groups and alert processing rules. You also need to interpret the Insights views for virtual machines, storage accounts and networks, and to use Network Watcher and Connection Monitor for connectivity problems. On the recovery side you create Recovery Services vaults and Backup vaults, define backup policies, run backup and restore operations, set up Site Recovery for Azure resources, fail over to a secondary region, and interpret backup reports and alerts. The distinctions that matter most are the ones between similar tools. Metrics are lightweight numeric values collected automatically, while logs are richer records that must be routed through diagnostic settings or an agent to a destination such as a Log Analytics workspace, a storage account or an event hub. The destination you choose depends on the need: interactive querying, cheap long-term retention, or streaming to another system. Know the difference between metric alerts, log search alerts and activity log alerts, and remember that an action group decides who or what is notified, while an alert processing rule changes or suppresses actions, for example during planned maintenance, without editing the alert itself. For protection, separate Azure Backup, which keeps point-in-time copies for restore, from Site Recovery, which replicates workloads so you can fail over to another region. Also learn which workloads use which kind of vault, and how retention settings and soft delete protect recovery points. Questions usually give a short scenario with a requirement and several plausible tools, and ask for the one that meets the requirement with the least effort. Typical framings include an alert that must stay quiet for a window, logs that must be kept for a set period, a connection that is blocked and has to be diagnosed, or a team that needs both backup and regional failover. Common traps include choosing backup when the scenario needs failover, or the reverse. Another is picking a metric alert when the condition depends on a log query. Others are sending logs to the wrong destination, confusing an NSG rule problem with a routing problem, and forgetting that a vault and the resources it protects have to be in compatible regions. Read for the exact verb, such as detect, notify, suppress, retain, restore or fail over, because each points to a different feature. To prepare, work in a free or low-cost subscription and do each task at least once. Create a workspace, enable diagnostic settings on a VM or storage account, and write a few simple Kusto queries. Build an alert with an action group, then add a processing rule that suppresses it. Run an IP flow check and a connection test in Network Watcher. Back up a small VM, restore a file or disk, and walk through a Site Recovery replication and test failover. Then practise scenario questions and review every wrong answer against the product documentation.

    Topic study guide · Practice Monitor and Maintain Azure Resources (15 questions) →

Examination Pattern, Scoring & Preparation Strategy

The Microsoft Certified: Azure Administrator Associate (AZ-104) is administered by Microsoft within the Cloud & IT Certification track. A standard full-length sitting consists of 60 questions over a duration of 2 hr at a medium difficulty level. Because there is no negative marking penalty for wrong answers, candidates should eliminate implausible distractors and ensure every item is answered before time expires.

To maximize your score on the Microsoft Certified: Azure Administrator Associate (AZ-104), start with the five-question diagnostic drill to benchmark your baseline across all 5 blueprint domains. Next, focus your study blocks on the highest-weighted topics above — where every answer on PrepIQ Hub includes a worked explanation of the keyed solution. You can read how questions are written and checked in our Editorial Policy.

Microsoft Certified: Azure Administrator Associate (AZ-104) worked examples

Sample Microsoft Certified: Azure Administrator Associate (AZ-104) questions answered in full: try each one, then open the explanation to see why the keyed answer is right and where each distractor goes wrong.

  1. Example 1 · Implement and Manage Storage · medium

    A healthcare company has an on-premises Windows Server 2022 file server with a 20 TB local volume that is 95% full. They install the Azure File Sync agent and register the server with a Storage Sync Service and an Azure file share. They want files that have not been accessed for 60 days to be replaced locally with lightweight reparse point pointers (freeing local disk space so at least 30% free space is always maintained on the volume) while remaining seamlessly accessible on demand over SMB. Which Azure File Sync feature should they enable?

    • AAzure Blob Object Replication between two GPv2 storage accounts
    • BAzCopy scheduled nightly delete scripts on the Windows Server host
    • CAzure Disk Encryption with BitLocker and Customer-Managed Keys
    • DAzure File Sync Cloud Tiering (30% free space and 60-day policy)
    Show answer and explanation

    Correct answer: D. Azure File Sync Cloud Tiering (30% free space and 60-day policy)

    Why

    Azure File Sync cloud tiering is the feature designed for exactly this scenario. When enabled on a server endpoint, the agent keeps frequently used files cached locally and replaces cold files with NTFS reparse point stubs, while the full data remains in the Azure file share. Two independent policies control this. The volume free space policy sets how much of the volume must stay free, here 30 percent, and the agent tiers the least recently accessed files until that target is met. The date policy tiers files not accessed within a set number of days, here 60. When both are configured, the agent tiers enough files to satisfy whichever policy requires more. Users still see the files in File Explorer and open them over SMB; the agent recalls the content on demand. The common trap is picking a backup, copy or deletion tool, which moves or removes data without leaving transparent stubs, or confusing tiering with encryption or replication features.

    • A. Azure Blob Object Replication between two GPv2 storage accounts — Object Replication is an asynchronous copy feature that replicates block blobs between containers in two storage accounts, and it requires versioning and change feed. It operates entirely in the cloud and has no connection to an on-premises NTFS volume, so it frees no local disk space.
    • B. AzCopy scheduled nightly delete scripts on the Windows Server host — AzCopy is a command line data transfer tool, and scheduled delete scripts would simply remove files from the server. Deleted files vanish from the local namespace instead of leaving reparse points, so users could not open them transparently, and the scripts do not honor free space or access age policies.
    • C. Azure Disk Encryption with BitLocker and Customer-Managed Keys — Azure Disk Encryption with BitLocker protects data at rest on a volume, using keys that may be customer managed. It changes how data is protected, not where it is stored, so the 20 TB volume would stay just as full and no files would be tiered to Azure.
  2. Example 2 · Deploy and Manage Azure Compute Resources · medium

    You deploy 12 identical Azure Virtual Machines into a single Availability Set configured with 3 Fault Domains (FDs) and 5 Update Domains (UDs). If Microsoft performs a planned host OS maintenance update across the datacenter that reboots one Update Domain at a time, what is the minimum number of VMs guaranteed to remain running during any single update domain reboot?

    • A8 virtual machines (assuming 1 Fault Domain of 4 VMs goes offline)
    • B9 virtual machines (at most 3 VMs in a single Update Domain reboot)
    • C10 virtual machines (assuming 2 VMs per Update Domain across 6 UDs)
    • D6 virtual machines (assuming half the fleet reboots simultaneously)
    Show answer and explanation

    Correct answer: B. 9 virtual machines (at most 3 VMs in a single Update Domain reboot)

    Why

    With 12 VMs distributed round-robin across 5 Update Domains (UD0 through UD4), the distribution across the 5 UDs is 3, 3, 2, 2, 2 VMs (12 = 2*5 + 2). During planned maintenance, at most one Update Domain (3 VMs in the largest UD) is rebooted at a time, guaranteeing at least 12 - 3 = 9 VMs remain online.

    • A. 8 virtual machines (assuming 1 Fault Domain of 4 VMs goes offline) — Planned maintenance reboots one Update Domain (max 3 VMs), whereas an unplanned rack power failure affects one Fault Domain (4 VMs).
    • C. 10 virtual machines (assuming 2 VMs per Update Domain across 6 UDs) — With 5 Update Domains and 12 VMs, two of the Update Domains contain 3 VMs (ceil(12/5) = 3).
    • D. 6 virtual machines (assuming half the fleet reboots simultaneously) — Azure Update Domains reboot sequentially one UD at a time, never 50% of a 5-UD Availability Set.
  3. Example 3 · Implement and Manage Storage · medium

    A disaster recovery architect must select an Azure Storage redundancy configuration for a mission-critical payment ledger. The requirements are: (1) synchronous replication across three Availability Zones in the primary region, (2) asynchronous replication to a secondary paired region hundreds of miles away, and (3) immediate read access to the secondary region endpoint (<account>-secondary.blob.core.windows.net) even before Microsoft or the customer initiates a storage account failover. Which redundancy option satisfies all three requirements?

    • AZone-Redundant Storage (ZRS) in the primary region
    • BGeo-Redundant Storage (GRS) without secondary read access
    • CGeo-Zone-Redundant Storage (GZRS) without secondary read access
    • DRead-Access Geo-Zone-Redundant Storage (RA-GZRS)
    Show answer and explanation

    Correct answer: D. Read-Access Geo-Zone-Redundant Storage (RA-GZRS)

    Why

    RA-GZRS (Read-Access Geo-Zone-Redundant Storage) combines synchronous zone-redundant replication across three Availability Zones in the primary region (ZRS) with asynchronous geo-replication to a secondary region (GRS) AND provides continuous read-only access to the secondary endpoint (RA-).

    • A. Zone-Redundant Storage (ZRS) in the primary region — ZRS replicates across 3 Availability Zones in a single region but provides zero secondary-region replication.
    • B. Geo-Redundant Storage (GRS) without secondary read access — GRS replicates from a single primary datacenter (LRS) to a secondary region and does not allow reading the secondary until failover.
    • C. Geo-Zone-Redundant Storage (GZRS) without secondary read access — GZRS provides 3-AZ primary + secondary region replication, but the secondary endpoint is not readable prior to failover.
  4. Example 4 · Manage Azure Identities and Governance · hard

    A cloud governance architect assigns an Azure Policy definition with the Modify effect at the subscription scope to automatically add a CostCenter = 4020 tag to any resource group missing that tag. New resource groups created after the assignment receive the tag automatically, but 35 existing resource groups created last year still lack the tag. What must the architect create so Azure Policy updates those 35 existing resources?

    • AChange the Azure Policy definition effect from Modify to Audit
    • BApply a CanNotDelete resource lock to the subscription root scope
    • CCreate an Azure Policy Remediation Task using the managed identity
    • DRestart the virtual machines running inside the 35 resource groups
    Show answer and explanation

    Correct answer: C. Create an Azure Policy Remediation Task using the managed identity

    Why

    Policy definitions using the Modify or DeployIfNotExists effects automatically evaluate new or updated resources during ARM requests, but to remediate pre-existing non-compliant resources, you must create a Remediation Task using the policy assignment's managed identity.

    • A. Change the Azure Policy definition effect from Modify to Audit — The Audit effect only logs a compliance warning in the Activity Log and never modifies tags.
    • B. Apply a CanNotDelete resource lock to the subscription root scope — Resource locks prevent deletion and do not remediate missing tags on existing resource groups.
    • D. Restart the virtual machines running inside the 35 resource groups — Rebooting guest OS virtual machines does not trigger ARM resource-group tag remediation.
  5. Example 5 · Manage Azure Identities and Governance · easy

    A company wants to allow its 5,000 employees to reset their own forgotten Microsoft Entra passwords from the sign-in screen without calling the IT helpdesk. The security policy requires users to verify two authentication methods (such as Microsoft Authenticator push notification + mobile phone SMS) to complete a reset. Which Microsoft Entra feature must the administrator enable?

    • AMicrosoft Entra Connect Pass-Through Authentication (PTA) connectors
    • BMicrosoft Entra Self-Service Password Reset (SSPR) with 2 methods
    • CAzure Key Vault automatic secret rotation policies and access policies
    • DAzure Resource Manager (ARM) versioned template specs in a resource group
    Show answer and explanation

    Correct answer: B. Microsoft Entra Self-Service Password Reset (SSPR) with 2 methods

    Why

    Microsoft Entra Self-Service Password Reset lets users reset or unlock their own passwords from the sign-in screen without contacting the helpdesk. The administrator enables SSPR for a chosen scope, such as all 5,000 users or a group, and sets the number of authentication methods required to reset, either one or two. Requiring two methods matches the stated policy, for example Authenticator notification plus mobile phone SMS. Users must register their methods first, which can be enforced through combined security information registration. In a hybrid environment, password writeback must also be enabled so the new password is written to on-premises Active Directory. The common trap is confusing sign-in or authentication components, such as Pass-Through Authentication, with the password reset feature, or assuming that MFA and SSPR are the same setting. SSPR has its own methods policy.

    • A. Microsoft Entra Connect Pass-Through Authentication (PTA) connectors — Pass-Through Authentication is a hybrid sign-in option where Entra ID validates user passwords against on-premises Active Directory through lightweight agents. It handles authentication, not resetting forgotten passwords or requiring verification methods, so it does not meet this requirement.
    • C. Azure Key Vault automatic secret rotation policies and access policies — Azure Key Vault stores and rotates secrets, keys and certificates used by applications and services. It has nothing to do with end users resetting their own Entra passwords or verifying with authentication methods.
    • D. Azure Resource Manager (ARM) versioned template specs in a resource group — Template specs are versioned ARM templates stored in Azure for reuse in infrastructure deployments. They are a deployment and governance artifact and provide no identity or password reset capability.
  6. Example 6 · Implement and Manage Virtual Networking · medium

    An e-commerce platform runs on Azure VMs behind a load balancer. The architecture requires: (1) TLS/SSL termination at the load balancer, (2) URL path-based routing so /images/* routes to an image-rendering VM pool and /checkout/* routes to a payment VM pool, and (3) OWASP Core Rule Set Web Application Firewall (WAF) inspection. Which Azure load-balancing service meets all three requirements?

    • AAzure Standard Load Balancer operating at Layer 4 (TCP/UDP)
    • BAzure Application Gateway with the WAF_v2 autoscaling tier
    • CAzure Traffic Manager DNS-based global traffic routing
    • DAzure NAT Gateway for outbound SNAT port translation
    Show answer and explanation

    Correct answer: B. Azure Application Gateway with the WAF_v2 autoscaling tier

    Why

    Azure Application Gateway with the WAF_v2 SKU is a regional Layer 7 load balancer, so it understands HTTP and HTTPS requests rather than just TCP or UDP flows. It can terminate TLS at the gateway, evaluate URL path-based routing rules so that /images/* goes to one backend pool and /checkout/* goes to another, and run an integrated Web Application Firewall using the OWASP Core Rule Set. The WAF_v2 tier combines the v2 autoscaling gateway with WAF policy, so all three stated requirements are met by a single service. The key concept is the OSI layer at which each Azure service operates: anything that must read URL paths, decrypt TLS or inspect HTTP payloads for attacks such as SQL injection or cross-site scripting needs Layer 7. The common trap is choosing Azure Load Balancer because it is the default, familiar choice for VMs, or Traffic Manager because it sounds like it routes traffic by name, even though neither inspects requests.

    • A. Azure Standard Load Balancer operating at Layer 4 (TCP/UDP) — Azure Standard Load Balancer is a Layer 4 service that distributes TCP and UDP flows using a five-tuple hash. It never reads URL paths, cannot terminate TLS and has no WAF capability, so it fails all three requirements.
    • C. Azure Traffic Manager DNS-based global traffic routing — Traffic Manager is a DNS-based global traffic distribution service that returns endpoint names according to a routing method such as priority or performance. It is not in the data path, so it cannot terminate TLS, route by URL path or apply WAF rules.
    • D. Azure NAT Gateway for outbound SNAT port translation — NAT Gateway provides outbound-only source network address translation for subnet resources so they can reach the internet with static public IPs. It does not load balance inbound traffic, route by URL or inspect requests with a WAF.
  7. Example 7 · Implement and Manage Virtual Networking · easy

    A network engineer creates an Azure Virtual Network subnet with the IPv4 CIDR block 10.20.4.0/26. Accounting for the addresses that Azure reserves in every subnet for protocol conformance and gateway services, how many usable IPv4 addresses can be assigned to VM network interfaces (NICs) in this /26 subnet?

    • A62 usable IPv4 addresses (64 total minus 2 traditional RFC addresses)
    • B64 usable IPv4 addresses (using the full /26 block without reservations)
    • C59 usable IPv4 addresses (64 total minus 5 Azure-reserved addresses)
    • D27 usable IPv4 addresses (calculating for a /27 instead of a /26 CIDR)
    Show answer and explanation

    Correct answer: C. 59 usable IPv4 addresses (64 total minus 5 Azure-reserved addresses)

    Why

    A /26 subnet has 2^(32-26) = 64 total IPv4 addresses. Azure reserves five addresses in every subnet: the network address (first address, 10.20.4.0), the default gateway (.1), two addresses for Azure DNS mapping (.2 and .3), and the broadcast address (last address, 10.20.4.63). That leaves 64 - 5 = 59 addresses that can be assigned to VM NICs. The key rule is that Azure's reservation is five addresses, not the two (network and broadcast) that traditional on-premises subnet math removes. This is also why the smallest supported Azure subnet is a /29 (8 addresses, 3 usable), and why a /30 or /31 cannot be used. The most common trap is applying the familiar 'total minus 2' formula or forgetting any reservations at all. On the exam, always subtract five from the total block size when counting usable addresses in an Azure subnet.

    • A. 62 usable IPv4 addresses (64 total minus 2 traditional RFC addresses) — This is the traditional on-premises calculation that removes only the network and broadcast addresses (64 - 2 = 62). Azure additionally reserves the default gateway and two DNS-mapping addresses, so five are unavailable and 62 overstates the usable count.
    • B. 64 usable IPv4 addresses (using the full /26 block without reservations) — This treats the entire /26 block as assignable, ignoring Azure's reservations completely. Every Azure subnet loses five addresses (network, gateway, two for DNS mapping, and broadcast), so 64 can never be fully used by NICs.
    • D. 27 usable IPv4 addresses (calculating for a /27 instead of a /26 CIDR) — This figure is not the result of any correct /26 calculation. It comes from subtracting 5 from 32, which is the number of addresses in a /27 block, and a /27 would give 32 - 5 = 27. The subnet in the question is a /26 with 64 addresses, so the answer is 59.
  8. Example 8 · Manage Azure Identities and Governance · hard

    You are authoring a custom Azure RBAC role in JSON for a junior operations team. They need all permissions included in the built-in Virtual Machine Contributor role except they must not be allowed to delete virtual machines (Microsoft.Compute/virtualMachines/delete), AND they must be able to read blobs inside storage containers (Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read). Where in the custom role JSON definition should the VM delete exclusion and the blob read permission be placed?

    • APlace both permissions inside assignableScopes at the root management group
    • BPlace the VM delete exclusion in dataActions and the blob read in notActions
    • CPlace the VM delete exclusion in notActions and the blob read in dataActions
    • DPlace both strings inside notDataActions with actions left empty in JSON
    Show answer and explanation

    Correct answer: C. Place the VM delete exclusion in notActions and the blob read in dataActions

    Why

    In an Azure RBAC role definition, management-plane exclusions are placed in notActions (Microsoft.Compute/virtualMachines/delete) to subtract them from wildcard actions, while data-plane permissions (reading/writing actual blobs inside a container) must be placed in dataActions (Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read).

    • A. Place both permissions inside assignableScopes at the root management group — assignableScopes lists the subscriptions or resource groups where the role can be assigned, not action strings.
    • B. Place the VM delete exclusion in dataActions and the blob read in notActions — This reverses both control-plane vs data-plane and allow vs exclude blocks.
    • D. Place both strings inside notDataActions with actions left empty in JSON — Putting the blob read in notDataActions with empty actions and dataActions grants zero permissions.

Every worked example on this page passed our independent verification before publication — how that works is set out in our editorial policy. Spotted an error? Tell us through the contact page and we will correct it.

Frequently Asked Questions

How is the Microsoft Certified: Azure Administrator Associate (AZ-104) scored and does it have negative marking?

The Microsoft Certified: Azure Administrator Associate (AZ-104) administered by Microsoft carries no negative marking for incorrect responses, with a target passing benchmark of 70%. Candidates should attempt every question and use elimination across distractors.

What topics and syllabus domains are covered in this Microsoft Certified: Azure Administrator Associate (AZ-104) practice bank?

This Microsoft Certified: Azure Administrator Associate (AZ-104) practice bank covers 5 official syllabus domains: Manage Azure Identities and Governance (20%), Implement and Manage Storage (15%), Deploy and Manage Azure Compute Resources (20%), Implement and Manage Virtual Networking (25%), Monitor and Maintain Azure Resources (20%). Currently 60 questions are published, each with a worked explanation.

How are the Microsoft Certified: Azure Administrator Associate (AZ-104) questions and explanations checked on PrepIQ Hub?

Every Microsoft Certified: Azure Administrator Associate (AZ-104) question on PrepIQ Hub is written for this site, with AI-assisted drafting, and mapped to the Microsoft blueprint. Before publication each batch passes automated checks for answer cues, such as a key that is longer than its distractors. Independent review by subject matter experts is under way, and corrections are welcome at corrections@prepiqhub.com.

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.