Microsoft AZ-104 Exam Dumps, Practice Test Questions

100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

Microsoft AZ-104 Premium Bundle
$79.97
$59.98

AZ-104 Premium Bundle

  • Premium File: 606 Questions & Answers. Last update: Nov 5, 2026
  • Training Course: 132 Video Lectures
  • Study Guide: 458 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

AZ-104 Premium Bundle

Microsoft AZ-104 Premium Bundle
  • Premium File: 606 Questions & Answers. Last update: Nov 5, 2026
  • Training Course: 132 Video Lectures
  • Study Guide: 458 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$79.97
$59.98

Microsoft AZ-104 Practice Test 12

Question 110

A storage auditor must allow requests only when the caller belongs to an approved set of Entra application identities, rather than broadly to any principal with the data role. The assignment is conditional. Which design dimension must the author investigate?

  1. Grant the same unrestricted data role to all service principals
  2. Use a supported Azure role assignment condition based on the request principal attribute or approved identity criteria
  3. Replace the identity condition with storage firewall subnet rules for the current outbound IPs of approved applications.
  4. Use an unconditional blob data-role assignment and rely on Entra application display-name prefixes to restrict reads.

Explanation

Correct Answer

B:

For supported Blob data actions, Azure ABAC can narrow a role assignment using @Principal custom security attributes assigned to the approved Microsoft Entra service principals. Assign a trusted attribute and write the condition against that attribute at an appropriate resource scope; then the data-role grant does not automatically authorize every app identity. A random display-name prefix, a firewall IP rule or an unsupported direct identity selector is not equivalent.

Incorrect Answers

A:

That removes the requested identity selection and would broaden access beyond the approved applications.

C:

Network rules can restrict request origins, not establish that the authenticated Entra application principal belongs to the approved identity set. Several identities might share an allowed subnet or NAT address; another authorized application could run elsewhere. The scenario requires a supported attribute-based condition on the data-role assignment itself.

D:

An ordinary unconditioned Azure RBAC data-role grant does not inspect the caller’s display-name prefix on each blob request. A label is also not a secure identity boundary. The required design must apply a supported principal/identity attribute criterion in an Azure role-assignment condition alongside the data action and its scope.

Question 111

An Azure deployment service principal runs Bicep releases only during a scheduled maintenance window. Security prohibits permanently active broad access, and the principal cannot perform interactive Privileged Identity Management eligibility activation. Which Azure RBAC assignment approach supplies temporary deployment permissions that expire automatically?

  1. Assign subscription Owner permanently so the service principal never loses deployment rights
  2. Give the principal only Reader and rely on Bicep to bypass Azure authorization for writes
  3. Change the ARM deployment mode to Complete so it temporarily grants the principal role assignment rights
  4. Grant a narrowly scoped, time-bound ACTIVE Azure RBAC role assignment to the service principal for the approved window

Explanation

Correct Answer

D:

A time-bound ACTIVE Azure RBAC assignment gives the service principal only the management Actions required at the resource-group or other approved scope during the maintenance window, then expires. Microsoft supports time-limited active role assignments for service principals, which cannot complete human PIM eligibility activation. This separates automated deployment authorization from permanent privileged access without depending on an interactive activation by the application.

Incorrect Answers

A:

A permanent subscription Owner assignment would grant standing control over unrelated resources and Azure RBAC delegation, well beyond the deployment window. It also gives the automation identity powerful permissions even when no release is scheduled. The requested design must restrict the role to the resources used by the pipeline and give the assignment a fixed end time, not preserve Owner indefinitely.

B:

Reader can inspect ARM resources but cannot create or update them during Bicep deployment. Bicep compiles a deployment request; it does not bypass the deployment principal’s Azure RBAC permissions. Even a narrow Reader assignment leaves the service principal unable to perform the documented resource writes, regardless of the deployment template contents.

C:

Complete deployment mode determines whether resources absent from a template may be deleted. It is not an authorization mechanism or a time-limited elevation feature. A principal without appropriate management Actions still receives access-denied errors, and Complete mode can introduce additional deletion risk. It cannot replace an Azure role assignment with defined duration and scope.

Question 112

