Microsoft

AZ-104 — Azure Administrator practice exam

Hands-on Azure administration: Entra users and groups, role-based access and governance, storage, virtual machines, containers and App Service, virtual networking, and monitoring, backup and recovery. The real exam lasts 100 minutes, may include interactive labs, and needs 700/1000 to pass. Microsoft doesn't publish a fixed question count, so our mock uses 50 questions in 100 minutes.

Questions
50
Time limit
100 min
Pass target
70%

Exam topics

  • 1.0 Manage Azure identities and governance24%
  • 2.0 Implement and manage storage19%
  • 3.0 Deploy and manage Azure compute resources24%
  • 4.0 Implement and manage virtual networking19%
  • 5.0 Monitor and maintain Azure resources14%

Free AZ-104 sample questions

Try these 5 questions from the practice bank, then show the answer to see the explanation.

  1. 1. The service desk spends hours each week resetting forgotten passwords for 400 sales staff. The company wants those users to reset their own passwords securely, after proving their identity with two methods such as the Authenticator app and a mobile phone. What should the administrator configure in Microsoft Entra ID?

    • A.A password expiration policy of 30 days for the sales group
    • B.A Conditional Access policy requiring MFA for the sales group
    • C.Privileged Identity Management for the sales group
    • D.Self-service password reset (SSPR) scoped to the sales group
    Show answer

    Correct answer: D. Self-service password reset (SSPR) scoped to the sales group

    Self-service password reset (SSPR) lets users reset or unlock their own accounts after verifying their identity with the authentication methods you require. You can require one or two methods, for example the Authenticator app, a mobile phone, email or security questions.

    SSPR can be enabled for all users or a selected group, which suits a phased rollout. In hybrid environments, password writeback (through Entra Connect or Cloud Sync) sends the new password back to on-premises Active Directory.

    • Conditional Access controls sign-in conditions. It doesn't let users reset passwords.
    • PIM manages just-in-time privileged roles.
    • Password expiry would create more resets, not fewer.
  2. 2. An external partner's application needs to upload files to one Blob Storage container for the next 24 hours. The company doesn't want to share storage account keys and wants the token secured with Microsoft Entra credentials rather than the account key. What should be issued?

    • A.Anonymous public write access on the container
    • B.A user delegation SAS for the container, expiring in 24 hours
    • C.An account SAS signed with key1, expiring in 24 hours
    • D.The storage account's key2, rotated after 24 hours
    Show answer

    Correct answer: B. A user delegation SAS for the container, expiring in 24 hours

    A shared access signature (SAS) grants limited, time-bound access to storage resources. There are three kinds:

    SAS typeSigned withScope
    User delegation SASEntra ID credentials (a user delegation key)Blob Storage only
    Service SASAccount keyOne service (blob, file, queue, table)
    Account SASAccount keyOne or more services

    Microsoft recommends a user delegation SAS where possible. It's tied to Entra ID, so no account key is exposed, and access can be governed and audited through Entra ID.

    Sharing a key gives full control of the whole account. Blob anonymous access only allows reading, never writing.

  3. 3. An ARM template deploys the same web app to dev, test and production. The app's SKU must be B1 in dev and P1v3 in production, chosen by whoever runs the deployment. Which template section should define the SKU?

    • A.outputs, because the value is returned once deployment ends
    • B.variables, because the value is calculated inside the template
    • C.resources, by hard-coding the SKU into each resource block
    • D.parameters, with an allowedValues list of the permitted SKUs
    Show answer

    Correct answer: D. parameters, with an allowedValues list of the permitted SKUs

    In an ARM template (and in Bicep):

    SectionPurpose
    parametersValues supplied at deployment time, which can differ per environment. Can have defaults and allowedValues
    variablesValues calculated inside the template, for reuse
    resourcesWhat to deploy
    outputsValues returned after deployment, such as a URL

    A parameter like "appSku": { "type": "string", "allowedValues": ["B1", "P1v3"] } lets each environment pass its own value, often from a parameter file such as prod.parameters.json.

  4. 4. An NSG on a VM's subnet has these custom inbound rules. Priority 100: deny TCP 3389 from Internet. Priority 200: allow TCP 3389 from Internet. Priority 300: allow TCP 443 from Internet. An RDP connection (TCP 3389) arrives from the internet. What happens?

    • A.It's denied, because rule 100 has the lower number
    • B.It's denied, but only by the default DenyAllInbound rule
    • C.It's allowed, because allow rules always beat deny rules
    • D.It's allowed, because rule 200 explicitly permits RDP
    Show answer

    Correct answer: A. It's denied, because rule 100 has the lower number

    NSG rules are processed in priority order, lowest number first, and processing stops at the first match.

    PriorityRuleMatches RDP from the internet?
    100Deny 3389 from InternetYes, so it's denied and processing stops
    200Allow 3389 from Internet(never reached)
    300Allow 443(doesn't match)
    65500DenyAllInbound (default)(never reached)

    When an NSG is on both the subnet and the NIC, inbound traffic must be allowed by both. The portal's Effective security rules view, and Network Watcher's IP flow verify, show which rule wins.

  5. 5. VM alerts notify the on-call team by SMS through an action group. During a planned maintenance window every Saturday from 01:00 to 03:00, the team doesn't want to be notified, but the alert rules should keep evaluating. What should be configured?

    • A.Delete the alert rules before each window, then recreate them
    • B.An alert processing rule that suppresses notifications then
    • C.A ReadOnly lock on the action group during the window
    • D.A budget alert that pauses notifications every weekend
    Show answer

    Correct answer: B. An alert processing rule that suppresses notifications then

    Alert processing rules act on alerts after they fire. They can:

    • Suppress action groups (notifications), for example on a recurring schedule such as Saturdays 01:00–03:00.
    • Add action groups to alerts, centrally.

    The alert rules keep evaluating and alerts are still recorded. Only notifications are held back.

    Azure Monitor alerting has three building blocks:

    • Alert rule: what to watch, and the condition.
    • Action group: who to notify, and what to run (email, SMS, webhook, Logic App, runbook).
    • Alert processing rule: modifies or suppresses actions, at scale.

Want the other 45 questions? Try AZ-104 free for 7 days

Full-length timed mock exams in exam or practice mode, with a hint tab, an explanation for every answer and progress tracking. No credit card needed.