Microsoft Azure Administrator Practice Test

400+ exam grade questions across every domain, powered by AI assisted learning that gives you instant feedback and a clear explanation on every question.

8 Mock Exams
400+ Total Questions
70% Pass Rate
100 minutes Exam Duration
Question #1 Implement and manage virtual networking

A consultant is reviewing a hub and spoke network for a retail client. The virtual network Hub (10.0.0.0/16) hosts a shared file server. Spoke1 (10.1.0.0/16) and Spoke2 (10.2.0.0/16) are each peered with Hub in both directions, and every peering shows a status of Connected. The design contains no network virtual appliance and no VPN gateway. Virtual machines in both spokes reach the file server in Hub without trouble, but a nightly batch job on VM1 in Spoke1 cannot open a TCP connection to VM2 in Spoke2. The network security groups on both subnets allow all traffic from the VirtualNetwork service tag. The client wants VM1 and VM2 to communicate with the least additional configuration. What should the consultant do?

Pick an answer to reveal the explanation.

Question #2 Manage Azure identities and governance

The platform team at example.com inherited three subscriptions from a business unit that was dissolved last quarter. The only person who held the Owner role on Sub3 has left the company, and the account was deleted during offboarding. Admin1 must assign the Contributor role on Sub3 to a new operations group before a scheduled deployment tomorrow morning. The relevant directory and subscription roles are shown below. When Admin1 opens the Subscriptions blade, Sub3 is not listed at all. Admin2 can open Access control (IAM) on Sub3 and view the existing assignments but receives an authorization error when adding one. Company policy forbids creating any additional Global Administrator accounts, and the team wants the repair to leave the least standing privilege behind once the deployment is done. What should Admin1 do first?

Principal  Microsoft Entra role    Azure role   Scope
Admin1     Global Administrator    none         none
Admin2     User Administrator      Reader       Sub3
Admin3     none                    Owner        Sub1, Sub2

Pick an answer to reveal the explanation.

Question #3 Implement and manage storage

A storage administrator at sailor.sh shares product images with three logistics partners from a single blob container named catalog in a general purpose v2 storage account. Each partner received a service SAS that was generated against its own stored access policy on that container, named partner-a, partner-b, and partner-c, each granting read permission with a twelve month expiry. Partner B has ended its contract and its SAS must stop working today. The other two partners must keep uninterrupted access, and the internal catalog application, which reads the same container with the account access key in its connection string, must not be affected in any way by the change. Which action should the administrator take?

Pick an answer to reveal the explanation.

Question #4 Deploy and manage Azure compute resources

An enterprise migration team at example.com maintains the resource group rg-app in East US. The group currently contains a virtual network named vnet-app, a storage account named stapp01, a virtual machine named vm-jump together with its network interface and managed OS disk, and a Log Analytics workspace named law-app. The virtual machine is the team's only jump host into the environment. A new engineer edits the ARM template so that it declares only vnet-app and stapp01, using property values identical to the deployed resources, and then runs the following command from Azure Cloud Shell. No resource locks exist on the group, and the engineer skipped the what-if operation because the change looked harmless. The deployment completes with the provisioning state Succeeded. What is the state of rg-app after the deployment finishes?

az deployment group create \
  --resource-group rg-app \
  --template-file main.json \
  --mode Complete

Pick an answer to reveal the explanation.

Question #5 Monitor and maintain Azure resources

An administrator at a small consultancy is setting up Azure Backup for the first time. The environment includes several Azure virtual machines, a set of Azure managed disks that are not attached to those machines, and two blob containers in a storage account. Which of these workloads must be protected by a Backup vault rather than a Recovery Services vault?

Pick an answer to reveal the explanation.

Question #6 Manage Azure identities and governance

A startup that recently moved to Microsoft 365 has 240 employees in its Microsoft Entra tenant, all synchronized from Windows Server Active Directory with the department attribute populated for every user. The tenant holds Microsoft Entra ID P1 licenses for all users and a pool of Microsoft 365 E3 licenses that is large enough for the sales organization. The IT lead wants every user whose department attribute equals Sales to receive a Microsoft 365 E3 license automatically. That includes people who join the Sales department next month, who should be licensed as soon as their attribute is synchronized, and people who transfer out of Sales, who should lose the license without anyone opening an admin center. Nobody on the two person IT team should have to add or remove group members by hand, and the solution must not depend on a script that runs on a schedule. Which two actions should the IT lead perform? Each correct answer presents part of the solution. (Select TWO)

Pick two answers to reveal the explanation.

Question #7 Implement and manage virtual networking

