AZ-104 Practice Questions — Free

AZ-104 is the Azure exam about running an estate day to day rather than describing what Azure is. It is written for administrators who already have a subscription to look after, and it assumes the portal is part of the job; if Azure is still new to you, AZ-900 is the better starting point.

Its five domains follow the work: governing identities and subscriptions, placing and securing storage, keeping compute sized and patched, connecting virtual networks that actually route, and monitoring and maintaining resources so a problem shows up before a user reports it. Identity and governance is the heaviest of the five, with compute close behind, and monitoring is the lightest, although it still accounts for a real share of the questions.

One limit is worth knowing before relying on any question bank for this exam. The real AZ-104 also includes hands-on lab tasks and hotspot and drag-and-drop formats, and the questions here are multiple choice, so they cover what those tasks require you to know rather than the tasks themselves.

How AZ-104 is weighted

  1. Manage Azure Identities and Governanceabout 23%
  2. Implement and Manage Storageabout 18%
  3. Deploy and Manage Azure Compute Resourcesabout 22%
  4. Implement and Manage Virtual Networkingabout 18%
  5. Monitor and Maintain Azure Resourcesabout 12%

Microsoft publishes these weightings as ranges; each figure shown falls inside its range.

Manage Azure Identities and Governance

5 questions

  1. Question 1 of 25

    A company wants to apply a consistent policy across multiple Azure subscriptions belonging to the same department, without configuring the policy separately in each one. What Azure construct groups subscriptions for this purpose?

    • A.A Microsoft Entra ID tenant, which is a separate identity boundary, not a subscription-grouping construct
    • B.An Azure Policy initiative alone, without a management group, cannot span multiple subscriptions
    • C.A management group, allowing policies and RBAC to be applied hierarchically across multiple subscriptionsCorrect
    • D.A resource group, which organizes resources within a single subscription, not across subscriptions

    Answer: C

    Management groups sit above subscriptions in Azure's hierarchy, letting policies and RBAC role assignments be applied once and inherited across every subscription under that management group.

  2. Question 2 of 25

    An administrator wants an Azure Policy assignment to apply only to resources within a specific resource group, not the entire subscription it belongs to. What should be configured on the policy assignment?

    • A.A management group assignment, which applies above the subscription level, not narrower than it
    • B.The assignment's scope set to the subscription, which would apply far more broadly than intended
    • C.The assignment's scope set specifically to that resource groupCorrect
    • D.Policy assignments can only ever be scoped to an entire subscription, never a single resource group

    Answer: C

    A policy assignment's scope can be set precisely to a resource group, applying the policy only within that boundary rather than the broader subscription or an even broader management group.

  3. Question 3 of 25

    An administrator must review Global Administrator holders and require them to justify continued membership quarterly. What should be set up?

    • A.A budget alert configured on administrator account activity
    • B.An NSG rule restricting administrator sign-in traffic
    • C.A resource lock applied to each administrator account
    • D.A recurring access review on the Global Administrator roleCorrect

    Answer: D

    Access reviews can target privileged roles on a schedule, requiring attestation to retain membership.

  4. Question 4 of 25

    A company's Azure Policy assignment currently uses an Audit effect for a tagging requirement, and the compliance team now wants non-compliant resources to be blocked at creation instead. What change should be made?

    • A.Enable a resource lock account-wide, which is unrelated to changing a policy's enforcement effect
    • B.Delete the policy entirely, since Audit-effect policies cannot ever be changed to Deny
    • C.Update the policy assignment's effect from Audit to DenyCorrect
    • D.Add an RBAC role assignment, since RBAC alone is what actually blocks resource creation

    Answer: C

    A policy's effect (Audit versus Deny) is a configurable setting on the assignment itself - changing it from Audit to Deny directly shifts behavior from reporting non-compliance after the fact to blocking non-compliant deployments outright, without needing to delete and recreate the policy.

  5. Question 5 of 25

    A university has 12 departmental subscriptions and must apply the same tag and location policies to all of them at once. What should be created?

    • A.A resource lock applied individually to each subscription
    • B.A management group containing them, with policies assigned thereCorrect
    • C.Twelve identical policy assignments made on each subscription
    • D.A single new subscription consolidating all twelve

    Answer: B

    Policies assigned at management group scope are inherited by every subscription beneath it.

Implement and Manage Storage

