AZ-104 Practice Test 4: 50 Azure Administrator Questions

Microsoft Azure Administrator

AZ-104 Practice Test 4: 50 Azure Administrator Questions

Last updated:

Practise the decisions an Azure administrator makes when delegating access, configuring storage, deploying workloads, diagnosing network paths, and choosing a recovery point. 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 company wants to let a project lead manage the membership of an existing assigned Entra security group without granting a tenant-wide administrative role. Which assignment best meets this requirement?

The answer is B. Group ownership delegates management of the specific group. An owner can manage membership for a supported assigned group. Groups Administrator has a broader directory scope. Azure Reader is unrelated to Entra group membership. Confirm the group type supports the required ownership operations.

Read more: Microsoft Learn documentation.

Question 2. The diagram shows an external guest with an Azure role assignment. You must prevent new sign-ins while retaining the directory object for review. Which change fits?

The answer is A. Blocking sign-in preserves the guest object while preventing new authentication. An Azure role change affects access at that resource scope. It does not disable the guest’s account. Existing sessions can require separate revocation. Preserve the object if its history and assignments are needed for the review.

Read more: Microsoft Learn documentation.

Question 3. A user is to receive a product license from a group, but a conflicting service plan is already assigned to the user directly. Which step addresses the reported conflict?

The answer is C. Conflicting service plans can prevent group licensing from applying. Inspect the affected user’s license details to identify the conflict. Adjust the direct or group assignment according to the intended entitlement. Adding unrelated capacity does not resolve incompatible plans. Verify the resulting service access after reprocessing.

Read more: Microsoft Learn documentation.

Question 4. The diagram shows the SSPR flow. Users can reset their cloud password, but their synchronized on-premises password must also be updated. Which capability is missing?

The answer is C. Password writeback sends supported cloud password changes to the on-premises directory. Enabling SSPR alone does not configure that integration. The hybrid identity components must support and be configured for writeback. Azure roles and DNS registration do not update passwords. Test with an eligible synchronized account before rollout.

Read more: Microsoft Learn documentation.

Question 5. You are inviting a supplier as an Entra guest and must ensure they can see the intended application after redemption. The app requires user assignment. Which actions meet the requirement? Select 2 answers.

The answer is A and D. The invitation creates the guest identity used for collaboration. An application assignment is needed when the enterprise app requires assignment. Subscription Owner does not grant access to that enterprise application. Opening access to all users exceeds the requirement. Verify sign-in after the guest redeems the invitation.

Read more: Microsoft Learn documentation.

Question 6. The diagram shows a role assignment on an individual resource. You must remove the engineer’s access to that resource. The engineer has no other grants. What should you remove?

The answer is B. The assignment grants the engineer access at the specified scope. Removing it removes that grant. The reusable role definition can remain available to other users. Deleting the identity or subscription would be excessive. Confirm there are no other direct or inherited assignments before closing the request.

Read more: Microsoft Learn documentation.

Question 7. You want an automation identity to read management metadata and write blobs in a single account using Microsoft Entra authorization. Which role combination meets both requirements? Select 2 answers.

The answer is A and D. Reader grants management-plane visibility into the account. Storage Blob Data Contributor grants the required blob data writes within the target container. A blob data reader cannot write. A role on an unrelated resource group does not cover this account. Use the narrowest scopes that satisfy both operations.

Read more: Microsoft Learn documentation.

Question 8. An existing resource group is moved under a different governance arrangement by moving its subscription to another management group. Which policy assignments should you review first to understand new inherited requirements?

The answer is C. Policy inheritance follows the management group hierarchy. A subscription can receive assignments from its new parent and ancestors. Existing local assignments also remain relevant. Tags and display names do not determine the hierarchy. Review the effective assignments before attempting changes to governed resources.

Read more: Microsoft Learn documentation.

Question 9. The diagram shows a management group with a policy assignment and a temporary approved exception for RG-Pilot. Compliance reporting must record that the group is exempt. Which feature should you use?

The answer is B. A policy exemption records an exception against a specific policy assignment. It can be scoped to the affected resource group. Compliance can represent the exemption rather than merely excluding the scope. A resource lock and Reader role do not change policy compliance. Set an expiration date if the approval is temporary.

Read more: Microsoft Learn documentation.

Question 10. A Cost Management report must compare spending by resource group for the current billing period. Which view should you configure?

The answer is D. Cost Analysis can group costs by supported resource dimensions. Resource group is the grouping needed here. The time range should match the billing period. CPU charts do not report billed costs. Some charges may not have a resource group, so check unassigned amounts separately.

