Home › Studies › DP-900 › Relational Data › Azure SQL & Open-Source Databases

Azure SQL & Open-Source Databases

SQL Server on Azure VMs · Azure SQL Managed Instance · Azure SQL Database · single database · elastic pool · Azure Database for MySQL · Azure Database for PostgreSQL

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

The Azure SQL family

Azure SQL is a collective term for a family of Microsoft SQL Server based database services in Azure. Three services belong to it.

SQL Server on Azure VMsAzure SQL Managed InstanceAzure SQL Database
Type of cloud serviceIaaSPaaSPaaS
SQL Server compatibilityFully compatible with on-premises installations; lift and shift without changeNear-100% compatibility with SQL ServerMost core database-level capabilities; some features an on-premises application depends on might not be available
ManagementYou manage the operating system, SQL Server updates, configuration, backups and other maintenanceFully automated updates, backups and recoveryFully automated updates, backups and recovery
ArchitectureSQL Server instances in a virtual machine; each instance can support multiple databasesEach managed instance can support multiple databases; instance pools share resources across smaller instancesA single database on a logical server, or an elastic pool shared by several databases
Typical useMigrate or extend an on-premises SQL Server solution and keep full control of server and database configurationMost cloud migrations, especially with minimal changes to existing applicationsNew cloud solutions, or applications with minimal instance-level dependencies

Rule of thumb: need full control of the operating system and instance, choose a VM. Need near-100% SQL Server compatibility without managing the server, choose Managed Instance. Building something new or with few instance-level dependencies, choose SQL Database.

SQL Server on Azure Virtual Machines

Azure SQL Managed Instance

Azure SQL Database

A fully managed, highly scalable PaaS database service designed for the cloud. You create a logical server and deploy your databases on it. It is a low-cost option that requires minimal administration but isn't fully compatible with on-premises SQL Server installations.

OptionWhat it is
Single databaseOne database on a logical server. By default resources are preallocated and billed per hour.
Serverless compute tierCompute scales automatically within a range you configure, based on workload demand. In the General Purpose service tier the database can pause automatically when inactive.
Elastic poolSeveral databases share the pool's resources (memory, storage, processing power). Useful when resource needs vary over time; can reduce costs.
Hyperscale service tierVery large databases, up to 128 TB, with rapid on-demand scaling and fast backup and restore regardless of data size.
Free tierMonthly limits of 100,000 vCore seconds of serverless compute and 32 GB of storage per database.

Azure services for open-source databases

Azure also offers PaaS services for MySQL and PostgreSQL. The primary reason is to let organizations that use them in on-premises apps move to Azure quickly, without significant application changes.

Azure Database for MySQLAzure Database for PostgreSQL
Based onMySQL Community EditionPostgreSQL, an object-relational database
Engine traitsPopular open source relational database for LAMP stack appsRelational tables plus custom data types with nonrelational properties; extensible; stores geometric data such as lines, circles and polygons; procedural language PL/pgSQL
Deployment optionFlexible Server: fully managed, more granular control and flexibility over management functions and configurationFlexible Server: fully managed, a high level of control and server configuration customizations
BackupsAutomatic; point-in-time restore up to 35 days (seven days by default)Same availability, performance, scaling, security and administrative benefits as the MySQL service
Limits vs on-premisesCertain operations aren't available (mostly security and administration, which Azure manages)Some features aren't available, mostly extensions; a supported set of extensions and modules exists

Both services are managed and maintained by Microsoft, so some server-focused functionality, such as server backup and restore from tools like pgAdmin, isn't available to you.

Exam Tips

Tick each tip once you can answer it without looking.

“Azure SQL family: which service is IaaS?” → SQL Server on Azure Virtual Machines.. Trap: Managed Instance and SQL Database are both PaaS.

“Lift and shift an on-premises SQL Server with minimal changes, no server management” → Azure SQL Managed Instance (near-100% compatibility, PaaS).. Trap: SQL Server on VMs also lifts and shifts but you manage the OS and updates; SQL Database isn't fully compatible.

“Brand-new cloud application, minimal administration, low cost” → Azure SQL Database.. Trap: It isn't fully compatible with on-premises SQL Server, so don't pick it when an app needs instance-level features.

“Need full control of the operating system and SQL Server configuration” → SQL Server on Azure VMs.. Trap: PaaS options abstract the operating system.

“Who patches and backs up SQL Server on a VM?” → You do: all aspects, including OS and SQL Server updates, configuration and backups.. Trap: PaaS options automate updates, backups and recovery.

“Several databases with varying loads should share resources to cut cost” → Azure SQL Database elastic pool.. Trap: A single database has its own preallocated resources; it does not share them with other databases.

“SQL Database compute scales by workload and can pause when idle” → Serverless compute tier (pause in General Purpose).. Trap: The default is preallocated resources billed per hour.

“Very large database up to 128 TB with fast backup and restore” → Hyperscale service tier of Azure SQL Database.. Trap: Elastic pools share resources; they are not the large-database tier.

“The logical server in Azure SQL Database” → Central administrative point for databases, logins, firewall rules, auditing rules and failover groups.. Trap: It is a logical construct, not a VM you manage.

“Recover a SQL Database to any earlier moment” → Point-in-time restore.. Trap: Auditing records events; it does not restore data.

“Vulnerability assessment and Advanced Threat Protection for SQL” → Microsoft Defender for SQL.. Trap: Auditing tracks database events and writes them to an audit log.

“Which Azure service runs MySQL as PaaS?” → Azure Database for MySQL (based on MySQL Community Edition).. Trap: Azure SQL Database is for SQL Server based engines, not MySQL.

“Object-relational database with custom types, geometric data and PL/pgSQL” → PostgreSQL (Azure Database for PostgreSQL).. Trap: MySQL is the LAMP-stack relational database.

“MySQL point-in-time restore window” → Up to 35 days, seven days by default.. Trap: Seven days is the default, not the maximum.

“Why Azure offers MySQL and PostgreSQL services” → To move on-premises apps to Azure quickly without significant application changes.. Trap: The reason given is quick migration with minimal application change, not new engine features.

“Flexible Server deployment option (MySQL or PostgreSQL)” → Fully managed, with more granular control and configuration flexibility and cost optimization controls.. Trap: On SQL Server on Azure VMs, by contrast, you manage the server yourself.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Relational Concepts & SQLRelational Data overview →