An SRE at sailor.sh is investigating why a web tier virtual machine named VM1 in Subnet1 of VNet1 has become unreachable after a security review. VM1 has a Standard SKU public IP address. A network security group named NSG-Subnet is associated with Subnet1, and a second group named NSG-NIC is associated with the network interface of VM1. Both groups still carry their default rules. The custom inbound rules are listed below. A customer on the Internet opens an HTTPS connection to the public IP address of VM1, and an administrator working from 203.0.113.10 starts an RDP session to the same public IP address. The guest operating system firewall is turned off and the web server is listening on port 443. What is the result of the two connection attempts?

NSG-Subnet (inbound)
Priority  Name         Source         Port   Protocol  Action
100       Allow-HTTPS  Internet       443    TCP       Allow
200       Deny-RDP     Any            3389   TCP       Deny

NSG-NIC (inbound)
Priority  Name         Source         Port   Protocol  Action
100       Allow-RDP    203.0.113.10   3389   TCP       Allow

Pick an answer to reveal the explanation.

Question #8 Deploy and manage Azure compute resources

A freelance developer is moving a customer facing web application for a small bakery chain to Azure App Service. The customer listed three requirements before go live: the application must answer on the custom domain shop.example.com with a TLS binding, new releases must be validated in a staging deployment slot and then swapped into production without downtime, and the plan must scale out automatically from one to four instances whenever average CPU stays above 70 percent during weekend promotions. Cost matters to the customer, so the developer wants the least expensive pricing tier that satisfies all three requirements without relying on any manual scaling. Which App Service plan tier should the developer choose?

Pick an answer to reveal the explanation.

Question #9 Implement and manage storage

A data engineering team at example.com stores application logs as block blobs in a general purpose v2 storage account whose default access tier is hot. Last access time tracking is not enabled on the account. The team applied the following lifecycle management policy 60 days ago, has not changed it or the account default tier since, and the policy has run normally every day. A blob at logs/2026/03/app.log was uploaded 100 days ago and has not been modified since, although a support engineer downloaded it successfully 40 days ago. A second blob at audit/2026/03/app.log was uploaded on the same day and has also never been modified. Both blobs live in containers named after the first path segment. What is the current state of the two blobs?

{
  "rules": [
    {
      "enabled": true,
      "name": "age-out-logs",
      "type": "Lifecycle",
      "definition": {
        "filters": {
          "blobTypes": [ "blockBlob" ],
          "prefixMatch": [ "logs/2026" ]
        },
        "actions": {
          "baseBlob": {
            "tierToCool": { "daysAfterModificationGreaterThan": 30 },
            "tierToArchive": { "daysAfterModificationGreaterThan": 90 },
            "delete": { "daysAfterModificationGreaterThan": 365 }
          }
        }
      }
    }
  ]
}

Pick an answer to reveal the explanation.

Question #10 Deploy and manage Azure compute resources

Azure Container Instances does not automatically add container group instances in response to rising CPU or memory load, so serving more traffic requires deploying additional container groups yourself or moving the workload to a service such as Azure Container Apps.

Pick an answer to reveal the explanation.

Question #11 Monitor and maintain Azure resources

An operations engineer at example.com owns forty metric and log search alert rules that target virtual machines across a single subscription. Every Saturday between 22:00 and 02:00 the database team patches the six virtual machines in the resource group rg-db, and the engineer on call receives a burst of CPU and heartbeat alert emails from those machines during the window. The engineer wants to stop the notifications for rg-db during that window only, keep every alert rule unchanged so the other virtual machines remain covered by the same rules, and still be able to see in the portal afterwards that the alerts fired. What should the engineer configure?

Pick an answer to reveal the explanation.

Question #12 Manage Azure identities and governance

A governance lead at sailor.sh must make sure every virtual machine in subscription Sub1 carries a tag named costCenter with the value 2040, both for the 300 virtual machines that already exist and for any created later. The lead wrote a custom policy definition whose rule is shown below and assigned it at the subscription scope with az policy assignment create, supplying only the assignment name, the scope, and the definition. A day later the compliance view lists all 300 existing machines as non compliant, none of them has received the tag, and the Remediation page shows the assignment with no identity attached. The lead must get the tag onto the existing machines without editing each one by hand and without weakening the rule for machines created in the future. Which two actions should the lead take? Each correct answer presents part of the solution. (Select TWO)

"policyRule": {
  "if": {
    "allOf": [
      { "field": "type", "equals": "Microsoft.Compute/virtualMachines" },
      { "field": "tags['costCenter']", "exists": "false" }
    ]
  },
  "then": {
    "effect": "modify",
    "details": {
      "roleDefinitionIds": [
        "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
      ],
      "operations": [
        { "operation": "addOrReplace", "field": "tags['costCenter']", "value": "2040" }
      ]
    }
  }
}

Pick two answers to reveal the explanation.

Question #13 Deploy and manage Azure compute resources

