100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 90
An engineer was just added to an Entra group that has Contributor at a resource group. Existing portal sessions still behave as read-only until the engineer signs in again. Which explanation is most plausible before changing the Azure role assignment?
- Remove and re-create the existing resource-group Contributor assignment to the Entra group so the engineer’s already-issued sign-in token immediately carries the new membership
- Identity and group-claim refresh or propagation may be needed before the new membership appears in effective access
- Resource group Contributor cannot ever be granted through an Entra group
- The engineer must become tenant Global Administrator for Contributor to apply
Explanation
Correct Answer
B:Group-based RBAC combines directory membership with resource role evaluation, and tokens or propagation may lag a new group addition. Reauthentication and checking effective assignment are appropriate before duplicating permissions.
Incorrect Answers
A:Re-creating an Azure RBAC assignment to the same group does not refresh the engineer’s existing Entra authentication context. The resource-group role is already assigned; the newly added member may still be using older group claims or cached effective access. Ask for a fresh sign-in or token and allow for membership/authorization propagation before making a redundant permission change.
C:Azure RBAC supports group principals. The reported timing points to membership freshness rather than a fundamental unsupported assignment.
D:Global Administrator is a separate, far broader directory role and is not required merely to inherit an Azure resource-group Contributor role.
Question 91
A storage compliance reviewer needs Entra-authenticated blob read access to only the `reports` container inside a shared storage account. The account also contains confidential `payroll` and `secrets` containers. At what scope should an appropriate blob data role be assigned?
- Assign Storage Blob Data Reader at the entire storage-account scope
- Assign Reader at the reports resource group and assume it reveals blob contents
- Assign Owner at the subscription root so data permission errors disappear
- Assign Storage Blob Data Reader directly at the reports container resource scope
Explanation
Correct Answer
D:Azure RBAC supports scoped blob data access at the container level. A container-scoped role provides read capability for the required dataset without granting the same role across unrelated containers in the account.
Incorrect Answers
A:The role would work for reports but extend access to other containers in the account, contradicting the least-privilege boundary. Narrowing the scope to the target container is available.
B:Resource-group Reader is a management-plane role and does not confer the needed blob DataActions. It would likely permit viewing unrelated account metadata while failing the actual download operation.
C:Owner gives far more management and delegation rights than a container audit requires. Broad Owner is not equivalent to a narrowly scoped blob data read grant with Entra authentication.
Question 92
An automation identity was granted Virtual Machine Contributor at resource-group `rg-prod`, but its pipeline operates on a virtual machine in `rg-test`. The two resource groups share a subscription. The pipeline needs rights on one VM in `rg-test` without broadening production access. What is the minimal correction?
- Create an appropriate role assignment on the specific rg-test VM for that automation principal
- Add rg-test to the custom role definition's assignableScopes but leave the role assignment scoped only to the rg-prod VM
- Grant the automation principal Contributor on the subscription
- Add the VM start Action to the existing role definition but keep its only assignment under rg-prod
Explanation
Correct Answer
A:The existing rg-prod assignment cannot cross to a sibling group. A second assignment at the target VM gives the needed operations without expanding rights over every resource in rg-test or the subscription.
Incorrect Answers
B:Assignable scopes govern where a custom role definition is eligible for assignment; changing that property alone does not create an assignment for this principal on the VM in rg-test. A second target-VM assignment is still necessary.
C:Subscription-wide Contributor would cover the VM, but also grant substantial write permissions over unrelated production and test resources. The scope is wider than necessary.
D:Even a role containing the required start Action has no effect on a VM in a sibling resource group unless the principal receives an assignment at that VM or an appropriate ancestor scope.
Question 93
An administrator grants a new application service principal an RBAC role by selecting a user with the same display name, but the application still cannot access an Azure resource. Both directory objects are visible in Entra. What identity property must the role assignment target?
- Use the application's client (application) ID as the RBAC assignment principal in place of its service principal object ID
- Assign the role to the application's actual service principal object ID
- Rename the service principal so it exactly matches the user display name
- Select the application registration object ID rather than the tenant's enterprise-application service principal object ID
Explanation
Correct Answer
B:RBAC binds the principal identity to a directory object, not a display-name string. Two principals can share a name while remaining distinct object IDs; selecting the user leaves the application unprivileged.
Incorrect Answers
A:An application's client ID identifies the app registration across tenants, but the Azure role assignment must refer to the actual service principal's directory principal/object ID in this tenant. The client ID is not a substitute for that principal reference.
C:Names are human-readable attributes and do not merge authorization identities. Matching display strings cannot move role assignments from a user object to a service principal.
D:The application registration and the service principal are different Entra objects. Azure RBAC permissions are assigned to the service principal security principal, so using the app registration's object ID would not correct the mistargeted grant.
Question 94
A support identity has Contributor on a VM but is denied when it tries to grant another user Reader on that same VM. Security requires role delegation at that VM and not at the entire resource group. Which missing permission explains the denial?
- Remove the VM's Delete management lock
- Add Microsoft.Compute/virtualMachines/write to the support identity's VM permissions instead of granting Microsoft.Authorization/roleAssignments/write
- Grant an appropriate narrowly scoped role-assignment management role on that VM
- Grant Reader on the VM and rely on the portal IAM blade to create a Reader role assignment for someone else
Explanation
Correct Answer
C:Contributor includes extensive resource operations but excludes permission to create Azure RBAC role assignments. Role delegation requires a separate authorization grant at an applicable scope, independent of the VM's general management rights.
Incorrect Answers
A:A delete lock might block deletion, but it does not grant the missing role-assignment Action. Even with no lock, Contributor cannot normally delegate roles.
B:The VM write Action manages compute properties, not access delegation. A caller with VM Contributor still lacks the distinct authorization action to create or remove Azure RBAC role assignments at the VM scope.
D:Reader can inspect VM and IAM metadata but cannot issue Microsoft.Authorization/roleAssignments/write. The request needs a narrowly scoped role assignment administrator, not another read-only grant.
Question 95
A user belongs to a group that has the Reader role at management-group scope, and also has Contributor directly on one resource group. At the resource group's VMs, which effective management permission should an operator expect?
- The highest-level Reader assignment always suppresses all lower Contributor grants
- The user receives Owner automatically because two different roles overlap
- The user loses all roles because overlapping assignments are considered an error
- Contributor operations apply to resources in that group, while Reader remains inherited from above
Explanation
Correct Answer
D:RBAC uses cumulative grants over applicable scopes. The inherited Reader does not turn the explicit group-level Contributor into read-only access for resources under the group.
Incorrect Answers
A:Reader is a grant, not a deny policy. A broad read role does not remove separately assigned write permissions at a narrower resource-group scope.
B:RBAC combines permitted actions rather than promoting the principal to a new role. Neither Reader nor Contributor alone gives general RBAC delegation authority.
C:Overlapping grants are a normal feature of Azure RBAC evaluation. They do not invalidate each other merely because their action sets differ.
Question 96
A company manages three subscriptions under a production management group. Its security team has one custom Azure RBAC role definition containing Storage Blob DataActions, with the production management group listed in AssignableScopes. Assigning this custom role directly at the management-group scope fails. The same blob-data permissions must be delegated across the three subscriptions without creating three different role definitions. What should the administrator do?
- Force the custom role assignment at the management-group scope because a matching AssignableScopes entry guarantees DataActions assignments at that scope
- Use the custom role definition at supported child subscription scopes, assigning it separately in the three subscriptions instead of at the management-group scope
- Remove DataActions and add only Microsoft.Storage/storageAccounts/read under Actions, assuming ARM read grants blob contents access
- Grant built-in management-plane Reader at the management-group scope and assume it provides equivalent blob-object data read access
Explanation
Correct Answer
B:Microsoft permits one custom role definition with DataActions and a management-group entry in AssignableScopes, but assignments of that custom role must be created at supported child scopes such as individual subscriptions. Reuse the same definition across the three member subscriptions and grant the required blob-data rights at those subscription scopes. This preserves one role definition without attempting the unsupported management-group-level assignment.
Incorrect Answers
A:AssignableScopes identifies where a custom role definition is available; it does not eliminate restrictions on where its permissions may be assigned. Microsoft documents that a custom role containing DataActions cannot be assigned at a management-group scope, even when the management group is in its AssignableScopes. Forcing or retrying the same assignment will not bypass this limitation.
C:Azure RBAC role Actions generally grant control-plane permissions such as reading storage account management properties; DataActions govern data-plane blob access. Replacing DataActions with a storage account read Action changes the entitlement rather than resolving its assignable-scope problem. The users would be able to inspect management metadata but would not necessarily be authorized to read blob objects as intended.
D:The Reader role at management-group scope can be inherited for Azure Resource Manager management-plane visibility, but it is not equivalent to a role that grants blob DataActions. The scenario calls for reading blob data across three subscriptions. Assigning management Reader would leave that data-plane need unmet even if its management-group assignment were accepted and inherited successfully.
Question 97
A user has a role assignment on one Azure private endpoint resource, but lacks access to the parent VNet. They can view the endpoint itself but cannot change subnet settings. What boundary best explains the difference?
- A DNS zone link replaces RBAC role assignment for subnet edits
- The endpoint-level role assignment does not grant permissions on the separate VNet or subnet resource
- Private endpoints are automatically Owners of the VNet into which they are deployed
- Viewing any endpoint is equivalent to subscription Contributor rights
Explanation
Correct Answer
B:RBAC scope follows the assigned resource and its descendants. Access to an endpoint is not inherited upward to a VNet, even when the two resources are connected.
Incorrect Answers
A:Private DNS controls name resolution, not authorization to modify a subnet. Linking a zone cannot add missing network-management Actions.
C:Network attachment does not confer Azure RBAC rights. The identity's VNet actions still depend on its actual role assignments.
D:Read access to one resource gives no general subscription-write entitlement. Azure authorization does not infer broad resource control from endpoint visibility.
Question 98
A company creates a user-assigned managed identity for a nightly export. The automation can authenticate to Azure, but data access fails. Its original role assignments were granted to an earlier managed identity with the same name that was deleted and recreated. What must be updated?
- Reuse the RBAC role assignment that references the deleted identity’s old principal ID because its display name matches the replacement
- Assign the new managed identity Azure Reader on the export host and assume this grants access to protected storage data
- Assign the required role to the newly created managed identity's current principal ID
- Only rename the managed identity to match the old display name exactly
Explanation
Correct Answer
C:A recreated identity has a different security principal even if its display name is reused. Existing RBAC assignments to the old principal do not automatically authorize the replacement.
Incorrect Answers
A:RBAC grants target security principal IDs, not display-name equivalence. Deleting and recreating a managed identity produces a different principal, so the old role assignment does not authorize the new identity and the current principal needs its own grant.
B:Reader allows control-plane inspection of resources, not the storage data-plane write operation required by the nightly export. The recreated identity needs the correct data role granted to its new principal ID at the storage scope.
D:Names are not stable security principal identifiers. A matching name cannot resurrect the deleted service principal or transfer its old role assignment.
Question 99
A role assignment for a group is made on an Azure subscription. The subscription is later moved into a different management group, but the explicit role assignment remains directly on the subscription. What happens to that assignment, assuming it is not manually changed?
- All subscription-level assignments are deleted automatically when its management-group parent changes
- The role automatically becomes tenant-wide Owner after the move
- The role can only take effect after re-creating the resource groups
- The direct subscription assignment remains associated with that subscription resource scope
Explanation
Correct Answer
D:Management-group reparenting affects inherited ancestor roles, but a grant explicitly assigned on the subscription itself is not relocated to an old ancestor. It continues to apply within the subscription until removed or otherwise invalidated.
Incorrect Answers
A:Direct assignments belong to the subscription scope, not to its former parent. The statement confuses inherited ancestor privileges with explicit child-scope grants.
B:A hierarchy change does not promote a role's Actions or assigned scope. An existing subscription role does not expand to the entire Entra tenant.
C:Resource groups do not have to be recreated for an explicit subscription assignment to continue applying. The assignment already targets their subscription ancestor.
Question 100
A storage account belongs to resource group `rg-data`, which itself is in subscription `sub-A`. The operations team needs an auditor to read properties of that account but not all other resources in the same group. Which scope most closely meets that requirement?
- Assign Reader at the storage account's resource ID
- Assign Reader on sub-A to avoid looking up a full resource ID
- Assign Storage Blob Data Owner at the same resource-group scope
- Assign Contributor on rg-data because Reader cannot view resource properties
Explanation
Correct Answer
A:The resource-level scope limits the user's management-plane read grant to that account and its applicable descendants. A group or subscription assignment would expose unnecessary resource metadata elsewhere.
Incorrect Answers
B:Subscription scope inherits across all resource groups in sub-A. It would meet the read function but violate the stated requirement to limit visibility to one account.
C:Blob Data Owner provides data-plane capabilities for storage objects, not a minimal management Reader grant. It can expose and modify data beyond the requested account-property inspection.
D:Reader is designed for viewing management resource properties. Contributor adds management writes over the group and exceeds the auditor's requirements.
Microsoft Azure Administrator (AZ-104) Practice Tests