AZ-104 Practice Test 3: 50 Azure Administrator Questions

Microsoft Azure Administrator

AZ-104 Practice Test 3: 50 Azure Administrator Questions

Last updated:

Decide how to handle licensing failures, choose storage protection, deploy resources at the right scope, trace network traffic, and recover workloads. These 50 original scenarios cover the 5 AZ-104 skill areas, with an explanation and Microsoft Learn reference for each answer.

From practice to review

Choose 1 answer unless you see Select 2 answers. You need both correct choices to earn credit on those questions.

After you finish, use the explanations and Microsoft Learn links to review what you missed. Your saved score appears in your Learning Dashboard.

How the 50 questions are split

  • Azure identities and governance12 · 24%
  • Storage9 · 18%
  • Compute12 · 24%
  • Virtual networking10 · 20%
  • Monitoring and maintenance7 · 14%
50 questions90-minute practice timer70% practice target
Timer and scoring start after you press Start.
Learning Dashboard

Question 1. A tenant wants an employee to create and manage security groups without granting broad tenant administration. Which built-in Microsoft Entra role best fits?

The answer is C. Groups Administrator provides directory permissions to manage groups. It is more narrowly scoped than Global Administrator. Azure Contributor controls Azure resource management, which is a separate permission system. Authentication Administrator focuses on authentication methods. Check whether the team can use group ownership instead if it only manages existing groups.

Read more: Microsoft Learn documentation.

Question 2. A group-based license assignment fails because the user's usage location is unsupported for the product. The user's location was entered incorrectly. What should you do first?

The answer is D. Usage location is used to determine whether services can be assigned to the user. Correcting the property addresses the stated problem. Subscription location does not change this directory attribute. A display name is not licensing metadata. Retry the assignment after correcting the user's location.

Read more: Microsoft Learn documentation.

Question 3. The group structure in the diagram is used for licensing. The employee is only a member of the nested group and remains unlicensed after processing. What should you change?

The answer is A. Group-based licensing does not expand nested group membership. The parent license applies to eligible direct users. Adding the employee directly addresses the missing assignment path. Adding another nesting level does not help. Verify the user's license status after processing.

Read more: Microsoft Learn documentation.

Question 4. Users must use self-service password reset after forgetting a password. They are already in scope but have not registered enough methods to meet the policy. What should the administrator require?

The answer is D. SSPR needs registered methods to verify the user. Being in scope does not supply those methods. The methods must satisfy the policy's configured reset requirements. Azure Contributor does not configure Entra authentication. Encourage users to register while they can still sign in.

Read more: Microsoft Learn documentation.

Question 5. A guest has accepted an invitation. Their email address changes, and you need to reset their redemption status while keeping their existing guest object and assignments. What should you do?

The answer is A. Resetting redemption status lets the guest redeem an invitation again. The guest object can remain in place. Existing memberships and assignments can therefore be retained. Deletion and recreation creates a different object. Subscription Owner does not change how the invitation is redeemed.

Read more: Microsoft Learn documentation.

Question 6. Use the role scopes in the diagram. The engineer must restart only VM-Web and does not need to administer any other VM. At which scope should you assign the Virtual Machine Contributor role?

The answer is C. The VM is the smallest listed scope containing the target. The role can then apply to that resource without covering the peer VM. A resource-group assignment would reach both VMs. Subscription and management-group assignments would be broader still. Check existing inherited assignments separately when reviewing effective access.

Read more: Microsoft Learn documentation.

Question 7. An Azure role should be usable only during approved maintenance periods. The operator must activate it before performing work. Which Microsoft Entra PIM assignment type supports this workflow?

The answer is C. An eligible assignment requires activation before the role can be used. Activation can be governed by configured approval and duration settings. A permanent active assignment supplies access without that activation step. Budget alerts do not grant roles. Policy exemptions do not manage role activation.

Read more: Microsoft Learn documentation.

Question 8. The diagram shows the only 2 resources in RG-Dev. VM-Dev must be deleted, but Disk-Keep must remain protected. Which changes preserve the disk’s protection throughout the operation? Select 2 answers.

The answer is B and D. Lock Disk-Keep first so its protection remains in effect. The resource-group lock still prevents deletion of VM-Dev until it is removed. An inherited lock cannot be bypassed by assigning Contributor. A subscription lock would continue to protect both resources. A direct lock on VM-Dev would also block the requested deletion.

Read more: Microsoft Learn documentation.

Question 9. A platform team wants to assign a single collection of related policy definitions and track compliance as a group. What should they create?