Read more: Microsoft Learn documentation.

Question 11. The diagram shows multiple teams deploying resources at different scopes. You must apply a default CostCenter tag to eligible resources when a request omits it. The organization wants existing tag values preserved. Which policy approach fits?

The answer is B. The modify effect can add a supported tag during request evaluation. Checking that the tag is absent protects existing values. Audit only reports the condition. Unconditional replacement would overwrite team tags. Existing resources need an appropriate remediation workflow if they should receive the same tag.

Read more: Microsoft Learn documentation.

Question 12. A team wants to prevent operators from deleting a storage account through Azure Resource Manager while allowing normal blob uploads by authorized apps. Which statement about a CanNotDelete lock is correct?

The answer is B. The lock applies to management-plane operations. Deleting the storage account through Resource Manager can be blocked. Data-plane authorization still determines whether an app may upload blobs. The lock does not grant data access. Apply separate data protection controls if individual blobs also need deletion protection.

Read more: Microsoft Learn documentation.

Question 13. The diagram shows a storage account with a private endpoint for Blob Storage. An operator also needs authorized access from a workstation that has no private route to the VNet. Public network access must remain disabled. Which change meets the requirement?

The answer is D. A private endpoint requires a reachable private network path. The workstation also needs DNS that resolves the service name to the private endpoint. A public IP allow rule does not open a route while public access is disabled. A data role is necessary only as applicable and cannot supply connectivity. Test both resolution and data authorization from the workstation.

Read more: Microsoft Learn documentation.

Question 14. A scheduled export writes block blobs into a container. The client must be able to read a specific blob but should not be able to enumerate the container or other blobs. Which SAS configuration best fits?

The answer is A. A blob-scoped SAS restricts the signed resource to the intended blob. Grant read only for the requested access. Container list permission would expose more information. An account SAS or storage key can be much broader. Set a short expiry and require HTTPS.

Read more: Microsoft Learn documentation.

Question 15. The workload in the diagram requires a supported SSD-backed Azure Files share for low-latency SMB I/O. Which storage option should you choose?

The answer is D. Premium Azure Files uses SSD-backed storage. It meets the stated storage media requirement for the SMB workload. Standard HDD-backed shares use a different performance profile. Archive applies to blobs and cannot serve an online SMB share. Check supported provisioning models and measure the required IOPS and throughput.

Read more: Microsoft Learn documentation.

Question 16. A storage account uses Microsoft-managed encryption keys. An auditor requires a customer-managed key for a particular subset of blob data, while other blobs keep the default account encryption configuration. Which feature should you evaluate?

The answer is C. An encryption scope lets a workload use a particular encryption configuration for supported blob data. It can be selected for blobs or set as a container default. Public access changes authorization rather than encryption. A lifecycle filter targets data management actions. Verify key access and the container’s scope override settings.

Read more: Microsoft Learn documentation.

Question 17. The diagram shows 2 workloads sharing a storage account. A lifecycle rule should move only current block blobs under exports/monthly/ to Cool after 45 days since modification. What should the rule combine? Select 2 answers.

The answer is A and C. The prefix filter limits the action to the intended blob names. The filter starts with the container name and includes the path prefix. The baseBlob action applies to current blobs that satisfy the age condition. Snapshot deletion addresses a different object type. Check the prefix precisely before enabling the policy.

Read more: Microsoft Learn documentation.

Question 18. You need to browse containers, upload a few files, and inspect blob metadata through a graphical tool on an administrator workstation. Which tool fits?

The answer is A. Storage Explorer provides a graphical interface for supported storage resources. It can browse and manage blobs when the user is authorized. Network Watcher is for network diagnostics. Service Health reports platform incidents. Use identity-based authorization where supported instead of sharing an account key.

Read more: Microsoft Learn documentation.

Question 19. The diagram shows data that must be sent to Azure from a remote site with a slow uplink. The dataset is too large to copy within the migration window over the existing network. Which service should you consider?

The answer is C. Data Box supports offline transfer using a Microsoft-provided device. It can fit migrations constrained by network capacity. The other listed services do not move large datasets offline. Plan time for device delivery, local copy, and upload. Validate region availability and the destination storage configuration.

Read more: Microsoft Learn documentation.

Question 20. A blob workload needs immediate online reads for frequently accessed data with comparatively lower read-access charges than colder tiers. Which tier is designed for this pattern?

The answer is D. Hot is designed for frequently accessed blobs. It is an online tier. Cooler tiers trade lower storage cost for higher access costs and other conditions. Archive is offline until data is rehydrated. Compare total cost using the workload’s storage and access profile.

