Prerequisites
- !Basic familiarity with command-line tooling
- !A high-level picture of what a data warehouse and a data lake each do
- !No prior Azure account required to follow the concepts
What You'll Learn
- 1Explain the management group, subscription, resource group and resource hierarchy and where each control applies
- 2Distinguish regions, availability zones and region pairs, and justify a region choice for an analytics workload
- 3Read Azure quota and SKU limits before designing a cluster rather than after it fails
- 4Map a typical data engineering architecture onto the core Azure services and their boundaries
- 5Recognise the billing model that drives the cost of a Spark or warehouse deployment
The hierarchy, and which control lives where
Every Azure object is a resource, and every resource belongs to exactly one resource group, which belongs to exactly one subscription, which sits under an optional management group, all the way up to the tenant root. Interviewers ask about this chain because it is the difference between a team that ships a compliant platform and one that redoes its landing zone three months in.
The practical rule is that scope only ever flows downward. A role assignment made at a management group applies to every subscription beneath it; one made at a resource group applies to everything created inside it later, without you re-running anything. Policy and budget alerts behave the same way. This is why platform teams assign the "Reader" role and the region-restriction policy at the management group level: individual teams then cannot accidentally create resources in an unapproved geography, even if they try through the portal.
Billing, by contrast, stops at the subscription. Costs are metered per resource but rolled up per subscription, so most organisations give each environment its own subscription. That gives finance a clean boundary, gives engineers a blast-radius limit, and gives security teams a natural place to attach conditional access. The resource group is then used for lifecycle, not for billing: everything deleted together lives together.
Regions, zones and region pairs
A region is a set of data centres within a latency-controllable radius, typically containing two or more availability zones. Each zone is an isolated physical facility with independent power, cooling and networking. Placing a pair of virtual machines in different zones of the same region keeps them close enough for sub-millisecond replication while surviving the failure of a whole building.
Region pairs exist for a different reason: disaster recovery under regulatory and platform constraints. Azure deliberately pairs regions roughly three hundred miles apart so that a paired region is far enough away to survive a regional disaster but close enough that replication stays affordable and, in some cases, so that platform updates are never rolled out to both members of a pair simultaneously. When you design a recovery plan, you pair East US with West US, not East US with East Asia, because the platform-level dependency between pair members is part of the design.
| Choice | Availability zones | Region pair | Sovereign cloud |
|---|---|---|---|
| Protects against | Single facility outage | Whole-region outage | Data leaving a jurisdiction |
| Typical data-plane impact | None, if traffic is zone-redundant | Recovery time of hours to days | Services and support are partitioned |
| Cost effect | Small, mostly on load balancers and storage redundancy | Real, because you run a standby | Significant, separate subscription and catalogues |
| Data residency control | Weak | Weak | Strong |
| Interview answer | "Zone-redundant by default" | "Paired region for DR, not for latency" | "When data cannot leave the country" |
Choosing a region for an analytics platform
Region selection is rarely about raw speed. It is about four constraints arriving at once: where the source data physically sits, where the consumers sit, which services are actually available in the region, and what the residency rules say. A lake holding European customer records generally cannot be replicated into a US region just because the compute is cheaper there.
Service availability is the constraint people forget. Not every region offers every SKU. Dedicated SQL pools, certain FPGA-accelerated VM sizes and the newest Databricks runtime tiers appear in some regions well before others. Before you commit, check the Products by Region page and, more usefully, query the resource provider registration and SKU list directly. A design that assumes an unavailable VM size fails during deployment, not during review.
Latency matters too, but only at the edges. Spark executors reading from a storage account in the same region see single-digit millisecond round trips. Users in a different continent see a login page, which is a different problem solved by content delivery and not by moving the lake. Optimise the data path first; optimise the human path second.
Resource groups and the tagging contract
Resource groups are a lifecycle boundary. Delete the group and everything inside it goes, so long-running storage should never sit in a group that a deployment script recreates. The more durable convention is one group per workload per environment: rg-sales-lake-prod, rg-sales-lake-dev.
Tagging is where large estates succeed or collapse. Tags are key-value pairs attached to resources, they inherit nothing, and they are not automatically applied to child resources. A minimal contract for a data platform looks like this:
#!/usr/bin/env bash
set -euo pipefail
LOCATION="eastus2"
RG="rg-orders-lake-prod"
SUBSCRIPTION_ID="$(az account show --query id -o tsv)"
az group create \
--name "$RG" \
--location "$LOCATION" \
--subscription "$SUBSCRIPTION_ID"
az deployment group create \
--resource-group "$RG" \
--template-file infra/storage.bicep \
--parameters environment=prod owner=data-platform \
--tags \
owner="data-platform" \
cost-center="cc-4471" \
environment="prod" \
data-classification="confidential" \
retain="true"
Two details in that script cause interview follow-ups. First, tags are set on the deployment rather than on individual resources so that every resource the template creates carries them. Second, retain is a tag used by an Azure Policy that denies deletion of any resource group carrying it, which is how a production lake avoids being removed by an over-eager cleanup job.
The service map you should be able to draw from memory
A useful mental model splits Azure data services into four layers: ingestion, storage, processing and consumption. Knowing which layer a service belongs to answers a surprising number of questions.
| Layer | Managed option | Lower-control option | You choose it when |
|---|---|---|---|
| Ingestion | Data Factory, Event Hubs, Cosmos DB change feed | Self-hosted integration runtime, Kafka on VMs | Source is on-premises or a live event stream |
| Storage | ADLS Gen2, Blob, Data Lake | HDFS on HDInsight | You need hierarchical ACLs and cheap cold tiers |
| Processing | Synapse pools, Databricks, Fabric | Spark on VM scale sets | Workload shape is known and stable |
| Consumption | Power BI, Synapse SQL endpoints, Semantic models | Direct JDBC clients | Consumers are analysts rather than applications |
Notice what is missing: no service in this table does governance. Classification, lineage and policy live in Purview, and they are scoped to the whole estate rather than to one layer. Candidates who describe a pipeline in detail but cannot say who is allowed to read the resulting table usually stop at the mid-level answer.
Quotas, SKU tiers and why clusters fail to start
Before any cluster starts, Azure checks your regional vCPU quota for that VM family. A default subscription often ships with a few dozen standard-family vCPUs in a region, which is enough for a gateway VM and not enough for a sixteen-node Databricks cluster. The error appears at workspace or node provisioning time and looks like a capacity failure rather than a quota one.
# What can I actually build in this region right now?
az vm list-locations --query "[?name=='eastus2']" -o table
az vm list-usage --location eastus2 \
--query "[?name contains 'standard' || name contains 'DSv3']" \
--output table
# Request more, which is a support ticket for most limits
az vm list-usage --location eastus2 \
--query "[?name=='standardDSv3Family'].{limit: currentValue, max: limit}" -o json
Quota requests are free and fast for most families, but they are per-region and per-subscription. A team that provisions in East US and later decides to fail over to East US 2 has to hold quota in both. This is a cheap thing to arrange in week one and an expensive thing to arrange during an incident.
Failure domains in practice
Designing for availability means naming the failure you are defending against and then placing the redundancy in the right layer. Zone redundancy on a storage account, a load balancer and a virtual machine scale set covers a building loss. A paired-region standby with its own pipeline schedule covers a region loss, and it needs its own runbook because failback is where most teams discover that the second environment was never fully configured.
resource storage 'Microsoft.Storage/storageAccounts@2023-05-01' = {
name: 'storders${uniqueString(resourceGroup().id)}'
location: location
sku: {
name: 'Standard_ZRS'
}
kind: 'StorageV2'
properties: {
minimumTlsVersion: 'TLS1_2'
supportsHttpsTrafficOnly: true
allowBlobPublicAccess: false
dataLake: {
filesystems: [
{ name: 'raw' }
{ name: 'curated' }
{ name: 'sandbox' }
]
}
}
}
A zone-redundant storage account silently places the three replicas across zones in the region. That is exactly the behaviour you want for a bronze layer that everything downstream reads from, and it costs only a little more than locally redundant storage.
Common Mistakes
Choosing a region because the compute is cheapest, then discovering the required VM family or dedicated pool SKU is not offered there
Fix: Validate SKU availability in the target region before committing the architecture, and record the check in the design document
Putting long-lived lake storage into a resource group that a deployment pipeline recreates on every release
Fix: Separate lifecycle boundaries: one group per workload and environment, with storage provisioned out of band and tagged retain
Treating availability zones as disaster recovery
Fix: Use zones for facility failure and a paired region for regional failure, and test the failover runbook at least twice a year
Applying tags to resources individually and missing half the estate
Fix: Apply tags at the deployment or subscription level so every newly created resource inherits them
Best Practices
- Place policy, RBAC and budget alerts at management group scope so they apply to future subscriptions automatically
- Hold quota in every region you might fail over to, not only the primary
- Standardise naming and tagging before the second team joins the platform, because retrofitting tags is manual work
- Document which layer each service belongs to so new engineers can reason about new offerings without relearning the estate
Interview Questions
Q1: What is the difference between an availability zone and a region pair?
A zone isolates you from a single facility failure inside one region, so it protects availability with no meaningful latency cost. A region pair protects you from a whole-region outage and is used for disaster recovery, giving a recovery time measured in hours rather than seconds.
Q2: At which scope would you assign a policy that forbids resource creation outside two approved regions?
At the management group, so every subscription beneath it inherits the policy. Doing it per subscription works but silently misses subscriptions created later.
Q3: Why does a Databricks cluster sometimes fail to start in a region where the workspace was created successfully?
The workspace provisioning path does not consume the regional VM-family vCPU quota that node provisioning does. The cluster start then fails on quota, which surfaces as a capacity or allocation error rather than a permissions error.
Q4: Where does billing stop in the Azure hierarchy?
At the subscription. Costs are metered per resource but aggregated per subscription, which is why environments are usually split into separate subscriptions while resource groups are used purely for lifecycle.
Q5: How would you make a data platform compliant with a residency rule that forbids data leaving a country?
Pick a region in that jurisdiction, pin storage and all processing to it, block deployment elsewhere with policy, and choose a sovereign cloud if the regulator requires a fully partitioned platform.
Key Takeaways
- Controls flow downward through management groups, subscriptions and resource groups, while billing stops at the subscription
- Zones defend against facility failure; paired regions defend against regional failure; they are not interchangeable
- Region choice is driven by data location, residency, SKU availability and consumer latency, in that order
- Resource groups express lifecycle, tags express ownership, and policy is what enforces both
- Regional vCPU quota, not permissions, is the most common reason a large cluster never starts