100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 70
A custom role grants Microsoft.Compute/virtualMachines/read and Microsoft.Compute/virtualMachines/start/action but has no delete action. A VM operator can start the VM and see properties but requests to delete it fail. Which permission change would authorize only the extra deletion operation if the business now approves it?
- Add Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read to DataActions
- Add the VM deletion action to NotActions rather than Actions
- Add the VM delete operation under DataActions instead of Actions
- Add the specific Microsoft.Compute/virtualMachines/delete action to the custom role and review its scope
Explanation
Correct Answer
D:Azure custom roles enumerate management actions, so extending the Actions allowlist with the VM delete operation grants the targeted capability. The assignment must remain appropriately scoped.
Incorrect Answers
A:Blob data read is unrelated to deleting an Azure VM resource and would not satisfy the denied Compute management action.
B:NotActions removes an operation from the custom role's own allowed management actions; it cannot grant the newly approved delete capability.
C:Deleting the VM resource is an ARM management-plane operation. The custom role must add the matching management Action.
Question 71
A tenant administrator tries to create an Azure RBAC deny assignment by hand on a production resource group to stop its owners deleting resources. The normal create-role-assignment workflow does not offer this. What should be understood about deny assignments?
- Azure creates and manages deny assignments for supported protection scenarios; customers generally cannot create arbitrary deny assignments directly
- Any Reader can directly create a deny assignment through Access control (IAM)
- A deny assignment is just a custom role with NotActions entries
- Apply an Azure Resource Manager CanNotDelete lock and treat that management lock as an Azure RBAC deny assignment created manually
Explanation
Correct Answer
A:Deny assignments take precedence over allowed role grants, but their creation path is distinct from ordinary user-created role assignments. Deployment stacks and supported Azure features create applicable denies.
Incorrect Answers
B:Reader does not have the necessary management rights, and generic customer-managed deny creation is not an ordinary public RBAC feature.
C:NotActions subtracts permissions within its role; it is not a global deny that overrides grants from other assigned roles.
D:A CanNotDelete ARM management lock may protect the resource from deletion by a different mechanism, but that lock is not an Azure RBAC deny assignment. Applying a lock does not grant the tenant administrator arbitrary deny-assignment authoring; supported Azure services still manage deny assignments.
Question 72
A security operator creates a custom role granting Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read under DataActions. The holder can read blob content but cannot delete the storage account resource. Which explanation is correct?
- Blob DataActions automatically imply subscription Contributor rights
- A role must be named Storage Account Contributor before any permissions work
- Account deletion is always allowed when the user can read one container
- DataActions authorize blob data-plane reads, not storage account management-plane deletion
Explanation
Correct Answer
D:Azure RBAC divides management Actions from data-plane DataActions. A blob read grant does not include Microsoft.Storage/storageAccounts/delete, so resource deletion remains outside the custom permission set.
Incorrect Answers
A:Data-plane access is not a transitive grant of Azure Resource Manager write actions. Automatically conferring Contributor would undermine the distinct permission planes.
B:Custom-role names do not set their effective capabilities. The actual Actions, DataActions, scope and assignments determine what is authorized.
C:Reading objects in a container is narrower than managing the parent account. The scenario demonstrates precisely why resource management permissions need separate evaluation.
Question 73
A user has Blob Data Reader assigned at a container and a custom role containing NotDataActions for blob read at the same scope. An engineer assumes that NotDataActions acts as a global deny. What result should the administrator expect?
- The user can still read blobs through the independent Blob Data Reader assignment
- NotDataActions overrides every role and blocks container reads
- The built-in Blob Data Reader permission applies only if its assignment was created after the custom role assignment.
- The custom role’s NotDataActions automatically becomes an Azure deny assignment for blob reads at that scope.
Explanation
Correct Answer
A:NotDataActions subtracts from the permissions defined by its own role, not from grants supplied by other roles. Azure RBAC additive role assignments must be assessed together; a true deny requires a separate applicable deny control.
Incorrect Answers
B:A custom role exclusion is not an explicit deny assignment and cannot revoke rights contributed by an unrelated built-in data role. The separate assignment still matters.
C:Azure RBAC combines applicable allow grants; it does not use assignment creation order to prioritize an exclusion in another role. A role-level NotDataActions is not an explicit deny, so the separate Blob Data Reader assignment can still authorize the blob read regardless of which assignment came first.
D:NotDataActions subtracts specified actions from the permissions granted by that custom role. It does not create an ARM deny assignment and therefore cannot cancel a read action granted by a distinct role. Actual deny assignments have different semantics and can block allowed actions, but none is described here.
Question 74
A custom role uses a broad wildcard in its management Actions to make future VM maintenance easier. Security wants to prevent accidental permission expansion when new resource-provider operations become available. Which design change best limits that risk?
- Set the custom role description to least privilege and leave its Actions untouched
- Enumerate the required management Actions rather than relying on a broad wildcard
- Grant Owner at the management group instead
- Set the role's AssignableScopes to only one resource group while retaining the wildcard management Actions
Explanation
Correct Answer
B:Wildcards can cover operation families more broadly than originally anticipated as providers evolve. Explicit required actions support a narrower, reviewable custom role boundary.
Incorrect Answers
A:Descriptive labels do not change authorization behavior. The actual Actions list still grants wildcard operations.
C:Owner is more powerful and introduces role delegation. It makes the unwanted permission breadth worse.
D:Reducing AssignableScopes limits where the role can be assigned, but any assignment within that group still receives all Actions matched by the broad wildcard, including future provider operations. Replace the wildcard with reviewed explicit Actions for least privilege.
Question 75
A security team needs to delegate assignment of Key Vault data-access roles to an operations lead. That lead must grant approved users Key Vault Secrets User or Secrets Officer permissions, but must not gain general permission to assign Owner or User Access Administrator for the subscription. Which built-in role most directly enforces the separation?
- Assign User Access Administrator on the subscription so all role assignments are permitted.
- Assign Key Vault Reader, since metadata visibility implicitly authorizes changing vault data-access grants.
- Assign Key Vault Data Access Administrator at the appropriate scope, respecting its built-in role-assignment conditions.
- Assign Key Vault Secrets User, because reading secret values includes the right to delegate new RBAC role assignments.
Explanation
Correct Answer
C:Key Vault Data Access Administrator is designed to delegate supported Key Vault data-access roles without granting unconstrained Owner or User Access Administrator assignment power. Its built-in condition limits which Key Vault roles can be assigned. The operations lead can therefore handle narrowly scoped vault data access while general subscription authorization remains separately governed.
Incorrect Answers
A:User Access Administrator is a powerful general role for managing role assignments and is not restricted to Key Vault data-plane roles. Granting it at subscription scope would let the operator delegate access far beyond the requested secret and certificate operations. This breaks the explicit requirement to avoid broad privileged role-assignment authority.
B:Key Vault Reader is useful for inspecting non-sensitive Key Vault metadata under the RBAC model. It does not include the management-plane role-assignment operations necessary to grant Secrets User or Secrets Officer to other principals. A lead with only Reader would remain unable to perform the access-delegation task described.
D:Key Vault Secrets User authorizes reading applicable secret values; it is not an administrative role for assigning other people Azure RBAC permissions. Giving the lead this role would potentially expose secret contents while failing the requested delegation workflow. It confuses a data-consumer permission with the role-assignment control plane.
Question 76
A compliance officer needs to assign Azure Policy initiatives and create policy exemptions in one subscription but must not receive general permission to alter virtual machines, storage accounts, or application settings. Which built-in role is the closer starting point?
- Assign Resource Policy Contributor at the subscription scope, subject to appropriate exemption permissions
- Assign subscription Owner because every policy assignment needs full ownership
- Assign Virtual Machine Contributor and expect it to include policy assignments
- Assign Reader and rely on its ability to view existing policies
Explanation
Correct Answer
A:This specialized role grants policy-management operations and is narrower than Contributor for broad resource changes. It matches an administrative policy workflow without giving the officer unrestricted VM and storage configuration authority.
Incorrect Answers
B:Owner includes extensive resource writes and RBAC delegation, exceeding the described need. A specialized policy role is designed to isolate governance operations.
C:Virtual Machine Contributor is focused on VM management, not the Azure Policy resource provider's assignment operations. It would both mis-scope and miss key tasks.
D:Reader can inspect many resource configurations but cannot create or change policy assignments. Visibility does not confer the write actions the officer must perform.
Question 77
An operations engineer must create Azure Monitor alert rules and action groups for selected resource groups. The engineer should not manage compute or networking resources themselves. What permission should the administrator evaluate first?
- Grant Log Analytics Reader on the monitoring workspace and assume query access permits creating alert rules and action groups
- Grant Monitoring Contributor at the resource-group scope where the monitoring resources reside
- Grant Monitoring Reader because viewing alerts implies permission to create them
- Grant Monitoring Contributor only at an unrelated workspace scope while writing the alert rules and action groups into different resource groups
Explanation
Correct Answer
B:Monitoring Contributor covers supported alert and monitoring resource configuration while avoiding general Contributor rights over VMs and VNets. Scope it to the actual alert-resource placement.
Incorrect Answers
A:Workspace query rights do not grant the Microsoft.Insights management write permissions needed to deploy alert rules and action groups into the target resource groups. Monitoring Contributor at the corresponding resource scope is the more targeted management role.
C:Monitoring Reader allows viewing monitoring information but does not include the write operations needed to create rules and action groups. Read-only access would leave alert provisioning blocked.
D:Azure RBAC permissions apply at their assignment scope and descendants; a role on a workspace does not automatically cover separate alert-rule and action-group resources outside that scope. Assign the needed monitoring role where those resources are created.
Question 78
A support team must restart and troubleshoot a fleet of virtual machines but should not be able to modify arbitrary storage accounts or networking policy in the subscription. The team also must not grant roles to other users. Which built-in role most closely matches the workload?
- Assign Network Contributor on the same resource group
- Assign Reader because reading a VM's state allows the Start operation
- Use Virtual Machine Contributor at the smallest resource group containing the assigned VMs
- Assign Owner at the subscription so VM start operations are guaranteed
Explanation
Correct Answer
C:The role focuses on VM-related operations and is narrower than generic Contributor across every resource type. It does not by itself delegate role assignments, so it fits the no-RBAC-grants constraint.
Incorrect Answers
A:A network-specific role addresses network resources, not the required VM life-cycle actions. The engineer would still lack the VM management actions needed to restart the fleet.
B:Reader can inspect the VM configuration but cannot execute VM state changes. The required restart needs a write/action permission, not merely visibility.
D:Owner grants full management and role delegation over the whole subscription. That exceeds both the workload restriction and the explicit prohibition on assigning other users' access.
Question 79
A finance investigator uses their Entra identity to download blobs for a monthly reconciliation. Azure Resource Manager Reader lets them inspect the storage account, but authorization for downloading blob contents fails. The account has Shared Key disabled. Which permission should be evaluated?
- Grant Reader again at a higher management-group scope
- Rotate the storage account keys and send a new key to the investigator
- Enable public anonymous container access for all users
- Grant Storage Blob Data Reader at an appropriate container or storage-account scope
Explanation
Correct Answer
D:With Shared Key disabled, the client needs Microsoft Entra data-plane authorization. Storage Blob Data Reader includes blob read data actions without granting the ability to change account settings.
Incorrect Answers
A:Adding another management-plane Reader grant still does not authorize downloading blob bytes. Changing scope of an insufficient role cannot supply the missing DataActions.
B:The case explicitly disables Shared Key authorization, and circulating a shared key violates the per-user identity requirement. A rotated key is not a substitute for Entra blob data-plane RBAC.
C:Anonymous read can expose the dataset beyond the investigator and bypass the intended identity-based control. It would turn a least-privilege access problem into a public-data risk.
Question 80
A security responder needs to query log data in a Log Analytics workspace but must not alter saved searches, workspace settings, or data ingestion. Which built-in permission is the more appropriate starting point?
- Grant Log Analytics Reader for the relevant workspace, checking the workspace access control mode
- Grant Log Analytics Contributor because querying is a write operation
- Grant Monitoring Reader on the Azure VMs but omit Log Analytics workspace query access
- Grant Azure Monitor Contributor because every log query necessarily modifies the workspace
Explanation
Correct Answer
A:The specialized Reader role supports read/query use cases while avoiding broad workspace management permissions. The actual data visible may depend on the workspace's access-control configuration and the caller's resource scope.
Incorrect Answers
B:Querying existing records does not require the resource-management writes that Contributor provides. The role would exceed the investigator's nonadministrative need.
C:Monitoring Reader on a VM does not automatically grant the job permission to query the Log Analytics workspace's data under its selected access-control mode. Grant the needed workspace log read capability at an appropriate scope.
D:Azure Monitor Contributor includes broad monitoring configuration writes beyond the stated query-only task. Query access should start with an appropriate read role and workspace access-control mode.
Microsoft Azure Administrator (AZ-104) Practice Tests