An organization wants an automation job to access one Azure Storage container through Microsoft Entra authentication. The job runs on an Azure VM and currently stores a long-lived client secret in configuration. Which change reduces secret management while keeping scoped access?

  1. Enable an appropriate managed identity on the VM and assign it a container-scoped Storage Blob Data role
  2. Embed the storage account key in the VM's startup script
  3. Use the VM system-assigned managed identity but grant it Reader at the resource-group scope, assuming Reader permits blob contents
  4. Enable the VM managed identity but assign its Storage Blob Data role to another VM identity with the same display name

Explanation

Correct Answer

A:

The managed identity obtains short-lived tokens through Azure's identity endpoint without the application handling a stored client secret. The scoped data role limits what the automation can read or modify.

Incorrect Answers

B:

An account key is a powerful shared secret, often able to access much more than one container. Placing it in scripts increases exposure and conflicts with identity-based least privilege.

C:

Managed identity removes a secret, but management-plane Reader does not grant Blob data-plane content access. Scope the appropriate Storage Blob Data role to the target container for the managed identity.

D:

Managed identities have distinct service-principal IDs; data-plane RBAC applied to a different principal does not authorize this VM. Verify the assigned principal ID and the target container scope rather than relying on display names.

Question 113

A custom Azure role grants `Microsoft.Compute/virtualMachines/read` but an operator must also inspect a VM's power state through the instance view API. The call fails. Which role-design change should be considered after identifying the provider operation required by instance view?

  1. Expand the role definition's AssignableScopes to the subscription while leaving its allowed Compute Actions unchanged
  2. Add the specific Compute instance-view read Action to the custom role if supported by the intended access policy
  3. Add Microsoft.Authorization/roleAssignments/write to the role
  4. Add Microsoft.Compute/virtualMachines/runCommand/action instead of the virtualMachines/instanceView/read Action

Explanation

Correct Answer

B:

Azure RBAC evaluates the provider operation being called, not just the resource's general `read` action. A narrow custom role should include the actual instance-view Action while excluding VM write and delete capabilities.

Incorrect Answers

A:

Changing a role definition's assignable scopes does not introduce the missing instanceView/read Action. The actual VM API operation must be included in the Actions list and granted through an applicable assignment.

C:

Role-assignment writes grant access-delegation capability, not VM instance-view query permission. This would add sensitive privilege without addressing the specific Compute provider action.

D:

Run Command executes commands in the guest and is a different, more privileged operation than reading instance-view power state. The least-privilege fix is the specific instanceView/read management Action, not an unrelated guest command Action.

Question 114

A custom role grants an operator `Microsoft.Storage/storageAccounts/*` to manage storage accounts, but security wants to exclude the operation that lists account keys from this role while leaving other management actions available. Which RBAC role-definition field is intended for that exclusion?

  1. Limit this custom role's AssignableScopes to one storage account while leaving storageAccounts/* in Actions
  2. Set the same wildcard again in NotDataActions
  3. Place the key-list management Action in the custom role's NotActions list
  4. Add the list-keys operation to DataActions instead

Explanation

Correct Answer

C:

NotActions narrows the Actions granted by that role, including broad wildcards. It is not a global deny, so other separately assigned roles can still authorize that operation.

Incorrect Answers

A:

AssignableScopes limits where the role definition can be used, not which actions it grants within that scope. A wildcard storage-account Action would still include listKeys; use NotActions for the one management-plane operation to exclude.

B:

NotDataActions subtracts data-plane permissions from the same role, while list-keys is a management Action. It would not target the requested operation.

D:

Listing storage account keys is a management-plane provider Action, not a blob content DataAction. Moving it to a data field would not express the desired role exclusion.

Question 115

An organization assigns a custom role that permits resource-group read operations. It should also let operators view only billing/cost reports, but not create budgets or change cost settings. What access-design approach is preferable to granting Contributor?

  1. Grant Contributor over the management group because cost reports require resource writes
  2. Grant Cost Management Contributor at the billing scope so operators can see reports and also create or modify cost settings
  3. Assign the Azure Reader role only on the resource group containing the cost-reporting automation and assume that grants access to billing-account invoices
  4. Add a supported cost-management Reader or appropriate billing-reader role at the required scope

Explanation

Correct Answer

D:

