Relational data on Azure
Relational data lives in tables made of rows and columns, with a fixed schema defined before you load data. Tables link together using primary keys (unique row identifier) and foreign keys (a reference to another table's primary key), and you query them with SQL. Azure gives you several ways to run relational workloads, each trading off control against management effort.
The main services
- Azure SQL Database: a fully managed PaaS database, one database (or elastic pool of databases) per app, built on the SQL Server engine, always patched to the latest version.
- Azure SQL Managed Instance: near-100% SQL Server engine compatibility, good for lift-and-shift migrations that need cross-database queries, SQL Agent, or linked servers.
- SQL Server on Azure VMs: full IaaS control, you manage the OS and SQL Server yourself; pick this when you need OS-level access or unsupported features.
- Azure Database for PostgreSQL and Azure Database for MySQL: managed open-source relational engines, same PaaS convenience as SQL Database but for open-source workloads.
- Azure SQL Edge: a small-footprint SQL engine for IoT and edge devices, supports time-series and streaming data close to the source.
Deployment and purchasing models
- DTU (Database Transaction Unit) model: bundles compute, memory and storage into one blended metric, simplest for predictable small workloads.
- vCore model: lets you scale compute and storage independently, and lets you use Azure Hybrid Benefit to reuse existing SQL Server licences for a discount.
- Serverless compute tier: auto-scales and can auto-pause during inactivity, billed per second of actual use, ideal for spiky or intermittent workloads.
- Elastic pools: share resources across many databases with unpredictable usage patterns, cheaper than provisioning each database for peak load.
Resilience and access
- Built-in automated backups with point-in-time restore, retained for 7-35 days depending on tier, extendable with long-term retention.
- Active geo-replication and auto-failover groups give readable secondary copies in other regions for disaster recovery.
- Access is via SQL authentication or Microsoft Entra ID authentication; connections are secured with firewall rules and private endpoints.
Common mistakes to avoid
- Don't confuse Managed Instance (near-full SQL Server compatibility, instance-scoped features) with SQL Database (single/pooled database scope, some SQL Server features unsupported).
- Don't assume normalisation always wins - it reduces redundancy but can mean more joins and slower reads for reporting workloads.
- Remember elastic pools are for many databases with variable, non-simultaneous peaks, not for a single large database.
- Serverless is about auto-scaling and auto-pausing compute, not about removing the database server concept entirely.
What uniquely identifies each row in a relational table?
A primary key.
tap to reveal
What does a foreign key do?
References the primary key of another table to create a relationship between tables.
tap to reveal
Which Azure relational service offers near-100% SQL Server engine compatibility for lift-and-shift migrations?
Azure SQL Managed Instance.
tap to reveal
Which Azure option gives you full IaaS control over the OS and SQL Server?
SQL Server on Azure Virtual Machines.
tap to reveal
What are the two Azure SQL purchasing models?
DTU (blended compute/memory/storage unit) and vCore (independently scalable compute and storage).
tap to reveal
What does Azure Hybrid Benefit let you do?
Reuse your existing on-premises SQL Server licences on Azure SQL for a cost discount, under the vCore model.
tap to reveal
What is the serverless compute tier for Azure SQL Database known for?
Auto-scaling and auto-pausing compute during inactivity, billed per second of actual use.
tap to reveal
When should you use an elastic pool?
When you have many databases with unpredictable, non-simultaneous usage spikes, to share resources cost-effectively.
tap to reveal
What backup feature lets you restore a database to an earlier moment?
Point-in-time restore, from automated backups typically retained 7-35 days.
tap to reveal
What provides cross-region disaster recovery with readable secondary databases for Azure SQL?
Active geo-replication and auto-failover groups.
tap to reveal
Which two Azure PaaS services host open-source relational engines?
Azure Database for PostgreSQL and Azure Database for MySQL.
tap to reveal
What is Azure SQL Edge designed for?
A lightweight SQL engine for IoT and edge devices, supporting time-series and streaming data close to the source.
tap to reveal
What two authentication methods secure access to Azure SQL Database?
SQL authentication and Microsoft Entra ID authentication.
tap to reveal
True or false: normalisation always improves query performance.
False - it reduces redundancy but can require more joins, which may slow down reporting-style reads.
tap to reveal