← Azure Administrator (AZ-104)
Test yourself →

Manage identities & governance

Azure AD (Entra ID) vs Azure RBAC

These are two separate permission systems and mixing them up is the classic exam trap.

  • Microsoft Entra ID (formerly Azure AD) roles control access to directory-level resources: users, groups, licences, domains, app registrations.
  • Azure RBAC controls access to Azure resources: VMs, storage accounts, resource groups, subscriptions.
  • A Global Administrator does not automatically get access to manage Azure resources - they must elevate access explicitly via 'Access management for Azure resources' in the Properties blade of Entra ID.

RBAC structure

  • Scope hierarchy, broadest to narrowest: Management Group > Subscription > Resource Group > Resource.
  • Permissions are inherited downward - a role assigned at a Management Group flows to every subscription and resource beneath it.
  • A role assignment = security principal (user/group/service principal/managed identity) + role definition + scope.
  • Built-in roles to know: Owner (full access plus can assign roles), Contributor (full access, cannot assign roles), Reader (view only), User Access Administrator (manage role assignments only).
  • Deny assignments always override Allow - Azure Blueprints/Policy can create these and they cannot be changed by Contributor.
  • Multiple role assignments are additive - the effective permission is the union.

Custom roles

  • Defined as JSON with Actions, NotActions, DataActions, NotDataActions, and AssignableScopes.
  • Can be created via Azure CLI, PowerShell, or the portal; a subscription can hold up to 5,000 custom roles (Entra ID custom roles are capped separately, around 100-ish per tenant depending on licence).

Management groups and subscriptions

  • Up to six levels of management groups depth (not counting the Root or subscription level).
  • A management group tree can have one Root management group only, and all subscriptions in a tenant funnel into it.
  • Azure Policy assigned at a management group cascades to all child subscriptions and resource groups - use it to enforce tagging, allowed regions, or allowed SKUs.

Users, groups and licensing

  • Two group types: Security groups (used for RBAC/resource access) and Microsoft 365 groups (collaboration, mailbox, SharePoint).
  • Membership type can be Assigned (manual) or Dynamic (rule-based on user/device attributes) - dynamic groups require Entra ID P1 licensing.
  • Guest users (B2B) are invited via email and get a #EXT# suffix in their UPN; they can be assigned RBAC roles and app access just like members.
  • Self-service password reset (SSPR) needs Entra ID P1 for cloud-only users doing combined registration; basic SSPR works on Free tier for cloud users only in limited scenarios - know that P1/P2 unlocks the full feature set including Conditional Access.

Common mistakes

  • Forgetting that RBAC and Entra ID roles are entirely separate scopes of control.
  • Assuming Contributor can change access - it cannot; only Owner or User Access Administrator can.
  • Applying a Deny assignment expectation to a normal role - Deny only comes from Blueprints/Policy, not standard RBAC.
  • Forgetting dynamic groups need a paid licence tier.
  • Entra ID roles manage the directory (users, groups, licences); Azure RBAC manages Azure resources - they are separate systems.
  • Scope inheritance flows: Management Group > Subscription > Resource Group > Resource, top to bottom.
  • Management group trees support up to six levels deep, plus a single mandatory Root.
  • Contributor can manage all resources but cannot assign roles to others.
  • Owner has full access including the ability to assign roles; User Access Administrator can only manage role assignments.
  • Deny assignments always override Allow, and can only be created by Blueprints or Azure Policy, not manual RBAC.
  • Global Administrator must explicitly elevate access to manage Azure resources via the Entra ID Properties blade.
  • Dynamic group membership rules require Microsoft Entra ID P1 (or higher) licensing.
  • Guest (B2B) users get a UPN suffixed with #EXT# and can be assigned RBAC roles like any member.
  • A subscription can contain up to 5,000 custom RBAC roles.
  • Effective RBAC permissions are additive across all assigned roles - there is no 'most restrictive wins' rule outside of Deny.
  • Role assignments consist of three parts: security principal, role definition, and scope.
