Azure Database Services: Azure SQL, Cosmos DB, MySQL, PostgreSQL and Choosing the Right Database

Microsoft Azure Fundamentals AZ 900 50 min min read Updated: Nov 17, 2026 Beginner
Azure Database Services: Azure SQL, Cosmos DB, MySQL, PostgreSQL and Choosing the Right Database
Beginner Topic 3 of 3

Relational and NoSQL

Relational (SQL)NoSQL
Data shapeTables with rows and columns, fixed schemaFlexible: documents, key-value, graph
StrengthJoins, transactions, strong consistencyHuge scale, fast, flexible schema
Azure exampleAzure SQL DatabaseAzure Cosmos DB

Azure SQL Family

OptionTypeUse for
Azure SQL DatabasePaaS, single database or elastic poolNew cloud apps with no server management
Azure SQL Managed InstancePaaS with near full SQL Server compatibilityMove existing SQL Server apps with few changes
SQL Server on a VMIaaSFull control, old versions, special features

Benefits of Managed (PaaS) Databases

  • Automatic backups, patching and updates
  • Built-in high availability
  • Scale up or down quickly
  • Built-in security such as encryption and threat detection

Azure Cosmos DB

  • A globally distributed NoSQL database with very low latency
  • Choose your API: NoSQL, MongoDB, Cassandra, Gremlin (graph), Table, PostgreSQL
  • Turnkey global replication to regions near users
  • Used for IoT, gaming, retail catalogs and apps needing instant response worldwide

Open-Source Databases

  • Azure Database for MySQL: managed MySQL
  • Azure Database for PostgreSQL: managed PostgreSQL
  • Good when your app already uses these engines

Choosing

NeedChoose
New app with relational data, no server careAzure SQL Database
Migrate SQL Server with minimal changeSQL Managed Instance
Global, flexible, fast documentsCosmos DB
App built on MySQL or PostgreSQLAzure Database for MySQL or PostgreSQL

Practice

  1. Which database suits a worldwide mobile game with flexible data?
  2. What is the difference between Azure SQL Database and SQL on a VM?
  3. Name two benefits of a PaaS database

Conclusion

Use Azure SQL options for relational data, Cosmos DB for global NoSQL and managed MySQL or PostgreSQL for those engines. Managed databases handle backups, patching and availability.

Quick Summary: models; SQL family; benefits; Cosmos DB; open-source; choosing.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators