Skip to content
Explainer · Cloud database basics

Cloud Databases Explained: Types, Providers & How to Choose

A cloud database is a database you run on a provider's infrastructure instead of your own servers, usually as a managed service. This guide explains the main types (managed relational, serverless, DBaaS platforms, NoSQL and warehouses), who the big three clouds and the specialist providers are, and how to choose between them.

Facts checked 8 October 2026 against the providers' official documentation and pricing pages. Next review due January 2027. Cloud services, regions and prices change often; confirm on the provider's site before you buy.
Short answer
  • A cloud database runs on a provider's infrastructure; in the managed form the provider also handles installation, patching, backups and failover, while you keep schema design, queries and cost control.
  • For a typical application database, start with a managed relational service (Amazon RDS, Azure SQL Database or Azure Database for PostgreSQL, Google Cloud SQL) or a specialist PostgreSQL or MySQL platform.
  • Serverless databases suit idle or spiky workloads because compute can pause; NoSQL services suit key-value and document access patterns; warehouses are for analytics, not application traffic.
  • Choose by engine first, then by the cloud your application already runs on, then by pricing model and the operational features you need (high availability, backups, regions).
How we know: Research-based: definitions, services, engines and free offers were checked against AWS, Microsoft Azure, Google Cloud, Neon, Supabase, MongoDB and Cloudflare documentation and product pages on 8 October 2026. CodeWithSQL has not run these services for this guide, so no performance claims are made.

What is a cloud database?

A cloud database is a database that runs on a cloud provider's infrastructure and that you reach over the network, instead of a database installed on a server you own. In practice the term almost always means a managed service: you choose an engine and a size, and the provider runs the servers, the operating system and the database software for you.

The difference from simply renting a virtual machine is who does the operational work. AWS's own documentation for Amazon RDS describes it as "a managed database service" that is "responsible for most management tasks", and compares it with running a database on an EC2 virtual machine, where scaling, high availability, backups, patching and installation stay with the customer. Microsoft describes Azure SQL Database as a fully managed platform as a service that handles upgrading, patching, backups and monitoring without user involvement. Google describes Cloud SQL as a fully managed relational database service for MySQL, PostgreSQL and SQL Server.

What you still own is the part that depends on your application: the schema, the queries and indexes, access control, and the bill. AWS states this directly: you are responsible for query tuning. Good indexing and sensible transaction design matter as much on a cloud database as on your own server.

Types of cloud database

Most cloud database services fall into five groups. They overlap (a serverless database is also managed, and many DBaaS platforms run on the big clouds), but the groups help you narrow the choice.

Main types of cloud database service
TypeWhat it isExamplesTypical fit
Managed relationalA standard SQL engine run for you on instances you size and pay for by the hourAmazon RDS, Azure SQL Database, Azure Database for PostgreSQL, Google Cloud SQLMost web and business applications
Serverless relationalCompute scales with load and can pause when idle; you pay for usageAurora Serverless, Azure SQL Database serverless, NeonDevelopment databases, intermittent or spiky traffic
DBaaS platformsSpecialist providers offering one or a few engines with their own toolingSupabase, Neon, PlanetScale, Aiven, DigitalOcean, MongoDB AtlasTeams that want a simpler console, branching or multi-cloud
NoSQLKey-value, document or multi-model databases with their own APIsAmazon DynamoDB, Azure Cosmos DB, Firestore, MongoDB AtlasHigh-volume key lookups, flexible documents, mobile backends
Data warehouseColumnar engines for analytical queries over large dataAmazon Redshift, Google BigQuery, SnowflakeReporting and analytics, not application transactions

Managed relational databases

This is the default choice for an application that needs SQL, joins and transactions. You pick an engine (PostgreSQL, MySQL, MariaDB, SQL Server, Oracle or Db2 on Amazon RDS), an instance size and storage, and the provider handles the rest. Our managed databases guide covers what the provider does and what stays with you.

Serverless databases