What are the two separate permission systems in Azure and what does each control?
Entra ID roles control directory resources (users, groups, licences); Azure RBAC controls Azure resources (VMs, storage, resource groups).
tap to reveal
List the RBAC scope hierarchy from broadest to narrowest.
Management Group > Subscription > Resource Group > Resource.
tap to reveal
How many levels deep can a management group tree go?
Up to six levels, beneath the single mandatory Root management group.
tap to reveal
Can a Contributor assign roles to other users?
No - Contributor has full resource access but cannot assign roles; that needs Owner or User Access Administrator.
tap to reveal
What overrides a normal Allow role assignment and where does it come from?
A Deny assignment always wins over Allow; it is created only via Azure Blueprints or Azure Policy, not standard RBAC.
tap to reveal
Does a Global Administrator automatically have access to manage Azure resources?
No - they must explicitly elevate access via Access management for Azure resources in Entra ID Properties.
tap to reveal
What licence tier is required for dynamic group membership rules?
Microsoft Entra ID P1 or higher.
tap to reveal
How is a guest (B2B) user's UPN distinguishable from a member's?
It carries an #EXT# suffix.
tap to reveal
What three components make up a role assignment?
Security principal, role definition, and scope.
tap to reveal
How many custom RBAC roles can a single subscription hold?
Up to 5,000.
tap to reveal
Are effective RBAC permissions from multiple role assignments additive or most-restrictive?
Additive - the effective access is the union of all assigned roles (except where Deny applies).
tap to reveal
Name the two Azure group types and their typical use.
Security groups (resource/RBAC access) and Microsoft 365 groups (collaboration - mailbox, SharePoint, Teams).
tap to reveal
What is the difference between Owner and User Access Administrator?
Owner has full resource access plus role assignment rights; User Access Administrator can only manage role assignments, not resources.
tap to reveal

Storage configuration & management

Storage accounts: the basics

An Azure storage account is the top-level container for blobs, files, queues, tables and disks. Name must be globally unique, 3-24 characters, lowercase letters and numbers only.

Performance tiers:

  • Standard: HDD-based, general purpose, cheapest.
  • Premium: SSD-based, low latency, used for VM disks, block blobs or file shares needing high IOPS.

Redundancy (replication) options:

  • LRS (Locally Redundant Storage): 3 copies in one datacentre, cheapest, no protection against datacentre failure.
  • ZRS (Zone Redundant Storage): 3 copies across availability zones in one region.
  • GRS (Geo-Redundant Storage): LRS copy plus async copy to a paired region (6 copies total, secondary not readable by default).
  • RA-GRS: same as GRS but the secondary region is readable.
  • GZRS / RA-GZRS: combines ZRS in primary region with geo-replication.

Access tiers for blob storage

Used to balance storage cost against access cost:

  • Hot: frequent access, higher storage cost, lowest access cost.
  • Cool: infrequent access (30+ days), lower storage cost, higher access cost, minimum 30-day retention.
  • Cold: rarely accessed (90+ days), even lower storage cost, minimum 90-day retention.
  • Archive: rarely accessed, cheapest storage, but offline — rehydration takes hours (standard priority up to 15 hours, high priority faster), minimum 180-day retention.

Lifecycle management policies automate moving blobs between tiers or deleting them based on age rules — a favourite exam scenario is cost optimisation using these rules.

Security essentials

  • Shared Key (account key): full access, rotate regularly, avoid where possible.
  • Shared Access Signatures (SAS): time-limited, scoped tokens (account SAS, service SAS, or user delegation SAS backed by Azure AD — most secure).
  • Storage Firewall and Virtual Networks: restrict access to selected networks; 'Allow trusted Microsoft services' bypasses the firewall for select services.
  • Encryption at rest is enabled by default (Microsoft-managed keys); customer-managed keys via Key Vault are optional.
  • Secure transfer required (HTTPS only) should stay enabled.

Common mistakes to avoid

  • Confusing GRS (not readable) with RA-GRS (readable secondary) — a classic exam trap.
  • Forgetting that changing redundancy from LRS to GRS/ZRS can incur a one-off data transfer cost and requires the account to be unlocked/re-configured.
  • Applying an Archive tier and expecting instant reads — it must be rehydrated first.
  • Thinking Azure Files only supports SMB — it also supports NFS on Premium file shares (Linux-friendly).
  • Forgetting Azure File Sync caches files locally on a Windows Server via cloud tiering, while still keeping the full set in Azure Files.

AzCopy and Storage Explorer