Read more: Microsoft Learn documentation.

Question 21. A storage account is already configured for GRS. The primary endpoint is unavailable, and the incident team wants to assess how much recent data could be lost before initiating a supported account failover. Which value should they check?

The answer is A. Last Sync Time indicates a point through which writes are known to have reached the secondary region. Geo-replication is asynchronous. Writes after that time might not be available after failover. The account name and endpoint count do not show replication lag. Use the timestamp in the recovery decision rather than assuming zero loss.

Read more: Microsoft Learn documentation.

Question 22. The diagram shows a virtual network and a VM NIC declared in the same ARM template. The NIC needs the subnet ID. What establishes deployment order when an explicit dependency is required for the reference pattern used?

The answer is B. A dependsOn entry makes the dependent resource wait for the referenced resource. Here the NIC needs the VNet subnet to exist first. Reversing the dependency expresses the wrong order. Outputs do not schedule resource creation. Prefer supported implicit dependencies when the reference already establishes order.

Read more: Microsoft Learn documentation.

Question 23. A Bicep deployment accepts an environment parameter. Only dev, test, and prod should be accepted. Which construct should you use?

The answer is C. The allowed decorator constrains parameter values. An invalid environment value can be rejected during parameter validation. An output does not validate input. A tag does not restrict template parameters. Choose a default only if it is safe for the deployment workflow.

Read more: Microsoft Learn documentation.

Question 24. A Bicep file declares a password parameter. The deployment input should be treated as sensitive in deployment history. Which decorator should you use?

The answer is D. The secure decorator marks supported parameter types as sensitive. It prevents the parameter value from being stored in ordinary deployment history and logging for that parameter. A description only documents the input. Allowed values and length constraints validate content but do not make it sensitive. Avoid exposing the secret in outputs or resource properties that are logged.

Read more: Microsoft Learn documentation.

Question 25. The diagram shows a VM whose data disks contain persistent application data and whose temporary disk holds cached files. Which location should retain files that must survive host movement?

The answer is C. A managed data disk provides persistent storage independent of the VM’s temporary host disk. Temporary disk contents can be lost during platform events. Memory caches are also not durable. Place required application files on persistent storage. Backup or replication is still needed for recovery from other failure modes.

Read more: Microsoft Learn documentation.

Question 26. A Windows VM is healthy but its guest network settings were changed and remote access is unavailable. You need to execute a corrective PowerShell script through the Azure platform. The VM agent is running. Which feature should you use?

The answer is D. Run Command uses the VM agent to run supported scripts in the guest. It can help when direct remote connectivity is unavailable. DNS delegation does not execute a script. Policy exemptions and Storage Explorer are unrelated to guest execution. Review and test the script because it can run with elevated guest permissions.

Read more: Microsoft Learn documentation.

Question 27. An availability set has multiple fault domains and update domains. Which statement is correct?

The answer is B. Fault domains represent groups that can share underlying hardware dependencies. Update domains group VMs for coordinated maintenance behavior. Neither is equivalent to a region. An availability set is different from a zonal deployment. Application-level redundancy is still required to tolerate an instance outage.

Read more: Microsoft Learn documentation.

Question 28. The diagram shows VM instances behind a load balancer in a scale set. You need the scale set to automatically replace instances that remain unhealthy. Which feature should you configure?

The answer is A. Automatic repairs can respond to an unhealthy instance based on a supported health source. Configure the appropriate health signal and repair behavior. DNS records and budget alerts do not repair instances. A lock can interfere with management actions rather than repairing them. Confirm repair grace periods and workload readiness before rollout.

Read more: Microsoft Learn documentation.

Question 29. An ACR registry uses RBAC Registry Permissions mode. A build pipeline must push images, and the runtime must only pull them. Which assignments meet the requirements? Select 2 answers.

The answer is A and B. AcrPush supports image pushes in the specified registry permission mode. AcrPull grants the runtime pull access without push rights. Grant roles to the identities that actually use the registry. Owner or AcrPush would exceed the runtime need. Verify the registry permission mode before applying role names.

Read more: Microsoft Learn documentation.

Question 30. A Container Apps deployment must expose an HTTP endpoint only to workloads inside its Container Apps environment. Which ingress setting meets the requirement?

The answer is A. Internal ingress limits access to the Container Apps environment. External ingress exposes a different access path. Disabling ingress removes the requested HTTP route. A DNS alias cannot create an ingress listener. Confirm the calling workloads are in the permitted environment.

Read more: Microsoft Learn documentation.

