AZ-104 Practice Test 2: 50 Azure Administrator Questions

Microsoft Azure Administrator

AZ-104 Practice Test 2

Last updated:

Practice the decisions an Azure administrator makes when access fails, deployments need updating, storage must be protected, or a network connection stops working. These 50 original questions cover the 5 AZ-104 skill areas through configuration and troubleshooting scenarios.

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 dynamic Entra group grants access to internal finance tools. Guests may also have Department set to Finance. Which rule selects Finance members and excludes guests?

The answer is C. Both conditions must match. The department check limits access to Finance. The member check excludes guests. OR admits members outside Finance. Verify source attributes before using dynamic membership for access.

Read more: Microsoft Learn documentation.

Question 2. Group licensing reports insufficient product seats for a new employee. Which change addresses the reported error?

The answer is D. The product pool has no available seat. Acquire or free a seat before retrying. Reprocessing evaluates the assignment again. A second licensing group cannot expand the pool. Azure RBAC does not control Microsoft 365 seat capacity.

Read more: Microsoft Learn documentation.

Question 3. A partner needs to use their existing identity and read resources in a specific resource group. What should you do? Select 2 answers.

The answer is B and D. The invitation establishes a guest identity. Reader grants the Azure resource access separately. The resource group scope limits the grant. An invitation alone does not grant the role. Global Administrator is unnecessary.

Read more: Microsoft Learn documentation.

Question 4. An operator must assign existing Azure roles on RG-App without managing its VMs. Which built-in role best fits?

The answer is C. This role manages Azure access assignments. Scope it to RG-App. Owner also grants general resource management. Contributor cannot grant Azure RBAC access. Consider delegation conditions when only specific assignments should be allowed.

Read more: Microsoft Learn documentation.

Question 5. Nina has only the role assignments shown. Which operation is allowed?

The answer is B. Contributor on RG-API applies to VM-API. Reader grants visibility across the subscription. Reader does not allow VM-DB changes. Contributor cannot assign Owner. The role on RG-API does not extend to RG-DB.

Read more: Microsoft Learn documentation.

Question 6. An operator has Storage Blob Data Reader on an account but cannot navigate to it in the Azure portal using Entra authorization. Which additional role permits navigation without write access?

The answer is B. Portal navigation requires management-plane visibility. Reader grants that visibility. Storage Blob Data Reader supplies data access separately. Contributor is broader than needed. Listing account keys is unnecessary.

Read more: Microsoft Learn documentation.

Question 7. A resource group has a CanNotDelete lock. Which action is blocked for a Contributor, assuming no other restrictions?

The answer is D. The lock prevents management-plane deletion. Descendant resources inherit it. Updates can still be allowed. A ReadOnly lock imposes broader restrictions. Contributor does not override the lock.

Read more: Microsoft Learn documentation.

Question 8. Security wants policy violations reported without blocking deployments. Which effect fits?

The answer is B. Audit records noncompliance. It allows the request to continue. Deny blocks matching requests. Modify can change properties. DeployIfNotExists can deploy missing related configuration.

Read more: Microsoft Learn documentation.

Question 9. Finance wants the CostCenter field populated in supported usage records like the example shown. Resource tags must stay as they are. Which feature fits?

The answer is A. Cost Management can apply supported parent tags to usage records. This affects billing data. It does not rewrite resource tags. Azure Policy modify would target resource configuration. Confirm that your billing scope supports tag inheritance.

Read more: Microsoft Learn documentation.

Question 10. A resource moves to another resource group. A pipeline stores its old full ARM ID. What must you update?

The answer is D. The ARM ID includes the group path. The move changes that path. Calls using the old ID can fail. The move does not change the resource region. Inventory external references before moving resources.

Read more: Microsoft Learn documentation.

Question 11. Finance wants email when projected monthly spending reaches 100% of budget even if actual spend is lower. Which threshold fits?

The answer is A. Forecasted cost evaluates projected spending. Actual-cost thresholds evaluate recorded spending. A forecast alert can warn earlier. It does not stop resources. Choose recipients and a budget scope that match the requirement.

Read more: Microsoft Learn documentation.

Question 12. Apply a policy to the app subscriptions and their future siblings, without including shared networking. Where should you assign it?

The answer is B. MG-Apps is the common parent of both app subscriptions. Assignments can apply to descendants. New subscriptions placed there inherit the scope. Sub-Web does not contain its siblings. Tenant root would also cover shared networking.

