Microsoft Azure Administrator (AZ-104) — Identity, Governance & Storage (Domains 1 & 2)

High-yield AZ-104 flashcards covering Microsoft Entra ID tenants, dynamic groups, Administrative Units, Conditional Access, PIM, Azure RBAC vs. Entra roles, Management Groups, Azure Policy, Resource Locks, Storage redundancy (LRS/ZRS/GRS/GZRS), Blob tiers, SAS tokens, and Azure Files.

Category
Multi-Cloud & DevOps Architecture — Microsoft Azure (AZ-104 & AZ-305), Google Cloud (PCA & PDE), Kubernetes (CKA / CKAD) & HashiCorp Terraform Associate
Level
basic
Languages
en → en
Cards
32
Markdown
Microsoft Azure Administrator (AZ-104) — Identity, Governance & Storage (Domains 1 & 2) (.md)

Flashcards (32)

#Front (Term / Question)Back (Definition / Answer)ExampleMultiple-Choice Options
1How many levels of Management Groups are supported in a single Microsoft Entra tenant hierarchy (excluding the Root Management Group and Subscriptions)?Azure supports up to six levels of Management Groups below the Root Management Group, with up to 10,000 groups total.An enterprise structures `Root Management Group` -> `Enterprise` (L1) -> `Production` (L2) -> `EU-Region` (L3) -> `Regulated-Workloads` (L4), attaching sovereign compliance initiatives at L3.
  • Maximum of 6 hierarchy levels excluding the Root Management Group and Subscriptions.
  • Up to 6 nested Management Group levels per directory.
  • Azure supports up to six levels of Management Groups below the Root Management Group, with up to 10,000 groups total.
2How does Azure File Sync work, and what does the 'Cloud Tiering' feature do on registered Windows Servers?Azure File Sync centralizes file shares in Azure Files while turning on-premises Windows Servers into fast local caches; Cloud Tiering stubs cold files locally.Enabling Cloud Tiering with a 20% volume free-space policy and a 30-day date policy replaces old local files with NTFS reparse point pointers that stream transparently on demand.
  • Azure File Sync centralizes file shares in Azure Files while turning on-premises Windows Servers into fast local caches; Cloud Tiering stubs cold files locally.
  • Syncs on-premises Windows Server folders with an Azure file share via Sync Groups; Cloud Tiering converts infrequently accessed files into local stubs.
  • A Sync Group contains one Cloud Endpoint (Azure file share) and one or more Server Endpoints (Windows Servers).
3How is an Archive-tier blob read in Azure Blob Storage, and what are the two rehydration priority options?Archive blobs are offline and require rehydration to Hot/Cool or copying to a new blob via Standard (<15h) or High (<1h) priority.An administrator needing urgent access to a 5 GB archived compliance bundle runs `az storage blob copy start` to a Hot-tier target blob with `--rehydrate-priority High`.
  • Archived blobs cannot be read directly; rehydrate via Set Blob Tier or Copy Blob with Standard (up to 15 hours) or High priority.
  • Copy Blob to an online tier avoids modifying the original archived blob's 180-day retention clock.
  • Archive blobs are offline and require rehydration to Hot/Cool or copying to a new blob via Standard (<15h) or High (<1h) priority.
4Which Microsoft Entra ID license tier is required to configure Dynamic Group membership rules or Privileged Identity Management (PIM)?Dynamic Groups require at least Microsoft Entra ID P1, while Privileged Identity Management (PIM) requires Microsoft Entra ID P2.An organization deploying just-in-time Global Administrator elevation with approval workflows and access reviews must assign Microsoft Entra ID P2 (or Microsoft 365 E5) licenses to eligible administrators.
  • Dynamic Groups require at least Microsoft Entra ID P1, while Privileged Identity Management (PIM) requires Microsoft Entra ID P2.
  • Entra ID P1 for Dynamic Groups and Conditional Access; Entra ID P2 for PIM and Identity Protection.
  • P1 unlocks dynamic membership; P2 unlocks PIM just-in-time role activation.
