devopsbymuh_

AZ-104 practice questions and answers

All 12 questions from Practice Test 1 for Microsoft Azure Administrator, with the correct answer and a full explanation for each — including why the other options are wrong. Free to read, no signup.

What this set covers

Questions are weighted to match the official AZ-104 exam guide. The real exam is 40–60 questions in 120 minutes with a pass mark of 700 / 1000.

  • Manage Azure Identities and Governance3 q · 22%
  • Implement and Manage Storage2 q · 18%
  • Deploy and Manage Azure Compute Resources2 q · 22%
  • Implement and Manage Virtual Networking3 q · 20%
  • Monitor and Maintain Azure Resources2 q · 18%
Question 1Manage Azure Identities and Governance

You must give a support engineer permission to restart virtual machines in one resource group, and nothing more. What should you do?

  • AAssign the Owner role at the subscription scope.
  • BAssign the Virtual Machine Contributor role at the resource group scope.
  • CAssign the Contributor role at the subscription scope.
  • DAdd the engineer to the Global Administrator role in Microsoft Entra ID.

Correct answer: B Assign the Virtual Machine Contributor role at the resource group scope.

Least privilege means the smallest built-in role at the smallest scope. Virtual Machine Contributor allows managing VMs — including restart — inside that resource group only. Owner and Contributor at subscription scope grant far too much, and Global Administrator is a directory role, not an Azure resource role.

Azure built-in roles
Question 2Manage Azure Identities and Governance

Which feature requires users to complete multi-factor authentication when they sign in from an untrusted location, but not from the corporate network?

  • AConditional Access policies
  • BAzure Policy
  • CPrivileged Identity Management
  • DResource locks

Correct answer: A Conditional Access policies

Conditional Access evaluates signals such as location, device and risk, and then requires controls like MFA. Azure Policy governs resource configuration, PIM handles just-in-time elevation of privileged roles, and locks protect resources from change or deletion.

Conditional Access overview
Question 3Implement and Manage Storage

A storage account must survive the complete loss of an Azure region and must allow read access to the secondary copy at all times. Which redundancy option should you choose?

  • ALRS
  • BZRS
  • CGRS
  • DRA-GRS

Correct answer: D RA-GRS

Read-access geo-redundant storage replicates to a secondary region and lets applications read from it directly. Plain GRS replicates but the secondary is only readable after a failover. LRS keeps three copies in one data centre and ZRS spreads copies across zones in one region — neither survives a regional loss.

Azure Storage redundancy
Question 4Implement and Manage Storage

You need to give a partner temporary read access to a single blob, without sharing account keys, and the access must expire after 24 hours. What should you create?

  • AA shared access signature (SAS) with read permission and an expiry time
  • BA second storage account key
  • CA public container
  • DA role assignment of Storage Blob Data Owner

Correct answer: A A shared access signature (SAS) with read permission and an expiry time

A SAS token grants scoped, time-limited access to a specific resource. Account keys give full control, a public container exposes data to everyone, and a data owner role assignment is permanent and far too broad for a partner.

Shared access signatures
Question 5Deploy and Manage Azure Compute Resources

Which option automatically adds and removes virtual machines based on CPU load, while keeping the instances identical?

  • AAvailability Set
  • BVirtual Machine Scale Set with autoscale rules
  • CAzure Load Balancer
  • DProximity placement group

Correct answer: B Virtual Machine Scale Set with autoscale rules

A scale set manages a group of identical VMs and can scale on metrics such as CPU. Availability Sets improve fault tolerance inside a data centre but do not scale. A load balancer distributes traffic, and proximity placement groups reduce latency between VMs.

Virtual Machine Scale Sets
Question 6Deploy and Manage Azure Compute Resources

You want to deploy the same set of Azure resources to dev, test and production, with values that differ per environment. Which approach fits best?

  • ACreate resources manually in the portal for each environment.
  • BUse an ARM template or Bicep file with parameters for each environment.
  • CExport the resource group and re-import it.
  • DCopy the resources with Azure Storage Explorer.

Correct answer: B Use an ARM template or Bicep file with parameters for each environment.

ARM templates and Bicep declare the resources once and take parameters, so the same definition deploys to every environment consistently. Manual portal work drifts between environments, and Storage Explorer only moves storage data.

