Last updated: May 2026
Azure Databases Beginner AZ-104 ⏱ 10 min read

Choosing the Right Azure Database

Azure offers over a dozen database services — and choosing the wrong one costs time, money, and can require a painful migration later. The right choice depends on your data model (relational vs NoSQL), your application's consistency and latency requirements, your team's existing skills, and whether you need to migrate an existing workload or build something new. This guide walks through the decision.

What you'll learn Relational vs NoSQL — when each fits · All Azure database services mapped · Decision tree for common scenarios · Managed PaaS vs IaaS (SQL on VM) trade-offs · Migration scenarios · Performance tier decisions

Relational vs NoSQL

Relational (SQL)NoSQL
Data modelTables with rows and columns, fixed schemaDocuments, key-value, graph, column-family — flexible schema
Query languageSQL — powerful JOIN, aggregationVaries — API-based, limited joins
ConsistencyACID transactions — strong consistencyEventual or configurable consistency
ScaleVertical (scale up) + limited horizontalHorizontal scale-out designed in
Best forStructured data with relationships, financial systems, ERPHigh-volume reads/writes, globally distributed, flexible data

Azure Database Services Map

ServiceTypeEngineBest For
Azure SQL DatabaseRelational PaaSSQL ServerNew cloud-native apps, SQL Server migration
Azure SQL Managed InstanceRelational PaaSSQL Server (near-full)Lift-and-shift SQL Server with full compatibility
SQL Server on VMRelational IaaSSQL ServerFull control, legacy features, specific versions
Azure Database for MySQLRelational PaaSMySQLLAMP stack, WordPress, existing MySQL apps
Azure Database for PostgreSQLRelational PaaSPostgreSQLComplex queries, geospatial, advanced SQL
Azure Cosmos DBNoSQL PaaSMulti-modelGlobally distributed, low latency, multi-model
Azure Cache for RedisCache/NoSQLRedisCaching, session state, leaderboards, pub/sub
Azure Synapse AnalyticsAnalyticsDedicated SQL poolData warehousing, big data analytics
Azure Table StorageNoSQLKey-valueSimple structured data, cheap storage

Decision Tree

Start with: Is your data structured (tables with relationships)?

ScenarioRecommended Service
New app, SQL Server skills, cloud-nativeAzure SQL Database
Lift-and-shift existing SQL Server, need SQL Agent, linked serversAzure SQL Managed Instance
Need specific SQL Server version, full OS access, legacy featuresSQL Server on VM
Existing MySQL app, LAMP stack, WordPressAzure Database for MySQL
PostgreSQL app, geospatial queries, advanced SQLAzure Database for PostgreSQL
Globally distributed app, need <10ms latency worldwide, flexible schemaAzure Cosmos DB
Need a cache to reduce database load, session storageAzure Cache for Redis
Data warehousing, petabyte-scale analyticsAzure Synapse Analytics
Simple key-value lookups, extremely cheap storageAzure Table Storage

Managed PaaS vs SQL on VM

FactorPaaS (SQL Database / MI)IaaS (SQL on VM)
OS managementMicrosoft managesYou manage
SQL patchingAutomaticManual
BackupAutomaticManual / Azure Backup
HABuilt-inMust configure Always On, FCI
SQL Server featuresMost features (SQL Database), near-all (MI)All features — no restrictions
LicensingIncluded or BYOL (Hybrid Benefit)PAYG or BYOL
Choose whenWant less management overheadNeed specific version, full control, legacy features

Migration Scenarios

FromToTool
On-premises SQL ServerAzure SQL DatabaseAzure Database Migration Service, BACPAC
On-premises SQL ServerAzure SQL Managed InstanceAzure Database Migration Service (online)
On-premises MySQLAzure Database for MySQLAzure Database Migration Service, mysqldump
On-premises PostgreSQLAzure Database for PostgreSQLAzure Database Migration Service, pg_dump
Any relational databaseAzure Cosmos DBCustom ETL, Azure Data Factory
💡
AZ-104 Exam Tip Know the key differences: SQL Database (cloud-native, limited SQL Server features) vs SQL Managed Instance (near-full SQL Server, lift-and-shift). Know Cosmos DB for globally distributed, multi-model scenarios. Know Redis for caching. Know Synapse for data warehousing.
📝 Practice Questions
Click an option to check your answer.
Q1. A company wants to migrate their on-premises SQL Server to Azure with minimal changes — they use SQL Server Agent, linked servers, and CLR integration. Which service should they use?
A — Azure SQL Database
B — Azure SQL Managed Instance
C — Azure Cosmos DB
D — Azure Database for MySQL
Q2. A startup is building a globally distributed mobile app that needs sub-10ms reads from any region worldwide. Which database is the best fit?
A — Azure SQL Database
B — Azure Cosmos DB
C — Azure Cache for Redis
D — Azure Synapse Analytics
Q3. What is the main advantage of PaaS database services (like Azure SQL Database) over SQL Server on a VM?
A — PaaS offers all SQL Server features without restrictions
B — Microsoft manages patching, backups, and HA automatically — reduced operational overhead
C — PaaS is always cheaper than SQL on VM
D — PaaS provides full OS access for custom configurations
Q4. Which Azure service is specifically designed for petabyte-scale data warehousing and analytics?
A — Azure SQL Database
B — Azure Cosmos DB
C — Azure Synapse Analytics
D — Azure Cache for Redis
Q5. A web application uses a database for user sessions and frequently accessed data to reduce load on the primary database. Which service is ideal?
A — Azure SQL Managed Instance
B — Azure Database for PostgreSQL
C — Azure Cache for Redis
D — Azure Synapse Analytics
Comments
Disclaimer: RedKite Cloud is an independent educational resource and is not affiliated with Microsoft Corporation.