Question 31. The diagram shows a web app that remains reachable but requires HTTPS for client requests. Its custom hostname already has a valid certificate binding. Which App Service setting redirects HTTP requests to HTTPS?

The answer is A. HTTPS Only redirects requests from HTTP to HTTPS. The existing certificate binding supports the custom hostname. Always On helps keep the app loaded. A slot setting controls swap behavior rather than client redirects. Test the redirect and certificate on the public hostname.

Read more: Microsoft Learn documentation.

Question 32. A web app becomes idle between requests, causing a cold start on a supported App Service plan. Which setting keeps the app loaded?

The answer is C. Always On keeps the app loaded by issuing periodic requests. It can reduce delays caused by the app being unloaded during idle periods. HTTPS Only controls transport. DNS verification does not keep a worker active. Confirm plan support and application startup behavior.

Read more: Microsoft Learn documentation.

Question 33. Statement: A normal App Service slot swap moves the VNet integration setting from the source slot to the target slot.

The answer is False. Virtual network integration is among the settings that are not swapped. The swap can move application content while networking configuration stays with the slot. App settings and connection strings follow their own swap rules. Verify the target slot’s dependencies before swapping. Do not assume network changes move with code.

Read more: Microsoft Learn documentation.

Question 34. The diagram shows a hub NVA and a spoke subnet. The spoke’s internet-bound traffic must go through the NVA. Which route should be added to the route table associated with the spoke subnet?

The answer is D. The default prefix matches destinations without a more-specific route. Virtual appliance sends matching traffic toward the specified NVA private IP. An Internet next hop bypasses the intended appliance. The route must apply to the originating subnet. Verify peering, forwarding, and return paths separately.

Read more: Microsoft Learn documentation.

Question 35. A subnet needs 10 private addresses for resources. Azure reserves addresses in each subnet. Which prefix length is the smallest listed subnet that can satisfy the requirement?

The answer is B. A /28 contains 16 addresses. Azure reserves 5 addresses, leaving 11 usable. A /29 has only 8 total and cannot meet the requirement. The other prefixes are smaller. Leave more capacity if a platform service or future deployment requires additional addresses.

Read more: Microsoft Learn documentation.

Question 36. You associate an NSG with a subnet and want to allow inbound SSH only from a corporate CIDR, followed by denial of other SSH traffic. Which rule ordering meets the requirement?

The answer is D. Azure evaluates NSG rules in ascending numerical priority order. The specific allow must be evaluated before the broader deny. Duplicate priorities for the same direction are not supported. Default NSG rules do not allow internet SSH by default. Restrict the source prefix to the intended management network.

Read more: Microsoft Learn documentation.

Question 37. The diagram shows a public load balancer receiving HTTPS traffic. You need a health check that validates an application endpoint rather than only whether a TCP port accepts connections. Which probe should you configure?

The answer is C. An HTTP or HTTPS probe can send an HTTP request to a configured path. The application can signal health through the expected response. A TCP probe checks transport connectivity instead of the application response. DNS TTL does not evaluate backend health. Keep the health endpoint lightweight and reachable from the probe source.

Read more: Microsoft Learn documentation.

Question 38. You need a public Azure DNS record to follow a supported Azure public IP resource without hardcoding its address. Which record feature should you use?

The answer is B. An alias record can target a supported Azure public IP resource. This avoids storing its literal IP in a normal static record. TXT records do not answer an A query. PTR records serve reverse lookups. Confirm that the selected record type and resource target are compatible.

Read more: Microsoft Learn documentation.

Question 39. Private DNS queries from an on-premises network need to resolve Azure private zones without deploying a DNS forwarder VM. A private network path to Azure is already available. Which Azure DNS Private Resolver feature receives those queries?

The answer is A. An inbound endpoint provides a private address for DNS queries entering Azure. The resolver must have access to the intended private zones. Outbound endpoints serve a different forwarding direction. A TXT record cannot receive DNS queries. Configure on-premises conditional forwarding and verify connectivity to the inbound endpoint.

Read more: Microsoft Learn documentation.

Question 40. A storage service endpoint is enabled on a VNet subnet. Statement: Peering another VNet with the first automatically authorizes every subnet in the second VNet in the storage firewall.

The answer is False. A storage firewall virtual network rule applies to the configured subnet. Peering does not extend that authorization to every subnet in the peer. Each required source network must be configured appropriately. Identity authorization remains separate. Verify the actual source subnet when troubleshooting access.

Read more: Microsoft Learn documentation.