Cost visibility can be delegated separately from resource writes. Selecting the relevant billing or Cost Management read role follows the actual data ownership and avoids expanding the operator's ARM Contributor permissions.

Incorrect Answers

A:

Resource Contributor provides broad configuration changes unrelated to read-only financial reporting. It is not a minimal access solution.

B:

Cost Management Contributor is more privileged than the requested read-only financial visibility: it grants cost-management write operations such as managing budgets or exports at applicable scopes. A Cost Management Reader or appropriate billing-reader role provides cost views without those changes; there is no reason to grant budget administration to a report viewer.

C:

Azure resource-group Reader applies to Azure Resource Manager resources at that scope. It does not grant billing-account invoice or broad Cost Management report access merely because the automation is deployed there. The operator needs the appropriate reader role at the actual cost or billing data scope, not Reader on the unrelated automation's resource group.

Question 116

An Azure custom role uses a wildcard in DataActions to grant a storage operations team read, write, and delete permissions on blobs. The team must continue reading and updating blob data but must lose the delete operation through this role. Which property of this custom role should explicitly subtract the blob deletion data operation?

  1. Add the blob-delete data operation to NotDataActions while retaining the allowed DataActions
  2. Add the blob-delete operation only to NotActions because blob content is a management-plane resource
  3. Remove the subscription from AssignableScopes and assume existing assignments remain useful for read/write
  4. Add an Azure Policy audit assignment on the account and assume it removes the role’s delete permission

Explanation

Correct Answer

A:

NotDataActions subtracts named data-plane operations from the broader DataActions grant in a custom role definition. The wildcard can continue allowing blob reads and writes while the explicit blob deletion operation is excluded from this role. Other assignments must be assessed separately when establishing effective permissions.

Incorrect Answers

B:

NotActions subtracts control-plane provider operations from Actions, not blob data-plane operations from DataActions. Placing a blob deletion permission there would not perform the requested exclusion of the wildcard data grant, so the role could retain a deletion pathway.

C:

AssignableScopes specifies where a role definition may be used. Removing a subscription changes assignment eligibility and may disrupt the role entirely; it does not selectively remove the blob-delete action while preserving read and write for already intended workloads.

D:

An Audit policy evaluates and reports compliance but is not an RBAC deny-assignment mechanism. Creating it cannot subtract a data operation from the team’s custom role. The permission definition itself must be adjusted and effective assignments checked.

Question 117

A security lead delegates Azure RBAC role-assignment management at one resource group. The helper may assign only the Reader role, and only to service principals; no individual users or security groups may receive new assignments from this helper. The lead does not know the service-principal object IDs in advance. Which role-assignment condition design is appropriate?

  1. Use a condition that constrains the role definition to Reader AND the request principal type to ServicePrincipal
  2. Constrain only the Reader role definition and leave principal type unrestricted because all Reader assignments are low risk
  3. Constrain principal ID to the helper’s own object ID, which automatically selects every service principal the helper later manages
  4. Add resource tags PrincipalType=ServicePrincipal to VMs; these tags enforce principal-type selection on new role assignments

Explanation

Correct Answer

A:

The Azure RBAC delegation-condition editor can constrain both the role definition ID being assigned and the request principal type. Selecting Reader and ServicePrincipal allows the helper to assign only that role to service principals at the already limited resource-group scope without predicting future individual object IDs. These are separate checks combined with AND; assignment permissions do not imply broader VM management rights.

Incorrect Answers

B:

Limiting only the role definition ensures the delegated operator cannot grant Owner, but it still allows assigning Reader to users, security groups, and service principals. That violates the explicit target-principal-type constraint. A delegation condition must test the request principal type as well as the allowed role when recipients are restricted by category.

C:

Principal ID addresses one particular recipient object, not a category of eligible recipients. The helper’s own object ID describes the delegate rather than the target service principals, and cannot match unknown new app identities. A request principal-type attribute is the appropriate selector for all service principals without enumerating IDs.

D:

Azure resource tags describe the resources, not the Microsoft Entra principal type in a new role-assignment request. A tagged VM does not enforce whether a delegation helper grants Reader to a user versus a service principal. The condition must evaluate Azure authorization request attributes rather than depend on ordinary resource metadata.

Question 118

