Microsoft AZ-104 Practice Test 3
Question 20
A governance lead must assign a common collection of location, tag and encryption policies to several subscriptions as one reusable package. What is the Azure Policy feature?
- A management lock
- A policy initiative definition
- An Azure Files snapshot
- An application security group
Explanation
Correct Answer
B:An initiative groups multiple Azure Policy definitions into a reusable policy set that can be assigned and assessed together. Use an appropriate scope and parameter values for each subscription.
Incorrect Answers
A:Locks prevent deletion or management changes but do not package heterogeneous policy rules for compliance assignment. They are a separate resource-protection feature.
C:File-share snapshots provide point-in-time data recovery. They have no role in grouping governance policies across subscriptions.
D:Application security groups help organize VM NICs in network security rules. They do not provide subscriptions with shared governance requirements.
Question 21
A cloud finance manager needs notification when cumulative subscription cost approaches a planned monthly amount. The team must understand that this does not stop resources from running. What should be configured?
- An Azure Cost Management budget with alert thresholds
- A CanNotDelete lock on the subscription
- An NSG rule blocking HTTPS
- A user delegation SAS expiring at month end
Explanation
Correct Answer
A:Cost Management budgets track spending against a chosen period and generate threshold notifications to configured recipients or action groups. A budget is not a hard spending cap and does not automatically pause compute when crossed.
Incorrect Answers
B:A resource lock constrains resource deletion, not billing accumulation. It cannot express an alert when cost approaches a financial target.
C:An NSG controls network traffic. Blocking HTTPS can disrupt services without ensuring spending stays under a budget or notifying finance.
D:A SAS expiry limits delegated access to storage resources. It does not enforce subscription cost controls or notify anyone about spending.
Question 22
A resource group's CostCenter tag did not appear on a newly created VM. Which TWO administration approaches can make the VM carry that required tag? Choose TWO.
- Resource-group tags always inherit to every resource automatically
- Apply the CostCenter tag explicitly to the VM resource
- Virtual machines cannot have tags
- The VM must be joined to Microsoft Entra Domain Services
- Assign an Azure Policy modify rule and remediate eligible resources
Explanation
Correct Answers
B:Azure resource-group tags do not automatically flow to child resources. Setting the approved CostCenter value directly on the VM supplies the metadata the resource currently lacks.
E:A properly scoped modify policy can add or inherit approved tag values during evaluation, and a remediation task can update eligible existing VMs. Its managed identity needs suitable write permissions.
Incorrect Answers
A:Resource-group tags are separate metadata and are not automatically propagated to child resources. Assuming automatic inheritance can make cost allocation reports inaccurate.
C:Azure virtual machines support resource tags. The missing tag reflects lack of explicit propagation, not a VM tagging limitation.
D:Directory domain join governs host sign-in and identity integration. It has no automatic relationship to Azure resource tag inheritance.
Question 23
A policy with a modify effect has been assigned to add a required tag. Older resources remain noncompliant after assignment. What additional step may be needed?
- Create a remediation task using the assignment's managed identity and suitable permissions
- Delete every old resource and recreate it without checking effects
- Promote every resource owner to Global Administrator
- Change all storage accounts to a read-access geo-redundant tier
Explanation
Correct Answer
A:The modify effect can change applicable create/update requests, but preexisting resources often require a remediation task. Its managed identity must have rights necessary to perform the resource changes, or remediation can fail.
Incorrect Answers
B:Mass deletion is unnecessarily destructive and may lose production state. Compliance remediation should update eligible properties where possible, not assume recreation is mandatory.
C:Global Administrator is an Entra tenant role and does not automatically solve policy remediation authorization. Grant only the required Azure resource rights to the assignment identity.
D:Geo-redundancy is a storage resiliency setting. Changing it does not address missing governance tags across arbitrary existing resources.
Question 24
An enterprise plans to apply region restrictions to every subscription under a particular division while leaving other divisions untouched. What is the most appropriate assignment level?
- The division's Azure management group
- An individual VM network interface
- A single Entra security group with no policy scope
- The tenant's default email domain
Explanation
Correct Answer
A:A policy assignment at the division's management group can govern descendant subscriptions while excluding unrelated management-group branches. Review inheritance and any exemptions for legitimate region exceptions.
Incorrect Answers
B:A NIC is a single resource and is far too narrow for a division-wide deployment standard. It would also not cover new services elsewhere.
C:An Entra group defines identities but is not itself the ARM policy hierarchy covering subscriptions. Governance must be applied at an appropriate Azure scope.
D:An email domain is an identity namespace, not a scope for restricting Azure resource locations across subscriptions.
Question 25
A browser application must upload one blob for 15 minutes without receiving the storage account key. The client has no Azure RBAC identity. What access mechanism should the service issue?
- A narrowly scoped short-lived SAS for the target blob or container
- The storage account's primary access key embedded in JavaScript
- The subscription Owner role assigned to every web visitor
- A resource lock on the blob's storage account
Explanation
Correct Answer
A:A SAS grants delegated permissions to specified storage resources for a limited duration. The server should authenticate the user, issue only needed write permissions with a brief expiry, and avoid embedding the account key in the browser.
Incorrect Answers
B:The account key grants broad signing and storage access authority. Publishing it to browser code risks compromise across unrelated containers and cannot meet least privilege.
C:Azure RBAC Owner permits extensive resource management and is not an appropriate permission for anonymous or short-lived browser uploads. It would expose administrative control.
D:Resource locks constrain management-plane deletion or changes, not browser data-plane authorization. A lock cannot grant a visitor temporary blob-upload permission.
Question 26
An application is authorized through Microsoft Entra and needs a short-lived delegated SAS for blobs without signing with the storage account key. Which type is preferred?
- Account SAS
- Service SAS signed with Shared Key
- User delegation SAS
- A file-share stored access policy without a SAS
Explanation
Correct Answer
C:User delegation SAS uses a delegation key obtained using Microsoft Entra credentials for supported storage services. It avoids directly distributing account keys and is the recommended approach when identity-based delegation is supported.
Incorrect Answers
A:An account SAS is signed with a storage account key and can have broad service-level scope. It does not satisfy the no-account-key preference.
B:Service SAS also uses Shared Key and therefore requires access to a storage key at issuance. A scoped service SAS can be useful, but the requirement favors identity-backed delegation.
D:A stored access policy defines constraints for certain service SAS tokens; by itself it is not the signed token a blob client presents. It is not an Entra-backed delegation signature.
Question 27
A container service SAS was generated against a stored access policy. An administrator needs to invalidate that group of issued tokens before their original expiration. What is the supported approach?
- Delete or change the associated stored access policy identifier or permissions
- Rename the Azure subscription
- Change the virtual machine availability zone
- Delete the diagnostic settings on the storage account
Explanation
Correct Answer
A:Service SAS tokens linked to a stored access policy inherit its effective constraints. Changing or removing the policy can revoke associated service SAS grants, though clients should allow for normal propagation behavior.
Incorrect Answers
B:Subscription names are administrative labels and do not alter SAS signatures or the referenced container policy. The old token can remain valid.
C:Availability zones affect compute placement, not storage SAS authorization. VM moves cannot invalidate delegated container access.
D:Diagnostic settings route logs and metrics; deleting them weakens visibility but does not revoke SAS token permissions or expiration.
Question 28
An Azure Storage account is restricted to selected networks. A developer's laptop has the correct Blob Data Reader role but receives a network-denied response. What should be investigated?
- Only the principal's display name
- The storage firewall's allowed IPs, VNet rules, or private endpoint path
- The resource group's tag count
- Whether Microsoft Entra SSPR is enabled
Explanation
Correct Answer
B:Storage network rules are enforced separately from Blob data authorization. Check approved public IP ranges, VNet/service endpoint configuration, private DNS, and private endpoint connectivity to determine why the client's path is denied.
Incorrect Answers
A:Display names are user metadata and do not decide network access. The principal may be correctly authenticated yet blocked before the data request is accepted.
C:Resource group tags organize resources but do not open a restricted storage firewall. Tag count is unrelated to a network-level 403.
D:Password self-service enables identity recovery, not access through a storage account's network perimeter. It cannot repair an unapproved source network.
Question 29
A Windows file server replacement uses Azure Files over SMB. Staff must authenticate using their organizational identities rather than sharing a storage account key. What should the administrator configure?
- Identity-based authentication supported by Azure Files plus file-share and directory permissions
- Public anonymous blob access
- An account SAS as the only sign-in method for SMB
- An Azure Policy exemption for every user
Explanation
Correct Answer
A:Azure Files supports identity-based access for SMB in supported configurations. Configure the chosen identity source, share-level Azure RBAC permissions, and applicable NTFS ACLs so users receive appropriate access without distributing the account key.
Incorrect Answers
B:Public blob access concerns HTTP blob containers, not identity-backed SMB file shares. Making data anonymous violates the enterprise file access requirement.
C:SAS tokens are designed for specific REST access patterns and do not replace the configured SMB identity and file-share authorization flow used by domain-integrated clients.
D:Azure Policy exemptions change governance evaluation and are not an authentication provider or permission structure for file-share access.
Question 30
A security team wants to stop applications from using Shared Key authorization to Azure Blob Storage wherever supported. Which storage-account control addresses that objective?
- Require all users to disable SSPR
- Disallow Shared Key access and use supported Microsoft Entra authorization paths
- Rotate the account key only once per year
- Set the account to geo-redundant storage
Explanation
Correct Answer
B:Disallowing Shared Key authorization blocks supported requests signed using the account key, pushing clients toward Microsoft Entra authorization and supported user delegation access. Inventory dependent services before enforcing the change.
Incorrect Answers
A:SSPR manages user password recovery and does not determine which authorization mechanism Blob Storage accepts. Disabling it would add risk without meeting the goal.
C:Annual key rotation reduces stale secret exposure but continues to permit requests signed with shared keys. It does not prohibit that authentication method.
D:Redundancy controls replication and durability. Geographic copies do not determine whether Shared Key requests are authorized.