Read more: Microsoft Learn documentation.

Question 13. Choose the least geographically redundant option that synchronously replicates across availability zones. No secondary region is required.

The answer is A. ZRS replicates across zones in the primary region. LRS uses a single physical location. GRS adds a secondary region but uses LRS in the primary. GZRS adds a secondary region beyond this requirement. Redundancy does not replace data protection.

Read more: Microsoft Learn documentation.

Question 14. Which storage redundancy option meets the regional requirements shown?

The answer is B. RA-GRS exposes a secondary read endpoint. GRS does not expose it for normal reads. ZRS keeps copies in the primary region. Secondary replication is asynchronous. Applications should account for stale reads.

Read more: Microsoft Learn documentation.

Question 15. An archived blob must become readable online. What should you do?

The answer is C. Archive is offline. Rehydration makes content available in an online tier. Permissions do not change the tier. The process is asynchronous. Check charges and recovery time before starting.

Read more: Microsoft Learn documentation.

Question 16. Shared Key is disabled for the account shown. Which access methods can still work with valid permissions and networking? Select 2 answers.

The answer is A and B. OAuth uses Entra authorization. A user delegation SAS uses an Entra-authorized delegation key. Account SAS depends on Shared Key. Service SAS also depends on Shared Key. Review clients before disabling account-key access.

Read more: Microsoft Learn documentation.

Question 17. Which sequence rotates key1 without interrupting the applications shown?

The answer is C. Switching the clients first preserves a working credential. Verify both applications on key2. Regeneration invalidates the previous key1 value. Rotating both keys together can remove the fallback. Check any SAS tokens signed with key1.

Read more: Microsoft Learn documentation.

Question 18. Versioning is enabled. An application overwrites a blob. How can you make yesterday’s content current?

The answer is C. Versioning preserves previous states. Copy the desired prior version back as current content. The operation requires data permission. Changing tiers does not change the content. Retention rules must preserve versions long enough.

Read more: Microsoft Learn documentation.

Question 19. How should you restore invoices.csv without rolling back other files?

The answer is C. The snapshot is a point-in-time view. It contains the file before deletion. Copying that file leaves other files in place. Share soft delete covers deletion of the whole share. Verify the snapshot timestamp before recovery.

Read more: Microsoft Learn documentation.

Question 20. A branch needs to free local storage while retaining the Azure File Sync namespace. Which feature fits?

The answer is D. Cloud tiering releases space used by colder file content. The namespace stays visible. Opening a tiered file can recall its contents. Soft delete serves a recovery purpose. Plan for recall latency and network use.

Read more: Microsoft Learn documentation.

Question 21. Anonymous access is allowed and the container access level is Blob. An unauthenticated caller knows a blob URL. What can they do?

The answer is A. Blob-level access allows anonymous reads by URL. It does not allow enumeration. Container-level access also allows listing. Neither setting allows anonymous writes. Enable public access only for intentionally public data.

Read more: Microsoft Learn documentation.

Question 22. Which Azure CLI command implements the review gate shown for a resource-group Bicep deployment?

The answer is A. What-if predicts resource changes without applying them. It can show proposed creation and modification. Export captures existing configuration. Build compiles the source to ARM JSON. Preview results can include changes that cannot be fully resolved in advance.

Read more: Microsoft Learn documentation.

Question 23. An incremental ARM deployment deletes an existing storage account solely because the account is absent from the template.

The answer is False. Incremental mode leaves omitted resources in place. It still applies configuration to declared resources. Omitting a property is different from omitting a resource. Review changes before deployment. Use an explicit lifecycle operation to remove a resource.

Read more: Microsoft Learn documentation.

Question 24. Which Bicep declaration exposes the deployed VNet’s ID to the pipeline?

The answer is D. An output publishes a value in deployment results. The id property supplies the ARM ID. A variable remains internal. A parameter supplies input. Target scope does not expose a result.

Read more: Microsoft Learn documentation.

Question 25. Where should VM-C run so 2 VMs remain available after any single zone failure?

The answer is B. VM-A and VM-B already run in different zones. Zone 3 keeps all 3 separated. Adding VM-C to Zone 1 or 2 would concentrate 2 VMs. An availability set does not guarantee Zone 3 placement. The application and its dependencies must also tolerate the outage.