AzCopy is the command-line tool for high-performance bulk copy/move/sync of blobs and files; Storage Explorer gives a GUI. Both support async copy jobs between storage accounts, including cross-region.

  • Storage account names must be globally unique, 3-24 characters, lowercase letters and numbers only.
  • LRS keeps 3 copies in a single datacentre and does not protect against datacentre-level failure.
  • GRS replicates to a paired region but the secondary copy is not readable unless you choose RA-GRS.
  • Cool tier requires a minimum 30-day retention; Cold tier requires a minimum 90-day retention; Archive requires a minimum 180-day retention.
  • Archive tier blobs must be rehydrated before they can be read, which can take up to about 15 hours at standard priority.
  • Lifecycle management policies automate tier transitions and blob deletion based on rules like 'last modified 30 days ago'.
  • A user delegation SAS is backed by Azure AD credentials and is the most secure type of Shared Access Signature.
  • Secure transfer required (HTTPS only) is a storage account setting that should stay enabled for encryption in transit.
  • Premium performance tier uses SSDs and is used for workloads needing low latency and high IOPS, such as VM disks.
  • Azure Files supports both SMB and NFS protocols, with NFS available on Premium file shares.
  • Storage Firewall lets you restrict a storage account to selected virtual networks and IP ranges.
  • AzCopy is the command-line tool for high-throughput bulk data movement into and out of Azure Storage.
What are the constraints on an Azure storage account name?
Globally unique, 3-24 characters, lowercase letters and numbers only.
tap to reveal
What is the key difference between GRS and RA-GRS?
Both replicate to a paired region, but RA-GRS makes the secondary region readable; plain GRS does not.
tap to reveal
Which redundancy option replicates across availability zones in a single region?
ZRS (Zone Redundant Storage).
tap to reveal
What is the minimum retention period before moving a blob to the Cool tier without an early-deletion penalty?
30 days.
tap to reveal
What is the minimum retention period for the Archive tier?
180 days.
tap to reveal
Can you read an Archive-tier blob immediately?
No — it must be rehydrated first, which can take up to around 15 hours at standard priority.
tap to reveal
What automates moving blobs between access tiers based on age or activity?
A lifecycle management policy.
tap to reveal
What is the most secure type of Shared Access Signature and why?
A user delegation SAS, because it is secured with Azure AD credentials rather than the account key.
tap to reveal
Which performance tier should you pick for VM disks needing high IOPS and low latency?
Premium (SSD-based).
tap to reveal
Which protocols does Azure Files support?
SMB, and NFS on Premium file shares.
tap to reveal
What Azure setting restricts a storage account to specific networks or IP ranges?
The storage account Firewall and virtual networks setting.
tap to reveal
What tool would you use for a fast, scriptable bulk copy of blobs between storage accounts?
AzCopy.
tap to reveal
Is encryption at rest enabled by default on a new storage account?
Yes, using Microsoft-managed keys; customer-managed keys via Key Vault are optional.
tap to reveal
What happens to redundancy cost if you change LRS to GRS on an existing account?
It can incur a one-off data transfer charge to replicate existing data to the secondary region.
tap to reveal

Deploy & manage compute (VMs, containers)

VM sizing and availability

Pick a VM series based on workload: B-series is burstable/cheap for dev-test, D-series is general purpose, E-series is memory-optimised, F-series is compute-optimised.

Use Availability Sets for rack-level fault tolerance within one datacentre (2-3 fault domains, up to 20 update domains).

Use Availability Zones for datacentre-level resilience across a region (minimum 3 physical zones, each with independent power/cooling/networking).

A VM Scale Set (VMSS) automatically adds or removes identical VM instances based on demand or a schedule, and can span zones.

Disks and images

Managed disks come in four tiers: Ultra Disk, Premium SSD, Standard SSD, Standard HDD - Ultra and Premium need a compatible VM size (usually the 's' in the size name, eg Dsv5).

OS disks default to a 30-second write cache; data disks default to none for Premium SSD unless changed.

A Shared Image Gallery lets you version and replicate custom images across regions and subscriptions - better than plain managed images for scale.

Generalise a VM with sysprep (Windows) or waagent -deprovision (Linux) before capturing an image.

Common exam traps

Resizing a VM may be blocked if the target size isn't available on the current hardware cluster - you may need to deallocate first.

Moving a VM between Availability Sets is NOT possible after creation - you must delete and recreate it (or use Azure Migrate).

Update Domains are not evenly guaranteed - Azure decides placement; you just get the fault-tolerance benefit.

Containers: ACI vs AKS vs Web App for Containers

Azure Container Instances (ACI) is the fastest way to run a single container with no orchestration, billed per second - ideal for burst or batch jobs.