A security team is creating a custom role for a monitoring job that needs to query selected Log Analytics data. The job must not delete workspaces or change table retention settings. What role content should be prioritized?

  1. Assign Owner on the subscription to simplify the monitoring code
  2. Grant Log Analytics Contributor on the workspace because log queries require unrestricted workspace write access
  3. Include only the supported workspace/log-query read operations and necessary scope in the custom role
  4. Grant `Microsoft.OperationalInsights/workspaces/*` because query access implies full administration

Explanation

Correct Answer

C:

Role definitions can distinguish reading data from managing resource configuration. Designing around the actual query operations avoids granting workspace write and delete capabilities that the job does not need.

Incorrect Answers

A:

Owner enables resource changes and RBAC delegation well beyond the job's read use case. Broad privilege is not an acceptable shortcut for a monitoring principal.

B:

Contributor can modify settings that the monitoring job must not change. Query-focused read permissions and limited scope should be included instead of granting broad administration.

D:

A broad wildcard can include workspace updates and deletions, violating the stated read-only constraint. The needed query operations should be specified narrowly.

Question 119

An Azure Lighthouse provider and customer already agreed on a managing tenant ID and built-in role authorizations. The customer deployed a Microsoft.ManagedServices registration definition, but the provider still cannot see the target resource group. A read-only check shows the definition exists while no registration assignment references it for that resource group. What must the customer deploy to finish the delegation at the approved scope?

  1. Create a Microsoft.ManagedServices registration assignment at the target resource group that references the valid subscription-level registration definition ID
  2. Create a second identical registration definition in the provider tenant, because every delegation needs two independent provider-side definitions
  3. Grant the provider Storage Blob Data Reader at the subscription scope, because blob data roles activate missing Azure Lighthouse registration assignments
  4. Invite every provider engineer as a B2B guest and grant each subscription Contributor, rather than using the registered managed-service authorization

Explanation

Correct Answer

A:

Azure Lighthouse onboarding creates a registration definition that describes the managing tenant and authorized identities/roles, plus a registration assignment that binds that definition to the customer subscription or resource-group scope. The definition alone does not delegate the intended resource group. Creating the missing Microsoft.ManagedServices/registrationAssignments resource and setting its registrationDefinitionId to the valid definition completes the scope binding; inspect assignment listings afterward to verify onboarding.

Incorrect Answers

B:

The registration definition is an authorization offer stored in the customer subscription; making an identical definition in the provider tenant does not attach the customer resource group to that authorization. This option confuses the identity of the managing tenant with the location of the delegated resource definitions. The missing element is a customer-scope registration assignment referencing the existing definition, not a second offer.

C:

Storage Blob Data Reader is an Azure Storage data-plane permission and neither creates nor activates Microsoft.ManagedServices registration assignments. It also would not delegate Azure Resource Manager management of arbitrary resources in the customer resource group. The provider already has an authorized role list in its Lighthouse definition; the specific missing prerequisite is an assignment connecting that definition to the customer resource-group scope.

D:

Manually inviting every provider engineer as a B2B guest and granting subscription Contributor circumvents the limited delegated access arrangement in the stem. It enlarges the management scope beyond the approved resource group, adds separate guest lifecycle administration, and still does not repair the Lighthouse onboarding resource relationship. Use the existing registration definition with a matching registration assignment for the customer-approved resource group.

Question 120

An enterprise must reject any new Azure resource deployment into regions outside a fixed approved list. It is not enough to report noncompliance after the resource is created. Which Azure Policy effect should the administrator use?

  1. audit
  2. deny
  3. disabled
  4. auditIfNotExists

Explanation

Correct Answer

B:

Deny evaluates matching creation and update requests and blocks ones that violate the allowed-location rule before the resource provider completes deployment. It directly enforces the prevention requirement.

Incorrect Answers

A:

Audit marks a matching deployment as noncompliant but does not reject the incoming resource request. It is valuable for observation, not for the preventive region requirement.

C:

Disabled turns off policy evaluation for the rule, so a request in an unapproved region proceeds without enforcement from that definition.

D:

AuditIfNotExists checks related-resource existence and records compliance findings. It is not the effect for rejecting an otherwise valid resource whose region is disallowed.

Microsoft Azure Administrator (AZ-104) Practice Tests

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.