The answer is B. An initiative groups related policy definitions. Administrators can assign the group at an appropriate scope. Compliance can be reviewed across the assigned initiative. NSG tags describe traffic sources or destinations. A resource lock protects management operations rather than grouping policies.

Read more: Microsoft Learn documentation.

Question 10. The policy assignment in the diagram should apply to production subscriptions, but RG-Lab must be outside evaluation entirely. Which assignment setting should you use?

The answer is A. An assignment exclusion removes the selected scope from evaluation for that assignment. The notScopes property defines those excluded scopes. A role or lock does not change policy assignment scope. A tag has no effect unless the policy is explicitly written to use it. A formal exemption is a different way to track an approved exception in compliance reporting.

Read more: Microsoft Learn documentation.

Question 11. A team needs resources to include an Environment tag when deployed. Existing resources can be reported separately. Which policy effect blocks matching create requests that lack the required tag?

The answer is D. Deny can block a matching request. A policy condition can check whether the tag is missing. Audit records noncompliance without blocking the request. Disabled does not enforce the definition. Check that the assignment is enforced and targeted at the intended scope.

Read more: Microsoft Learn documentation.

Question 12. A custom Azure role was created for RG-App only. Its permissions are correct, but administrators must also be able to assign it in RG-Data without exposing it across the subscription. What should they update?

The answer is B. AssignableScopes identifies where the custom role is available for assignment. Add RG-Data without widening the role to subscription scope. Actions defines permitted operations rather than assignment boundaries. The display name does not change scope. Updating the definition does not itself grant the role to anyone.

Read more: Microsoft Learn documentation.

Question 13. The diagram shows an Azure VM and storage account in different regions. You want the subnet to reach the storage public endpoint using a service endpoint, and only selected networks may access the account. Data permissions are already correct. Which changes are required? Select 2 answers.

The answer is B and C. The Microsoft.Storage.Global service endpoint supports storage accounts in other regions. Enable it on the originating subnet. The storage firewall must separately allow that subnet. The regional Microsoft.Storage endpoint is not the cross-region endpoint asked for here. Azure Reader is unrelated to network admission.

Read more: Microsoft Learn documentation.

Question 14. An account uses 2 keys. You need to identify which key signed a legacy SAS before rotation, but the SAS token does not disclose that choice. What is the safest starting point?

The answer is C. The issuer knows which signing credential was used. Inspect that configuration or its deployment records first. Guessing can invalidate active tokens when a key is rotated. Rotating both keys also removes the fallback. Consider Entra-based access for clients that support it.

Read more: Microsoft Learn documentation.

Question 15. The storage requirements in the diagram call for write availability through a single zone outage and a geographically separate copy. The app does not need to read the secondary endpoint before failover. Which option meets the requirements without adding secondary read access?

The answer is C. GZRS uses zone redundancy in the primary region and replicates to a secondary region. LRS does not spread primary data across zones. GRS adds a secondary region but uses local redundancy in the primary. ZRS lacks a secondary-region copy. Verify that the account type and region support GZRS.

Read more: Microsoft Learn documentation.

Question 16. A private blob container must preserve records for 7 years and prevent modification or deletion during that period. Which feature addresses the requirement?

The answer is B. A time-based immutability policy provides retention protection against modification and deletion for supported blobs. The access tier affects storage economics. A stored access policy limits delegated access rather than enforcing retention. Soft delete supports recovery after deletion. Verify policy scope and locking requirements before applying the retention control.

Read more: Microsoft Learn documentation.

Question 17. Use the lifecycle timeline in the diagram. A rule must delete previous blob versions after they reach the specified age without deleting the current version. Which action should the rule target?

The answer is C. The version action targets previous versions. A baseBlob delete action targets the current blob. Snapshot actions apply to snapshots rather than versions. An archive action changes the tier instead of deleting data. Check retention and recovery requirements before enabling automatic deletion.

Read more: Microsoft Learn documentation.

Question 18. A partner must upload files to a specific blob container for a short period. The token should permit creation and writing without granting list or read permissions. What should the administrator issue?

The answer is C. A scoped SAS can limit the resource and operations. Create and write permissions cover the stated upload behavior. Read and list need not be granted. The account key is much broader. Keep the validity period short and use HTTPS.

Read more: Microsoft Learn documentation.

Question 19. A storage account stores blobs in the Hot tier. Finance wants to reduce storage costs for data read infrequently but still needs immediate online access. Which tier is the best candidate among these options?