5What does Enabling 'Restricted Management Administrative Units' in Microsoft Entra ID prevent?It blocks tenant-scoped administrators (such as Global Admins) from modifying objects inside the AU unless explicitly assigned to that AU.Executive or C-suite user accounts placed inside a Restricted Management Administrative Unit cannot have their MFA methods reset by standard tenant-level Helpdesk or User Administrators.
  • Prevents tenant-wide directory roles from altering protected objects unless granted direct AU-level permissions.
  • Isolates sensitive accounts from inheritance of tenant-wide Entra administrative roles.
  • It blocks tenant-scoped administrators (such as Global Admins) from modifying objects inside the AU unless explicitly assigned to that AU.
6What is the exact four-level hierarchy of scopes for Azure RBAC role assignments and Azure Policy assignments?Management Group, Subscription, Resource Group, and individual Resource, with permissions and policies inherited downward from parent to child.Assigning the `Reader` role to an auditing team at the `Corp-Prod` Management Group automatically grants read-only visibility across all child Subscriptions, Resource Groups, and VMs.
  • Management Groups -> Subscriptions -> Resource Groups -> Resources.
  • Four inherited ARM scopes starting at Management Groups down to individual Resources.
  • Management Group, Subscription, Resource Group, and individual Resource, with permissions and policies inherited downward from parent to child.
7What happens when a Global Administrator enables 'Access management for Azure resources' in Microsoft Entra ID properties?The user is temporarily granted the Azure RBAC 'User Access Administrator' role at the Root scope (`/`) across all linked subscriptions.When the sole Owner of an Azure Subscription leaves the company, a Global Admin toggles this switch to grant themselves access to reassign Subscription Owner permissions.
  • Assigns User Access Administrator at the Root (`/`) scope so the Global Admin can manage all subscriptions.
  • The user is temporarily granted the Azure RBAC 'User Access Administrator' role at the Root scope (`/`) across all linked subscriptions.
  • Elevates the Global Admin to manage Azure RBAC assignments across every subscription in the tenant.
8How do the four built-in Azure RBAC roles—Owner, Contributor, Reader, and User Access Administrator—differ in permissions?Owner has full access including RBAC delegation; Contributor manages resources but cannot grant access; Reader views only; User Access Admin manages RBAC only.A CI/CD service principal assigned `Contributor` on a Resource Group can deploy AKS clusters and SQL databases via Terraform but cannot assign RBAC roles to other identities.
  • Owner has full access including RBAC delegation; Contributor manages resources but cannot grant access; Reader views only; User Access Admin manages RBAC only.
  • Contributor has `*` with `NotActions` for `Microsoft.Authorization/*/Delete` and `Write`; Owner has full `*`.
  • Owner = full control + RBAC; Contributor = full resource control without RBAC; User Access Admin = RBAC management only.
9Compare Locally Redundant Storage (LRS) and Zone-Redundant Storage (ZRS) in Azure Storage regarding copy count and fault tolerance.LRS maintains 3 synchronous copies within a single physical datacenter, whereas ZRS maintains 3 synchronous copies across 3 Availability Zones.A production AKS workload using Azure Files or Blob storage selects ZRS (12 nines durability) so that a complete datacenter power or cooling failure in Zone 1 causes zero downtime.
  • LRS maintains 3 synchronous copies within a single physical datacenter, whereas ZRS maintains 3 synchronous copies across 3 Availability Zones.
  • LRS = 3 synchronous copies in 1 datacenter (11 nines); ZRS = 3 synchronous copies across 3 AZs in 1 region (12 nines).
  • LRS protects against rack/drive failure; ZRS protects against entire Availability Zone failures.
10What is the difference between Blob Versioning, Soft Delete for Blobs/Containers, and Immutable Blob Storage (WORM)?Versioning saves prior states on every overwrite; Soft Delete retains deleted blobs/containers for a retention window; WORM blocks all modification or deletion.Brokerage firms subject to SEC Rule 17a-4 configure container-level Time-Based Retention policies in Locked mode or Legal Holds so nobody—not even the Subscription Owner—can purge records.
  • Immutable Storage enforces Write-Once-Read-Many (WORM) via time-based retention or legal holds; Soft Delete and Versioning protect against accidental overwrites/deletes.
  • Locked time-based immutability policies protect against administrative tampering and ransomware.
  • Versioning saves prior states on every overwrite; Soft Delete retains deleted blobs/containers for a retention window; WORM blocks all modification or deletion.
