Exams / DP-900 / D2 Identify considerations for relational data on Azure
D2.2
Describe relational Azure data services
- Describe the Azure SQL family of products, including Azure SQL Database, Azure SQL Managed Instance, and SQL Server on Azure Virtual Machines
- Identify Azure database services for open-source database systems
The Azure SQL family: IaaS vs. PaaS
| SQL Server on Azure VMs | Azure SQL Managed Instance | Azure SQL Database | |
|---|---|---|---|
| Service model | IaaS | PaaS | PaaS |
| What you manage | VM, OS, SQL Server instance | Databases, logins, data | Databases, logins, data |
| What Azure manages | Underlying hardware/virtualization only | Patching, backups, OS, HA, instance | Patching, backups, OS, HA, server |
| Scope | Full OS + full SQL Server instance | Instance (many databases) | Single database (or elastic pool) |
| SQL Server compatibility | 100% (it is SQL Server) | Near-100% (built on the latest Database Engine) | Narrower — database-scoped T-SQL surface |
| SQL Server Agent | Yes | Yes (SQL Agent jobs) | No |
| Cross-database queries/transactions | Yes | Yes, natively, within the instance | No (elastic query/transaction workaround only) |
| Database Mail / Service Broker | Yes | Yes | No |
| Best for | Lift-and-shift, minimal/no changes | Large-scale migration wanting near-full compatibility with low maintenance | New cloud-native apps, OLTP, SaaS, lowest maintenance |
- "Minimize maintenance effort" in a scenario almost always rules out SQL Server on Azure VMs (IaaS) and points to Azure SQL Database or Managed Instance.
- "Lift-and-shift with minimal/no changes" is the SQL-Server-on-Azure-VMs keyword; "near-100% compatibility as a migration target" with reduced maintenance is the Managed Instance keyword.
- SQL Server Agent, Database Mail and Service Broker are available on SQL Server (on-prem or VM) and Managed Instance, but not on Azure SQL Database single databases or elastic pools — a recurring way the exam separates Managed Instance from Azure SQL Database.
- Cross-database (three-part name) queries and transactions are native only within a single Managed Instance; Azure SQL Database needs elastic query/elastic transactions to reach across databases.
Azure SQL Database: elastic pools and serverless
| Deployment option | Compute model | Best for |
|---|---|---|
| Single database (provisioned) | Fixed compute size you choose | Predictable, steady usage |
| Single database (serverless) | Autoscales within a configured range; can auto-pause | Intermittent, unpredictable usage — built-in autoscaling |
| Elastic pool | Shared pool of resources across many databases on one server | Many databases with varying/unpredictable demand, cost optimization (common in multi-tenant SaaS) |
- Serverless is available only for Azure SQL Database single databases (General Purpose or Hyperscale tiers) — never for elastic pools, Managed Instance, or SQL Server on Azure VMs. "Built-in autoscaling" in a PaaS relational scenario = serverless Azure SQL Database.
- Elastic pools exist for many databases, varying load, shared budget — don't confuse this with serverless (one database, auto-pause).
- Auto-pause is a serverless-tier feature, not a universal PaaS trait: not every relational or non-relational PaaS database in Azure can be paused.
Security: firewall, authentication, encryption
| Layer | Mechanism | Protects against |
|---|---|---|
| Network | Server-level IP firewall (default, blocks all until a rule is added), optional database-level IP firewall | Unwanted network access by IP |
| Private connectivity | Azure Private Link / private endpoint | Exposing the database to the public internet at all |
| Identity | SQL authentication, or Microsoft Entra (Azure AD) authentication | Unauthorized sign-in; Entra adds Conditional Access, MFA, groups |
| Data | Transparent Data Encryption (TDE) | Reading database/log files as plaintext if storage is accessed directly |
- A brand-new logical server is protected by a server-level firewall that blocks everything by default — you must add a rule before anyone can connect.
- Multi-factor authentication for Azure SQL sign-in requires Microsoft Entra (Azure AD) authentication — SQL authentication alone has no MFA.
- TDE encrypts the whole database and transaction log at rest; it does not encrypt data in transit and is not column-level (that's Always Encrypted).
- To let a VM reach Azure SQL privately without exposing it to the internet: Azure Private Link (a private endpoint with a private IP in the VNet), not Application Gateway/Traffic Manager/DNS.
- Only the logical server's server admin login is guaranteed access to every database on that server, including new ones — not the Azure AD account that created the database, and there is no
saaccount in Azure SQL Database. - Querying a table from the internet needs all three: an allowed firewall IP, a database user, and SELECT permission on the table. Resource-group RBAC roles (Reader/Contributor) are management-plane only and grant no data access.
Availability, backups and read scale-out
- Azure SQL Database and Managed Instance include automated, Microsoft-managed backups and built-in high availability (replication, automatic failover) as part of the PaaS service — no extra infrastructure to configure.
- Read scale-out / read-only replicas offload read-only workloads (reporting, analytics) onto a secondary replica so they don't compete with the primary read-write transactional workload. This is about workload isolation, not disaster recovery or RPO.
- Microsoft Defender for Azure SQL Databases can protect Azure SQL single databases and elastic pools (and Managed Instance), discovering vulnerabilities and flagging threats.
Tools: SSMS, Azure Data Studio, SSDT, sqlcmd
| Tool | Platform | Best for |
|---|---|---|
| SSMS (SQL Server Management Studio) | Windows only | Full graphical administration: access, configure, manage SQL Server/Azure SQL; security management, performance tuning advisors |
| Azure Data Studio | Windows, macOS, Linux | Lightweight, cross-platform querying with IntelliSense; SQL notebooks (Markdown + runnable SQL cells); save results as text/JSON/Excel; backup/restore support |
| SSDT (SQL Server Data Tools) | Visual Studio (Windows) | Project-based, offline database design/development; visual table designer; extends to SSAS, SSIS, SSRS projects |
| sqlcmd | Command line, cross-platform | Ad hoc/scripted Transact-SQL execution from a terminal |
- SQL notebooks (Markdown documentation cells + runnable SQL code cells with inline results) are an Azure Data Studio feature only — SSMS has no notebook capability.
- Cross-platform requirement (Windows and Linux/macOS) + code assistance (IntelliSense) → Azure Data Studio, since SSMS is Windows-only and sqlcmd has no IntelliSense.
- "Project-based, offline" database design/modeling → SSDT, not SSMS or Azure Data Studio (both connect live to a server).
- SSMS can also query an Azure Synapse Analytics dedicated SQL pool; Azure Data Studio can query SQL Server, Azure SQL, PostgreSQL and MySQL.
Open-source database services on Azure
| Engine | IaaS option | PaaS option | Common client tools |
|---|---|---|---|
| PostgreSQL | PostgreSQL on an Azure VM | Azure Database for PostgreSQL | pgAdmin |
| MySQL | MySQL on an Azure VM | Azure Database for MySQL (Flexible Server) | MySQL Workbench |
| MariaDB | MariaDB on an Azure VM | Azure Database for MariaDB | MySQL-protocol clients |
- Same IaaS/PaaS split as the SQL Server family: VM-hosted = you patch the OS/engine; the managed "Azure Database for ..." service = Microsoft patches, backs up, and manages HA.
- Azure Database for MySQL Flexible Server enforces TLS by default, but encrypted-connection enforcement can be disabled — so "always requires SSL" is false.
- Backup retention (and so point-in-time restore) for Azure Database for MariaDB/MySQL tops out at 35 days, never 365 — a common wrong-duration distractor.
- Azure Database for MariaDB is on Microsoft's retirement path (migration to Azure Database for MySQL is recommended); treat MariaDB-specific DP-900 facts as historically accurate rather than a current deployment recommendation.
Exam traps
- "PaaS offering, multiple databases per instance, SQL Server Agent": Azure SQL Managed Instance, never Azure SQL Database (no SQL Server Agent there).
- "Database Mail" / "Service Broker" requirement: rules out Azure SQL Database single database/elastic pool; needs SQL Server (on-prem/VM) or Managed Instance.
- "Built-in autoscaling" for a relational PaaS database: the serverless compute tier of Azure SQL Database single databases, nothing else.
- Don't confuse an elastic pool (many databases, shared budget, varying load) with serverless (one database, auto-pause) — they solve different cost problems.
- A connectivity failure limited to one Azure SQL database after an IP change is almost always the SQL firewall, not RBAC, DHCP, or DNS.
- Azure SQL Edge (optimized for IoT/streaming time-series) was retired on September 30, 2025 — know it as the historical DP-900 answer for IoT scenarios, but it is no longer an available service.
- SQL Server 2019 Big Data Clusters support ended February 28, 2025 — older questions about querying a "SQL Server big data cluster" from Azure Data Studio describe a retired capability.
- Resource-group RBAC roles (Reader/Contributor) never grant data-plane access to query rows inside a database — that always needs a database user plus table-level permission (and a firewall rule, if coming from outside Azure).
Docs
- What Is Azure SQL?
- What is Azure SQL Managed Instance?
- Automate management tasks using SQL Agent jobs in Azure SQL Managed Instance
- Features comparison: Azure SQL Database and Azure SQL Managed Instance
- Azure SQL Database elastic pools
- Serverless compute tier for Azure SQL Database
- Dynamically scale database resources with minimal downtime
- Azure SQL Database and Azure Synapse IP firewall rules
- Azure Private Link for Azure SQL Database and Azure Synapse Analytics
- What is Azure Private Link?
- Transparent Data Encryption (TDE)
- Microsoft Entra authentication for Azure SQL
- Authorize database access to SQL Database, SQL Managed Instance, and Azure Synapse Analytics
- What is a logical server in Azure SQL Database and Azure Synapse?
- Read Queries on Replicas - Azure SQL Database & Azure SQL Managed Instance
- Restore a database from a backup in Azure SQL Database
- Reliability in Azure SQL Database
- Overview of Microsoft Defender for Azure SQL Databases
- Azure Hybrid Benefit for SQL Server
- Migration overview: SQL Server to SQL Server on Azure VMs
- Database Mail - SQL Server
- Service Broker - SQL Server
- What is SQL Server Management Studio (SSMS)?
- SQL Server Data Tools (SSDT)
- Download and install Azure Data Studio
- Notebooks in Azure Data Studio
- Create and run a SQL Server notebook
- sqlcmd utility for SQL Server
- Connect and query a dedicated SQL pool in Azure Synapse Analytics with SSMS
- Choose the right Azure Database for PostgreSQL hosting option in Azure
- Connect and query overview for Azure Database for PostgreSQL
- Overview of TLS/SSL support in Azure Database for MySQL Flexible Server
- Backups in Azure Database for MariaDB
- What's happened to Azure Database for MariaDB
- What is Azure SQL Edge
- Microsoft SQL Server 2019 Big Data Clusters overview