The answer is B. Cool is an online access tier. It is intended for infrequently accessed data. Archive requires rehydration before online reads. Moving to Cool can raise access and early-deletion costs. Compare the workload's actual read frequency and retention with the pricing model.

Read more: Microsoft Learn documentation.

Question 20. The diagram shows that 2 datasets need separate SMB share names on the same Azure Files account. Which resource should you create for the second dataset?

The answer is D. An Azure file share provides its own SMB share path. A blob container uses a different storage service. A snapshot is a read-only point-in-time copy of a share. A queue stores messages rather than SMB files. Configure share permissions and directory ACLs for the new dataset as appropriate.

Read more: Microsoft Learn documentation.

Question 21. AzCopy must transfer only changed files from a local directory to a blob container. Extra destination blobs must be retained. Which approach fits?

The answer is D. AzCopy sync compares source and destination to determine what to transfer. Destination deletion is a separate option. Leaving it disabled preserves destination-only blobs. Account failover does not synchronize a local folder. Verify comparison behavior and test the operation on a small path first.

Read more: Microsoft Learn documentation.

Question 22. The diagram shows a Bicep deployment targeting a subscription while a web app must be created inside an existing resource group. How should the subscription-scoped file deploy the web app?

The answer is D. A module can target a resource group from a subscription-scoped deployment. The parent deployment and module scopes can differ. A web app is a resource-group-scoped resource. Deployment location does not choose the target resource group. The deployment identity still needs permission at both required scopes.

Read more: Microsoft Learn documentation.

Question 23. A Bicep resource declared with the existing keyword is redeployed whenever the file reads that resource’s ID.

The answer is False. An existing declaration references a deployed resource. It does not deploy that resource again. The declaration can expose its ID or properties to other declarations. Its name and scope must still identify the correct resource. A standard resource declaration is appropriate when the deployment should manage it.

Read more: Microsoft Learn documentation.

Question 24. An ARM deployment needs to create 4 equivalent NICs from a parameterized count. Which JSON template construct should be used on the resource?

The answer is B. The resource copy construct iterates a declaration. The count determines how many instances to create. Each instance needs a unique name. Dependencies control ordering rather than quantity. Outputs publish values after deployment.

Read more: Microsoft Learn documentation.

Question 25. The diagram shows VM-level and disk-level IOPS limits. Demand exceeds the VM limit, while each disk is below its own limit. Which change addresses the bottleneck?

The answer is B. Both VM and disk limits can cap delivered performance. The diagram shows the VM limit is lower than the workload demand. Higher disk limits alone would leave that cap unchanged. Resource-group placement does not alter VM IOPS. Verify the target size supports the required disk configuration.

Read more: Microsoft Learn documentation.

Question 26. An Azure VM cannot boot after a guest configuration change. You need to view console output and the boot screen. Which Azure VM feature should you use?

The answer is A. Boot diagnostics provides console output and a screenshot for troubleshooting startup. It helps when guest connectivity is unavailable. DNS logs do not capture the VM boot screen. Autoscale manages instance counts. Use the evidence to choose the next recovery step.

Read more: Microsoft Learn documentation.

Question 27. The diagram shows 2 VMs that need simultaneous access to a shared block device. Which requirements should the administrator satisfy? Select 2 answers.

The answer is B and C. A shared managed disk can be attached to multiple supported VMs. The maxShares value must allow the desired attachments. The cluster software coordinates concurrent access. Separate temporary disks do not provide a common block device. Confirm disk SKU and VM prerequisites before deployment.

Read more: Microsoft Learn documentation.

Question 28. An Azure VM needs more capacity on an existing managed data disk. The platform resize succeeds but the guest filesystem still reports the old size. What should you do next?

The answer is C. Azure disk capacity and guest filesystem capacity are separate. The guest must consume the newly available blocks. Extend the partition or volume where required. Expand the filesystem using the appropriate guest tool. Confirm backups and application requirements before modifying disk structures.

Read more: Microsoft Learn documentation.

Question 29. A supported Azure Container Apps workload consumes messages from an Azure Storage queue. You want replicas to increase when the backlog grows. Which scaling configuration fits?

The answer is C. Container Apps supports event-driven scaling through supported scalers. The queue signal reflects pending work. The scale rule needs valid access to the queue. DNS settings do not change the replica count. Test backlog behavior and choose replica bounds appropriate to the workload.

Read more: Microsoft Learn documentation.

Question 30. A Linux Azure Container Instances workload writes reports that must survive deletion of the container group. The app expects a mounted file path. Which configuration fits?