11Compare the four Azure Blob Storage access tiers (Hot, Cool, Cold, Archive) by minimum retention period and retrieval latency.Hot has no minimum duration; Cool requires 30 days, Cold 90 days (all three offer millisecond latency); Archive requires 180 days with hours-long rehydration.Financial audit logs accessed once a quarter are stored in Cold tier (90-day minimum, instant millisecond access), while 7-year regulatory archives move to Archive tier (180-day minimum, offline).
  • Hot has no minimum duration; Cool requires 30 days, Cold 90 days (all three offer millisecond latency); Archive requires 180 days with hours-long rehydration.
  • Hot (0 days, online), Cool (30 days, online), Cold (90 days, online), Archive (180 days, offline requiring rehydration).
  • Deleting or moving blobs before 30 days (Cool), 90 days (Cold), or 180 days (Archive) incurs an early deletion fee.
12What is the purpose of 'Report-only' mode in Microsoft Entra Conditional Access?Report-only mode evaluates sign-ins against the policy and logs the outcome to Sign-in logs without enforcing or blocking access.Before enforcing phishing-resistant FIDO2 MFA across 5,000 engineers, administrators enable Report-only mode and inspect Entra Workbooks to verify no service accounts are inadvertently locked out.
  • Audits the impact of a Conditional Access policy in sign-in logs without prompting or blocking users.
  • Simulates policy evaluation during live sign-ins for safe pre-deployment validation.
  • Report-only mode evaluates sign-ins against the policy and logs the outcome to Sign-in logs without enforcing or blocking access.
13What is the difference between Azure Policy and Azure RBAC?Azure RBAC controls who can perform actions based on user identity, whereas Azure Policy enforces resource properties and compliance regardless of user identity.A Subscription Owner has RBAC permission to create any VM, but an Azure Policy with the `Deny` effect blocks the Owner from deploying VMs outside `westeurope`.
  • Azure RBAC controls who can perform actions based on user identity, whereas Azure Policy enforces resource properties and compliance regardless of user identity.
  • RBAC focuses on user actions/permissions; Azure Policy focuses on resource state and configuration guardrails.
  • Even an RBAC Owner is blocked by an Azure Policy Deny rule if a resource violates compliance.
14When migrating or copying data in Azure Storage, how do `AzCopy` and Azure Storage Explorer differ, and how does server-side `azcopy copy` work between two Storage Accounts?`AzCopy` is a high-concurrency CLI utility that performs direct server-to-server copies between Azure Storage accounts without routing bytes through the client machine.Running `azcopy copy 'https://src.blob.core.windows.net/data?<SAS>' 'https://dst.blob.core.windows.net/data?<SAS>' --recursive` transfers 10 TB directly across the Azure backbone network.
  • AzCopy is a scriptable CLI for high-performance transfers using Put Block From URL APIs; Storage Explorer is a cross-platform GUI desktop app.
  • AzCopy authenticates via Microsoft Entra ID (`azcopy login`) or SAS tokens and supports `--sync-delete` via `azcopy sync`.
  • `AzCopy` is a high-concurrency CLI utility that performs direct server-to-server copies between Azure Storage accounts without routing bytes through the client machine.
15In Microsoft Entra ID, what is the difference between Assigned, Dynamic User, and Dynamic Device group membership types?Assigned groups require manual member selection, whereas Dynamic User and Dynamic Device groups evaluate attribute rules automatically.A dynamic user rule such as `(user.department -eq "Finance") and (user.country -eq "US")` automatically adds or removes users from licensing and access groups when HR updates attributes.
  • Dynamic groups use KQL-style attribute expressions; Assigned groups have static membership.
  • Assigned groups require manual member selection, whereas Dynamic User and Dynamic Device groups evaluate attribute rules automatically.
  • Dynamic User and Dynamic Device cannot be mixed in the same Entra security group.