Azure Kubernetes Service (AKS) is the managed Kubernetes control plane - Microsoft manages the control plane free of charge, you pay only for the worker nodes.

AKS supports cluster autoscaler (nodes) and Horizontal Pod Autoscaler (pods) separately - know the difference.

Web App for Containers (App Service) runs a single container behind App Service's PaaS features (custom domains, easy auth, deployment slots).

Container instances can be placed in a virtual network for private connectivity, but only in a dedicated (delegated) subnet.

ACR (Azure Container Registry)

ACR has three tiers: Basic, Standard, Premium - only Premium supports geo-replication and private endpoints.

Use az acr build for cloud-based image builds without needing local Docker.

Enable admin user only for testing; production should use managed identity or service principal auth against ACR.

Common mistakes

Forgetting that stopping (not deallocating) a VM in the portal still bills compute charges - always use 'Stop (deallocated)' or the CLI az vm deallocate.

Assuming AKS control plane costs money on the Free tier - it doesn't, only nodes and the optional paid SLA tier do.

Confusing Availability Sets (single datacentre) with Availability Zones (multiple datacentres) - a very common AZ-104 distractor.

  • Availability Zones require a minimum of 3 physical zones per supporting region, each with independent power, cooling and networking.
  • Availability Sets give up to 20 update domains and typically 2-3 fault domains within a single datacentre.
  • Stopping a VM in the portal without deallocating still incurs compute charges - use az vm deallocate to stop billing.
  • You cannot move a VM into or out of an Availability Set after creation - it must be recreated.
  • ACR Premium tier is the only tier supporting geo-replication and private endpoints.
  • AKS control plane management is free on the Standard tier - you only pay for worker node VMs (and the optional Uptime SLA tier).
  • ACI (Azure Container Instances) bills per second and is the fastest way to run a single container with no orchestration.
  • AKS separates node scaling (cluster autoscaler) from pod scaling (Horizontal Pod Autoscaler) - they are configured independently.
  • Ultra Disk and Premium SSD managed disks require a compatible ('s') VM size, eg Dsv5 or Esv5.
  • Sysprep (Windows) or waagent -deprovision (Linux) must generalise a VM before it can be captured as an image.
  • VM Scale Sets (VMSS) can automatically scale identical instances by metric or schedule and can span Availability Zones.
  • A container group placed in a virtual network requires a dedicated, delegated subnet.
What is the minimum number of Availability Zones a supporting Azure region provides?
3 physical zones, each with independent power, cooling and networking.
tap to reveal
How many update domains does an Availability Set typically provide?
Up to 20 update domains (and usually 2-3 fault domains).
tap to reveal
Can you add an existing VM to an Availability Set after creation?
No - you must delete and recreate the VM (or use Azure Migrate) to change its Availability Set.
tap to reveal
How do you stop a VM so it stops billing for compute?
Deallocate it (az vm deallocate or 'Stop (deallocated)' in the portal) - a plain Stop still bills.
tap to reveal
Which ACR tier supports geo-replication?
Premium tier only.
tap to reveal
Does Microsoft charge for the AKS control plane?
No, the Standard tier control plane is free - you pay only for the worker node VMs (plus optional Uptime SLA).
tap to reveal
What is the fastest way to run a single container with no orchestration needed?
Azure Container Instances (ACI), billed per second.
tap to reveal
What is the difference between cluster autoscaler and Horizontal Pod Autoscaler in AKS?
Cluster autoscaler scales the number of node VMs; Horizontal Pod Autoscaler scales the number of pod replicas - they work independently.
tap to reveal
What VM size naming convention hints at Premium/Ultra disk support?
An 's' in the size name, eg Dsv5 or Esv5.
tap to reveal
What command generalises a Linux VM before capturing an image?
waagent -deprovision (Windows uses sysprep).
tap to reveal
What lets you version and replicate custom VM images across regions and subscriptions?
A Shared Image Gallery.
tap to reveal
Can a VMSS span multiple Availability Zones?
Yes, a Virtual Machine Scale Set can span zones for extra resilience.
tap to reveal
What networking requirement applies to placing a container instance in a VNet?
It must be placed in a dedicated, delegated subnet.
tap to reveal
Why might a VM resize operation fail even though the target size exists in the region?
The target size may not be available on the current hardware cluster - deallocating the VM first often resolves it.
tap to reveal
What's the key difference between Availability Sets and Availability Zones?
Availability Sets protect within a single datacentre (rack-level); Availability Zones protect across multiple physically separate datacentres in a region.
tap to reveal