The answer is D. Azure Files provides storage independent of the container group. Mount the share at the path the workload expects. The container writable layer does not provide persistent storage after deletion. Environment variables and DNS records cannot serve as mounted file storage. Configure supported storage credentials and networking for the mount.

Read more: Microsoft Learn documentation.

Question 31. The diagram shows the main App Service endpoint and its SCM endpoint. You need a separate allowlist for deployments through SCM. Where should you configure it?

The answer is C. App Service exposes access restrictions for its SCM site. SCM rules can be configured independently of the main site. This allows a deployment client allowlist that differs from user traffic. A CNAME does not filter access. Confirm that required build agents are allowed before enforcing the restrictions.

Read more: Microsoft Learn documentation.

Question 32. Several App Service apps share an App Service plan. You increase the instance count at the plan level. What does this generally scale?

The answer is A. The App Service plan defines the compute capacity used by its apps. Plan-level scale-out increases the plan instance count. Applications on that plan share the underlying capacity. DNS and database redundancy are separate settings. Check per-app scaling configuration if the apps are not intended to use all plan instances.

Read more: Microsoft Learn documentation.

Question 33. A team needs to validate a deployment slot with the target slot's settings before completing the production swap. Which feature supports that staged validation?

The answer is A. Swap with preview pauses the swap after applying target settings to the source slot. The team can validate behavior before completing the swap. The preview can be canceled if validation fails. Moving resources does not provide slot warm-up or validation. Check slot and authentication limitations before relying on this workflow.

Read more: Microsoft Learn documentation.

Question 34. Use the diagram to identify the subnet that needs stable outbound internet access for multiple VMs. You do not want to assign public IPs to the VMs. Which feature should you attach to that subnet?

The answer is A. NAT Gateway supplies outbound internet connectivity for its associated subnet. The attached public IP can provide a predictable egress address. Individual VMs do not need public IPs. A private DNS link affects name resolution. An internal load balancer frontend does not provide this outbound internet path.

Read more: Microsoft Learn documentation.

Question 35. A new subnet must allow workloads to connect privately to a PaaS service using an address from the VNet. Which feature provides that private IP on the consumer side?

The answer is D. A private endpoint provides a network interface with a private IP. The connection maps to the supported service through Private Link. A service endpoint extends subnet identity but does not create a private endpoint NIC. DNS configuration is still needed for normal hostname resolution. Verify endpoint approval and network access separately.

Read more: Microsoft Learn documentation.

Question 36. The diagram shows the configured subnet route and the destination. Which tool should you run to find the actual next-hop type and IP selected for traffic from VM-App?

The answer is A. Next hop reports the next-hop type and address for a destination from a VM. It helps validate the effective routing decision. DNS record sets do not reveal packet forwarding. Connection Monitor tracks connectivity over time rather than directly reporting the route decision. Check effective routes if the reported next hop differs from the intended one.

Read more: Microsoft Learn documentation.

Question 37. An administrator wants to restrict outbound NSG rules to supported Azure Storage service IP ranges without manually maintaining the prefixes. Which NSG feature should they use?

The answer is C. A service tag represents service IP prefixes managed by Azure. The Storage tag can be used in supported NSG rules. An application security group groups workload interfaces rather than Microsoft service address ranges. A resource lock does not filter packets. Confirm the regional scope and destination ports needed by the workload.

Read more: Microsoft Learn documentation.

Question 38. A Standard Load Balancer rule distributes repeated connections from the same client across different backends. The app needs new connections from the same client IP to prefer the same backend while the pool remains stable. Which distribution setting should be considered?

The answer is A. Source IP persistence hashes traffic using source and destination IP information. It can keep connections from the same client IP on the same backend under a stable configuration. Default distribution also includes ports and protocol in the hash. Disabling probes can remove useful health information. Shared client IPs can concentrate traffic, so assess the impact before enabling affinity.

Read more: Microsoft Learn documentation.

Question 39. A private DNS zone is linked to a VNet. The team needs supported VM A records created automatically in the zone as VMs are deployed. What should they enable on the link?

The answer is A. Auto-registration creates records for supported VMs in the linked VNet. A resolution-only link allows queries but does not auto-register VM names. A public delegation is unrelated to the private zone. Bastion provides administrative connectivity rather than DNS registration. Verify the registration limits for the VNet and zone.

Read more: Microsoft Learn documentation.

Question 40. The diagram shows inbound management traffic from an administrator to a VM that has no public IP. The team already deployed Azure Bastion in the VNet. Which connection method meets the requirement?