Read more: Microsoft Learn documentation.

Question 26. A Linux VM needs a new empty persistent data disk mounted as a filesystem. What is required? Select 2 answers.

The answer is A and B. Attachment presents the disk to Linux. The guest needs a filesystem and a mount. A temporary disk is unsuitable for persistent data. Growing the OS disk does not create a separate data disk. Configure a persistent mount if it must survive a reboot.

Read more: Microsoft Learn documentation.

Question 27. A guest shutdown leaves a VM in Stopped (allocated) state. How do you stop compute billing and retain managed disks?

The answer is A. Deallocation releases compute allocation. Guest shutdown alone can leave the VM allocated. Managed disks remain. They can still incur storage charges. Check the platform power state after the operation.

Read more: Microsoft Learn documentation.

Question 28. You updated a VM scale set model with Manual upgrade policy. How do existing instances adopt it?

The answer is D. Manual mode does not automatically upgrade existing instances. Select instances to update. New instances can already use the latest model. Renaming a load balancer does not change the model. Plan batches if the workload needs availability.

Read more: Microsoft Learn documentation.

Question 29. An Azure Container Instances job should retry a failed exit but stop after success. Which policy fits?

The answer is A. OnFailure retries an unsuccessful exit. A successful job remains stopped. Always would restart after success. Never does not retry. Make retries safe after partially completed work.

Read more: Microsoft Learn documentation.

Question 30. Which Container Apps configuration implements the rollout shown?

The answer is B. Multiple revision mode keeps both revisions active. Traffic weights direct a share to each revision. Replica counts do not define traffic percentages. Disabled ingress prevents incoming requests. Monitor failures before increasing the candidate’s share.

Read more: Microsoft Learn documentation.

Question 31. Which records map the hostname shown and verify domain ownership? Select 2 answers.

The answer is B and D. CNAME maps the subdomain. The asuid TXT record carries the verification ID. MX is for mail delivery. NS delegates DNS authority. Bind the custom hostname and configure TLS separately.

Read more: Microsoft Learn documentation.

Question 32. A custom App Service hostname resolves and serves HTTP. A valid certificate is available but has no TLS binding. What should you configure?

The answer is D. The hostname needs a certificate binding. DNS only directs clients to the service. Importing a certificate does not create the binding. Backups do not enable TLS. Test HTTPS on the custom name afterwards.

Read more: Microsoft Learn documentation.

Question 33. An App Service backup must be validated without overwriting production. Where should you restore it?

The answer is D. A separate target protects the live app from replacement. A restore can overwrite target content and configuration. Verify the target meets restore requirements. Review restored settings before connecting to production dependencies. DNS cannot receive an app restore.

Read more: Microsoft Learn documentation.

Question 34. The spoke must use the hub VPN gateway. Routing and security are otherwise ready. Which peering settings are required? Select 2 answers.

The answer is B and D. The hub owns and shares the gateway. The spoke opts into using the remote gateway. Reversing the flags does not meet the requirement. The spoke cannot use a remote gateway and have its own gateway. Verify resulting on-premises routes.

Read more: Microsoft Learn documentation.

Question 35. A VM is frequently deallocated but needs a retained stable public IP. Which configuration fits?

The answer is A. Static allocation reserves the address for the resource lifetime. VM deallocation does not release that resource. Implicit outbound addresses are unsuitable for a fixed identity. DNS does not reserve IP addresses. Retain the public IP resource.

Read more: Microsoft Learn documentation.

Question 36. Where can you see all routes actually associated with a VM interface?

The answer is B. Effective routes show the routes Azure associates with the interface. They include applicable system and configured routes. An individual route table does not show every source. Role assignments affect authorization. Inspect the prefix and next hop for your destination.

Read more: Microsoft Learn documentation.

Question 37. Which tool identifies the Azure security rule that allows or denies a specified TCP flow?

The answer is B. IP flow verify evaluates the specified flow. It reports whether the flow is allowed and identifies the rule. Next hop addresses routing. Boot diagnostics investigates startup. An allowed result does not validate the guest firewall or application.

Read more: Microsoft Learn documentation.

Question 38. Enabling a Microsoft.Storage service endpoint creates a private NIC and makes the storage hostname resolve to that NIC’s private IP.