Virtual networking configuration

Virtual Networks (VNets) and subnets

A VNet is your private network in Azure, scoped to one region and one subscription. It's divided into subnets, and every subnet must sit inside the VNet's address space with no overlap between subnets.

  • Azure reserves 5 IP addresses in every subnet: network address, default gateway, two for Azure DNS mapping, and the broadcast address. So a /29 (8 addresses) leaves only 3 usable.
  • Smallest subnet allowed is /29, largest VNet address space is /8 (RFC1918 or public, but public ranges owned by others can't be used).
  • VNets can't be resized smaller than their existing subnets, and you can't shrink a VNet if it would drop below an existing subnet's range.

Peering

VNet peering connects two VNets so resources talk over the Microsoft backbone using private IPs - no public internet, no VPN gateway needed.

  • Peering is non-transitive: if A peers with B, and B peers with C, A cannot reach C automatically.
  • Global peering connects VNets across regions; local peering is same-region.
  • Peered VNets must NOT have overlapping address spaces.
  • Gateway transit lets a peered VNet use the other's VPN/ExpressRoute gateway instead of deploying its own.

Network Security Groups (NSGs)

NSGs filter traffic by 5-tuple rules (source, source port, destination, destination port, protocol) and apply at the subnet or NIC level.

  • Rules have priority 100-4096; lower number = higher priority, and the first matching rule wins - no more evaluation after that.
  • Default rules (priority 65000+) allow VNet-to-VNet traffic, allow Azure Load Balancer traffic, and deny all other inbound.
  • Default rules can't be deleted but can be overridden by higher-priority custom rules.
  • When both a subnet NSG and a NIC NSG apply, BOTH must allow the traffic for it to pass (inbound: subnet then NIC; outbound: NIC then subnet).

Routing

Azure creates System Routes automatically (VNet local, on-premises via gateway, 0.0.0.0/0 to internet). User-Defined Routes (UDRs) override these via a Route Table attached to a subnet, commonly used to force traffic through a Network Virtual Appliance (NVA) or firewall.

Private endpoints vs Service endpoints

  • A Service Endpoint extends the VNet identity to a PaaS service over the Azure backbone but the PaaS resource keeps a public IP.
  • A Private Endpoint gives the PaaS resource a private IP inside your VNet (via Private Link) - this is the more secure, exam-favoured answer for locking down storage/SQL/etc.

Common mistakes

  • Forgetting NSG rules evaluate lowest-priority-number-first and stop at the first match.
  • Assuming peering is transitive - it isn't, you'd need a hub-and-spoke with the hub relaying (or mesh peering).
  • Trying to peer VNets with overlapping CIDR ranges - this always fails.
  • Confusing Service Endpoint (still public IP) with Private Endpoint (private IP, uses Private Link).
  • Every Azure subnet reserves 5 IP addresses: network, gateway, 2x DNS, broadcast.
  • Smallest usable subnet size is /29; VNet address space max is /8 (RFC1918 recommended).
  • VNet peering is non-transitive - A-B and B-C peering does NOT give A access to C.
  • Peered VNets must have non-overlapping address spaces or peering fails.
  • NSG rule priorities run 100-4096; lower number wins and evaluation stops at first match.
  • Default NSG rules sit at priority 65000+ and cannot be deleted, only overridden.
  • Inbound traffic must pass BOTH subnet NSG and NIC NSG to reach a VM.
  • User-Defined Routes (UDRs) in a Route Table override Azure's automatic System Routes.
  • Service Endpoints keep the PaaS resource's public IP; Private Endpoints give it a private IP via Private Link.
  • Gateway transit lets a peered VNet share the hub VNet's VPN/ExpressRoute gateway.
  • A VNet is scoped to exactly one Azure region and one subscription.
  • Global VNet peering works across regions; local peering is within the same region.
How many IP addresses does Azure reserve in every subnet?
5 - network address, default gateway, two for Azure DNS, and broadcast.
tap to reveal
What is the smallest subnet size allowed in Azure?
/29 (8 addresses total, 3 usable after Azure's reservations).
tap to reveal
Is VNet peering transitive?
No. If A peers with B and B peers with C, A cannot reach C through B automatically.
tap to reveal
What happens if two VNets have overlapping address spaces and you try to peer them?
Peering fails - address spaces must not overlap.
tap to reveal
What priority range do NSG rules use, and which wins?
100 to 4096; the lowest number has highest priority and the first matching rule stops evaluation.
tap to reveal
Can you delete the default NSG rules?
No, but you can override them with custom rules at a higher priority (lower number).
tap to reveal
For inbound traffic to reach a VM, which NSGs must allow it?
Both the subnet NSG and the NIC NSG must allow the traffic.
tap to reveal
What overrides Azure's automatic System Routes?
User-Defined Routes (UDRs) added to a Route Table attached to a subnet.
tap to reveal
What is the key difference between a Service Endpoint and a Private Endpoint?
Service Endpoint keeps the PaaS resource's public IP; Private Endpoint gives it a private IP inside the VNet via Private Link.
tap to reveal
What does gateway transit allow in VNet peering?
A peered VNet can use the other VNet's VPN or ExpressRoute gateway instead of deploying its own.
tap to reveal
How many regions can a single VNet span?
One - a VNet is scoped to a single Azure region and subscription.
tap to reveal
What is the difference between global and local VNet peering?
Global peering connects VNets in different regions; local peering connects VNets in the same region.
tap to reveal
What is the maximum address space size for a VNet?
/8, using RFC1918 private ranges (or valid public ranges you own).
tap to reveal

Monitor & maintain Azure resources

Monitor & maintain Azure resources

This topic covers Azure Monitor, Log Analytics, alerts, Network Watcher and backup/recovery basics for AZ-104.

Azure Monitor building blocks

  • Azure Monitor collects two core data types: metrics (numerical, time-series, lightweight) and logs (structured records queried with Kusto Query Language, KQL).
  • Metrics are stored for 93 days by default in the platform metrics database.
  • Logs are sent to a Log Analytics workspace; default retention is 30 days (interactive retention configurable 30-730 days on the workspace).
  • Diagnostic settings route resource logs and metrics to a Log Analytics workspace, Storage account, or Event Hub - a resource is not monitored in depth until a diagnostic setting is created.

Activity Log vs resource logs

  • The Activity Log records subscription-level control-plane events (who did what, when) and is retained 90 days automatically, with no configuration needed.
  • Resource logs (data-plane operations, e.g. inside a VM or storage account) require an explicit diagnostic setting and are NOT enabled by default.
  • A common exam trap: assuming resource logs exist automatically like the Activity Log - they don't.

Alerts

  • Alert rules have three parts: signal (metric, log, activity log), condition/threshold, and action group.
  • Action groups define the response: email, SMS, push, voice, webhook, Azure Function, Logic App, or runbook.
  • Metric alerts can use static or dynamic thresholds; dynamic thresholds learn normal patterns using machine learning.
  • Log alerts run a scheduled KQL query at a set frequency and fire when results meet the condition.

VM insights and diagnostics

  • Azure Monitor Agent (AMA) is the current unified agent, replacing the legacy Log Analytics agent (MMA/OMS), which retired 31 August 2024.
  • VM insights uses AMA plus data collection rules (DCRs) to gather performance counters and map dependencies.
  • Boot diagnostics captures console output and screenshots to troubleshoot VM startup issues - stored in a storage account.

Network Watcher

  • Network Watcher provides diagnostic tools: IP flow verify, Next hop, Connection troubleshoot, and Packet capture.
  • NSG flow logs (version 2 preferred) record allowed/denied traffic through a network security group and can feed Traffic Analytics for visualisation.

Backup and recovery basics

  • Azure Backup uses a Recovery Services vault; default backup policy for VMs is once daily, with instant restore points kept for 1-7 days.
  • Soft delete keeps deleted backup data recoverable for 14 days by default, protecting against accidental or malicious deletion.
  • Azure Site Recovery (ASR) handles disaster recovery/replication and is a separate service from Azure Backup, though both use a Recovery Services vault.

Common mistakes

  • Forgetting resource logs need a diagnostic setting configured explicitly.
  • Confusing metric alerts (fast, near real-time) with log alerts (slower, query-based, minimum 5 minute frequency).
  • Assuming the legacy Log Analytics agent still works - it's retired; use AMA.
  • Activity Log retains subscription-level events for 90 days automatically, no setup needed.
  • Platform metrics are stored for 93 days by default.
  • Log Analytics workspace default retention is 30 days, configurable 30-730 days.
  • Resource logs require an explicit diagnostic setting - they are not captured by default.
  • Azure Monitor Agent (AMA) replaced the legacy Log Analytics/MMA agent, retired 31 August 2024.
  • Log alerts run scheduled KQL queries with a minimum frequency of 5 minutes.
  • Dynamic threshold alerts use machine learning to adapt to a resource's normal behaviour pattern.
  • Recovery Services vault soft delete retains deleted backup data for 14 days by default.
  • Default Azure VM backup policy runs once daily with instant restore points kept 1-7 days.
  • Network Watcher's Connection troubleshoot and IP flow verify diagnose connectivity and NSG rule issues.
  • Action groups can trigger email, SMS, webhook, Azure Function, Logic App or Automation runbook responses.
  • NSG flow logs version 2 feed Traffic Analytics for network traffic visualisation.
How long does Azure Monitor keep platform metrics by default?
93 days.
tap to reveal
What is the default retention period for a Log Analytics workspace?
30 days (configurable from 30 to 730 days).
tap to reveal
How long is the Activity Log retained, and does it need configuring?
90 days, retained automatically with no setup required.
tap to reveal
Do resource logs get collected automatically like the Activity Log?
No - they require an explicit diagnostic setting sending logs to a workspace, storage account, or event hub.
tap to reveal
What agent replaced the legacy Log Analytics (MMA) agent, and when did the old one retire?
Azure Monitor Agent (AMA); the legacy agent retired 31 August 2024.
tap to reveal
What is the minimum run frequency for a log alert rule?
5 minutes.
tap to reveal
What do dynamic thresholds use to set alert conditions?
Machine learning that adapts to the resource's normal metric pattern over time.
tap to reveal
What are the four main Network Watcher diagnostic tools?
IP flow verify, Next hop, Connection troubleshoot, and Packet capture.
tap to reveal
What does an action group define in an Azure Monitor alert?
The response actions - email, SMS, push, voice, webhook, Azure Function, Logic App, or Automation runbook.
tap to reveal
What is the default soft-delete retention for Azure Backup data in a Recovery Services vault?
14 days.
tap to reveal
What is the default Azure VM backup frequency and instant restore point retention?
Once daily backup, with instant restore points kept for 1-7 days.
tap to reveal
What service handles disaster recovery/replication separately from Azure Backup, though sharing a vault type?
Azure Site Recovery (ASR), using a Recovery Services vault.
tap to reveal
What query language is used to analyse logs in a Log Analytics workspace?
Kusto Query Language (KQL).
tap to reveal
What does NSG flow logging (v2) feed into for visualisation?
Traffic Analytics.
tap to reveal
What captures console output and screenshots to troubleshoot a VM that fails to start?
Boot diagnostics, stored in a storage account.
tap to reveal

Backup, recovery & security

Azure Backup basics

Azure Backup uses a Recovery Services vault (RSV) to store backup data. The vault is a management and storage construct - it holds backup policies, recovery points and configuration for VMs, files, folders, SQL in Azure VMs and more.

Backups are incremental after the first full backup, reducing storage and network cost. Data is encrypted at rest automatically. You choose a redundancy setting on the vault: Locally Redundant Storage (LRS), Zone Redundant Storage (ZRS) or Geo Redundant Storage (GRS) - GRS is default and replicates to a paired region.

Soft delete and retention

Soft delete is on by default for Recovery Services vaults. If backup data is deleted (accidentally or maliciously) it is retained for 14 additional days at no extra storage cost, so you can undelete it. This defends against ransomware and accidental deletion.

Backup policies define schedule (daily or weekly) and retention (daily, weekly, monthly, yearly points), all configurable per policy and assignable to multiple VMs.

Azure Site Recovery (ASR) vs Backup

Don't confuse the two. Azure Backup protects data (restore a file, VM disk or database to a point in time). Azure Site Recovery is for disaster recovery - it replicates entire VMs to another region so you can fail over and keep the workload running with minimal downtime. Backup = data protection; ASR = business continuity.

Key security building blocks

Azure AD (Microsoft Entra ID) is the identity backbone - Conditional Access policies enforce MFA, block legacy authentication, or restrict sign-in by location/device compliance. Conditional Access needs Azure AD Premium P1 or higher.

Role-Based Access Control (RBAC) assigns permissions at management group, subscription, resource group or resource scope, and is additive (deny assignments override allow). Built-in roles: Owner (full control + can assign roles), Contributor (full control, no role assignment), Reader (view only). Least privilege is the exam's constant theme.

Azure Key Vault stores secrets, keys and certificates centrally, avoiding hard-coded credentials. Access via access policies or (recommended) Azure RBAC on the vault.

Network Security Groups (NSGs) filter traffic by 5-tuple rules with a priority number 100-4096 - lower number = higher priority, first match wins. Azure Firewall provides centralised, stateful filtering across a hub network. Azure DDoS Protection has two tiers: Basic (free, automatic) and the paid tier (Network Protection - formerly Standard - adds attack analytics, cost protection and rapid support).

Common exam traps

  • Deleting a VM does not delete its recovery points - you must stop protection with delete data explicitly, or they remain billed.
  • Backup policy retention is separate from soft delete retention (the extra 14 days).
  • NSGs work at subnet or NIC level; rules are stateful for the initiating direction only.
  • Changing vault storage redundancy (LRS to GRS) is only allowed before the first backup runs.
  • Recovery Services vault soft delete retains deleted backup data for 14 extra days at no extra cost, and is on by default
  • Vault redundancy options are LRS, ZRS and GRS; GRS is the default and replicates to a paired region
  • Storage redundancy for a vault can only be changed before the first backup item is protected
  • Azure Backup protects data (files, VM disks, SQL); Azure Site Recovery replicates whole VMs for disaster recovery and failover
  • Conditional Access requires Azure AD (Microsoft Entra ID) Premium P1 or above
  • RBAC built-in roles: Owner (full control + assign roles), Contributor (full control, cannot assign roles), Reader (view only)
  • NSG rule priority runs 100 to 4096, lower number takes precedence, and the first matching rule wins
  • Azure DDoS Protection has two tiers: Basic (free, automatic, always on) and Network Protection (paid, adds cost protection and rapid support)
  • Deleting a VM leaves its Recovery Services vault backup data intact until you explicitly stop protection and delete data
  • Backup policies control schedule and retention (daily/weekly/monthly/yearly points) and can be applied to multiple resources
  • Azure Key Vault centralises secrets, keys and certificates and supports both access policies and Azure RBAC for access control
  • Backups after the first are incremental, cutting storage cost and backup window time
What does soft delete on a Recovery Services vault guarantee, and for how long?
Deleted backup data is retained for an extra 14 days at no additional cost so it can be recovered, and it is enabled by default
tap to reveal
Name the three redundancy options for a Recovery Services vault
Locally Redundant Storage (LRS), Zone Redundant Storage (ZRS), Geo Redundant Storage (GRS) - GRS is default
tap to reveal
When can you change a vault's storage redundancy setting?
Only before the first backup item is protected in that vault
tap to reveal
What is the core difference between Azure Backup and Azure Site Recovery?
Azure Backup protects and restores data; Azure Site Recovery replicates whole VMs to another region for disaster recovery and failover
tap to reveal
What licence tier is required to use Conditional Access?
Azure AD (Microsoft Entra ID) Premium P1 or higher
tap to reveal
List the three main built-in RBAC roles and what each allows
Owner: full control plus can assign roles. Contributor: full control but cannot assign roles. Reader: view only
tap to reveal
How does NSG rule priority work?
Rules run from 100 to 4096; the lowest number has the highest priority and the first matching rule is applied
tap to reveal
What are the two tiers of Azure DDoS Protection?
Basic (free, automatic, always enabled) and Network Protection, the paid tier, which adds cost protection and rapid support access
tap to reveal
If you delete a VM, does its backup data disappear too?
No - recovery points remain in the vault (and continue to be billed) until you explicitly stop protection and delete the data
tap to reveal
What does a backup policy define?
The backup schedule (e.g. daily or weekly) and the retention rules (daily, weekly, monthly, yearly recovery points)
tap to reveal
What is Azure Key Vault used for and how is access controlled?
Centralised storage of secrets, keys and certificates; access via access policies or, preferably, Azure RBAC
tap to reveal
Are Azure Backup incremental backups after the initial run?
Yes - after the first full backup, subsequent backups are incremental, saving storage and time
tap to reveal
At what scopes can RBAC role assignments be made?
Management group, subscription, resource group, or individual resource, and assignments are additive
tap to reveal