A platform engineer at example.com supports a two node application tier in the resource group rg-erp. VM1 and VM2 are both Standard_D4s_v3 machines in the availability set AS1, created two years ago, each with a Premium SSD OS disk and a static private IP address on its network interface. A performance review shows that VM1 needs more memory, and the application vendor has certified the Standard_E8ds_v5 size. When the engineer opens the Size blade of VM1 while it is running, Standard_E8ds_v5 is not offered, and stopping VM1 and refreshing the list still does not show it, although the size is available in the region and the subscription has quota for the E family. The application tolerates a short maintenance window outside business hours, but the vendor requires both nodes to remain in AS1 and to keep their private IP addresses. What should the engineer do to resize VM1 with the least disruption that still succeeds?

Pick an answer to reveal the explanation.

Question #14 Implement and manage storage

A storage administrator at sailor.sh manages a general purpose v2 account named stfinance01 that holds an SMB file share used by the finance team. Public network access on the account is set to Enabled from selected virtual networks and IP addresses, with one virtual network rule for Subnet1 of VNet1, where the Microsoft.Storage service endpoint is enabled, and no IP rules. A site to site VPN connects the head office network 192.168.10.0/24 to VNet1 through a VPN gateway, and the finance team's workstations on that network must mount the share. Their mount attempts fail with an access denied error even though the users hold the Storage File Data SMB Share Contributor role, while the same users succeed from a virtual machine in Subnet1. The administrator tried adding 192.168.10.0/24 as an IP network rule and the portal rejected it. The security team refuses to open the account to any public address range. What should the administrator do?

Pick an answer to reveal the explanation.

Question #15 Implement and manage virtual networking

A security team at example.com has decided to remove every public IP address from the twelve Windows and Linux administration servers in VNet1 (10.10.0.0/16) and to require Azure Bastion for all RDP and SSH access. The team wants the Standard SKU so that administrators can keep using their native RDP and SSH clients and so that the number of Bastion instances can be scaled up later as the environment grows. VNet1 currently has two subnets, Servers (10.10.1.0/24) and Management (10.10.2.0/27), plus a network security group on Servers that allows 3389 and 22 only from the Management subnet. The team would prefer to reuse the existing Management subnet for the deployment if the platform allows it, and it has not yet created any other resources for the project. Which two configuration items are required before the Bastion host can be deployed? Each correct answer presents part of the solution. (Select TWO)

Pick two answers to reveal the explanation.

Question #16 Monitor and maintain Azure resources

An SRE at sailor.sh has connected the activity log of every subscription to a single Log Analytics workspace with diagnostic settings, and the AzureActivity table has been receiving records for a month. After a night of failed deployments, the SRE wants a single result table that shows, for the last 24 hours, how many operations ended with a status of Failed in each resource group, with the resource group that had the most failures at the top. The draft query is shown below with one line missing. The result must contain exactly two columns, the resource group name and the number of failed operations, and it must run without errors in the Logs blade of the workspace. Which line should replace MISSING LINE?

AzureActivity
| where TimeGenerated > ago(24h)
| where ActivityStatusValue == "Failed"
| MISSING LINE
| sort by count_ desc

Pick an answer to reveal the explanation.

Question #17 Manage Azure identities and governance

A freelancer maintains a small web application for a nonprofit in the resource group rg-web, which contains an App Service app and a storage account named stnpo01. At startup the app builds its blob connection string by calling the storage resource provider to list the account keys, using a managed identity that holds the Contributor role on rg-web. Yesterday a board member with the Owner role added a lock at the resource group level to prevent accidental changes before an audit. Since the app last restarted, it fails at startup with a 403 error on the key listing call, while blob reads from a second tool that already holds a key continue to work. Nothing else in the environment was changed. What is the most likely cause?

Pick an answer to reveal the explanation.

Question #18 Deploy and manage Azure compute resources

A security engineer at example.com must enable encryption at host on VM1, a Standard_D8ds_v5 Windows virtual machine in subscription Sub1 that runs a document processing service which writes heavily to the local temp disk. The compliance requirement is that the temp disk and the disk caches are encrypted at rest, not only the managed OS and data disks, and the team is satisfied with platform managed keys. VM1 has never had Azure Disk Encryption enabled, and its size reports the EncryptionAtHostSupported capability as True. An attempt to set the encryption at host property on the running VM1 with Azure PowerShell returns an error, and Sub1 has never had encryption at host enabled on any virtual machine. The engineer holds the Owner role on Sub1 and can schedule downtime for VM1 tonight, but the change record does not permit rebuilding the machine or changing its size. Which two actions should the engineer perform? Each correct answer presents part of the solution. (Select TWO)

Pick two answers to reveal the explanation.

Question #19 Implement and manage virtual networking