The answer is False. A service endpoint extends subnet identity to the service. It does not create a private NIC. The hostname still uses the public service endpoint. A private endpoint supplies a private IP. Choose the feature based on the connectivity requirement.

Read more: Microsoft Learn documentation.

Question 39. A storage private endpoint connection is Pending. DNS and network settings are ready. What must happen next?

The answer is C. Pending connections require approval. Approval activates the requested private link. DNS alone cannot approve it. Tags do not change connection state. Verify status and name resolution separately.

Read more: Microsoft Learn documentation.

Question 40. An internal application needs load balancing across 2 private VMs. Which frontend fits?

The answer is B. An internal load balancer uses a private frontend. Its rule directs traffic to eligible backends. Health probes and security rules still matter. A public frontend provides a different access path. DNS can name but not replace the frontend.

Read more: Microsoft Learn documentation.

Question 41. Both VMs listen on the required ports, but only VM-A belongs to the pool used by the rule. How do you make VM-B eligible?

The answer is D. A rule uses its configured backend pool. VM-B must join that pool. It must also pass the health probe. Changing the frontend IP does not change membership. DNS does not register a backend.

Read more: Microsoft Learn documentation.

Question 42. Both load balancer backends are healthy, but new connections fail. Which change fixes the mismatch shown?

Client
HTTPS · TCP 443
Load balancer
Backend rule · TCP 443
Health probe
Probe · TCP 8080
Both backends pass
Probe result
VM-A and VM-BApplication listener · TCP 8443

The answer is C. The rule forwards application traffic to TCP 443. The listener expects TCP 8443. A successful probe on 8080 validates a different endpoint. Correct the backend port while preserving the intended frontend. Verify that security rules allow the corrected traffic path.

Read more: Microsoft Learn documentation.

Question 43. Both VNets use Azure-provided DNS. How do you make the private record resolve from VNet-B?

The answer is C. A VNet link exposes a private zone to that VNet. Peering alone does not extend zone visibility. Link VNet-B so its Azure-provided resolver can see the record. Publishing the record changes visibility. Removing the existing link would break VNet-A resolution.

Read more: Microsoft Learn documentation.

Question 44. Which source can identify who changed an NSG through the Azure control plane yesterday?

The answer is A. Activity Log records control-plane events. Administrative events can identify the operation and caller. Guest syslog does not record every ARM operation. Blob read logs cover data operations. Filter by resource and time.

Read more: Microsoft Learn documentation.

Question 45. Which alert detects average Percentage CPU above a threshold over 5 minutes?

The answer is C. A metric alert evaluates time-series data. Average applies the threshold to the mean over the window. Activity log alerts match events. Service Health reports service issues. Configure evaluation frequency and the response action.

Read more: Microsoft Learn documentation.

Question 46. You need 3 alert rules to share a notification destination managed centrally. What should you use?

The answer is D. Action groups hold reusable response configuration. Multiple rules can reference a shared group. Updating it changes the common destination. Ownership does not set recipients. Separate groups require repeated updates.

Read more: Microsoft Learn documentation.

Question 47. A VM backup must be validated as a separate running VM without changing the source. Which restore option fits?

The answer is A. Creating a new VM leaves the source intact. Replacing disks changes it. Use a target network that avoids production conflicts. Check the recovered application and its dependencies. Replication alone does not restore this recovery point.

Read more: Microsoft Learn documentation.

Question 48. A deleted VM backup item is still within the vault soft-delete retention period. What should you do?

The answer is C. Soft delete retains eligible backup data temporarily. Undeleting restores access to the retained item. Resume protection separately if ongoing backups are needed. An empty vault has no prior recovery points. Recovery through soft delete ends at expiry.

Read more: Microsoft Learn documentation.

Question 49. Existing built-in backup failure alerts must notify the on-call team. What should you configure? Select 2 answers.

The answer is A and D. The built-in alert already identifies backup failures. An action group defines the recipients. An alert processing rule applies it to matching alerts. CPU alerts detect a different condition. Removing the policy would reduce backup protection.

Read more: Microsoft Learn documentation.

Question 50. What is true about Tuesday’s scheduled backup at the restore request time shown?

The answer is A. The scheduled time is still in the future. A date change does not start an early run. Monday’s recovery point may meet the requirement. Retention does not create a missing backup. Verify the point timestamp and job history before restoring.

Read more: Microsoft Learn documentation.