D2 · Data Storage

Relational Data Design

The central AZ-305 question on relational data: where does the workload fall on the IaaS → PaaS spectrum? SQL Server on a VM, SQL Managed Instance, or — and within SQL Database, which tier (General Purpose, Business Critical, Hyperscale) and which .

Icon-databases-130

The spectrum: SQL on VM vs Managed Instance vs SQL Database

This mirrors exactly the logic the exam uses — from IaaS down to the exact SQL Database tier.

🗄️Árbol de decisión — SQL en VM · MI · SQL Database

Del IaaS al tier exacto de SQL Database

Interactivo

Pregunta 1 de 6

¿El workload requiere acceso al sistema operativo, una versión exacta de SQL Server, o features sin soporte en PaaS (CLR sin restricciones, agentes de terceros)?

💡 Señal: "acceso al SO", "versión SQL Server 2014 específica", "software instalado en el servidor SQL"

OptionModelSQL Server compatibilityWhen to choose it
SQL Server on Azure VMIaaS100% — it is SQL ServerYou need OS-level access, the full SQL Agent, unrestricted CLR, a specific version, or features not supported in PaaS. You patch and back up (with helper extensions).
SQL Managed InstancePaaS~99% — full instance: cross-DB queries, SQL Agent, Service Broker, CLRLift-and-shift of SQL Server with MINIMAL changes and no OS management. Deploys INSIDE your VNet. Link feature for hybrid DR.
Azure SQL DatabasePaaSSingle database — no native cross-DB, no SQL AgentNew cloud-native apps, multi-tenant SaaS, maximum abstraction: automatic backups, HA, patching.

Signals on the exam

"Cross-database queries", "SQL Agent jobs", "migrate the instance with minimal changes" → Managed Instance. "OS-level access", "exact SQL Server version" → SQL on VM. "Minimize administration", "new app" → SQL Database.

Icon-databases-130

Purchasing models and service tiers

vCore (recommended)

  • • You choose vCores, memory and storage separately
  • • Azure Hybrid Benefit: reuse SQL Server licenses with SA (~30% savings)
  • • 1/3-year reserved capacity for further discount
  • • Serverless available (General Purpose only)

DTU (legacy)

  • • Fixed bundle of CPU+memory+IO (Basic/Standard/Premium)
  • • Simple for small, predictable workloads
  • • No Hybrid Benefit, no serverless, no Hyperscale
Service tier (vCore)ArchitectureWhen
General PurposeCompute separated from remote (premium) storage. HA via re-provisioning. SLA 99.99%Default for most workloads — best price/performance
Business Critical4 replicas with local Always On, local SSD storage, 1 free read replica. SLA up to 99.995% (with zones)Low IO latency, high transaction rate, maximum resilience, read scale-out included
HyperscaleStorage distributed across page servers, up to 128 TB, near-instant backups/restores (snapshots), up to 4 HA replicas + named replicasVERY large databases (>4 TB), unpredictable growth, fast restore, massive read scale-out

Exam trap

"30 TB database" → only Hyperscale (GP and BC cap at 4 TB). "Restore in minutes regardless of size" → Hyperscale (snapshots). "Read replica at no extra cost" → Business Critical (includes 1 read-only replica).

Icon-databases-134

Elastic pools and serverless

Elastic Pool

  • •Multiple databases share a pool of resources (eDTUs/vCores)
  • •Ideal for multi-tenant SaaS: hundreds of DBs with peaks at DIFFERENT times
  • •Fixed pool cost — cheaper than sizing each DB for its own peak
  • •Anti-pattern: DBs that peak at the same time (the pool saturates)

Serverless (General Purpose)

  • •Auto-scales vCores between min and max; billed per vCore-second used
  • •Auto-pause after inactivity (you only pay for storage) — first login after pause takes longer (resume)
  • •Ideal: dev/test, apps with intermittent, unpredictable usage
  • •Anti-pattern: constant 24/7 usage (provisioned is cheaper)
Icon-databases-130

Scaling: read replicas, sharding and multi-region HA

Scaling reads

  • • Read scale-out (BC/Hyperscale): connection string with ApplicationIntent=ReadOnly routes to the replica
  • • Hyperscale named replicas: up to 30 read replicas sized independently
  • • Active geo-replication: readable replicas in up to 4 secondary regions — also available for reads
  • • Azure Cache for Redis in front of the DB for hot data

Scaling writes

  • • Vertical: bump the tier/vCores (the first and simplest option)
  • • Sharding horizontally with Elastic Database tools (split by tenant/range)
  • • If the model allows it, consider for massively distributed writes
HA/DR mechanismScopeFailoverWhen
Built-in HA (all tiers)Intra-regionAutomatic (<30s) — transparentDefault. No extra configuration. Does not protect against a regional disaster
Active geo-replicationSQL Database — up to 4 secondaries in other regionsManual — client initiates failoverReadable replicas in other regions; app-controlled failover. Not available on Managed Instance
Auto-failover groupsSQL Database or Managed Instance — group of DBsAutomatic or manual — single invariant endpointTransparent failover: the endpoint redirects with no connection-string change. The most common exam answer for multi-region HA

Auto-failover groups — exam signal

"The application must keep working automatically if the primary region fails, without changing the connection string" → . The group exposes two invariant endpoints: .database.windows.net (primary) and -secondary.database.windows.net (secondary, read-only). After failover, the primary endpoint automatically points to the new region.

Icon-databases-130

Azure Database for PostgreSQL / MySQL

ServiceDesign points
PostgreSQL Flexible ServerOptional zone-redundant HA (synchronous standby), read replicas, configurable maintenance window, stop/start to save cost. For apps that already run on Postgres.
MySQL Flexible ServerSame flexible model: zonal HA, read replicas, burstable tiers for dev/test.
Cosmos DB for PostgreSQL (Citus)DISTRIBUTED Postgres, horizontally sharded natively — multi-tenant SaaS and real-time analytics at scale.

Decision table

The scenario says...Design with...
Migrate a SQL Server instance with SQL Agent and cross-DB queries, without managing the OSSQL Managed Instance
App requires OS-level features or an exact SQL Server versionSQL Server on Azure VM
SaaS with 500 customer DBs peaking at different timesSQL Database in an Elastic Pool
Dev DB used only during working hoursSQL Database serverless with auto-pause
40 TB OLTP workload needing fast restoresSQL Database Hyperscale
Minimal IO latency + included read replicaBusiness Critical
Reduce licensing cost (have SA)vCore + Azure Hybrid Benefit + reserved capacity
Offload reports from the transactional DBRead scale-out (ApplicationIntent=ReadOnly)
Automatic multi-region failover without changing the connection stringAuto-failover group (SQL Database or MI)
Read replicas across multiple regions, manual failoverActive geo-replication (SQL Database)
Existing app on PostgreSQL with zonal HAPostgreSQL Flexible Server zone-redundant

Did you get this topic?

Test what you just learned

A company migrates to Azure an application with 3 SQL Server databases that depend on cross-database queries and SQL Server Agent jobs. They want to eliminate operating system and patch management, with minimal changes to the application. What do you recommend?

Ready to test "Relational Data Design"?

Put what you learned to the test with original AZ-305 exam questions.

Start AZ-305 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.