Exam-Day Cram Sheet
One page of the highest-yield AZ-104 rules, domain by domain.
Read this the morning of the exam. Each line is trigger → answer, drawn only from the AZ-104 topic pages. Weights are the exam guide's skill ranges: see the Exam Guide & Rules. More detail: Confused Pairs, Numbers, Retirement Timeline.
Identities & Governance (20-25%)
- Block a non-compliant deployment even for an Owner → Azure Policy (Deny), not RBAC
- Only certain regions allowed → built-in Allowed locations (Deny) at management group or subscription
- Fix existing resources (add or inherit a tag) → Modify or deployIfNotExists + remediation task; remediation runs as the assignment's managed identity (portal grants its roles, CLI/PowerShell don't)
- Roll out a policy safely → audit or auditIfNotExists first; Deny and Audit on one resource → most restrictive wins; a child assignment can't override a parent deny
- Exclude a subscope →
notScopes; time-boxed or tracked exception → exemption (Waiver or Mitigated,expiresOn) - Stop accidental deletion but allow edits → CanNotDelete; ReadOnly also blocks VM start, storage List Keys and Advisor results; locks beat Owner, cover the control plane only, can't be set on management groups
- Tags are not inherited (use Policy Modify); names case-insensitive, values case-sensitive; 50 per resource; Merge keeps tags, create/Replace swaps the set,
az tag delete --resource-idremoves all - Manage resources but not roles → Contributor; assign roles only → Role Based Access Control Administrator; manage access broadly → User Access Administrator; VMs only → Virtual Machine Contributor; tag only → Tag Contributor
- Owner can't read blobs with Entra auth → control plane isn't inherited by the data plane: add Storage Blob Data Reader or Contributor
- RBAC is additive; Check access shows inherited and deny assignments; changes take up to 10 minutes; moving a resource orphans its role assignment; changing directory deletes all role assignments and custom roles
- Global Administrator sees no subscriptions → elevate access (User Access Administrator at
/) - SSPR: P1, Authentication Policy Administrator to configure; Selected = one group; hybrid users need password writeback; admins use two-gate policy (test with a non-admin); Authenticator + OATH count as one method; Microsoft account guests can't use it
- Dynamic groups: user or device rules, not both; P1; no manual members; rule builder max five expressions; security groups only nest inside security groups; role-assignable group forces Assigned
- Least privilege: create users → User Administrator; invite guests → Guest Inviter; assign licenses → License Administrator; Entra roles → Privileged Role Administrator
- Guests: invitation PendingAcceptance → resend; blocking a domain doesn't remove existing guests; most restrictive of collaboration and cross-tenant settings wins; 'restricted to own objects' hides other users
- Move resources: same tenant only, destination provider registered, up to 800 resources, groups locked up to 4 hours, resource ID changes, a resource group can't itself move subscription; validate with
validateMoveResources - Budgets alert but never stop resources (add an action group for automation, subscription or resource group scope only); Actual or Forecasted alert type; up to five thresholds and emails; Reader roles are view only
Draws on: Azure Policy · Locks & Tags · Azure RBAC · Self-Service Password Reset · Users & Groups · Licensing · External Users · Subscriptions & Management Groups · Cost Management
Storage (15-20%)
- Zone failure, data stays in region → ZRS; read the secondary without failover → RA-GRS or RA-GZRS; Azure Files has no RA- options; premium accounts support LRS and ZRS only
- LRS to GZRS → two steps (geo by SKU change, zones by conversion with no completion SLA); fixed deadline or different region → manual migration; archive isn't supported on ZRS, GZRS or RA-GZRS
- Failover: planned = no data loss and keeps geo; unplanned = data after Last Sync Time lost, account becomes LRS; change feed, object replication and PITR block planned failover
- Account names: 3-24 lowercase letters and digits; account type can't change after creation; GPv1 to GPv2 is in place, no downtime, irreversible; region move = new account + AzCopy
- Revoke a service SAS without touching keys → delete or change its stored access policy (max 5 per resource); regenerating a key revokes account and service SAS but not user delegation SAS
- Most secure SAS → user delegation SAS (Entra, max 7 days, needs generateUserDelegationKey); disallow Shared Key → only user delegation SAS still works; needed for Conditional Access
- Rotate keys with no downtime → apps to key2, regenerate key1, apps to key1, regenerate key2; Storage Account Key Operator Service Role views and regenerates keys
- Firewall rules do nothing until default action = Deny; VNet rule needs the
Microsoft.Storageendpoint; IP rules are public IPv4 only (no private ranges); firewall is data plane only - Anonymous access: Private (default), Blob (read, no list), Container (list and read); set per container; the account setting overrides containers
- Tiers: Cool 30 days, Cold 90, Archive 180 minimum; archive is offline, rehydrate Standard up to 15 hours, High under 1 hour (objects under 10 GB); Copy Blob keeps the archive original; Set Blob Tier can bounce back via lifecycle
- Lifecycle: one rule can cool, archive and delete; last-access rules need tracking enabled; filters only include; prefix starts with the container name, no wildcards; delete previous versions and snapshots too; changes take up to 24 hours
- Versioning protects overwrites and metadata; blob soft delete 1-365 days; container soft delete restores to the same name; PITR needs soft delete + change feed + versioning and retention at least one day shorter; versioning off while object replication exists is blocked
- Object replication: versioning on both, change feed on source; destination writes return 409; block blobs only; max 2 destinations; copy scope defaults to new blobs only; create the policy on the destination first
- Encryption is always on (256-bit AES); customer-managed keys need Key Vault soft delete AND purge protection, Crypto Service Encryption User for the identity, new account with CMK at creation → user-assigned identity; infrastructure encryption only at creation
- Azure Files: NFS = SSD only; one identity source per account (AD DS, Entra Domain Services or Entra Kerberos); Entra Kerberos error 1327 → exclude the app from MFA; Elevated Contributor modifies ACLs; port 445 blocked → VPN/ExpressRoute
- File share soft delete (default 7 days) restores deleted shares; snapshots restore files but die with the share; delete shares with snapshots using
--delete-snapshots include - AzCopy:
copy --recursivefor subfolders,syncis one-way and needs--delete-destination=trueto mirror deletes,azcopy makecreates containers, no rename command; Owner isn't enough, assign a data role;azcopy login --identityfor managed identity
Draws on: Storage Redundancy & Failover · Storage Accounts · Storage Access · Blob Tiers & Lifecycle · Blob Versioning & Soft Delete · Object Replication · Storage Encryption · Azure Files · AzCopy & Storage Explorer
Compute (20-25%)
- Incremental (default) keeps extra resources; Complete deletes them (CLI/PowerShell only, root templates, not the portal);
what-ifpreviews;az bicep decompile= JSON to Bicep,az bicep build= Bicep to JSON - ARM required:
$schema,contentVersion,resources; Bicep@secure()hides values;@batchSize(n)for serial loops; implicit dependency via symbolic name, nodependsOn; deployment needsMicrosoft.Resources/deployments/*; onlyaz deployment grouptakes--resource-group - Export: deployment history = exact original template; resource group export = current snapshot (200-resource limit)
- VM resize restarts a running VM; deallocate if the size isn't on the cluster; Premium Storage needs an 's' size; Windows can't cross temp/no-temp disk sizes; shrinking a disk isn't supported
- Disks: Ultra (no OS disk, no host caching, no availability sets), Premium SSD v2 (no caching), Premium SSD; change type with the VM deallocated; expanding the disk then extending the volume are separate steps; >2 TiB needs GPT; caching defaults ReadWrite (OS) and ReadOnly (data)
- Spot: no SLA, evicted with 30 seconds notice, set only at creation, max price -1 avoids price eviction; Hybrid Benefit: licenseType
Windows_Server, no restart; new Gen2 VMs default to Trusted Launch - Zone failure → one VM per zone behind a Standard load balancer; availability set = fault + update domains, counts fixed at creation, VM joins only at creation, 99.95% with 2+ VMs; scale set across zones = 99.99%
- Scale sets: Flexible (recommended, standard VM APIs, Backup) vs Uniform; mode fixed at creation; scale out if ANY rule, scale in only if ALL; pair out/in rules; Rolling upgrade for production; Manual needs
update-instances - ADE (BitLocker/DM-Crypt, uses VM CPU) retires Sep 15, 2028 → encryption at host for new VMs (register
EncryptionAtHost, deallocate existing VMs, can't combine with ADE); ADE needs same-region vault with disk encryption enabled and soft delete; KEK must be RSA - Customer-managed key for managed disks → disk encryption set (DES): vault with soft delete + purge protection, RSA key, DES identity access; DES type can't change; disabled key = VMs shut down
- Move:
az resource movechanges group or subscription, never region (use Azure Resource Mover); same tenant; dependents move together (MissingMoveDependentResources); role assignments orphaned; Backup VMs → delete restore point collection first - App Service tiers: Free no custom domain; Shared custom domain but no TLS; Basic = SNI SSL, manual scale to 3, no slots; Standard = slots (5), autoscale; Premium = 20 slots, zone redundancy, automatic scaling; >30 instances or isolation → Isolated v2 (up to 100)
- Plan billing continues with no apps (delete the plan or set Free); moving an app → same resource group, region and OS; region can't change (Clone App); scale up = bigger instance, scale out = more instances; one scaling method per plan
- Custom domain: root = A + TXT
asuid, subdomain = CNAME + TXTasuid.<sub>; managed certificate free but no wildcard; Key Vault cert syncs within 24 hours; uploaded PFX needs manual update binding; HTTPS Only + minimum TLS 1.2 default - Slots: slot (sticky) settings stay put on swap; swap with preview to validate; production stays online; traffic routing % per slot; restore to a slot then swap for minimal downtime; backups skip custom-mounted storage
- App networking: access restrictions = inbound, implicit deny once a rule exists (block one IP → Deny + set unmatched to Allow); VNet integration = outbound only (/28+ delegated subnet); private endpoint = inbound,
privatelink.azurewebsites.net - ACR: Premium for geo-replication, private endpoints, CMK; AcrPull = pull only, AcrPush = push + pull, AcrDelete = delete; registry name 5-50 alphanumeric;
az acr buildneeds no Docker; admin account is off by default - ACI: restart policy Always (default), OnFailure/Never for run-once jobs; CPU, memory or restart changes = delete and re-create; multi-container groups Linux only;
secureValuehides env vars; ACR pull needs a user-assigned identity - Container Apps: scale to zero for HTTP/event rules (not CPU/memory); revisions: single (default) or multiple for traffic splitting; secret changes create no revision; custom KEDA rule for queues; register
Microsoft.App
Draws on: ARM Templates & Bicep · Virtual Machines · Availability & Scale Sets · Disk Encryption · Moving Resources · App Service Plans · App Service Configuration · Containers
Virtual Networking (15-20%)
- Smallest subnet /29; 5 addresses reserved per subnet (so /28 gives 11 usable); vnet and subnet names can't change; no multicast or broadcast; Azure DNS resolves only within a vnet → custom DNS or Private DNS
- NSG: priority 100-4096, lowest first, first match wins; defaults at 65000/65001/65500 can't be edited; stateful; inbound = subnet NSG then NIC NSG, outbound = NIC then subnet; both must allow; Deny first ends it
- NSG sees the private IP, not the public IP; ASGs need NICs in the same vnet; NSG changes affect new connections only; Standard public IP + no NSG = blocked
- Peering: both directions, Connected on both; not transitive; non-overlapping spaces; hub = Allow gateway transit, spoke = Use remote gateways; DNS doesn't resolve across vnets; a peered vnet can't be moved; sync after address-space change
- Routes: longest prefix wins, then UDR > BGP > system; None = dropped (10.0.0.0/8 etc. outside the vnet); NVA needs IP forwarding (Azure and OS) and its own subnet; service endpoint routes can't be overridden by a UDR; no UDR on AzureBastionSubnet
- Next hop = routing for one destination; IP flow verify = which NSG rule for one packet (TCP/UDP, VM running); effective security rules = aggregate per NIC; effective routes = full table; connection troubleshoot = end to end with issue types (NSG, UDR, IP forwarding, DIPProbeDown)
- Service endpoint = per subnet, free, public IP stays, not for on-premises; private endpoint = private IP, needs privatelink DNS zone linked to the vnet, one per sub-resource, same region/subscription as the vnet, Approved state only; set Deny/disable public access too
- Public IP: Standard = static, zones, closed by default; Basic retired Sep 30, 2025; SKU must match the load balancer; zone can't change; prefix size fixed (/28 = 16, /29 = 8), Standard static IPs only; Global tier for cross-region frontends
- Outbound without a public IP: NAT gateway (recommended, highest precedence) > public IP on NIC > LB outbound rules > default outbound; vnets created with the API after Mar 31, 2026 are private by default; SNAT = 64,000 ports per frontend IP
- Load Balancer = layer 4, Standard closed until an NSG allows it, 99.99%; probe source 168.63.129.16, HTTP needs 200; inbound NAT rule → one VM; HA ports (All, 0) on internal Standard; floating IP to reuse a backend port; default distribution 5-tuple
- Probe interval 5 s in the portal vs 15 s from CLI/PowerShell; a backend VM can't reach its own internal LB frontend; Standard internal backends have no default outbound; Basic is gone, upgrade to Standard
- Bastion: subnet exactly
AzureBastionSubnet/26+, Standard static public IP, NSG needs the full rule set (443 in from Internet and GatewayManager); native client and shareable links need Standard; recording needs Premium; downgrades unsupported; CLI default Standard, PowerShell default Basic - Azure DNS: set all four name servers at the registrar; apex needs an alias record (CNAME not allowed); alias updates itself and needs a Standard public IP; SPF = TXT; private zone needs a vnet link, autoregistration to one zone per vnet; Private Resolver for on-premises
- DNS roles: DNS Zone Contributor (public) vs Private DNS Zone Contributor (private); ReadOnly lock on a zone freezes records; stop zone deletion → CanNotDelete on the SOA record set (PowerShell)
Draws on: VNets & Subnets · NSGs & ASGs · VNet Peering · Routing & UDRs · Network Troubleshooting · Service & Private Endpoints · Public IP Addresses · Load Balancer · Azure Bastion · Azure DNS
Monitor & Maintain (10-15%)
- Platform metrics: automatic, 93 days, chart max 30 days at a time; resource logs need a diagnostic setting (max 5 per resource, one destination of each type, storage same region and Standard); activity log is automatic
- Guest OS data (events, Syslog, IIS) → Azure Monitor Agent + a DCR associated with the VM; agent installed but nothing collected → DCR not associated; Log Analytics agent retired Aug 2024
- Alert types: metric (fast, multi-resource same type and region, dynamic thresholds not with multiple conditions), log search (KQL, poor for 'no data'), activity log (stateless, never auto-resolves; Service Health is one)
- Action group: reusable, up to 5 per rule, email verified within 30 minutes, secure webhook for Entra-protected endpoints; Monitoring Contributor creates alert rules, Monitoring Reader only views
- Alert processing rule: suppress notifications (alerts still fire) or apply action groups (needed for Azure Backup alerts); suppression wins; same subscription; not for Service Health; disabling a rule stops alerts entirely
- KQL:
take= arbitrary rows,top ... by= ordered;project= only these columns,extend= add a column;summarize ... by bin();rendermust be last; table and column names are case-sensitive - Insights: Storage insights is free and needs no setup; Network Insights = topology, health, flow-log status, diagnostic toolkit; VM insights Map retires Jun 30, 2028; Dependency Agent needs Azure Monitor Agent
- Network Watcher: IP flow verify, NSG diagnostics (ICMP, scale sets, app gateways), next hop, effective security rules, connection troubleshoot (point in time), Connection Monitor (continuous, alert on ChecksFailedPercent), packet capture (agent extension), VPN troubleshoot
- Flow logs: NSG flow logs retire Sep 30, 2027 (no new ones) → virtual network flow logs; storage same region, Standard; disable NSG flow logs before enabling VNet flow logs; rotating keys stops a flow log until disabled and re-enabled
- Vaults: Recovery Services vault = VMs, SQL/SAP HANA in VMs, Files, MARS, DPM/MABS, Site Recovery; Backup vault = Blobs, PostgreSQL, disks; vault must be in the data's region; default GRS, change redundancy only before protecting items; name 2-50, starts with a letter
- Cross Region Restore needs a GRS vault (cannot be reverted, items appear within 48 hours); soft delete defaults to 14 days (up to 180) and is enforced on Recovery Services vaults (the pages differ for Backup vaults by region); immutable vault stops early deletion; CMK before any item is protected
- VM backup: Standard policy minimum RPO 1 day, Enhanced hourly (4, 6, 8, 12, 24 h) and Ultra/Premium SSD v2; minimum daily retention 7 days; 100 VMs per policy; shut-down VM = crash-consistent; instant restore snapshots default 2 days (Standard) or 7 (Enhanced)
- Restore: Create new VM (no availability set) vs Restore disks (customize) vs Replace existing (VM exists and powered off); alternate location doesn't keep the policy; encrypted VMs: no file recovery, no cross-subscription or cross-zonal restore
- Roles: Backup Operator = enable backup + restore; Backup Contributor = policies, stop backup; Site Recovery Contributor = replication; backup alerts are built in, add an action group via a processing rule; no lock on
AzureBackupRG_* - Site Recovery: vault in any region except the source; managed disks only; outbound HTTPS only by service tags (Storage.<region>, AzureActiveDirectory, EventHub.<region>, AzureSiteRecovery); cache storage same region and subscription as the source
- ASR defaults: retention 1 day, crash-consistent every 5 minutes (fixed), app-consistent 0 hours (off); Latest = lowest RPO, Latest processed = lowest RTO; Custom point not in a recovery plan; replication group uses port 20004
- ASR flow: test failover into a non-production vnet (then cleanup) → failover → Commit (deletes recovery points) → Re-protect → failback; recovery plan: ordered groups, one plan per target subscription, runbook for scripts, manual action only pauses
Draws on: Azure Monitor · Alerts & Action Groups · Insights · Network Watcher · Backup Vaults · Backup & Restore · Site Recovery