16How does Azure Blob Storage Lifecycle Management automate cost optimization for objects?Lifecycle Management evaluates JSON rule sets once daily to transition blobs toward cooler tiers or delete blobs/versions based on age or last access.A rule filtering prefix `logs/raw/` with `daysAfterLastAccessTimeGreaterThan: 30` automatically transitions unaccessed telemetry files from Hot to Cool and deletes them after 365 days.
  • Rule-based policies that automatically tier (Hot -> Cool -> Cold -> Archive) or expire blobs and snapshots.
  • Lifecycle Management evaluates JSON rule sets once daily to transition blobs toward cooler tiers or delete blobs/versions based on age or last access.
  • Supports `daysAfterModificationGreaterThan`, `daysAfterCreationGreaterThan`, and `daysAfterLastAccessTimeGreaterThan`.
17Compare SMB and NFSv4.1 protocol support in Azure Files regarding storage account tiers and authentication.SMB works on Standard (HDD) and Premium (SSD) file shares with identity-based AD/Entra Kerberos auth; NFSv4.1 requires Premium FileStorage and VNet network security.Linux pods in AKS mounting a high-throughput POSIX shared volume provision a `FileStorage` Premium file share over NFSv4.1 secured via a Private Endpoint inside the cluster VNet.
  • SMB 2.1/3.x supports Windows/Linux and AD DS/Entra DS/Entra Kerberos; NFSv4.1 requires Premium `FileStorage` accounts and Private Endpoint/Service Endpoint.
  • SMB works on Standard (HDD) and Premium (SSD) file shares with identity-based AD/Entra Kerberos auth; NFSv4.1 requires Premium FileStorage and VNet network security.
  • NFSv4.1 Azure Files does not support encryption-in-transit natively unless tunneled via stunnel/`aznfs` mount helper.
18How do Microsoft Entra Conditional Access policies evaluate multiple matching policies assigned to a user sign-in?Conditional Access evaluates all matching policies simultaneously using logical AND; every required grant control and any Block control applies.If Policy A requires MFA for Azure Portal sign-ins and Policy B requires a Hybrid Entra Joined compliant device, the administrator must satisfy both controls to sign in.
  • All matching policies are enforced together, and an explicit Block Access always wins.
  • Conditional Access evaluates all matching policies simultaneously using logical AND; every required grant control and any Block control applies.
  • Conditional Access policies are additive (AND logic) with no numeric priority ordering.
19Do Azure Resource Group tags automatically inherit down to child resources created inside that Resource Group?No, tags applied to a Subscription or Resource Group are not inherited by child resources unless enforced via an Azure Policy.To ensure every VM and Disk inherits the `CostCenter` tag from its parent Resource Group, administrators assign the built-in `Inherit a tag from the resource group if missing` Modify policy.
  • Tags do not inherit automatically; use Azure Policy with the Modify or Append effect to propagate tags.
  • No, tags applied to a Subscription or Resource Group are not inherited by child resources unless enforced via an Azure Policy.
  • Each Azure resource maintains its own up to 50 key-value tags independently of the parent Resource Group.
20In an Azure RBAC custom role JSON definition, what is the difference between `Actions`, `NotActions`, `DataActions`, and `NotDataActions`?`Actions`/`NotActions` govern control-plane operations in Azure Resource Manager, while `DataActions`/`NotDataActions` govern data-plane operations inside resources.Granting `Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read` in `DataActions` allows reading blobs directly via Entra authentication without exposing the storage account's control-plane access keys.
  • Actions and NotActions apply to ARM control plane; DataActions and NotDataActions apply to resource data planes.
  • Effective permissions subtract NotActions from Actions for control plane and NotDataActions from DataActions for data plane.
  • `Actions`/`NotActions` govern control-plane operations in Azure Resource Manager, while `DataActions`/`NotDataActions` govern data-plane operations inside resources.
21What problem do Administrative Units (AUs) solve in Microsoft Entra ID?Administrative Units restrict the scope of Entra ID role assignments to a specific subset of users, groups, or devices.Assigning a regional helpdesk engineer the User Administrator role scoped to the `EMEA-AU` Administrative Unit allows password resets for European staff without granting tenant-wide privileges.
  • AUs delegate Entra directory administration over specific organizational divisions or regions.
  • Containers that scope Microsoft Entra directory roles to delegated subsets of users and devices.
  • Administrative Units restrict the scope of Entra ID role assignments to a specific subset of users, groups, or devices.
