What Is a Cloud Database? Choose Between a Managed Service and a VM
Learn how cloud databases work, what a managed provider handles, and how to choose between a database service and self-managed software on a VM.
What Is a Cloud Database? Choose Between a Managed Service and a VM
A cloud database runs on cloud infrastructure and serves data to applications over a network. The main choice is not simply cloud versus on-premises: it is whether to delegate operational work to a managed database service or install database software on a virtual machine (VM) for more control. Managed services can reduce routine work such as patching and backups, but they do not take responsibility for your data model, permissions, query performance, or recovery objectives.
How does a cloud database work?
An application connects to the database over a network using a driver or database protocol. The database stores data, processes queries according to its engine and query language, and returns results. For example, an online store uses database connections to save orders and retrieve a customer's order history.
“Cloud database” does not describe one deployment model. Installing an engine on a VM is closer to infrastructure as a service (IaaS): you manage the operating system, engine configuration, patches, and backups. A database as a service (DBaaS), often delivered as platform as a service (PaaS), lets the provider handle the servers and some operational work while you focus on the database and application. The boundary varies by provider. Azure SQL Database manages much of patching, upgrades, backups, and monitoring, while database administration and optimization remain necessary. Amazon RDS describes AWS as managing hardware provisioning, maintenance, and backups, while customers remain responsible for database software and configuration.
Which database model fits the data?
Management model and data model are separate choices. A managed service does not imply a particular data model, and self-management on a VM is not limited to one engine type. First identify how the data relates and how the application queries it, then choose the operational model.
| Data or query pattern | Common model to consider | Starting question |
|---|---|---|
| Structured records, explicit relationships, transactions | Relational (SQL) | Do constraints and consistency across records matter? |
| Documents whose shape changes often | Document / NoSQL | Does each record need a flexible structure? |
| Fast lookup by key | Key-value | Is direct key-to-value access the main operation? |
| Complex connections | Graph | Is traversing relationships central? |
| Measurements collected over time | Time-series | Are time-indexed writes and analysis central? |
This table is a starting point, not a product guarantee. Features vary by service and configuration; check compatibility using representative queries, transactions, and data volumes.
Managed service or database on a VM?
A managed database can provide hardware maintenance, host operating-system work, engine patching, automated backups, and parts of high-availability configuration. This gives the team more time for schema design, permissions, query plans, and application work. In exchange, the service sets boundaries on supported engine versions, extensions, filesystem access, and networking. Check whether the product supports the extensions and operating procedures your workload needs.
Running a database on a VM gives you finer control over the operating system, engine settings, agents, or specialized extensions and may make an existing configuration easier to move. You also own patch schedules, backup and restore design, replication and failover, capacity, and security updates. A VM provider's infrastructure availability commitment does not by itself make the database engine highly available. You must design engine-level replication, failover, and application reconnection.
Example (hypothetical): A team building an order service might choose a managed relational database to reduce host patching and backup automation work. It still needs to set database users and least privilege, connection limits, indexes, and restore objectives, then verify them. If a legacy application depends on a specific operating-system package or a nonstandard engine extension, a VM may fit better, but the team must be ready to operate patching, backup restores, replication, and failover drills. This illustrates the trade-off; it is not a report of a product configuration or test.
What should you check before choosing?
Compatibility and migration: Confirm the required engine version, drivers, extensions, connection method, SQL features, and migration constraints. A managed product with a familiar engine name may not support every feature.
Security and networking: Use least-privilege database roles, protect application secrets, and prefer private network paths and encrypted connections where available. A managed service does not prevent SQL injection or replace account configuration, data classification, and access auditing.
Availability and recovery: High availability uses replication and failover to keep service running; backups help return to an earlier state after deletion or corruption. Neither replaces the other. Set recovery point and recovery time objectives (RPO/RTO), then check retention and regional recovery options. An advertised automatic backup is not proof that your application can be restored: run a restore procedure and verify that the application reconnects.
Performance and cost: Measure CPU, memory, storage, read/write mix, connection count, query latency, and data growth with representative work. Charges can depend on instance size, storage and I/O, high availability or cross-region replication, backup retention, and data transfer. Autoscaling or read replicas do not automatically solve load problems without suitable design and cost review.
Prefer a managed service when it meets your requirements within its supported feature set and reducing operational work matters. Consider a VM when you need operating-system or engine control, or the service lacks a required feature; include the people and procedures needed for patches, restore, and high availability in the comparison. In either case, distinguish service commitments and backup policies from your own successful recovery test.
References
[Azure SQL Database overview](https://learn.microsoft.com/en-us/azure/azure-sql/database/sql-database-paas-overview?view=azuresql)
[Azure SQL IaaS and PaaS overview](https://learn.microsoft.com/en-us/azure/azure-sql/azure-sql-iaas-vs-paas-what-is-overview?view=azuresql)
[Azure SQL Database security guidance](https://learn.microsoft.com/en-us/azure/azure-sql/database/secure-database?view=azuresql)
[Amazon RDS concepts and architecture](https://docs.aws.amazon.com/AmazonRDS/latest/gettingstartedguide/concepts.html)
[Google Cloud database overview and type selection](https://cloud.google.com/discover/databases)