AZ-104 Free Quiz
No account or credit card needed — your score shows right here.Your company has an ARM template that meets its security standards. Other teams must be able to deploy it, but they must not be able to change it. Access must be managed with Azure role-based access control (RBAC). What should you do?
Correct Answer
It is like putting a master document in a shared library where staff can borrow and use it but only librarians can edit it.
Template specs store a template as an Azure resource, so RBAC controls who can deploy or change it.
- A template spec stores the template as a resource type.
- RBAC manages access to the template spec.
- Users with read access can deploy it but cannot change it, which meets both requirements.
- A
- What-if only previews which resources would be created, updated, or deleted.
- It does not share the template or control who can edit it.
- B
- The tool kit (arm-ttk) only checks that a template follows recommended guidelines.
- Sending copies gives each team a file it can freely change.
- C
- Deployment scripts add PowerShell or Bash to set up resources during deployment.
- They do not control access to the template itself.
- Picking a validation or preview feature because it sounds like governance, instead of the RBAC-controlled template spec.
- Template specs let you safely share templates that meet your organization's standards.
- Bicep integrates with Azure services such as template specs, Azure Policy, and Azure Blueprints.
- Each Bicep file is automatically converted to an ARM template during deployment.
- ARM templates are idempotent: redeploying the same template gives the same resources in the same state.
- The Azure portal tracks deployment history, including the template, parameter values, and outputs.
Answered
0/10
Correct
0
Score
0%
An administrator runs a Windows VM in Azure. A developer saved a working cache to drive D, which is the VM's default temporary disk. The developer must apply a patch that needs the VM to reboot, and wants the cache on drive D kept. Which action should the administrator take?
Correct Answer
The temporary disk is like a whiteboard in a rented room. A quick break keeps the notes, but if you check out or get moved to another room, they may be wiped.
Temporary disk data persists through a successful standard restart, but might be lost on stop, redeploy, or maintenance.
- Drive D is the temporary disk, which is not a managed disk.
- The sources state that temporary disk data persists during a successful standard restart.
- A restart applies the patch and keeps the cache.
- A
- Stopping the VM is listed as an event where temporary disk data might be lost.
- B
- Redeploying a VM is listed as an event where temporary disk data might be lost.
- D
- Temporary disk data might be lost during a maintenance event, so persistence is not assured.
- Treating every reboot-like action the same; only a successful standard restart keeps temporary disk data.
- Most VMs have a temporary disk, and it isn't a managed disk.
- It is meant for page files, swap files, or SQL Server tempdb files.
- On Windows VMs, the temporary disk is drive D by default.
- On Linux VMs, it is typically /dev/disk/azure/resource.
- VMs version 5 and above automatically encrypt their temporary disks with encryption-at-rest.
Answered
0/10
Correct
0
Score
0%
A company stores product images in Blob Storage in a Standard general-purpose v2 (StorageV2) account. The storefront must keep reading images if the entire primary region goes down. The team does not want to wait for an account failover before reads resume. Which redundancy option should the administrator configure?
Correct Answer
GRS is like a spare house key kept in a locked safe in another city. RA-GRS is like a spare key already in your friend's hand there, ready to use right away.
Only the read-access geo options (RA-GRS or RA-GZRS) let apps read the secondary region without a failover.
- RA-GRS copies data to a secondary region hundreds of miles away.
- With read access enabled, data is always readable from the secondary, even when the primary region is unavailable.
- No failover is needed for reads, which meets the no-wait requirement.
- Blob Storage and StorageV2 accounts both support RA-GRS.
- B
- ZRS spreads copies across availability zones in the primary region only.
- The outage table shows ZRS is not available in a region-wide primary outage.
- C
- LRS keeps all copies in a single datacenter in the primary region.
- It is not durable or available in a region-wide outage.
- D
- GRS does replicate to a secondary region.
- But the secondary isn't readable unless a failover to the secondary region occurs.
- Assuming any geo-replicated option (GRS) allows secondary reads; only the RA- variants do so without failover.
- The secondary endpoint adds -secondary to the account name, e.g., myaccount-secondary.blob.core.windows.net.
- Account access keys are the same for the primary and secondary endpoints.
- Geo-replication to the secondary is asynchronous, so some recent writes may be lost in a disaster.
- Azure Files doesn't support RA-GRS or RA-GZRS.
- Read availability is at least 99.99% for RA-GRS versus at least 99.9% for GRS (hot tier).
Answered
0/10
Correct
0
Score
0%
A company stores audit files as block blobs in a general-purpose v2 storage account configured for LRS. Soft delete is not enabled. An administrator uses Set Blob Tier to move one blob to the archive tier. Sixty days later, an auditor needs the file. The administrator uses Set Blob Tier again to move the same blob from archive to the hot tier. What early deletion charge applies to this blob?
Correct Answer
It is like breaking a six-month lease after two months. You pay rent for the four months you skipped, not the whole term again.
Archive data leaving the tier before 180 days incurs a prorated fee for the remaining days.
- The archive tier requires data to stay for at least 180 days.
- Moving a blob to the hot tier before then triggers the early deletion charge.
- The charge is prorated: 180 minus 60 equals 120 days of archive storage.
- Soft delete is not enabled, and Set Blob Tier was used, so no exception applies.
- A
- The penalty applies when a blob is deleted, overwritten, or moved to a different tier.
- Moving it to hot counts, even though nothing was deleted.
- C
- The charge is prorated, not a flat 180 days.
- Only the 120 remaining days are billed as an early deletion fee.
- D
- The archive tier has its own 180-day minimum.
- Early deletion charges are not limited to the cool and cold tiers.
- Assuming only deletion triggers the fee; a tier change out of archive before 180 days also does, prorated by remaining days.
- Cool tier minimum is 30 days; cold tier minimum is 90 days; archive minimum is 180 days.
- Rewriting the whole object with Put Blob, Put Block List, or Copy Blob within the window also triggers the charge.
- With soft delete enabled, a blob is only soft-deleted until retention expires and is not subject to the penalty.
- Copy Blob can avoid the early deletion penalty but results in capacity charges for two blobs.
- Rehydrating from archive to an online tier can take up to 15 hours.
Answered
0/10
Correct
0
Score
0%
An administrator adds a subnet with a /29 address range to an Azure virtual network. They plan to deploy small VMs into it. Each VM has one network interface with one private IPv4 address. No other resources will use the subnet. What is the maximum number of these VMs the subnet can hold?
Correct Answer
It is like an eight-seat table where the venue always keeps five seats for staff. Only three seats are left for guests.
Azure reserves five addresses in every subnet, so a /29 leaves three usable IP addresses.
- A /29 range provides eight IP addresses in total.
- Azure reserves the first and last address for protocol conformance.
- Azure reserves three more addresses for Azure service usage.
- 8 − 5 = 3 usable addresses, so only three single-IP VMs fit.
- A
- Counts the raw /29 size of eight addresses.
- Ignores the five addresses Azure reserves in each subnet.
- B
- Subtracts only the first and last addresses, as in classic networking.
- Misses the three extra addresses Azure keeps for service usage.
- D
- Subtracts only the three Azure service addresses.
- Misses the first and last addresses reserved for protocol conformance.
- Applying the familiar 'subtract network and broadcast' rule (6 hosts) instead of Azure's five reserved addresses per subnet.
- The smallest subnet range you can specify is /29.
- Subnet ranges must use CIDR (Classless Inter-Domain Routing) notation and can't overlap other subnets in the virtual network.
- You can change a subnet's address range only if no resources are deployed in it.
- You can delete a subnet only if there are no resources in the subnet.
- Connecting a VPN (Virtual Private Network) gateway requires a separate gateway subnet.
Answered
0/10
Correct
0
Score
0%
An administrator is connected over SSH from an internet IP address to VM1. A custom inbound NSG rule at priority 200 on VM1's network interface allows this SSH traffic. No other custom rules exist. While the session is open, the administrator deletes the priority 200 rule. What happens?
Correct Answer
It is like changing a door's guest list: people already inside can stay, but anyone arriving later is checked against the new list.
NSG rule changes apply only to new connections; existing flows keep running.
- A flow record tracks the open SSH (Secure Shell) connection, which makes the NSG stateful.
- Removing an allow rule leaves existing connections uninterrupted.
- A new SSH attempt is evaluated against the remaining rules and is blocked.
- B
- The existing session is not dropped by a rule change.
- The source is an internet IP, so no default inbound allow rule matches; DenyAllInbound applies.
- C
- Existing connections are not affected by removed or updated rules.
- Only the new connection attempt is blocked.
- D
- Rule changes take effect for new connections without reassociation.
- New SSH (Secure Shell) attempts are blocked right after the rule removal.
- Assuming deleting an allow rule instantly kills live sessions, when NSG changes affect only new connections.
- NSG rules are processed by priority; lower numbers are processed first.
- Processing stops once traffic matches a rule.
- DenyAllInbound has priority 65500 and denies all inbound traffic not matched earlier.
- AllowVNetInBound (65000) only allows traffic from the VirtualNetwork service tag.
- Default rules can't be removed, but higher-priority rules can override them.
Answered
0/10
Correct
0
Score
0%
An administrator assigns a user the built-in Contributor role at the scope of subscription Sub1. Later, a second administrator assigns the same user the built-in Reader role on resource group RG-Finance, which is in Sub1. No deny assignments or role assignment conditions apply. What are the user's effective permissions on resources in RG-Finance?
Correct Answer
It is like holding a master key to a building and a visitor badge for one room. The visitor badge does not take away the master key; you can still open that room fully.
Azure RBAC is additive: effective permissions are the sum of all role assignments that apply.
- Azure RBAC is an additive model, so the user's effective permissions are the sum of both assignments.
- Contributor at the subscription scope already covers RG-Finance, a child scope of Sub1.
- Reader adds nothing new, so the Reader assignment has no impact and the result is Contributor.
- A
- A narrower scope does not override a broader one; assignments are summed, not replaced.
- The source states the Reader assignment in this exact case has no impact.
- B
- Only a deny assignment blocks access, and the scenario states none apply.
- Overlapping role assignments are not treated as a conflict; they are added together.
- C
- Summing Contributor and Reader yields only Contributor permissions.
- Contributor does not allow assigning roles in Azure RBAC; only roles like Owner grant that.
- Assuming the most specific or most restrictive assignment wins, as in some permission systems. Azure RBAC simply adds permissions.
- A role assignment has three elements: security principal, role definition, and scope.
- Scopes are management group, subscription, resource group, or resource, in a parent-child relationship.
- If a deny assignment applies, access is blocked before role assignments are evaluated.
- Role assignments are transitive for groups, including nested group membership.
- Contributor grants full resource management but cannot assign roles; Owner can.
Answered
0/10
Correct
0
Score
0%
Resource group RG-App contains VM1, VNet1, and storage account st1. A CanNotDelete lock is applied only to st1. RG-App and the other resources have no locks. An administrator with the Owner role at the subscription scope tries to delete RG-App. What is the result?
Correct Answer
Picture a moving truck that only leaves when every box is loaded. If one box is bolted to the floor, the truck doesn't leave at all. It doesn't drive off with just the loose boxes.
A Delete (CanNotDelete) lock on any resource blocks deletion of its whole resource group; partial deletion isn't possible.
- st1 has a Delete lock, and RG-App contains st1.
- Deleting a resource group with a locked resource blocks the whole delete operation.
- Unlocked resources in the group are not deleted either, because partial deletion isn't possible.
- A
- Azure does not delete the unlocked resources and skip the locked one.
- The source states a partial deletion isn't possible.
- C
- The lock overrides any user permissions, including Owner.
- Owner can remove the lock first, but the lock still applies while it exists.
- D
- Deactivation followed by a waiting period describes subscription cancellation.
- It does not describe resource group deletion, which the lock blocks.
- Assuming Azure deletes the unlocked resources and skips only the locked one, or that Owner bypasses locks.
- CanNotDelete lets authorized users read and modify a resource, but not delete it.
- ReadOnly blocks both delete and update, similar to the Reader role.
- A lock at a parent scope is inherited by all resources in that scope, including resources added later.
- Locks apply only to control plane operations, not data plane operations.
- You can't add a lock to management groups.
Answered
0/10
Correct
0
Score
0%
An administrator creates a metric alert rule on a VM. The rule checks CPU every 5 minutes and is configured as stateful. It sends email through an action group. CPU goes above the threshold and stays there for 2 hours. What happens during those 2 hours?
Correct Answer
A stateful alert is like a smoke alarm that texts you once when smoke appears. It won't text again until the air clears and smoke returns.
A stateful alert fires once when its condition is met and stays quiet until that condition resolves.
- The rule is stateful, so it fires when the CPU condition is first met.
- Stateful alerts do not fire again or trigger more actions until the condition is resolved.
- The CPU never drops below the threshold, so the condition is never resolved during the 2 hours.
- A
- Repeat notifications between the frequency and double the frequency describe stateless metric alerts.
- This rule is stateful, so it does not re-notify while the condition holds.
- C
- A stateful metric alert resolves only when the condition isn't met for three consecutive checks.
- Here the CPU stays high, so the condition is met at every check and never resolves.
- D
- The alert is deleted after 30 days, not within 2 hours.
- For stateful alerts, the condition is stored until the alert is resolved, to prevent firing another alert.
- Assuming every alert re-notifies each evaluation cycle; that repeat behavior applies only to stateless alerts.
- Stateless alerts fire each time the condition is met, even if fired previously.
- All activity log alerts are stateless.
- A stateful metric alert is resolved when the condition isn't met for three consecutive checks.
- When a stateful alert resolves, a resolved notification is sent by webhook or email.
- Alerts are stored for 30 days and then deleted.
Answered
0/10
Correct
0
Score
0%
A company backs up its Azure VMs to a Recovery Services vault that uses geo-redundant storage (GRS). Auditors want the team to restore those VMs in the secondary paired region on demand, as a compliance test. The team must not have to wait for Azure to declare a disaster. What should the administrator do?
Correct Answer
GRS is like a spare house key kept with a relative in another city that you can only collect in an emergency. CRR is permission to go get that key whenever you want.
Cross Region Restore lets you restore Azure VMs in the paired secondary region whenever you choose, unlike GRS alone.
- CRR restores Azure VMs in a secondary region, which is an Azure paired region.
- It is enabled at the vault level, and you can restore replicated data any time you choose.
- It supports audit-compliance restores without waiting for Azure to declare a disaster.
- B
- ZRS replicates across availability zones in the same region.
- It does not provide a copy in a paired secondary region.
- C
- LRS keeps all three copies within the same region.
- No secondary-region copy exists to restore from.
- D
- The sources contrast CRR with the vault's GRS settings.
- With GRS alone, a secondary-region restore depends on Azure declaring a disaster.
- Assuming GRS replication alone lets you restore in the secondary region at any time; CRR is the feature that removes the disaster-declaration wait.
- GRS is the default and recommended replication option for Azure Backup.
- GRS replicates data to a secondary region hundreds of miles away.
- LRS creates three copies of data, all within the same region.
- ZRS replicates data across availability zones, keeping data residency in the same region.
- CRR is enabled at the vault level and restores Azure VMs to an Azure paired region.
Answered
0/10
Correct
0
Score
0%
You got of 10 correct.
Get your full breakdown by email
Per-question review, weak spots to study, and explanations.
The full AZ-104 question bank with complete explanations is part of the Exam Pass.