Serverless services separate the database from fixed instance sizes. AWS describes Aurora Serverless as an on-demand, autoscaling configuration that starts up, shuts down and scales capacity based on the application's needs. Azure SQL Database serverless bills compute per second and pauses during inactive periods, when only storage is billed. Neon suspends a Postgres compute after 5 minutes of inactivity. The trade-off is that a paused database takes time to resume. See serverless databases explained.

DBaaS platforms and specialist providers

Database as a service (DBaaS) is the general model behind all of these offerings, but the term is often used for providers that focus on databases alone. Supabase gives every project its own dedicated Postgres instance with a backend platform around it; Neon separates Postgres compute from storage; MongoDB Atlas runs MongoDB on AWS, Google Cloud and Azure; Aiven runs open source engines across several clouds. Our DBaaS guide explains the service model and how to evaluate a provider.

NoSQL and data warehouses, briefly

NoSQL cloud databases trade SQL features for a specific access pattern and scale model. AWS describes DynamoDB as a serverless, fully managed, distributed NoSQL database; Microsoft describes Azure Cosmos DB as a fully managed NoSQL and vector database. If you are unsure which model fits, read SQL vs NoSQL and DynamoDB vs PostgreSQL.

Warehouses such as Amazon Redshift and BigQuery (which Google calls a serverless data analytics platform) are built for analytical queries over large tables. They sit next to an application database rather than replacing it; see data warehouse vs database.

Cloud database providers: the big three and the specialists

Three hyperscale clouds offer the widest range of database services, and a group of specialist providers competes on developer experience, pricing model or a single engine. The table lists the main relational and NoSQL services by provider; it is not exhaustive.

Cloud database services by provider (October 2026)
ProviderManaged relationalServerless or scale-to-zeroNoSQL and other
AWSAmazon RDS (PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Db2), Amazon AuroraAurora Serverless (Aurora PostgreSQL and Aurora MySQL)DynamoDB; Redshift for analytics
Microsoft AzureAzure SQL Database, Azure Database for PostgreSQL, Azure Database for MySQLAzure SQL Database serverless compute tierAzure Cosmos DB
Google CloudCloud SQL (MySQL, PostgreSQL, SQL Server), AlloyDB for PostgreSQL, SpannerNot a Cloud SQL feature; Firestore and BigQuery are serverlessFirestore; BigQuery for analytics
SpecialistsSupabase, DigitalOcean, Aiven, PlanetScale (MySQL-compatible Vitess and Postgres)Neon (Postgres), Cloudflare D1 (SQLite semantics)MongoDB Atlas

When the big three make sense

If your application already runs on AWS, Azure or Google Cloud, the same provider's database keeps traffic inside one network, one bill and one identity system. The hyperscalers also offer the most regions and the widest engine choice, including commercial engines (SQL Server, Oracle) that most specialists do not run. For side-by-side detail, see AWS RDS vs Azure SQL Database, AWS RDS vs Google Cloud SQL and Azure SQL vs Google Cloud SQL.

When a specialist makes sense

Specialists usually win on simplicity and on features the big clouds handle differently: database branching per pull request, scale to zero on small databases, all-inclusive monthly plans, or a backend platform around the database. The trade-offs are fewer regions, fewer engines and, in some cases, a newer company or a recent change of ownership. Comparisons such as Supabase vs Neon, Neon vs AWS RDS and PlanetScale vs AWS RDS go into those differences.

How to choose a cloud database

Work through these questions in order. Each one removes options, and by the end there are usually two or three services worth pricing.

  1. Data model and engine. Relational data with joins and transactions points to PostgreSQL, MySQL or SQL Server. Pick the engine your application and team already know; changing engine is a bigger project than changing provider.
  2. Where the application runs. A database in the same cloud and region as the application avoids cross-provider latency and data transfer charges.
  3. Workload shape. Steady traffic suits an always-on instance billed by the hour. Long idle periods suit a serverless option that pauses compute. Analytics over large tables suits a warehouse.
  4. Operational needs. Decide what you need for high availability (a standby in another zone), backup retention, point-in-time restore, regions and compliance, then check which plans include them.
  5. Pricing model. Compare like for like: instance hours, storage, backups and data transfer. Our cloud database pricing comparison works through the same small workloads on AWS, Azure and Google Cloud.
  6. Exit route. Standard engines can be dumped and restored elsewhere; proprietary APIs and platform features (auth, functions, NoSQL query languages) need rewriting if you leave.