Question 41. The diagram shows an Azure Bastion subnet and a target VM subnet. Administrators can sign in to Bastion, but connections to the Linux VM time out. The VM listens on SSH. Which change addresses the shown block?

The answer is B. Bastion reaches the target using its private address. The target-side security rules must permit the required SSH traffic from the Bastion subnet. Opening internet SSH is not necessary. A public IP does not fix the private path. Check both NSG scopes and the guest firewall if the timeout persists.

Read more: Microsoft Learn documentation.

Question 42. An internal Standard Load Balancer has a frontend address from the VNet. A client in the same VNet uses a valid route and the backend health probe passes, but the backend NSG denies the application port. What should you fix?

The answer is A. The health probe and application data path use separate traffic flows. A healthy probe does not allow application traffic through an NSG. Permit the intended client sources and application port. Increasing TTL or disk size does not fix a security rule. Retest new connections after the rule is applied.

Read more: Microsoft Learn documentation.

Question 43. A subnet has an active user-defined route and a BGP route for the same 10.50.0.0/16 prefix. They point to different next hops. Assume neither route is a service endpoint route. Which next hop is used for a destination in that prefix?

The answer is B. The 2 routes have the same prefix length. For this tie, Azure prefers the user-defined route over the BGP route. A less-specific default route does not win. Equal prefix length does not automatically load balance between different route sources. Check the effective routes on the originating interface.

Read more: Microsoft Learn documentation.

Question 44. The diagram shows Azure resource logs arriving at a Log Analytics workspace. You need to retain one specific table for longer without extending the retention of every table. Where should you configure retention?

The answer is D. Log Analytics supports retention settings at table level. This can extend retention for the target table without changing all workspace defaults. The available options depend on the table plan. Resource group and DNS settings do not set log retention. Evaluate retention costs and query needs before increasing the period.

Read more: Microsoft Learn documentation.

Question 45. A VM metric follows a repeating daily pattern. A fixed threshold causes frequent false alerts during normal busy periods. Which Azure Monitor metric alert option should the team consider?

The answer is C. Dynamic thresholds learn historical metric behavior and can adapt to recurring patterns. This can help detect unusual deviations without a single fixed boundary. It requires suitable history and a supported metric. Resource Health alerts report a different kind of condition. Tune sensitivity and validate the alerts against known incidents.

Read more: Microsoft Learn documentation.

Question 46. A VM operator wants a centralized view of VM performance and dependencies where supported. Which Azure Monitor capability should they evaluate?

The answer is C. VM insights provides views for supported VM performance data. Dependency mapping requires the applicable configuration and supporting components. DNS analytics does not provide guest performance views. Policy remediation addresses compliance actions. Check agent and data collection requirements for the features you need.

Read more: Microsoft Learn documentation.

Question 47. An alert rule must keep creating alerts, but during a scheduled maintenance window they should notify a maintenance team in addition to the rule’s normal action group. Which Azure Monitor feature can add an action group to matching alerts on a schedule?

The answer is A. An alert processing rule can add action groups to matching fired alerts. A schedule limits when the rule applies. The underlying alert rule can continue to create alerts. Disabling it would prevent the required evaluation. Choose filters and scope to avoid sending unrelated alerts to the maintenance team.

Read more: Microsoft Learn documentation.

Question 48. The diagram shows 2 recovery points for a protected Azure VM. The incident began at 10:00 UTC. You need the most recent known clean backup and must keep the source VM intact during validation. Which actions fit? Select 2 answers.

The answer is A and D. The 09:00 UTC point predates the incident and is the latest point shown to be clean. The 11:00 UTC point already contains the bad change. A separate restore target protects the source from being overwritten during validation. Replacing its disks would alter the original. Keep the validation target isolated where necessary.

Read more: Microsoft Learn documentation.

Question 49. You need to apply a consistent daily schedule and retention period to several VMs protected by the same Recovery Services vault. Which resource defines those settings?

The answer is D. A backup policy defines schedule and retention for supported backups. Multiple protected VMs can use a suitable policy. The vault provides the management boundary but its name does not define those settings. Network peering and SAS policies do not schedule Azure VM backup. Check workload and policy compatibility before assigning it.

Read more: Microsoft Learn documentation.

Question 50. The diagram shows recovery in the secondary region after failover and commit. The workload is now active there. What should the team configure before it can later fail back using Site Recovery?

The answer is A. Reprotection configures replication from the current active site toward the original site in supported workflows. Commit finalizes the selected failover point but does not establish reverse protection. A separate test failover does not create the required replication. Deleting the setup would remove the recovery configuration. Verify replication health before planning failback.

Read more: Microsoft Learn documentation.