22How many Subscriptions can trust a single Microsoft Entra ID tenant, and how many Entra ID tenants can a single Azure Subscription trust at once?Multiple Azure Subscriptions can trust the same Microsoft Entra ID tenant, but each Subscription trusts only one tenant.When an enterprise moves an Azure Subscription to a different Microsoft Entra directory using `az account subscription`, existing Azure RBAC role assignments are permanently lost and must be recreated.
  • Many-to-one relationship: many Subscriptions per Entra tenant, one Entra tenant per Subscription.
  • Multiple Azure Subscriptions can trust the same Microsoft Entra ID tenant, but each Subscription trusts only one tenant.
  • A Subscription can only be associated with a single Entra ID directory at any time.
23How do Geo-Redundant Storage (GRS) and Geo-Zone-Redundant Storage (GZRS) replicate data to the secondary Azure region, and what is required for read access to the secondary?Both replicate asynchronously to a single physical location (LRS) in the paired secondary region; read access requires RA-GRS or RA-GZRS.With RA-GZRS enabled, an application reads from `<account>-secondary.blob.core.windows.net` during a primary region outage, though asynchronous replication means `Last-Sync-Time` typically lags by several minutes (RPO ~15 min).
  • GRS = LRS primary + async LRS secondary; GZRS = ZRS primary + async LRS secondary; RA-* enables secondary endpoint reads.
  • Both replicate asynchronously to a single physical location (LRS) in the paired secondary region; read access requires RA-GRS or RA-GZRS.
  • Secondary region copies are always written as LRS asynchronously and cannot be read until failover unless RA-GRS/RA-GZRS is configured.
24Compare the three types of Azure Storage Shared Access Signatures (SAS): User Delegation SAS, Service SAS, and Account SAS.User Delegation SAS is signed with Microsoft Entra credentials (most secure); Service SAS targets one storage service; Account SAS spans multiple services.Microsoft recommends disabling shared Account Keys (`allowSharedKeyAccess: false`) and issuing short-lived User Delegation SAS tokens for Blob and Data Lake Gen2 access.
  • User Delegation SAS uses Entra ID OAuth2 tokens (Blob/ADLS Gen2 only); Service and Account SAS use the storage account key.
  • User Delegation SAS is signed with Microsoft Entra credentials (most secure); Service SAS targets one storage service; Account SAS spans multiple services.
  • Account SAS can grant account-level operations and cover Blob, File, Queue, and Table services simultaneously.
25How do the `DeployIfNotExists` (DINE) and `Modify` effects in Azure Policy remediate existing non-compliant resources?Both require a Managed Identity attached to the policy assignment and a Remediation Task to update pre-existing non-compliant resources.When assigning a `DeployIfNotExists` policy that deploys Azure Monitor Diagnostic Settings to all Key Vaults, the administrator creates a Remediation Task using a System-Assigned Managed Identity.
  • Both require a Managed Identity attached to the policy assignment and a Remediation Task to update pre-existing non-compliant resources.
  • New/updated resources are remediated automatically, while existing resources require an on-demand Remediation Task and Managed Identity.
  • DINE and Modify use a Managed Identity with sufficient RBAC permissions to alter or deploy resources.
26How do Microsoft Entra ID roles differ architecturally from Azure RBAC roles?Entra ID roles control access to directory objects (users, groups, apps), whereas Azure RBAC controls Azure resource management via ARM.A Global Administrator manages Entra tenant settings and users, while an Azure RBAC Owner or Contributor manages Virtual Machines and Storage Accounts inside a Subscription.
  • Entra roles govern tenant/identity resources; Azure RBAC governs Azure Resource Manager scopes.
  • Entra ID roles control access to directory objects (users, groups, apps), whereas Azure RBAC controls Azure resource management via ARM.
  • Entra roles operate at the tenant or AU level; Azure RBAC operates across Management Groups, Subscriptions, Resource Groups, and Resources.