A consultant is called in by a media company whose public Standard Load Balancer LB1 stopped serving traffic after a security hardening change. The backend pool contains VM1 and VM2 in Subnet1. Each machine serves the site over TLS on port 443 and exposes a plain HTTP health endpoint on port 80 at /healthz that returns 200. The load balancing rule maps frontend port 443 to backend port 443, and its health probe is HTTP on port 80 with the path /healthz. From a virtual machine in Subnet1 the consultant confirms that both health endpoints respond. The network security group on Subnet1 was replaced during the hardening change and now contains the custom inbound rules below, with the default rules still present. Load balancer metrics show a health probe status of 0 percent for both backend instances, and the company insists that port 80 stays closed to the Internet. What should the consultant change to restore service?

Priority  Name           Source     Dest port  Protocol  Action
100       Allow-Web-443  Internet   443        TCP       Allow
110       Deny-Port-80   Any        80         TCP       Deny

Pick an answer to reveal the explanation.

Question #20 Manage Azure identities and governance

A Reader role assignment that was created at a management group appears as Inherited on the Access control (IAM) page of a resource group inside that management group, and it cannot be removed from the resource group page. It must be removed at the management group where it was created.

Pick an answer to reveal the explanation.

Frequently asked questions about the AZ-104 exam

What is the Microsoft Certified: Azure Administrator Associate (AZ-104) certification?

AZ-104 is the role-based associate certification for Azure administrators. It validates that you can implement, manage, and monitor identity, governance, storage, compute, and virtual networks in a cloud environment, and that you can do that work from the Azure portal, PowerShell, the Azure CLI, and ARM templates or Bicep. It is the credential most Azure operations job descriptions ask for. Like every Microsoft role-based certification it is valid for one year and renews free through an online assessment on Microsoft Learn.

How many questions are on the AZ-104 exam and how long is it?

The exam runs for 100 minutes. Microsoft does not publish an exact question count, and candidates typically report somewhere between 40 and 60 items, including single answer multiple choice, multiple response, yes or no statement sets, ordering tasks, and one or two case studies. Every Sailor.sh mock exam gives you 50 questions in the same 100 minute window, so the pacing you practice is the pacing you face.

What is the passing score for the AZ-104 exam?

AZ-104 is scored on a scale of 1 to 1000 and you need 700 or higher to pass. Because the score is scaled, 700 does not mean 70 percent of questions answered correctly. Harder items carry more weight. Every exam in the Sailor.sh bundle totals exactly 1000 marks and reports your result against the same 700 bar, so a passing practice score means what it says.

What topics does the AZ-104 exam cover?

The skills measured as of April 17, 2026 list five domains: manage Azure identities and governance (20 to 25 percent), implement and manage storage (15 to 20 percent), deploy and manage Azure compute resources (20 to 25 percent), implement and manage virtual networking (15 to 20 percent), and monitor and maintain Azure resources (10 to 15 percent). Expect Microsoft Entra ID, Azure RBAC, Azure Policy, storage firewalls and shared access signatures, virtual machines and scale sets, containers, virtual network peering, network security groups, load balancing, Azure Monitor, and Azure Backup.

What experience do I need before taking AZ-104?

Microsoft describes the audience as administrators who are familiar with operating systems, networking, servers, and virtualization, and who can work with PowerShell, the Azure CLI, the Azure portal, ARM templates or Bicep, and Microsoft Entra ID. There is no formal prerequisite and no required exam to sit first. If you can build a virtual network, attach a virtual machine to it, and explain what a role assignment does, you are in the right place to start preparing.

Do these practice questions include the hands-on lab?

No. Microsoft may include a live lab section, and these are written practice questions rather than a simulated Azure environment, so the bundle prepares your knowledge and your pacing rather than your clicking. The honest way to cover that gap is to work through the same tasks in your own subscription. Multiple response items here are scored all or nothing, exactly as they are on the real exam, so a partly correct selection earns nothing.

How much does the AZ-104 exam cost?

The exam fee is USD 165 in most regions. Pricing is set per region and is subject to change, so confirm the amount for your country when you schedule. The exam is delivered through Pearson VUE, either online proctored or at a test center, and Microsoft Learn documentation is available inside the exam interface while your clock keeps running.

How should I prepare for the AZ-104 exam?

Start with the official AZ-104 study guide and the Microsoft Learn path, then build the things it describes in your own subscription: a hub and spoke network, a storage account behind a firewall, a scale set, a Recovery Services vault. Practice the same task twice, once in the portal and once in PowerShell or the Azure CLI, because the exam asks about both. Finish with full length mock exams under the real 100 minute limit, read the explanation for every miss, and repeat your weakest domain until you clear 700 consistently.

Limited Time Offer: Get 80% off all Mock Exam Bundles | Sale ends in 7 days. Start learning today.

Claim Now