The answer is B. Bastion provides administrative connectivity to supported VMs using private addresses. The target does not need a public IP. NAT Gateway is an outbound service rather than an inbound RDP entry point. A TXT record does not forward traffic. Ensure required Bastion-to-target rules and user permissions are in place.

Read more: Microsoft Learn documentation.

Question 41. You can create an ordinary CNAME record at the apex of an Azure public DNS zone to point the zone itself to another hostname.

The answer is False. The zone apex already contains the required SOA and NS records. A CNAME cannot coexist with those record types at the same name. An ordinary CNAME can still be used on a suitable subdomain. An Azure DNS alias record can support certain apex scenarios with compatible targets. Check the target type before choosing the record design.

Read more: Microsoft Learn documentation.

Question 42. The diagram shows 2 VNets connected by peering. After adding a nonoverlapping prefix to VNet-A, VNet-B has not learned the new prefix. What should you do first?

The answer is B. Peering synchronization updates the remote network's view of the address space. The new prefix must not overlap the peer. An NSG change does not update the peer address-space definition. RBAC on VM identities does not affect the peering route. Verify the effective route after synchronization.

Read more: Microsoft Learn documentation.

Question 43. An Azure DNS record maps app.contoso.com to an old endpoint. You are planning a controlled cutover. Which step can reduce how long recursive resolvers retain the old answer after the change?

The answer is B. TTL controls how long a resolver can cache an answer. Lowering it in advance can reduce cache lifetime for answers fetched afterwards. Existing cached answers may retain the previous TTL. Raising TTL would normally extend caching. Verify the new target before changing production DNS.

Read more: Microsoft Learn documentation.

Question 44. The diagram shows guest OS events arriving in a Log Analytics workspace. You must detect a matching KQL pattern and email the on-call team. Which components do you need? Select 2 answers.

The answer is A and D. A log search alert evaluates the pattern against the workspace logs. An action group supplies the notification destination. Service Health is for Azure service events rather than guest log patterns. Activity log alerts operate on control-plane events. Test the query and the action group independently before relying on the alert.

Read more: Microsoft Learn documentation.

Question 45. After filtering AzureActivity to the last 24 hours, which KQL aggregation estimates the number of distinct callers?

The answer is B. dcount estimates the distinct number of values in the caller column. A grouped count produces a count for each caller rather than a single distinct total. The maximum timestamp answers a timing question. Project selects columns without aggregating. If an exact total is required, evaluate a distinct-then-count approach for the data volume.

Read more: Microsoft Learn documentation.

Question 46. An operator needs notifications for planned Azure platform maintenance affecting services and regions in their subscription. Which feature should they use?

The answer is D. Service Health reports planned maintenance and relevant service incidents. An alert can be scoped to selected regions and services. CPU alerts observe workload metrics instead. Backup policies control protection schedules and retention. Connect the alert to a tested action group.

Read more: Microsoft Learn documentation.

Question 47. The vault in the diagram already uses GRS. The recovery team needs to perform a restore in the paired region without waiting for Azure to declare an outage. Which capability should they enable for the supported workload?

The answer is D. Cross Region Restore lets administrators initiate supported restores in the paired region. GRS on its own does not imply self-service restores at any time. The supported workload and region determine availability. Secondary recovery points can lag the primary. Check the latest available recovery point before a drill.

Read more: Microsoft Learn documentation.

Question 48. An Azure VM backup operator wants to recover a few files from a recovery point without creating an entire new VM. Which restore capability should they use?

The answer is B. File recovery retrieves supported files from a VM recovery point. It avoids creating a complete replacement VM. Select a point that contains the required versions. Use the supported mounting and download process. Follow workload restrictions for encrypted disks and file recovery environments.

Read more: Microsoft Learn documentation.

Question 49. A Recovery Services vault must help prevent destructive backup actions by a compromised vault administrator. A separate security team must authorize those operations. Which feature fits?

The answer is D. Resource Guard supports additional authorization for protected backup operations. A separate security team can control permission to the guard. Vault access alone is then insufficient for covered critical actions. Tags do not enforce that approval boundary. Review which operations are protected for the vault configuration.

Read more: Microsoft Learn documentation.

Question 50. The diagram shows a disaster recovery workflow after an actual Azure Site Recovery failover. The recovered VM is validated in the secondary region. Which action finalizes the chosen recovery point before reprotection?

The answer is A. Commit finalizes the selected recovery point after validation. Before commit, supported workflows can allow a different recovery point to be selected. A test failover is a separate nonproduction drill. Deleting the source subscription is unrelated to committing the failover. Plan reprotection after the failover is committed.

Read more: Microsoft Learn documentation.