27In Microsoft Entra Privileged Identity Management (PIM), what is the difference between an 'Eligible' and an 'Active' role assignment?Eligible assignments require the user to perform just-in-time activation (with optional MFA or approval), whereas Active assignments apply immediately.A Cloud Architect assigned as Eligible for the Contributor role on a production subscription activates the role for a 4-hour window with a change ticket justification.
  • Eligible roles stay dormant until activated via PIM; Active roles grant continuous standing permissions.
  • PIM Eligible roles enforce time-bound just-in-time activation; Active roles require no activation step.
  • Eligible assignments require the user to perform just-in-time activation (with optional MFA or approval), whereas Active assignments apply immediately.
28In what order does Azure Policy evaluate multiple policy effects when a resource request is submitted to Azure Resource Manager?Disabled is checked first, then Append and Modify (which can alter the request), followed by Deny, Audit, and finally DeployIfNotExists/AuditIfNotExists.If an `Append` policy adds a required `Environment: Prod` tag to a new Storage Account request, a subsequent `Deny` policy checking for missing tags sees the appended tag and allows creation.
  • Evaluation order: Disabled -> Append/Modify -> Deny -> Audit -> AuditIfNotExists/DeployIfNotExists.
  • Append and Modify run before Deny so they can remediate a request before Deny evaluates it.
  • Disabled is checked first, then Append and Modify (which can alter the request), followed by Deny, Audit, and finally DeployIfNotExists/AuditIfNotExists.
29What happens when both a `ReadOnly` lock and a `CanNotDelete` lock exist on the same Resource Group, or why can a `ReadOnly` lock break an Azure Storage Account?The most restrictive lock (`ReadOnly`) wins; `ReadOnly` blocks HTTP POST/PUT ARM calls, preventing `listKeys` operations on Storage Accounts.Applying a `ReadOnly` lock to a Resource Group containing a Storage Account breaks applications or Azure Portal blades that call `POST .../listKeys` to retrieve or rotate account keys.
  • ReadOnly blocks all ARM writes, deletes, and POST operations like listing Storage Account keys.
  • The most restrictive lock (`ReadOnly`) wins; `ReadOnly` blocks HTTP POST/PUT ARM calls, preventing `listKeys` operations on Storage Accounts.
  • CanNotDelete allows modifications but blocks deletion; ReadOnly blocks both modifications and POST actions.
30How can you immediately revoke an issued Service SAS token without rotating the entire Storage Account access key?Associate the Service SAS with a container-level Stored Access Policy and modify or delete that Stored Access Policy to revoke access immediately.Up to 5 Stored Access Policies can be defined per container, file share, table, or queue, letting administrators alter start time, expiry time, or permissions after issuing the SAS URI.
  • Associate the Service SAS with a container-level Stored Access Policy and modify or delete that Stored Access Policy to revoke access immediately.
  • Bind the SAS to a Stored Access Policy on the container/share and delete or expire the policy.
  • Without a Stored Access Policy, an ad-hoc Service SAS can only be revoked by rotating the underlying storage account key.
31What is the minimum passing scaled score and exam domain weight distribution for the Microsoft Azure Administrator (AZ-104) certification?Passing requires a scaled score of 700 out of 1000 across five domains led by Virtual Networking and Compute.Candidates face 40 to 60 questions—including case studies and interactive scenarios—covering Identity and Governance (20-25%), Storage (15-20%), Compute (20-25%), Networking (15-20%), and Monitoring (10-15%).
  • 700/1000 scaled passing score across 5 AZ-104 functional domains.
  • Passing requires a scaled score of 700 out of 1000 across five domains led by Virtual Networking and Compute.
  • Minimum score of 700 on a 100-1000 scale.
32How does Azure RBAC evaluate conflicting `Allow` role assignments and `Deny assignments`?Azure RBAC starts with an implicit Deny; explicit Deny assignments (created by Azure Blueprints or Managed Applications) override any role assignment.Even if a user holds the Subscription `Owner` role, a Managed Application's explicit Deny assignment on its managed Resource Group blocks the user from deleting its internal VMs.
  • Role assignments are additive (union of permissions), but an explicit Deny assignment always takes precedence.
  • Azure RBAC starts with an implicit Deny; explicit Deny assignments (created by Azure Blueprints or Managed Applications) override any role assignment.
  • Deny assignments block specified actions even for Subscription Owners.