Microsoft Azure & FabricLive · 107 questions · 16 notes

AZ-104: Microsoft Azure Administrator

Free practice exam, study notes with architecture diagrams and the official blueprint for Microsoft Azure Administrator.

Passing score
700 / 1000
Domains
5
Exam code
AZ-104

Official AZ-104 exam blueprint

Domains and weights from Microsoft Azure & Fabric's exam guide.

DomainWeight
Manage Azure Identities and Governance20–25%
Implement and Manage Storage15–20%
Deploy and Manage Azure Compute Resources20–25%
Implement and Manage Virtual Networking15–20%
Monitor and Maintain Azure Resources10–15%

Free AZ-104 sample questions

The first questions of the free diagnostic. Pick your answer, then check it. Why every option is right or wrong, and the What-If twist, open in the workspace.

  1. Question 1 · Automate deployment of resources by using ARM templates or Bicep files

    The resource group rg-app is in Central India, while the pipeline's Azure CLI session defaults to West US. Data residency requires every resource in rg-app to stay in the resource group's region without hard-coding a region. The pipeline runs az deployment group create for rg-app with this main.bicep and passes no parameters:

    Bicep
    param location string = resourceGroup().location
    
    resource sa 'Microsoft.Storage/storageAccounts@2023-01-01' = {
      name: 'stcontoso001'
      location: location
      sku: { name: 'Standard_LRS' }
      kind: 'StorageV2'
    }

    What value does location take for stcontoso001?

    1. ACentral India, the region of the rg-app resource group
    2. BThe subscription's default region
    3. CWest US, the region of the Azure CLI session
    4. DWest US, because a value passed on the command line overrides the default
    Check the answer

    Answer: A. resourceGroup().location returns the region of the resource group being deployed to, a common default for a location parameter.

    Official docs: Microsoft Learn: Scope functions for Bicep
    Unlock Full 4-Option Autopsy & What-If Twist in Workspace
  2. Question 2 · Manage access to Azure resources

    On-call staff must only recover hung production VMs and nothing more: no resizing, no stopping billing and no access outside rg-prod. Operations created this custom role and assigned it to User1 at the rg-prod resource group scope:

    JSON
    {
      "Name": "VM Operator",
      "Actions": [
        "Microsoft.Compute/virtualMachines/read",
        "Microsoft.Compute/virtualMachines/start/action",
        "Microsoft.Compute/virtualMachines/restart/action"
      ],
      "NotActions": [],
      "AssignableScopes": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-prod" ]
    }

    What does this role assignment let User1 do?

    1. AStop and deallocate vm-web01 in rg-prod
    2. BRestart vm-web01 in rg-prod
    3. CStart vm-test02 in rg-dev
    4. DResize vm-web01 in rg-prod to a larger size
    Check the answer

    Answer: B. A custom role grants exactly the actions it lists, and only at the scopes where it is assigned.

    Official docs: Microsoft Learn: Azure custom roles
    Unlock Full 4-Option Autopsy & What-If Twist in Workspace
  3. Question 3 · Manage Azure subscriptions and governance

    Finance assigned this rule to the production subscription so every virtual machine carries a cost center, and a second assignment there uses the deny effect to reject any VM without a CostCenter tag. The assignments must not block a correctly tagged deployment:

    JSON
    "policyRule": {
      "if": {
        "allOf": [
          { "field": "type", "equals": "Microsoft.Compute/virtualMachines" },
          { "field": "tags['CostCenter']", "exists": "false" }
        ]
      },
      "then": {
        "effect": "append",
        "details": [ { "field": "tags['CostCenter']", "value": "Marketing" } ]
      }
    }

    The IT team deploys vm-erp01 from a template with no tags at all. What result should the IT team expect?

    1. AThe deployment succeeds and vm-erp01 is created with CostCenter set to Marketing
    2. BThe deployment succeeds and vm-erp01 is created without a CostCenter tag
    3. CThe deployment is denied by the deny assignment, because nothing adds the CostCenter tag
    4. DThe deployment succeeds, and the deny assignment marks vm-erp01 non-compliant until a remediation task runs
    Check the answer

    Answer: A. Azure Policy checks disabled first, then append and modify, then deny, then audit, so a tag appended to the request can stop a deny effect from triggering.

    Official docs: Microsoft Learn: Azure Policy definitions effect basics
    Unlock Full 4-Option Autopsy & What-If Twist in Workspace
Answer all 10 free AZ-104 questions

AZ-104 study notes: key concepts

What each note covers. The full notes, with summaries, examples and memory hooks, open with a free account.

Architecture flow · Microsoft Entra users and groups: dynamic membership, administrative units, guests, bulk operations and SSPR

Choosing the identity feature for a request
  • An identity request reaches the admin team

      • Must membership follow HR attributes automatically?

        • yes
          • Dynamic membership group with a rule

        • no
          • Must one team manage only a subset of users?

            • yes
              • Administrative unit with a scoped Entra role

            • no
              • Is the person outside your tenant?

                • yes
                  • B2B guest invitation

                • no
                  • Are many accounts needed at once without scripts?

                    • yes
                      • Bulk create from the CSV template

                    • no
                      • Single user or Graph PowerShell New-MgUser

Drawn fromMicrosoft Learn: Learn about groups, group membership, and access

