CertSafari

    Free Microsoft Certified: Azure Administrator Associate (AZ-104) Sample Questions

    35 free sample questions from our bank of 387+, covering every exam domain, with answers and detailed explanations. Updated November 2026.

    1: Manage Azure identities and governance

    1.3: Manage Azure subscriptions and governance

    1.A policy rule must stop anyone from creating or updating storage accounts that allow HTTP traffic. Complete the rule so it meets the requirement. ``` { "if": { "allOf": [ { "field": "type", "equals": "Microsoft.Storage/storageAccounts" }, { "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly", "equals": "false" } ] }, "then": { "effect": "______" } } ``` Which value completes the effect?

    1. A.deny
    2. B.audit
    3. C.modify
    4. D.auditIfNotExists
    Show answer & explanation

    Correct answer: A — deny

    • A. Correct. The Deny effect rejects create and update requests whose properties match the rule, which blocks storage accounts that allow HTTP.
    • B. Incorrect. Audit allows the request and only records a non-compliance warning, so HTTP-enabled storage accounts would still be created.
    • C. Incorrect. Modify would need a details block with operations to change the property, and the requirement is to block the request rather than alter it.
    • D. Incorrect. AuditIfNotExists evaluates related resources and only reports. It does not stop the creation of the storage account.

    1.1: Manage Microsoft Entra users and groups

    2.Goal: a contractor with a personal Gmail address must be able to open a SharePoint site in your tenant. Proposed solution: invite the Gmail address as an external user from the Users blade so the contractor redeems the invitation. Does the solution meet the goal?

    1. A.True
    2. B.False
    Show answer & explanation

    Correct answer: A — True

    • A. An invited external user becomes a guest object and can redeem the invitation, for example by email one-time passcode, then access the shared resource once granted permission.
    • B. The invitation process supports external email identities, so it is not unsuitable for a Gmail address.

    1.3: Manage Azure subscriptions and governance

    3.Contoso is designing a management group tree. The design places seven nested management groups under the tenant root management group, with subscriptions below the seventh level. You attempt to create the seventh nested group. What happens?

    1. A.Creating the seventh level is rejected; a hierarchy allows six levels beneath the tenant root group, not counting the subscription level.
    2. B.Creating the seventh level succeeds; Azure Policy assignments stop inheriting below the sixth level, so deeper subscriptions fall outside parent governance.
    3. C.Creating the seventh level is rejected until a Global Administrator elevates access at the tenant root group, which lifts the depth limit for the tenant.
    4. D.Creating the seventh level succeeds; subscriptions beneath it do not receive Azure RBAC role assignments made on parent groups, so only direct assignments apply.
    Show answer & explanation

    Correct answer: A — Creating the seventh level is rejected; a hierarchy allows six levels beneath the tenant root group, not counting the subscription level.

    • A. Correct. A management group hierarchy supports up to six levels of depth, and that count leaves out the tenant root group and the subscription level, so a seventh nested group is refused.
    • B. Incorrect. The seventh level cannot be created in the first place, so no tree exists in which policy inheritance stops at the sixth level. Policy assignments inherit down through the levels the service permits.
    • C. Incorrect. Elevating access gives a Global Administrator User Access Administrator rights at root scope, which is a permissions change. The six-level depth limit is fixed by the platform and cannot be lifted for a tenant.
    • D. Incorrect. Azure RBAC assignments inherit down through the permitted levels to the subscriptions beneath them. Here the seventh level is refused, so no such subscriptions sit beneath it.

    1.3: Manage Azure subscriptions and governance

    4.The security team wrote a custom policy definition inside Subscription A. They now try to assign it at the Corp management group, which contains Subscription A and Subscription B, but the definition does not appear in the picker. What is the cause, and what should you do?

    1. A.The definition's location is a subscription, which limits where it can be assigned; recreate it in the Corp management group and assign it there.
    2. B.The account lacks rights to read the definition at Corp, which hides it; grant Resource Policy Contributor on the Corp management group.
    3. C.The definition's policy mode is rejected at management group scope, which hides it; switch it to Indexed mode and save it again.
    4. D.The definition is not part of an initiative, which management group assignments need; put it in an initiative in Subscription A and assign that.
    Show answer & explanation

    Correct answer: A — The definition's location is a subscription, which limits where it can be assigned; recreate it in the Corp management group and assign it there.

    • A. Correct. A custom definition can be assigned only at the scope where it is stored or below. Because it is stored in a subscription, it is not offered at the management group. Saving it at the management group makes it assignable there and in both subscriptions.
    • B. Incorrect. The picker lists definitions by where they are stored, not by the caller's role. The definition sits in Subscription A, below the Corp management group, so it stays unavailable there even with Resource Policy Contributor.
    • C. Incorrect. Policy mode (Indexed or the default mode) decides which resource types are evaluated. It has no effect on the scopes at which a definition can be assigned, and the definition is missing because of where it is stored.
    • D. Incorrect. Individual definitions can be assigned at a management group without an initiative. An initiative stored in Subscription A has the same location limit, so it could not be assigned at the Corp management group either.

    1.1: Manage Microsoft Entra users and groups

    5.A project team needs one object that provides a shared mailbox, a Teams team, and a SharePoint site, with membership managed by two team leads. Which group type should you create?

    1. A.Microsoft 365 group with the two leads as owners, which backs a group mailbox, a Teams team and a site collection
    2. B.Security group with the two leads as owners, which backs a group mailbox, a Teams team and a site collection
    3. C.Mail-enabled security group with the two leads as owners, which backs a group mailbox, a Teams team and a site collection
    4. D.Dynamic security group with rules the two leads edit, which backs a group mailbox, a Teams team and a site collection
    Show answer & explanation

    Correct answer: A — Microsoft 365 group with the two leads as owners, which backs a group mailbox, a Teams team and a site collection

    • A. A Microsoft 365 group is the single object behind an Outlook group mailbox, a Teams team and a SharePoint site, and its owners manage membership, so two leads can run it.
    • B. A security group only grants access to resources, even with owners assigned. It has no group mailbox and cannot back a Teams team or a SharePoint site, so the three services would still need separate objects.
    • C. A mail-enabled security group can receive mail and grant access, but it has no group mailbox with calendar, and a Teams team and a connected SharePoint site cannot be created on it. Those services require a Microsoft 365 group.
    • D. A dynamic security group fills its membership from attribute rules and has no mailbox, team or site behind it. It cannot provide the collaboration services, and rule-driven membership is not the two leads managing members directly.

    1.1: Manage Microsoft Entra users and groups

    6.You want users who have not registered for SSPR to be prompted at sign-in, and registered users to confirm their details every 180 days. Which two settings do you configure? Select two.(Select 2)

    1. A.Set Require users to register when signing in to Yes in the Registration settings.
    2. B.Set Number of days before users are asked to re-confirm their authentication information to 180.
    3. C.Set Number of methods required to reset to 2 in the Authentication methods settings.
    4. D.Set Notify users on password resets to Yes in the Notifications settings under Password reset.
    5. E.Set Allow users to unlock account without resetting password to Yes in On-premises integration.
    Show answer & explanation

    Correct answers: A, B — Set Require users to register when signing in to Yes in the Registration settings.; Set Number of days before users are asked to re-confirm their authentication information to 180.

    • A. This registration option prompts unregistered users the next time they sign in to Entra-integrated apps.
    • B. The re-confirm interval (0 to 730 days) makes registered users verify their info; it is only available when registration at sign-in is enabled.
    • C. The number of methods controls how many a user must supply during a reset, not registration prompts.
    • D. This setting only emails users after their own password has been reset. It does not prompt unregistered users to register at sign-in and has no effect on how often registered users re-confirm their information.
    • E. The unlock setting separates unlock from reset and doesn't affect registration.

    1.2: Manage access to Azure resources

    7.An application runs on a virtual machine and must read blobs in one storage account using Microsoft Entra authorization. You must follow least privilege. What should you configure?

    1. A.Assign Storage Account Contributor to the VM's system-assigned identity at the storage account scope
    2. B.Assign Storage Blob Data Reader to the VM's system-assigned identity at the resource group scope
    3. C.Assign Storage Blob Data Reader to the VM's system-assigned identity at the storage account scope
    4. D.Assign Storage Blob Data Contributor to the developers' Entra group at the storage account scope
    Show answer & explanation

    Correct answer: C — Assign Storage Blob Data Reader to the VM's system-assigned identity at the storage account scope

    • A. Storage Account Contributor is a management-plane role for administering the account, including listing its keys. It has no blob data actions, so it does not give Entra-authorized blob reads and is broader than needed.
    • B. The role and identity are right, but a resource group scope also covers every other storage account in that group. Access should be limited to the one account the application reads, so this is wider than least privilege allows.
    • C. Storage Blob Data Reader includes the data action for reading blobs. Assigned to the VM's system-assigned identity at the one storage account, it gives the application read access and nothing more.
    • D. The application authenticates as the VM's identity, so a role given to developers does not let it read blobs. Blob Data Contributor also adds write and delete permissions that read-only access does not require.

    1.2: Manage access to Azure resources

    8.Forty helpdesk employees need Reader access to five resource groups in one subscription. Staff members join and leave every month, and you want to minimise future administration and stay far from role assignment limits. What should you do?

    1. A.Assign Reader to each helpdesk employee's individual user account on each of the five resource groups
    2. B.Create an Entra security group of the helpdesk staff and assign Reader to it on each of the five resource groups
    3. C.Create an Entra administrative unit of the helpdesk staff and assign Reader to it on each of the five resource groups
    4. D.Create a custom role with Reader permissions and assign it to each helpdesk employee on each of the five resource groups
    Show answer & explanation

    Correct answer: B — Create an Entra security group of the helpdesk staff and assign Reader to it on each of the five resource groups

    • A. Per-user assignments mean 200 role assignments (40 users across 5 resource groups), and each monthly joiner or leaver needs edits on all five resource groups. That is the administration load and assignment growth to avoid.
    • B. One security group needs only five role assignments for all forty staff. A joiner or leaver is handled by a single membership change, which gives the lowest ongoing administration and keeps the assignment count far below the limit.
    • C. Administrative units only scope delegated administration of Entra directory objects. They are not security principals, so an Azure role cannot be assigned to one and the helpdesk staff would receive no access to the resource groups.
    • D. A custom role only defines permissions, and the built-in Reader role already provides them. It is still assigned per employee, so it yields 200 assignments and edits for every joiner or leaver, and it adds a role definition to maintain.

    1.2: Manage access to Azure resources

    9.A user holds Contributor at subscription scope and Reader on resource group RG-A. The user is also a member of a group that holds Storage Blob Data Reader on a storage account in resource group RG-B. Which two actions can the user perform? Select two.(Select 2)

    1. A.Create a virtual machine in RG-A, using the Contributor role inherited from the subscription
    2. B.Assign Reader on RG-B to a colleague, using the Contributor role held at the subscription
    3. C.Read blob data in the RG-B storage account, using the role granted through group membership
    4. D.Remove the Contributor assignment at the subscription, using the Access control (IAM) blade
    5. E.Upload a blob to the RG-B storage account, using Entra authorization and the Contributor role
    Show answer & explanation

    Correct answers: A, C — Create a virtual machine in RG-A, using the Contributor role inherited from the subscription; Read blob data in the RG-B storage account, using the role granted through group membership

    • A. Azure RBAC permissions are additive. The Reader assignment on RG-A does not reduce the Contributor role inherited from the subscription, so the user can create a virtual machine there.
    • B. Contributor excludes Microsoft.Authorization/*/Write, so the user cannot create role assignments on RG-B or anywhere else in the subscription. That needs Owner or User Access Administrator.
    • C. The group's Storage Blob Data Reader role includes the blob read data action on that storage account. The user receives it through group membership, so the blob content can be read with Microsoft Entra authorization.
    • D. Removing a role assignment requires Microsoft.Authorization/roleAssignments/delete, which Contributor excludes. The IAM blade shows the assignment, but the user cannot delete it.
    • E. Contributor covers management-plane actions only and includes no blob data actions. The group's Storage Blob Data Reader role is read-only, so a write using Entra authorization is denied.

    2: Implement and manage storage

    2.1: Configure access to storage

    10.Goal: Revoke one ad hoc service SAS (not linked to a stored access policy) given to a contractor, without disturbing any other applications in the account. Proposed solution: Regenerate key1 for the storage account, which signed the SAS. Does the solution meet the goal? (True means Yes, False means No.)

    1. A.True
    2. B.False
    Show answer & explanation

    Correct answer: B — False

    • A. True would be incorrect. Regenerating key1 does revoke the contractor's SAS, but it also invalidates every other SAS and Shared Key connection signed with key1.
    • B. False. The goal is to avoid disturbing others, and a key regeneration is account-wide; the targeted approach would have been to issue the SAS against a stored access policy.

    2.2: Configure and manage storage accounts

    11.An account currently encrypts data with Microsoft-managed keys. New compliance rules require the encryption key to be stored in Azure Key Vault and rotated by your team. Which action involves the least administrative effort?

    1. A.Create a new storage account that uses customer-managed keys in Key Vault, then copy the blobs with AzCopy
    2. B.Turn on infrastructure encryption for the existing account, then attach a Key Vault key to its second layer
    3. C.Re-upload the blobs with a customer-provided key on each request, then store that key in Azure Key Vault
    4. D.Change the existing account's encryption setting to customer-managed keys, then select a Key Vault key
    Show answer & explanation

    Correct answer: D — Change the existing account's encryption setting to customer-managed keys, then select a Key Vault key

    • A. Incorrect: A new account with customer-managed keys would meet the key requirement, but it forces a full data migration and a cutover of every client. That is much more effort than reconfiguring the account that already exists.
    • B. Incorrect: Infrastructure encryption can only be enabled when the account is created, not on an existing one. Its second layer also uses Microsoft-managed keys, so a Key Vault key cannot be attached to it and the team could not rotate the key.
    • C. Incorrect: A customer-provided key is supplied by the client on each request, and Azure Storage never stores it. Keeping a copy in Key Vault does not make Azure use Key Vault for the account's encryption. Re-uploading every blob is also far more work than a settings change.
    • D. Correct: The Encryption settings of an existing storage account can be switched from Microsoft-managed to customer-managed keys by selecting a Key Vault key. The team then controls rotation, and the existing data is covered without migration or re-upload.

    2.2: Configure and manage storage accounts

    12.A contractor must browse and upload blobs by using Azure Storage Explorer. You cannot share account keys with the contractor. Which two connection methods can you use? Select two.(Select 2)

    1. A.Attach to the blob container by using a shared access signature URL scoped to that container
    2. B.Attach to the storage account by using a connection string copied from its Access keys blade
    3. C.Sign in with a Microsoft Entra account that holds the Reader role on the storage account
    4. D.Sign in with a Microsoft Entra account that holds the Storage Blob Data Contributor role on the account
    5. E.Attach by using the storage account name and a rotated key shared only for this engagement
    Show answer & explanation

    Correct answers: A, D — Attach to the blob container by using a shared access signature URL scoped to that container; Sign in with a Microsoft Entra account that holds the Storage Blob Data Contributor role on the account

    • A. Correct: Storage Explorer can attach to a container with a SAS URL, which limits scope and expiry without exposing keys.
    • B. Incorrect: The connection string on the Access keys blade embeds the account key, so handing it over gives the contractor the key itself.
    • C. Incorrect: Reader is a control-plane role that grants no data-plane permissions, so the contractor could see the account but not list or upload blobs. It also does not allow retrieving the keys.
    • D. Correct: Entra sign-in with a data role uses RBAC and needs no keys.
    • E. Incorrect: Rotating the key does not change that the contractor would hold an account key, which gives full access to the account and is exactly what cannot be shared.

    2.1: Configure access to storage

    13.`stsecure` has default network action Deny, a virtual network rule for `subnet-a` (service endpoint enabled), an IP rule for 203.0.113.0/24 and the trusted services exception enabled. Select the two clients that can reach the blob endpoint.(Select 2)

    1. A.A VM in `subnet-a` using the Microsoft.Storage service endpoint, authenticating with an Entra ID token that holds a data role.
    2. B.A laptop at 203.0.113.45 connecting over the public internet, authenticating with a valid SAS token scoped to one blob.
    3. C.A VM in `subnet-b` of the same VNet, with a service endpoint enabled, authenticating with an Entra ID token that holds a data role.
    4. D.A laptop at 198.51.100.7 connecting over the public internet, authenticating with a valid SAS token scoped to one blob.
    5. E.A VM in `subnet-b` of the same VNet, without a service endpoint, authenticating with an account key from a connection string.
    Show answer & explanation

    Correct answers: A, B — A VM in `subnet-a` using the Microsoft.Storage service endpoint, authenticating with an Entra ID token that holds a data role.; A laptop at 203.0.113.45 connecting over the public internet, authenticating with a valid SAS token scoped to one blob.

    • A. Correct. The virtual network rule names this subnet and the service endpoint carries the subnet's identity to storage, so the firewall admits it. The Entra ID token with a data role then authorizes the request.
    • B. Correct. 203.0.113.45 lies inside the 203.0.113.0/24 IP rule, so the firewall admits the request, and the SAS token then authorizes access to the blob.
    • C. Incorrect. Enabling a service endpoint on this subnet does not allow it through the firewall; only subnets named in a virtual network rule are admitted, and this one has none. The default Deny applies despite the valid identity.
    • D. Incorrect. A valid SAS token grants authorization but does not bypass the firewall. 198.51.100.7 is outside the 203.0.113.0/24 rule, and a laptop is not a trusted Azure service, so the default Deny blocks it.
    • E. Incorrect. An account key authorizes requests but is checked after the network rules, which still apply. This subnet has no service endpoint and no virtual network rule, so the default Deny blocks the VM.

    2.3: Configure Azure Files and Azure Blob Storage

    14.Blobs in the container `media` that are read often should stay in Hot. Blobs that have not been read for 60 days must move to Cool, regardless of when they were written. Which configuration meets the requirement?

    1. A.Enable the change feed, then create a lifecycle rule that uses tierToCool with daysAfterModificationGreaterThan set to 60 for the media prefix
    2. B.Enable blob versioning, then create a lifecycle rule that uses tierToCool with daysAfterCreationGreaterThan set to 60 for the media prefix
    3. C.Enable last access time tracking, then create a lifecycle rule that uses tierToCool with daysAfterLastAccessTimeGreaterThan set to 60 for the media prefix
    4. D.Enable diagnostic logging for blob reads, then create a lifecycle rule that uses tierToCool with daysAfterLastAccessTimeGreaterThan set to 60 for the media prefix
    Show answer & explanation

    Correct answer: C — Enable last access time tracking, then create a lifecycle rule that uses tierToCool with daysAfterLastAccessTimeGreaterThan set to 60 for the media prefix

    • A. Reading a blob does not change its last modified time, so a modification-based condition cools blobs that are still read often. The change feed records changes to blobs, not reads, so it does not help.
    • B. A creation-based condition looks only at blob age and ignores read activity, so it cools blobs that are still read often. Versioning keeps prior versions of a blob and does not record reads.
    • C. Last access time tracking must be enabled before a rule can use daysAfterLastAccessTimeGreaterThan. The rule then cools blobs 60 days after they were last read or written, whatever their creation date.
    • D. Diagnostic logs of blob reads are separate from the last access time setting that lifecycle rules evaluate. Without last access time tracking, the access-based condition has no data to act on, so the rule cannot cool blobs by read age.

    2.3: Configure Azure Files and Azure Blob Storage

    15.A Linux-based application needs a low-latency, SSD-backed file share that is mounted over NFS 4.1. Which configuration should you implement?

    1. A.Create a standard StorageV2 account, add an NFS file share to it, and turn off the secure transfer required setting on the account
    2. B.Create a premium FileStorage account, add an SMB file share to it, and keep the secure transfer required setting turned on
    3. C.Create a premium BlockBlobStorage account, enable hierarchical namespace and NFS 3.0, and keep secure transfer required turned on
    4. D.Create a premium FileStorage account, add an NFS file share to it, and turn off the secure transfer required setting on the account
    Show answer & explanation

    Correct answer: D — Create a premium FileStorage account, add an NFS file share to it, and turn off the secure transfer required setting on the account

    • A. Standard StorageV2 accounts are HDD-backed and cannot host NFS Azure file shares, which are offered only on premium (SSD) FileStorage accounts. Turning off secure transfer is the right setting for NFS, but it cannot compensate for the wrong account type and storage media.
    • B. A premium FileStorage account gives SSD-backed storage, but the protocol is fixed when the share is created. An SMB share cannot be mounted over NFS 4.1, so the Linux application's NFS requirement is not met.
    • C. Premium block blob accounts expose blob containers over NFS 3.0, not a file share over NFS 4.1. Hierarchical namespace and NFS 3.0 on blob storage are a different feature from NFS Azure Files, so the protocol version and the service are both wrong.
    • D. NFS Azure file shares are supported only on premium FileStorage accounts, which are SSD-backed and low latency. NFS does not support encryption in transit, so secure transfer required must be disabled on the account for the share to mount.

    3: Deploy and manage Azure compute resources

    3.3: Provision and manage containers in the Azure portal

    16.Your company hosts public base images that partner developers must pull without signing in. You expect about 80 GiB of stored images and want the lowest-cost Azure Container Registry pricing plan that supports both requirements. Which plan should you select?

    1. A.Basic plan, with a dedicated data endpoint for unauthenticated layer pulls and per-GiB overage billing past its 10 GiB of storage
    2. B.Basic plan, with the registry's anonymous pull setting turned on and per-GiB overage billing past its 10 GiB of storage
    3. C.Premium plan, with the registry's anonymous pull setting turned on and 500 GiB of included storage for the images
    4. D.Standard plan, with the registry's anonymous pull setting turned on and 100 GiB of included storage for the images
    Show answer & explanation

    Correct answer: D — Standard plan, with the registry's anonymous pull setting turned on and 100 GiB of included storage for the images

    • A. Dedicated data endpoints are a Premium feature, and they do not allow unauthenticated pulls. Anonymous pull is a separate registry setting that Basic does not offer, so partners would still have to sign in.
    • B. Overage billing only covers the extra storage. The anonymous pull setting is not available on Basic, so partner developers could not pull without signing in, and the plan fails a core requirement.
    • C. Premium supports anonymous pull and has ample storage, but Standard already meets both requirements for less. Because the lowest-cost qualifying plan is required, Premium is not the right selection.
    • D. Standard supports anonymous pull access and includes 100 GiB of storage, which covers 80 GiB of images. It is the cheapest plan that meets both requirements.

    3.3: Provision and manage containers in the Azure portal

    17.Which two features are available only in the Premium pricing plan of Azure Container Registry? Select two.(Select 2)

    1. A.Microsoft Entra authentication for docker login and for deleting images from a repository
    2. B.Private link with private endpoints that restricts registry access to a virtual network
    3. C.Zone redundancy that spreads registry data across availability zones in a supported region
    4. D.Geo-replication that manages a single registry across several Azure regions for high availability
    5. E.Webhooks that notify other services when images are pushed to or deleted from a repository
    Show answer & explanation

    Correct answers: B, D — Private link with private endpoints that restricts registry access to a virtual network; Geo-replication that manages a single registry across several Azure regions for high availability

    • A. Microsoft Entra authentication and image deletion are supported in every plan, including Basic.
    • B. Private endpoints through Private Link are limited to Premium registries.
    • C. Zone redundancy is offered in Basic, Standard and Premium registries alike in regions that support availability zones, so it does not set Premium apart.
    • D. Geo-replication is a Premium-only capability for multi-region registries.
    • E. Webhooks exist in Basic, Standard, and Premium; only the maximum count differs.

    3.1: Automate deployment of resources by using Azure Resource Manager (ARM) templates or Bicep files

    18.A Bicep file deploys a VM and takes an `adminPassword` parameter. Security requires that the password never appear in deployment history or logs, and that it not be stored in the parameter file kept in source control. Which two actions meet the requirements? Select two.(Select 2)

    1. A.Apply the `@secure()` decorator to the `adminPassword` parameter, which compiles to a `securestring` parameter in the ARM template
    2. B.Reference a Key Vault secret from the parameters file, using a vault that has access enabled for template deployment
    3. C.Declare `adminPassword` as a plain `string` parameter with `@minLength(12)`, which enforces a strong password at deployment
    4. D.Store the password base64-encoded in the parameters file, and decode it in the template with the `base64ToString()` function
    5. E.Pass the password from a pipeline secret variable as a `string` parameter, and mask it in the pipeline's log output
    Show answer & explanation

    Correct answers: A, B — Apply the `@secure()` decorator to the `adminPassword` parameter, which compiles to a `securestring` parameter in the ARM template; Reference a Key Vault secret from the parameters file, using a vault that has access enabled for template deployment

    • A. Correct. `@secure()` turns the parameter into a `securestring`, so Resource Manager keeps its value out of deployment history and logs. This covers the history and log requirement.
    • B. Correct. A Key Vault reference means the parameters file holds only the vault ID and secret name, so no password sits in source control. The vault must be enabled for template deployment so Resource Manager can read the secret.
    • C. Incorrect. `@minLength` only validates length. A plain `string` parameter is still recorded in deployment history, and nothing here keeps the value out of the parameters file.
    • D. Incorrect. Base64 is an encoding, not encryption, so anyone with repository access can decode it. The parameter is also not secure, so its value still shows up in deployment history.
    • E. Incorrect. Pipeline masking only affects the pipeline's own logs. A plain `string` parameter is still written to Azure deployment history, so the history requirement fails.

    3.1: Automate deployment of resources by using Azure Resource Manager (ARM) templates or Bicep files

    19.A Bicep file must create an optional public IP only when the parameter `deployPip` is true, and it must create two NICs from a single resource declaration. Which two Bicep constructs should you use? Select two.(Select 2)

    1. A.Write `= if (deployPip) { ... }` on the public IP resource, which the compiler turns into a deployment condition.
    2. B.Write `= [for i in range(0, 2): { ... }]` on the NIC resource, which the compiler turns into a copy loop.
    3. C.Write `condition: deployPip` in the public IP resource body, which the compiler turns into a deployment condition.
    4. D.Write `copy: { name: 'nicLoop', count: 2 }` in the NIC resource body, which the compiler turns into a copy loop.
    5. E.Write `@batchSize(2)` on the NIC resource, which the compiler turns into a copy count of two instances.
    Show answer & explanation

    Correct answers: A, B — Write `= if (deployPip) { ... }` on the public IP resource, which the compiler turns into a deployment condition.; Write `= [for i in range(0, 2): { ... }]` on the NIC resource, which the compiler turns into a copy loop.

    • A. Correct. An `if` expression after the equals sign makes the resource conditional. The compiler emits a `condition` element in the ARM template, so the public IP is skipped when `deployPip` is false.
    • B. Correct. A `for` expression over `range(0, 2)` repeats one resource declaration twice. The compiler emits a `copy` element in the ARM template, which gives two NICs.
    • C. Incorrect. `condition` is a property of the JSON template format, not of a Bicep resource body, so Bicep rejects it there. Conditional deployment in Bicep is written with the `if` syntax on the declaration.
    • D. Incorrect. `copy` is a JSON template element, and Bicep has no such property in a resource body. Repetition is written with a `for` expression, and the compiler generates the `copy` element itself.
    • E. Incorrect. `@batchSize` is a decorator for loop declarations that controls how many iterations deploy at the same time. It does not set the number of instances, and Bicep rejects it on a declaration that has no `for` loop.

    3.2: Create and configure virtual machines

    20.A transaction-processing VM in availability zone 1 needs managed data disks whose IOPS and throughput can each be tuned independently of the disk capacity. Which two disk types support this? Select two.(Select 2)

    1. A.Ultra Disk: capacity, IOPS and throughput are set as separate values, and can be changed without detaching the disk
    2. B.Premium SSD v2: capacity, IOPS and throughput are set as separate values, above a baseline included with each disk
    3. C.Premium SSD: IOPS and throughput come from the size tier, such as P30 or P40, with on-demand bursting on larger sizes
    4. D.Standard SSD: IOPS and throughput come from the size tier, such as E20 or E30, with bursting on the smaller sizes
    5. E.Standard HDD: IOPS and throughput come from the size tier, such as S20 or S30, with transactions billed per operation
    Show answer & explanation

    Correct answers: A, B — Ultra Disk: capacity, IOPS and throughput are set as separate values, and can be changed without detaching the disk; Premium SSD v2: capacity, IOPS and throughput are set as separate values, above a baseline included with each disk

    • A. Ultra Disk lets you provision size, IOPS and throughput as independent values and adjust performance online, so it meets the tuning requirement and is available in a zone.
    • B. Premium SSD v2 decouples performance from capacity: a baseline is included, and extra IOPS and throughput are provisioned and billed separately from size, so it meets the requirement.
    • C. Premium SSD performance is fixed by the size tier. On-demand bursting only allows short spikes above the limit, so more sustained IOPS or throughput requires a larger tier, not independent tuning.
    • D. Standard SSD limits are set by the size tier. Bursting on smaller sizes is temporary and not configurable, so IOPS and throughput cannot be tuned separately from capacity.
    • E. Standard HDD performance is tied to the size tier. Per-operation transaction billing does not make IOPS or throughput configurable, so there is no independent tuning.

    3.2: Create and configure virtual machines

    21.An availability set named AS1 has 3 fault domains and 5 update domains and contains 12 VMs distributed evenly by Azure. During one planned maintenance event, what is the maximum number of AS1 VMs that can be rebooted at the same time?

    1. A.3 VMs, because Azure restarts one update domain at a time and the largest of the five holds three of the twelve VMs.
    2. B.4 VMs, because Azure restarts one fault domain at a time and each of the three holds four of the twelve VMs.
    3. C.5 VMs, because Azure restarts one VM from each of the five update domains at once while the rest keep running.
    4. D.2 VMs, because Azure restarts one update domain at a time and no update domain holds more than two of the twelve VMs.
    Show answer & explanation

    Correct answer: A — 3 VMs, because Azure restarts one update domain at a time and the largest of the five holds three of the twelve VMs.

    • A. Planned maintenance restarts one update domain at a time. Twelve VMs spread over five update domains gives 3, 3, 2, 2 and 2, so at most three VMs are down together.
    • B. Fault domains represent shared hardware such as a rack's power and network, and they matter for unplanned failures. Planned maintenance walks through update domains, so the four-VM fault domain grouping does not set the number of simultaneous reboots.
    • C. Azure restarts a whole update domain at a time, not a single VM from each one. VMs in different update domains are not rebooted together, so the number of update domains does not set the simultaneous count.
    • D. Twelve VMs cannot fit in five update domains of at most two, since that holds only ten. Two update domains hold three VMs each, and the largest one sets the maximum at three.

    3.4: Create and configure Azure App Service

    22.You must map the apex domain contoso.com, hosted at a third-party DNS provider, to the web app contoso-app. Which two DNS records should you create? Select two.(Select 2)

    1. A.An A record at the root domain pointing to the inbound IP address on the app's Custom domains page
    2. B.A TXT record named asuid at the root domain containing the app's Custom Domain Verification ID
    3. C.A CNAME record at the root domain pointing to the app's default hostname contoso-app.azurewebsites.net
    4. D.An A record at the root domain pointing to an outbound IP address on the app's Properties page
    5. E.A TXT record named asuid at the root domain containing the app's default hostname contoso-app.azurewebsites.net
    Show answer & explanation

    Correct answers: A, B — An A record at the root domain pointing to the inbound IP address on the app's Custom domains page; A TXT record named asuid at the root domain containing the app's Custom Domain Verification ID

    • A. Correct. A CNAME cannot be used at the zone apex, so the root domain is mapped with an A record to the app's inbound IP address shown on the Custom domains page.
    • B. Correct. The asuid TXT record carrying the Custom Domain Verification ID proves domain ownership, so App Service accepts contoso.com as a custom domain.
    • C. Incorrect. The zone apex must hold SOA and NS records, and a CNAME cannot coexist with other record types at the same name, so the root domain cannot be mapped this way.
    • D. Incorrect. Outbound IP addresses are used for traffic leaving the app, while requests to the domain must reach the inbound IP address, so this record does not route web traffic to the app.
    • E. Incorrect. Ownership is verified against the app's Custom Domain Verification ID, so a TXT record holding the default hostname does not match and App Service rejects the domain.

    3.4: Create and configure Azure App Service

    23.A web app on a Premium v3 plan must connect to a SQL Server VM at a private IP address in a peered virtual network. The app itself does not need to be reachable privately. What should you configure?

    1. A.Enable regional VNet integration for the app, using a subnet delegated to Microsoft.Web/serverFarms in a peered VNet.
    2. B.Enable a private endpoint for the app, using a subnet in the VM's virtual network to host the endpoint's interface.
    3. C.Enable an access restriction rule for the app, using the subnet that hosts the VM in the peered VNet as the allowed source.
    4. D.Enable a Microsoft.Web service endpoint on the VM's subnet, using the peered VNet to carry the app's outbound traffic.
    Show answer & explanation

    Correct answer: A — Enable regional VNet integration for the app, using a subnet delegated to Microsoft.Web/serverFarms in a peered VNet.

    • A. Correct. Regional VNet integration gives a Premium v3 app an outbound path into a delegated subnet, and from there across peering to private IP addresses such as the SQL Server VM.
    • B. Incorrect. A private endpoint only provides inbound private access to the app, which is not needed here. It gives the app no outbound route to the VM's private address.
    • C. Incorrect. Access restrictions filter inbound requests to the app. Allowing the VM's subnet there does not let the app open outbound connections to the VM.
    • D. Incorrect. A Microsoft.Web service endpoint lets a subnet be used as an allowed source in App Service access restrictions, which is an inbound control. It does not carry the app's outbound traffic to private IPs in a peered network.

    4: Implement and manage virtual networking

    4.2: Configure secure access to virtual networks

    24.The VM vm1 is running and has an NSG on its subnet and a different NSG on its NIC. You must use Azure CLI to display the combined set of security rules that apply to the NIC so you can find the rule blocking a connection. Which command should you run?

    1. A.az network watcher show-next-hop --vm vm1 --resource-group rg1
    2. B.az network nic show-effective-route-table --name vm1-nic --resource-group rg1
    3. C.az network nsg rule list --nsg-name nsg-subnet --resource-group rg1
    4. D.az network nic list-effective-nsg --name vm1-nic --resource-group rg1
    Show answer & explanation

    Correct answer: D — az network nic list-effective-nsg --name vm1-nic --resource-group rg1

    • A. Incorrect. Next hop reports how traffic would be routed from the VM, which helps with route problems but says nothing about security rules.
    • B. Incorrect. The effective route table lists system and user-defined routes for the NIC, not NSG security rules.
    • C. Incorrect. This lists the rules of one named NSG only and does not merge the NIC-level NSG or the evaluation order across both groups.
    • D. Correct. list-effective-nsg returns the aggregated rules from every NSG that applies to the NIC, including the subnet-level and NIC-level groups and the default rules.

    4.2: Configure secure access to virtual networks

    25.A storage account must be reachable privately for both blob and Azure Files from vnet1, and no Internet path may remain. Select two actions that together meet the requirement.(Select 2)

    1. A.Enable the Microsoft.Storage service endpoint on the subnet of vnet1 and add a virtual network rule on the account
    2. B.Link a private DNS zone named privatelink.blob.core.windows.net to vnet1 and add the account's blob record to it
    3. C.Create one private endpoint on the storage account with the blob subresource, and reuse it for Azure Files traffic
    4. D.Create a private endpoint for the blob subresource and a separate private endpoint for the file subresource
    5. E.Set public network access on the storage account to Disabled once both private endpoints are approved
    Show answer & explanation

    Correct answers: D, E — Create a private endpoint for the blob subresource and a separate private endpoint for the file subresource; Set public network access on the storage account to Disabled once both private endpoints are approved

    • A. Incorrect. A service endpoint with a virtual network rule only adds a subnet-based allow rule. The account keeps its public endpoint and public IP, so an Internet path remains.
    • B. Incorrect. A private DNS zone only resolves names. Without a private endpoint no private IP exists for the account to resolve to, so nothing is reachable privately, and the zone covers only blob, not Azure Files.
    • C. Incorrect. A private endpoint is bound to exactly one storage subresource. An endpoint for blob does not carry Azure Files traffic, which needs its own endpoint for the file subresource.
    • D. Correct. Blob and Azure Files are separate storage subresources, and each needs its own private endpoint in order to be reached over a private IP from vnet1.
    • E. Correct. Private endpoints add a private path but leave the public endpoint reachable. Disabling public network access on the account removes the Internet path once the private endpoints are approved.

    4.3: Configure name resolution and load balancing

    26.Clients report intermittent failures to a Standard public load balancer frontend. Which three Azure features help you investigate it? Select three.(Select 3)

    1. A.Azure Advisor cost recommendations, filtered to the resource group with the load balancer and VMs
    2. B.Traffic Manager endpoint monitor status, checked on the DNS profile that fronts the application
    3. C.Data Path Availability metric in Azure Monitor, charted for the load balancer frontend IP
    4. D.Health Probe Status metric in Azure Monitor, split by the backend IP address of each VM
    5. E.Insights for Azure Load Balancer, opened to see the topology and health of its components
    Show answer & explanation

    Correct answers: C, D, E — Data Path Availability metric in Azure Monitor, charted for the load balancer frontend IP; Health Probe Status metric in Azure Monitor, split by the backend IP address of each VM; Insights for Azure Load Balancer, opened to see the topology and health of its components

    • A. Advisor cost recommendations cover right-sizing and spend. They contain no connectivity or health data, so they cannot explain intermittent failures at the frontend.
    • B. Traffic Manager works at the DNS level and its monitor reports on its own endpoints. Clients here fail at the load balancer frontend itself, so this status does not show what happens on that data path.
    • C. Data Path Availability reports how often the frontend answers the load balancer's own probes end to end. Drops in it point to intermittent frontend failures.
    • D. Health Probe Status split by backend IP address shows which VMs are failing probes or flapping, which explains why only some requests fail.
    • E. Insights for Azure Load Balancer gives a topology view with health status for frontends, rules and backend pools, so unhealthy components can be located.

    4.3: Configure name resolution and load balancing

    27.VMs in vnet-b cannot resolve names in a private DNS zone, while VMs in vnet-a can. Both VNets are in the same subscription. Select two possible causes.(Select 2)

    1. A.Vnet-b lacks VNet peering with vnet-a, the network where the private DNS zone was first linked
    2. B.The registrar for the zone's domain has not delegated the domain to Azure DNS name servers
    3. C.Vnet-b is deployed in a different Azure region from vnet-a, where the private DNS zone was created
    4. D.No virtual network link ties vnet-b to the private DNS zone that the vnet-a VMs already query
    5. E.The custom DNS servers set on vnet-b do not forward unresolved queries to the platform address 168.63.129.16
    Show answer & explanation

    Correct answers: D, E — No virtual network link ties vnet-b to the private DNS zone that the vnet-a VMs already query; The custom DNS servers set on vnet-b do not forward unresolved queries to the platform address 168.63.129.16

    • A. Peering plays no part in private DNS zone resolution. A VNet sees a zone through its own virtual network link, whether or not it is peered with the VNet linked first.
    • B. Private DNS zones are served by the Azure platform resolver to linked VNets. No registrar delegation is involved, and vnet-a already resolves the zone without one.
    • C. Private DNS zones are global resources, so a linked VNet in a different region can still resolve them. A region difference alone does not stop vnet-b from resolving the zone.
    • D. Without a virtual network link, the platform resolver does not serve the zone's records to vnet-b. VMs in vnet-a resolve the names because that VNet is linked.
    • E. Custom DNS servers must forward to the Azure platform resolver at 168.63.129.16 for private zone names to resolve.

    4.1: Configure and manage virtual networks in Azure

    28.A route table on subnet `snet-app` sends 0.0.0.0/0 to a virtual appliance at 10.0.2.4, a Linux firewall VM in subnet `snet-nva` with OS forwarding enabled. Effective routes on app VMs show the route as Active, yet traffic never reaches its destination. What is the most likely missing configuration?

    1. A.Associate the same route table with `snet-nva`, so replies leaving the appliance follow the same next hop.
    2. B.Turn on IP forwarding for the firewall VM's network interface in Azure, so packets addressed elsewhere are delivered.
    3. C.Attach a public Standard IP to the appliance NIC, so the next hop address is accepted as a valid target.
    4. D.Change the next hop type to Virtual network gateway, so the firewall VM is reached through a gateway object.
    Show answer & explanation

    Correct answer: B — Turn on IP forwarding for the firewall VM's network interface in Azure, so packets addressed elsewhere are delivered.

    • A. The 0.0.0.0/0 route would send the appliance's own outbound packets back to 10.0.2.4, creating a loop. The appliance already reaches the app subnet through system routes, so return routing is not the gap.
    • B. The Azure fabric drops packets whose destination is not the NIC's own IP unless IP forwarding is enabled on that NIC. OS forwarding alone is not enough, so the NIC setting is what lets the appliance relay traffic.
    • C. The route already shows as Active with 10.0.2.4 as the next hop, so the address is accepted. A Virtual appliance next hop is a private IP, and a public address does not change whether Azure delivers forwarded packets to the NIC.
    • D. The Virtual network gateway next hop type targets a VPN or ExpressRoute gateway, not a firewall VM. The Virtual appliance type with a private IP is the right choice here, and the route is already Active.

    4.1: Configure and manage virtual networks in Azure

    29.VNet-A and VNet-B are peered and show Connected. An admin adds the range 10.3.0.0/16 to VNet-B and deploys a subnet there. VMs in VNet-A cannot reach 10.3.0.0/16, but still reach the original VNet-B range. What should you do?

    1. A.Sync the VNet-A peering link, in the portal or with Sync-AzVirtualNetworkPeering, to refresh its routes to VNet-B.
    2. B.Enable Allow gateway transit on the VNet-B link, to advertise the extra range to VNet-A across the peering.
    3. C.Add a UDR for 10.3.0.0/16 on the VNet-A subnets with next hop type Virtual network peering, to route it to VNet-B.
    4. D.Enable Allow forwarded traffic on the VNet-A link, to accept packets for the extra range arriving from VNet-B.
    Show answer & explanation

    Correct answer: A — Sync the VNet-A peering link, in the portal or with Sync-AzVirtualNetworkPeering, to refresh its routes to VNet-B.

    • A. When the address space of a peered virtual network changes, the peering on the other side must be synced. Syncing the VNet-A link adds the route for 10.3.0.0/16 without disrupting the existing connection.
    • B. Allow gateway transit lets a peer use a virtual network gateway for on-premises or VPN connectivity. It does not push a new address prefix to the peer, and the scenario describes no gateway, so VNet-A still has no route to 10.3.0.0/16.
    • C. Virtual network peering is not a next hop type for user-defined routes. Azure creates peering routes only from the peering itself, so a UDR cannot supply the missing route to 10.3.0.0/16.
    • D. Allow forwarded traffic controls whether the link accepts packets that did not originate in the peer. It does not teach VNet-A about a newly added address range, so the route to 10.3.0.0/16 stays missing.

    4.1: Configure and manage virtual networks in Azure

    30.VM `web01` intermittently fails to reach 10.4.0.0/16 in a peered virtual network. In the Azure portal you want to see the routes that actually apply to `web01`, including each next hop type and whether the peering route is Active. Which blade should you open?

    1. A.Open the virtual network, then Peerings, which lists each peering with its status and remote address space.
    2. B.Open the subnet's route table, then Routes, which lists the routes configured in that table for the subnet.
    3. C.Open the VM's Networking blade, then Inbound port rules, which lists the security rules applied to the NIC.
    4. D.Open the network interface of `web01`, then Help > Effective routes, which lists system, BGP and user routes.
    Show answer & explanation

    Correct answer: D — Open the network interface of `web01`, then Help > Effective routes, which lists system, BGP and user routes.

    • A. The Peerings blade shows each peering's name, state and remote address space. It has no per-VM route list, next hop types or Active/Invalid route state for web01.
    • B. A route table's Routes blade lists only the user-defined routes added to that table. System routes, including the peering route, are absent, and the table may not exist or may not reflect what web01 actually uses.
    • C. The Networking blade lists NSG port rules, which allow or deny traffic by port, protocol and address. They carry no next hop type, so they cannot show how traffic to 10.4.0.0/16 is routed.
    • D. Effective routes on web01's NIC show the merged route list (system, BGP and user routes) with source, state, address prefix and next hop type. That includes whether the peering route is Active.

    5: Monitor and maintain Azure resources

    5.2: Implement backup and recovery

    31.Goal: Back up an Azure VM daily and keep a monthly recovery point for 12 months. Solution: Create a Recovery Services vault in the VM's region, then assign a policy with a daily schedule and 12-month monthly retention. The solution meets the goal.

    1. A.True
    2. B.False
    Show answer & explanation

    Correct answer: A — True

    • A. True. A Recovery Services vault in the VM's region can protect the VM, and a policy supports daily schedules together with monthly retention values such as 12 months.
    • B. False is incorrect. Nothing in this design breaks a requirement, as the vault region matches the VM and the policy covers both daily and monthly retention.

    5.1: Monitor resources in Azure

    32.Goal: Network operators want one view of the health and key metrics of load balancers, VPN gateways and other network resources across several subscriptions. Proposed solution: Use Azure Monitor Network insights, which provides the network health and connectivity view without extra agent deployment. Does the proposed solution meet the goal?

    1. A.True
    2. B.False
    Show answer & explanation

    Correct answer: A — True

    • A. True. Network insights gives a topology and health view of network resources across selected subscriptions, built on platform metrics and with no agent required.
    • B. False. This is incorrect because Network insights is exactly the Azure Monitor experience for viewing health and metrics of network resources across subscriptions.

    5.2: Implement backup and recovery

    33.The OS disk of an Azure VM is corrupted. You must roll back to last night's recovery point while keeping the VM name, NICs, IP configuration and extensions. Which restore configuration should you use?

    1. A.Replace existing, using a staging storage account to hold the restored disk before the swap
    2. B.Create new virtual machine, placing it in the same VNet and subnet and removing the corrupted original
    3. C.Restore disks, building a new VM from the restored OS disk with a newly created NIC and address
    4. D.File Recovery, mounting the recovery point and copying the system volume files onto the running VM
    Show answer & explanation

    Correct answer: A — Replace existing, using a staging storage account to hold the restored disk before the swap

    • A. Correct. Replace existing puts the recovery point's disk onto the current VM, so its name, NICs, IP configuration and extensions stay in place. The staging storage account only holds the disk copy during the operation.
    • B. Incorrect. Create new virtual machine deploys a separate VM with newly created NICs and its own IP configuration. Placing it in the same VNet and subnet and removing the original does not carry over the existing NICs, IP configuration and extensions.
    • C. Incorrect. Restore disks only returns disks to a storage account. Building a new VM from the OS disk with a new NIC and address gives up the existing network configuration and VM resource that must be kept.
    • D. Incorrect. File Recovery is meant for retrieving individual files and folders from a recovery point. It does not roll back an OS disk, and copying system files over a running operating system would not produce a consistent restore.

    5.1: Monitor resources in Azure

    34.A VM cannot receive traffic on TCP 443 from a partner address 203.0.113.25. You need to confirm whether the VM's effective NSG rules allow that inbound packet and which rule decides it. Which Network Watcher capability should you use?

    1. A.Next hop on the VM network interface, entering source and destination addresses to see which route handles the traffic from the partner.
    2. B.VPN troubleshoot on the virtual network gateway, running the diagnostic against the tunnel to report its status toward the partner site.
    3. C.Packet capture on the VM, saving traffic to a storage account and filtering the file for the partner address once the partner retries.
    4. D.IP flow verify on the VM network interface, entering protocol, addresses and ports for the flow to get the allow or deny result and rule name.
    Show answer & explanation

    Correct answer: D — IP flow verify on the VM network interface, entering protocol, addresses and ports for the flow to get the allow or deny result and rule name.

    • A. Incorrect. Next hop resolves the routing path for a source and destination pair and names the next hop type. It never evaluates NSG rules, so it cannot show whether TCP 443 is allowed or which rule decides.
    • B. Incorrect. VPN troubleshoot reports the health of a virtual network gateway and its connections. A healthy tunnel says nothing about the NSG rules on the VM network interface, so it cannot show which rule decides for TCP 443.
    • C. Incorrect. Packet capture only records packets that reach the VM. If an NSG rule drops the partner's traffic, nothing appears in the file, and a capture never names the NSG rule that made the decision.
    • D. Correct. IP flow verify tests a protocol, local and remote address and port combination against the effective security rules on the network interface. It reports whether the packet is allowed or denied and names the responsible rule.

    5.1: Monitor resources in Azure

    35.Thirty Windows VMs run the Azure Monitor Agent. You must be alerted when the free space of any logical disk drops below 10%. Which two actions should you take? Select two.(Select 2)

    1. A.Create a metric alert rule on the platform metric Free Disk Space Percentage, scoped to the thirty VMs, with a static threshold of 10 percent.
    2. B.Associate a data collection rule with the thirty VMs that collects the LogicalDisk % Free Space counter and sends it to a Log Analytics workspace.
    3. C.Create a diagnostic setting on each VM that sends its platform metrics to a Log Analytics workspace, then alert on the AzureMetrics table.
    4. D.Create a log search alert rule on the Perf table that fires when LogicalDisk % Free Space is below 10 percent, with an action group attached.
    5. E.Create a log search alert rule on the Heartbeat table that fires when a VM stops reporting to the workspace, with an action group attached.
    Show answer & explanation

    Correct answers: B, D — Associate a data collection rule with the thirty VMs that collects the LogicalDisk % Free Space counter and sends it to a Log Analytics workspace.; Create a log search alert rule on the Perf table that fires when LogicalDisk % Free Space is below 10 percent, with an action group attached.

    • A. Incorrect. Platform metrics for a VM are collected at the host level (CPU, disk operations, network). No platform metric reports the free space percentage of guest logical disks, so there is nothing to alert on.
    • B. Correct. Free space inside the guest file system is not visible to the host, so the Azure Monitor Agent must collect the LogicalDisk % Free Space counter through an associated data collection rule and send it to a Log Analytics workspace.
    • C. Incorrect. A diagnostic setting exports only the platform metrics the host already emits. Those do not include guest logical disk free space, so the AzureMetrics table never holds the data needed for a 10% threshold.
    • D. Correct. Once the counter is collected into the Perf table, a log search alert rule with a threshold query on LogicalDisk % Free Space can notify through an action group when a drive falls below 10%.
    • E. Incorrect. The Heartbeat table only shows whether the agent is still reporting. It carries no disk usage values, so an alert on it cannot detect a logical disk dropping below 10% free space.

    Want the full experience?

    These are just samples. Practice the full Microsoft Certified: Azure Administrator Associate (AZ-104) question bank in quiz mode — free, no signup, with domain practice and exam simulation.