5 questions

  1. Question 6 of 25

    An administrator must ensure a file share snapshot exists before a risky migration and can be reverted quickly. What should be taken?

    • A.A snapshot of the VM mounting the share
    • B.An Azure Files share snapshotCorrect
    • C.A blob version of the share's contents
    • D.A storage account backup via geo-replication

    Answer: B

    Share snapshots capture point-in-time state of the file share and can be restored from directly.

  2. Question 7 of 25

    A storage account must be moved to another subscription. What is true?

    • A.It can be moved intact with the move operationCorrect
    • B.The account must be deleted and recreated
    • C.Data must be copied manually to a new account
    • D.Storage accounts cannot change subscriptions

    Answer: A

    Storage accounts support subscription and resource group moves without data loss.

  3. Question 8 of 25

    An administrator must disable shared key authorization on a storage account so only Entra ID access works. What is the effect on existing tools using account keys?

    • A.They fail until switched to Entra ID or SAS authenticationCorrect
    • B.They continue working unchanged with the account key
    • C.They automatically switch to Entra ID authentication
    • D.Only upload operations are affected by the change

    Answer: A

    Disabling shared key rejects key-based requests, so any client still using the account key breaks until migrated.

  4. Question 9 of 25

    A developer wants a way to copy large amounts of data efficiently between two Azure Storage accounts, or between on-premises storage and Azure, from the command line as part of a scripted process. What tool is purpose-built for this?

    • A.A resource lock, which prevents resource deletion/modification, unrelated to data copying
    • B.Azure Monitor, which observes resource metrics and logs rather than copying data
    • C.Azure Policy, which governs resource configuration rather than performing data copy operations
    • D.AzCopy, a command-line tool optimized for high-performance data copying to/from Azure StorageCorrect

    Answer: D

    AzCopy is Microsoft's purpose-built command-line utility for high-performance data transfer to, from, and between Azure Storage accounts, well suited to being scripted as part of an automated process.

  5. Question 10 of 25

    An administrator must ensure a container's blobs are only accessible with a SAS whose permissions can be revoked centrally. What should the SAS be based on?

    • A.The storage account key used directly
    • B.A resource lock applied to the container
    • C.Anonymous read access on the container
    • D.A stored access policy on the containerCorrect

    Answer: D

    SAS tokens tied to a stored access policy can be revoked by changing the policy.

Deploy and Manage Azure Compute Resources

6 questions

  1. Question 11 of 25

    A Windows VM must automatically install OS updates during a defined maintenance window. What service manages this?

    • A.Azure Backup with a nightly backup policy
    • B.A resource lock applied to the virtual machine
    • C.The VM's auto-shutdown schedule setting
    • D.Azure Update Manager with a maintenance configurationCorrect

    Answer: D

    Update Manager schedules patch deployment for VMs within defined maintenance windows.

  2. Question 12 of 25

    An App Service app must run continuously with a custom domain and a managed TLS certificate. What plan tier is required at minimum?

    • A.Shared tier
    • B.Basic tierCorrect
    • C.Consumption tier
    • D.Free tier

    Answer: B

    Custom domains with managed certificates require at least the Basic tier.

  3. Question 13 of 25

    An administrator wants to run a containerized workload without provisioning and managing the underlying VM infrastructure at all, for a scenario simpler than a full Kubernetes cluster. What Azure service fits this?

    • A.Azure Container Instances (ACI), running containers without managing underlying VMsCorrect
    • B.Azure Kubernetes Service (AKS), which involves managing a full cluster, more than this scenario needs
    • C.A Virtual Machine Scale Set, which still requires managing the underlying VM infrastructure
    • D.Azure Disk Storage, a storage service rather than a container hosting platform

    Answer: A

    ACI runs individual containers directly without provisioning or managing VMs or a cluster, a simpler and more direct fit than AKS for a workload that doesn't need full Kubernetes orchestration.

  4. Question 14 of 25

    A steady production VM will run 24x7 for at least three years. What lowers its cost most?

    • A.Spot pricing with a maximum price set
    • B.Pay-as-you-go pricing with no commitment
    • C.A three-year Reserved Instance for the VM sizeCorrect
    • D.Auto-shutdown scheduled outside business hours

    Answer: C

    Reservations trade a term commitment for a significant discount on steady, long-running compute.

  5. Question 15 of 25

    A VM must be pinned to a physical host the organization controls for licensing isolation. What should be used?

    • A.An availability set
    • B.A virtual machine scale set
    • C.A proximity placement group
    • D.Azure Dedicated HostCorrect

    Answer: D

    Dedicated Hosts provide a physical server dedicated to one organization's VMs.

  6. Question 16 of 25

    A scale set must always keep at least 2 instances and never exceed 10. Where is this defined?

    • A.The NSG associated with the scale set's subnet
    • B.The VM size chosen for the scale set instances
    • C.The route table associated with the subnet
    • D.The autoscale profile's minimum and maximumCorrect

    Answer: D

    Autoscale profiles set the instance count boundaries the rules operate within.