For the infrastructure decision behind all of this (shared hosting, a VPS, a managed service or serverless), read database hosting: how to choose. For a shortlist of providers with criteria and limitations, see best database hosting providers.

Free and low-cost cloud databases for small projects

Several providers offer a free way to start, but the terms differ a lot, and the difference between an always-free tier and a time-limited trial matters if you plan to keep the database. Azure SQL Database has a free offer that Microsoft describes as available per database for the lifetime of the subscription, with monthly limits on vCore seconds and storage. Neon and Supabase have free plans with no time limit but with storage caps and rules for idle projects (Supabase pauses free projects after a week of inactivity). Google's Cloud SQL free trial instance lasts up to 30 days. AWS offers new customers a Free plan for up to 6 months on selected RDS instance types.

For a small business application, the cheapest option that will stay running is rarely a free tier: plan for a small paid instance with automated backups, and use free tiers for learning and prototypes. The free database hosting comparison lists the documented limits side by side.

Common mistakes when moving a database to the cloud

  • Comparing instance prices only. Storage, backups beyond the free allowance, standby replicas and outbound data transfer are billed separately on most services.
  • Assuming managed means tuned. The provider keeps the server running; slow queries and missing indexes remain your job.
  • Ignoring idle behaviour. A free or serverless database that pauses can add a delay to the first request after a quiet period. Check what the provider documents before using one for latency-sensitive traffic.
  • Picking a region by habit. Put the database in the same region as the application, and check that the region offers the engine version and high-availability option you need.
  • No exit plan. Keep regular logical exports (for example pg_dump or mysqldump) so moving provider stays possible.

All cloud database guides

Cloud database basics

PostgreSQL in the cloud

AWS

Microsoft Azure

Google Cloud

MySQL in the cloud

SQL Server in the cloud

MongoDB in the cloud

Redis in the cloud

Frequently asked questions

What is a cloud based database?

It is a database hosted on a cloud provider's infrastructure and accessed over the network. Most cloud databases are offered as managed services, where the provider runs the servers, operating system and database software, and handles backups and patching.

What is the best cloud based database?

There is no single best one. For a relational application, a managed PostgreSQL or MySQL service in the same cloud as your application is the usual starting point. Choose NoSQL only when your access pattern fits it, and a warehouse only for analytics.

Is there a free cloud based database?

Yes. Azure SQL Database, Neon, Supabase, MongoDB Atlas, Cloudflare D1 and others document free tiers, and AWS and Google Cloud offer free plans or trials with credits. Limits on storage, compute and idle time apply, and some are time-limited trials rather than always-free tiers.

What are AWS cloud database services?

The main ones are Amazon RDS (managed PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and Db2), Amazon Aurora (including Aurora Serverless), Amazon DynamoDB for NoSQL and Amazon Redshift for analytics.

What is a managed relational cloud database service?

It is a service that runs a relational engine such as PostgreSQL, MySQL or SQL Server for you. Amazon RDS, Azure SQL Database, Azure Database for PostgreSQL and Google Cloud SQL are examples: you choose the engine and size, and the provider handles installation, patching, backups and failover.

Is a cloud database secure?

The providers secure the infrastructure, but you configure access: network rules, users and roles, encryption settings and who can reach the database from the internet. A cloud database is as secure as that configuration.

Sources

Checked 8 October 2026.

How we research cloud database guides: our editorial method. CodeWithSQL earns nothing from the providers mentioned.

Choosing where to run your database?

Start with the section overview, or compare providers side by side.