Microsoft Entra users and groups: dynamic membership, administrative units, guests, bulk operations and SSPR

  • Dynamic membership rules combine user attributes with operators such as -eq, -and and -or, recompute membership when attributes change, and never accept manual adds or removes.
  • Administrative units restrict where a Microsoft Entra role applies, so Helpdesk Administrator or User Administrator scoped to a unit manages only that unit's members.
  • Bulk create in the admin center takes the CSV template downloaded from the same page, while unattended or recurring creation calls for Graph PowerShell scripts with New-MgUser.
  • A deleted user stays in a soft-deleted state for a limited window and restores with the same object ID, memberships and licenses; recreating it later gives a new object.
  • Blocking sign-in with Account enabled set to No keeps the user object and logs intact, while revoking sessions invalidates refresh tokens that were already issued.

Manage access to Azure resources: RBAC scopes, inheritance, deny assignments, custom roles and managed identities

  • Role assignments are inherited downward from management groups to resources, and effective access is the union of every assignment for the user and the user's groups.
  • Deny assignments are evaluated before role assignments and block their actions for all covered principals, so only exclusion lets a principal escape them.
  • Actions and NotActions govern management operations, while DataActions and NotDataActions govern data operations such as reading blobs or Key Vault secret values.
  • Role Based Access Control Administrator manages assignments only, and a condition can restrict it to granting a short list of roles to colleagues.
  • A user-assigned managed identity keeps its principal and role assignments when attached to new compute, while a system-assigned identity is deleted with its resource.

Azure governance: management groups, Azure Policy effects and remediation, locks, tags, moves and budgets

  • Azure Policy evaluates disabled, then append and modify, then deny, then audit, so a tag appended to a request can prevent a deny effect from triggering.
  • Modify and deployIfNotExists change existing resources only through remediation tasks, which act as the assignment's managed identity holding the roles the definition lists.
  • Policy exemptions exclude one scope from one assignment with a Waiver or Mitigated category, and an expiresOn date ends the exception automatically.
  • A ReadOnly lock blocks writes, deletes and POST operations such as VM restart or listKeys for every role, while CanNotDelete blocks deletion only.
  • Resources never inherit resource group tags, so the inherit-a-tag policy with the modify effect and a remediation task tags new and existing resources.

Configure access to storage: Entra data roles, SAS types, account keys and storage firewall rules

  • Reading or writing blobs with Microsoft Entra authorization needs a data role such as Storage Blob Data Reader, because management roles like Reader hold no DataActions.
  • A user delegation SAS is signed with Microsoft Entra credentials, while service and account SAS tokens are signed with an account key and stop working without Shared Key.
  • Setting AllowSharedKeyAccess to false rejects account keys and key-signed SAS tokens together, while managed identities and user delegation SAS keep working.
  • Virtual network rules need a Microsoft.Storage service endpoint on the subnet, because IP network rules do not admit clients that sit in the same Azure region.
  • The trusted services exception lets listed Microsoft services such as Azure Backup and Azure Monitor reach a firewalled account without opening it to every network.

Configure Azure Files and Blob Storage: tiers, lifecycle rules, data protection, redundancy and replication

  • Lifecycle rules filter by prefix and blob type and act on conditions such as daysAfterModificationGreaterThan, moving blobs with tierToCool or tierToArchive or deleting them.
  • Blob soft delete protects blobs deleted one by one, while only container soft delete can bring back the blobs of a container that was deleted.
  • Point-in-time restore rolls a container's block blobs back to one moment and depends on versioning, change feed and blob soft delete being enabled first.
  • Object replication copies a source container to another account's container and requires blob versioning on both accounts plus change feed on the source.
  • An eligible account converts between LRS and ZRS in place, keeping its endpoint and data available, while geo-redundancy adds a copy in the paired region.

Configure Azure Storage security: encryption keys, TLS, private endpoints, identity-based Files and immutable blobs

  • Microsoft-managed key encryption is always on for every storage account, while customer-managed keys need a key vault with soft delete and purge protection enabled.
  • The Minimum TLS version setting rejects requests that negotiate older TLS versions, and an Azure Policy deny assignment can enforce it on new accounts.
  • A private endpoint adds a privatelink CNAME, and only resolvers using the linked private DNS zone receive the endpoint's private IP instead of the public one.
  • A locked time-based retention policy can only be extended, never shortened or deleted, while a legal hold lasts until its tags are cleared by hand.
  • Azure Files share-level role assignments only take effect after the account is configured for identity-based authentication with AD DS or Entra Kerberos.
Read the full AZ-104 study notes

AZ-104 FAQ

What is the passing score for AZ-104?

The passing score for Microsoft Azure Administrator is 700 / 1000.

Which domains does AZ-104 cover?

The official exam guide lists 5 domains: Manage Azure Identities and Governance (20–25%); Implement and Manage Storage (15–20%); Deploy and Manage Azure Compute Resources (20–25%); Implement and Manage Virtual Networking (15–20%); Monitor and Maintain Azure Resources (10–15%).

Is there a free AZ-104 practice test?

Yes. Gyan AI's free diagnostic is 10 AZ-104 questions with no sign-up, each with an explanation for every option and a link to the official documentation. A free account unlocks the full question set and study notes.

Are these the real AZ-104 exam questions?

No. Real exam content is confidential under vendor exam agreements, and using leaked "dumps" can get a certification revoked. Gyan AI questions are original and written to the published skills outline.