2.10 Azure Database Services

Key Takeaways

  • Azure SQL Database is a fully managed PaaS relational database based on the latest stable version of Microsoft SQL Server.
  • Azure SQL Managed Instance provides near-100% compatibility with on-premises SQL Server for easier migration.
  • Azure Cosmos DB is a globally distributed, multi-model NoSQL database with single-digit millisecond response times.
  • Azure Database for MySQL, PostgreSQL, and MariaDB provide fully managed open-source database engines.
  • Choose SQL Database for new cloud-native apps, SQL Managed Instance for migration, and Cosmos DB for global, low-latency NoSQL workloads.
Last updated: March 2026

Azure Database Services

Quick Answer: Azure SQL Database = managed SQL Server (PaaS). Azure SQL Managed Instance = near-100% SQL Server compatibility for migration. Azure Cosmos DB = globally distributed NoSQL with single-digit millisecond latency. Azure also offers managed MySQL, PostgreSQL, and MariaDB.

Azure SQL Database

Azure SQL Database is a fully managed relational database engine based on the latest stable version of Microsoft SQL Server. Azure handles patching, backups, monitoring, and high availability.

Key features:

  • Fully managed PaaS — No OS or SQL Server patching required
  • Built-in HA — 99.99% availability SLA
  • Auto-scaling — Serverless tier automatically scales compute based on demand
  • Intelligent performance — Automatic tuning, threat detection, and vulnerability assessment
  • Elastic pools — Share resources across multiple databases for cost optimization

Purchasing models:

ModelDescription
DTU (Database Transaction Unit)Bundled measure of compute, storage, and I/O. Simple pricing.
vCoreChoose compute (vCores) and storage independently. More flexible.
ServerlessAuto-scales compute and bills per second of use. Auto-pauses when idle.

Azure SQL Managed Instance

SQL Managed Instance is designed for customers migrating on-premises SQL Server workloads to Azure with near-100% compatibility with the on-premises SQL Server engine.

Differences from SQL Database:

FeatureSQL DatabaseSQL Managed Instance
SQL Server compatibilityHigh (most features)Near-100%
Cross-database queriesLimitedYes
SQL Server AgentNot availableAvailable
CLR supportNot availableAvailable
Database mailNot availableAvailable
Best forNew cloud-native appsMigrating existing SQL Server workloads

SQL Server on Azure VMs

For workloads that require full SQL Server control, you can run SQL Server on Azure Virtual Machines. This is an IaaS option where you manage the SQL Server instance, patching, and configuration.

Azure Cosmos DB

Azure Cosmos DB is Microsoft's globally distributed, multi-model NoSQL database service designed for mission-critical applications.

Key features:

FeatureDescription
Global distributionReplicate data to any number of Azure regions with one click
Multi-modelSupports multiple data models and APIs
Single-digit millisecond latencyGuaranteed low latency reads and writes at the 99th percentile
Automatic scalingThroughput scales automatically based on demand
Five consistency levelsFrom Strong to Eventual consistency
99.999% availabilityFive-nines SLA for multi-region deployments

Supported APIs:

APIData ModelCompatibility
NoSQL (native)Document (JSON)Azure Cosmos DB native
MongoDBDocument (BSON)MongoDB wire protocol compatible
CassandraWide-columnApache Cassandra compatible
GremlinGraphApache TinkerPop compatible
TableKey-valueAzure Table Storage compatible
PostgreSQLRelationalPostgreSQL compatible

On the Exam: Cosmos DB questions often test its GLOBAL distribution and multi-model capabilities. Remember: Cosmos DB is the answer when a question mentions "globally distributed," "multi-region writes," "single-digit millisecond latency," or "NoSQL."

Azure Database for Open-Source Engines

Azure provides fully managed versions of popular open-source database engines:

ServiceEngineKey Feature
Azure Database for MySQLMySQLFlexible Server with zone-redundant HA
Azure Database for PostgreSQLPostgreSQLFlexible Server with Citus for distributed tables
Azure Database for MariaDBMariaDBCommunity MariaDB engine (retiring — migrate to MySQL)

These are all PaaS offerings where Azure manages the underlying infrastructure, patching, backups, and high availability.

Database Service Decision Guide

ScenarioRecommended Service
New cloud-native SQL applicationAzure SQL Database
Migrating existing SQL Server with minimal changesAzure SQL Managed Instance
Full SQL Server control and customizationSQL Server on Azure VMs
Globally distributed, low-latency NoSQLAzure Cosmos DB
Existing MongoDB applicationAzure Cosmos DB (MongoDB API)
Open-source MySQL or PostgreSQL workloadAzure Database for MySQL/PostgreSQL
Graph database for relationship modelingAzure Cosmos DB (Gremlin API)
Test Your Knowledge

Which Azure database service provides globally distributed, multi-model NoSQL with single-digit millisecond latency?

A
B
C
D
Test Your Knowledge

A company wants to migrate their existing on-premises SQL Server to Azure with near-100% compatibility. Which service should they use?

A
B
C
D
Test Your Knowledge

Which Cosmos DB consistency level provides the strongest guarantees but the highest latency?

A
B
C
D
Test Your Knowledge

Which Azure database service supports multiple APIs including MongoDB, Cassandra, and Gremlin?

A
B
C
D