Implement and Manage Virtual Networking

5 questions

  1. Question 17 of 25

    An administrator wants outbound traffic from a VNet to reach the internet through a fixed, predictable public IP address, rather than an unpredictable, platform-assigned one. What should be configured?

    • A.A NAT Gateway with an associated static public IP addressCorrect
    • B.A Network Security Group, which filters traffic rather than controlling the outbound source IP
    • C.Azure Bastion, which provides secure inbound VM access rather than a predictable outbound IP
    • D.VNet peering, which connects virtual networks rather than controlling an outbound public IP

    Answer: A

    A NAT Gateway associated with a static public IP gives outbound traffic from the VNet a fixed, predictable source IP - useful when a downstream service needs to allowlist a specific known IP rather than an unpredictable default outbound address.

  2. Question 18 of 25

    An administrator wants VMs in a VNet to resolve names like db.internal.contoso to private IPs. What should be created?

    • A.An Azure Private DNS zone linked to the VNetCorrect
    • B.A public DNS zone hosting the internal record names
    • C.A NAT gateway providing outbound name resolution
    • D.An NSG rule permitting DNS traffic on port 53 outbound

    Answer: A

    A Private DNS zone linked to the VNet resolves custom internal names to private addresses within that network.

  3. Question 19 of 25

    An administrator must apply the same NSG rules to all web servers regardless of subnet or IP. What should be used?

    • A.An application security group referenced in NSG rulesCorrect
    • B.One NSG created and maintained per virtual machine
    • C.A public IP prefix reserved for the web server NICs
    • D.A route table associated with each web server subnet

    Answer: A

    ASGs group NICs logically so NSG rules target the role rather than individual addresses.

  4. Question 20 of 25

    An administrator must confirm which NSG rule is allowing unexpected traffic. What Network Watcher tool identifies the specific rule?

    • A.Connection monitor between two endpoints
    • B.IP flow verify, which names the matching ruleCorrect
    • C.Packet capture on the network interface
    • D.Next hop route evaluation for the VM

    Answer: B

    IP flow verify returns the name of the rule that allowed or denied the flow.

  5. Question 21 of 25

    An administrator must confirm that a VNet's address space can be expanded after creation. What is true?

    • A.Address space is fixed once the VNet has been created
    • B.The VNet must be deleted and recreated to change it
    • C.Only subnets can be added, never new address ranges
    • D.Address space can be added, unless it overlaps a peered VNetCorrect

    Answer: D

    Additional address ranges can be added to an existing VNet, subject to no overlap with peered networks.

Monitor and Maintain Azure Resources

4 questions

  1. Question 22 of 25

    An administrator must retain security-relevant logs for 2 years, longer than the workspace default. What should be configured?

    • A.The workspace's data retention or archive settingsCorrect
    • B.Metric alert rules configured on the workspace
    • C.A storage account SAS with a two-year expiry
    • D.A resource lock on the Log Analytics workspace

    Answer: A

    Workspace retention and archive settings extend how long ingested data is kept beyond the default.

  2. Question 23 of 25

    A company wants to configure automated backups for a set of Azure VMs, with a defined retention policy and the ability to restore a VM to a specific point in time. What Azure service fits this?

    • A.Azure Backup, using a Recovery Services vault with a defined backup policyCorrect
    • B.Network Watcher, a networking diagnostics tool rather than a VM backup service
    • C.A resource lock, which prevents deletion/modification rather than performing scheduled backups
    • D.Blob lifecycle management, which manages storage tiering rather than VM-level backup and restore

    Answer: A

    Azure Backup, configured through a Recovery Services vault and a backup policy, is the purpose-built service for scheduled VM backup with defined retention and point-in-time restore capability.

  3. Question 24 of 25

    An organization must keep a snapshot of a VM's disk immediately before a risky change, outside the normal backup schedule. What should be taken?

    • A.A resource lock applied to the disk
    • B.An export of the subscription's Activity Log
    • C.An on-demand backup or a managed disk snapshotCorrect
    • D.A budget alert configured for the VM

    Answer: C

    On-demand backups or disk snapshots create an immediate restore point outside the policy schedule.

  4. Question 25 of 25

    An administrator must confirm the last successful backup of a VM. Where is this shown?

    • A.The VM's backup blade or the vault's backup itemsCorrect
    • B.The NSG associated with the VM's subnet
    • C.Cost Management's usage view for the vault
    • D.Azure Advisor's reliability recommendations

    Answer: A

    Backup items in the vault list last backup status and time per protected item.

20 more free after signup, then the full 400-question bank for $12.

Get 20 more free questions