Cert Rehearsal

Microsoft Azure Administrator Associate (AZ-104) practice test

Built for exam AZ-104, the exam for the Microsoft Certified: Azure Administrator Associate certification, from the skills Microsoft lists in its study guide: Microsoft Entra users and groups, role assignments, Azure Policy, locks, tags and cost management; storage accounts, shared access signatures, redundancy, Azure Files and blob lifecycle; ARM templates and Bicep files, virtual machines, scale sets, containers and App Service; virtual networks, peering, network security groups, Azure Bastion, private endpoints, Azure DNS and load balancers; and Azure Monitor, Network Watcher, Azure Backup and Site Recovery. The questions are administrator scenarios: what to configure, which setting, which role, which command. Every question is original, with an explanation of why the right answer is right.

Try the free sample Buy the full set, $12 once

The free sample is 10 questions, graded, with no sign-up. Or get All-access for $9/month: every test on the site. An account keeps your progress on every device.

What the full set includes

Topics covered

Sample questions

Question 1

A company wants a security group that always contains every user whose department attribute is Sales, with no manual upkeep as people join and leave the department. How should the group be created in Microsoft Entra ID?

  1. With the Dynamic User membership type and a rule on user.department
  2. With the Assigned membership type and nested team groups
  3. With the Dynamic Device membership type and a device rule
  4. As a Microsoft 365 group whose owners approve requests
Show the answer

A. With the Dynamic User membership type and a rule on user.department. A group with the Dynamic User membership type is filled by a rule on user attributes, so a rule on user.department adds and removes people as the attribute changes. An Assigned group is kept up by hand, and a Dynamic Device rule can only select devices.

Question 2

A support engineer must be able to start, stop, resize and reconfigure the virtual machines in a resource group, but must not manage the virtual network they connect to or grant access to anyone. Which built-in role should be assigned?

  1. Virtual Machine Administrator Login
  2. Owner
  3. Virtual Machine Contributor
  4. Contributor
Show the answer

C. Virtual Machine Contributor. Virtual Machine Contributor manages virtual machines but not the virtual network or storage account they are connected to, and it cannot assign roles. Contributor would also allow changes to the network, and Virtual Machine Administrator Login only allows signing in to the machine.

Question 3

A company must make sure that no one can deploy resources outside the West Europe and North Europe regions in a subscription. What should the administrator do?

  1. Create every resource group in one of the two regions
  2. Assign Reader outside the two regions to all users
  3. Assign the Allowed locations policy to the subscription
  4. Tag the subscription with the two region names
Show the answer

C. Assign the Allowed locations policy to the subscription. The built-in Allowed locations policy denies any deployment whose location is not in the list given as its parameter. A resource group's location does not limit where its resources go, tags are only labels, and role assignments are scoped to the resource hierarchy, not to regions.

Not affiliated with or endorsed by Microsoft. Microsoft, Azure and Microsoft Entra are trademarks of the Microsoft group of companies. The questions here are original practice material and are not the official exam, a Microsoft Practice Assessment or any Microsoft product.