What is Bicep?
Question 7Implement and Manage Virtual Networking

Two virtual networks in the same region must communicate using private IP addresses with low latency, without a gateway. What should you configure?

  • AVNet peering
  • BSite-to-Site VPN
  • CAzure Front Door
  • DService endpoint

Correct answer: A VNet peering

VNet peering connects two virtual networks over the Azure backbone with private addressing and no gateway needed. A VPN adds gateways and overhead, Front Door is for global web traffic, and service endpoints extend a VNet identity to PaaS services.

Virtual network peering
Question 8Implement and Manage Virtual Networking

A network security group is attached to a subnet and to the network interface of a VM in that subnet. How is traffic evaluated for inbound connections?

  • AOnly the subnet NSG applies.
  • BOnly the NIC NSG applies.
  • CThe subnet NSG is evaluated first, then the NIC NSG; traffic must be allowed by both.
  • DThe rule with the highest priority number wins.

Correct answer: C The subnet NSG is evaluated first, then the NIC NSG; traffic must be allowed by both.

For inbound traffic, Azure evaluates the subnet NSG and then the NIC NSG, so both must allow the traffic. For outbound the order is reversed. Lower priority numbers are processed first, not higher ones.

How network security groups filter traffic
Question 9Implement and Manage Virtual Networking

Administrators need RDP and SSH access to VMs that have no public IP address, without deploying a jump box they must patch. What should you use?

  • AAzure Bastion
  • BA public load balancer with NAT rules
  • CJust-in-time VM access with a public IP
  • DA point-to-site VPN for every administrator

Correct answer: A Azure Bastion

Azure Bastion is a managed service that brokers RDP and SSH sessions over TLS from the portal, so VMs need no public IP and there is no jump box to maintain.

What is Azure Bastion?
Question 10Monitor and Maintain Azure Resources

You must be alerted when average CPU on a VM stays above 85% for 10 minutes, and the alert must create a ticket in an external system. Which combination should you configure?

  • AA metric alert rule in Azure Monitor with an action group that calls a webhook
  • BA Log Analytics workspace with a saved query only
  • CAzure Service Health with an email notification
  • DAzure Advisor recommendations

Correct answer: A A metric alert rule in Azure Monitor with an action group that calls a webhook

Metric alert rules evaluate a metric against a threshold over a time window, and action groups run the response — email, SMS, webhook, Logic App or ITSM connector. Saved queries do not alert by themselves, Service Health reports platform issues, and Advisor gives recommendations.

Azure Monitor alerts
Question 11Monitor and Maintain Azure Resources

Which service protects Azure VMs with scheduled backups and point-in-time restore, including application-consistent snapshots?

  • AAzure Site Recovery
  • BAzure Backup with a Recovery Services vault
  • CStorage account snapshots
  • DAzure File Sync

Correct answer: B Azure Backup with a Recovery Services vault

Azure Backup stores VM recovery points in a Recovery Services vault on a policy schedule. Site Recovery is for replication and failover of workloads to another region. Storage snapshots and File Sync solve different problems.

Azure Backup for VMs
Question 12Manage Azure Identities and GovernanceSelect 2

Which two statements about Azure resource tags are correct? (Select TWO.)

  • ATags can be used to group costs in Microsoft Cost Management reports.
  • BTags applied to a resource group are automatically inherited by resources inside it.
  • CAzure Policy can require a tag and even append a default value on deployment.
  • DTags replace the need for RBAC on resources.
  • ETags can only be applied through the Azure portal.

Correct answer: A, C Tags can be used to group costs in Microsoft Cost Management reports. · Azure Policy can require a tag and even append a default value on deployment.

Tags are name/value pairs used for organizing and reporting, and Cost Management can group spend by tag. Azure Policy can require, deny or append tags. Tags are not inherited automatically — a policy is what copies them from the resource group — and they never provide access control.

Use tags to organize resources

Ready to try it under exam conditions?

Reading answers is not the same as recalling them with a clock running. Take the same 12 questions as a timed mock exam — 25 minutes, no feedback until you submit, then a score broken down by exam domain so you know what to study.

Start the timed AZ-104 test →