Quick revision
The short answer
A managed service runs the infrastructure: hardware, operating system, patching within maintenance windows, automated backups, failover to a standby and basic monitoring. We still own everything about how the database is used: schema, queries, indexes, connection management, parameter tuning within the allowed limits and capacity choices. Security is shared, we must test restores and failover ourselves, and limited superuser access and extensions can block some tools.
What to remember
In this answer, we drew the line on a managed database. The provider handles hardware, the operating system, patching windows, automated backups, failover and basic monitoring. We keep schema design, query performance, indexes, connection management, parameter tuning within the allowed limits and capacity choices. Security configuration is shared, restores and failover must still be tested by us, and limited superuser access and extensions can rule out some tools.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
A managed service runs the infrastructure: hardware, operating system, patching within maintenance windows, automated backups, failover to a standby and basic monitoring. We still own everything about how the database is used: schema, queries, indexes, connection management, parameter tuning within the allowed limits and capacity choices. Security is shared, we must test restores and failover ourselves, and limited superuser access and extensions can block some tools.
Why this question is asked
Teams often move to a managed database and then assume the provider takes care of everything. The first slow query, connection storm or failed restore shows that the line is drawn differently. Interviewers ask this to check that we understand the shared responsibility model, so that we neither duplicate what the provider does nor neglect what it does not. In this answer, we will see what the provider handles, what stays with us, how security is shared, why restores and failover still need testing, and which limitations to expect.
1What the Provider Takes Care Of
A managed database service such as Amazon RDS, Aurora, Google Cloud SQL or Azure Database for PostgreSQL gives us a database endpoint without a server to look after. The provider buys and replaces hardware, installs and patches the operating system, and applies database minor version updates, usually in a maintenance window we choose. It takes automated backups, typically daily snapshots plus continuous log archiving, which allow point-in-time restore within a retention period of up to about 35 days on most services (check your provider).
It also handles high availability if we turn it on: a standby in another availability zone, health checks, and automatic failover that moves the endpoint to the standby when the primary fails. And it provides basic monitoring such as CPU, memory, storage, IOPS and connection counts. For a small team, this removes a large amount of routine, risky work.
2What Remains Ours
Everything about how the application uses the database stays with us. The provider will not design our schema, notice that a query does a sequential scan on a 50 million row table, or add the index it needs. It will not stop a Spring Boot service with 30 instances and pools of 20 from trying to open 600 connections against a max_connections of 400. It will not tell us that our transactions stay open during HTTP calls.
We also choose and pay for capacity: instance class, storage size and type, provisioned IOPS, number of read replicas. And we tune parameters, through a parameter group or flags, within the limits the provider allows; some settings are fixed or restricted. A managed database that is slow because it is undersized or poorly indexed is still our problem, and the bill for oversizing it is also ours.
| Area | Provider | Us |
|---|---|---|
| Hardware, OS, storage hardware | yes | no |
| Minor version patching | yes, in our maintenance window | choose window, test major upgrades |
| Automated backups and PITR | takes them | set retention, test restores |
| Failover to standby | detects and performs | enable, test, handle reconnects |
| Schema, queries, indexes | no | yes |
| Connection management | sets limits | pool sizes, proxies, timeouts |
| Parameters | allowed ranges | tuning within them |
| Network, encryption, users, IAM | provides features | configures them correctly |
3Security Is a Shared Responsibility
The provider secures the physical data centre, the hypervisor and the database software it manages. It offers encryption at rest, TLS, network isolation and identity integrations. Whether those are configured well is up to us. We decide whether the database is reachable from the internet (it should not be), which networks and security groups can reach it, which encryption keys are used and who can use them, which database users exist with what privileges, and whether IAM authentication or rotated passwords from a secrets manager are used.
Notice that most real incidents with managed databases come from this layer: a public endpoint, a shared admin password in a config file, or an application user with full ownership of the schema.
4Restores and Failover Still Need Testing
The provider takes backups, but the restore is ours to prove. A point-in-time restore on a managed service usually creates a new instance, which then needs the right parameter group, security groups and DNS or configuration changes before the application can use it. Doing this for the first time during an incident is slow, so we rehearse it and measure how long it takes for our database size.
Failover also needs testing from the application side. When the provider fails over, the endpoint moves and existing connections break. A Spring Boot service with HikariCP will see connection errors for some seconds, typically 30 to 120 depending on the service and configuration. We test that pools recover, that requests retry where it is safe, and that DNS caching in the JVM does not keep pointing at the old primary.
5Limits to Expect
Managed services do not give us a real superuser. On RDS, for example, we get a master user with an rds_superuser role that can do most administration but not everything. We cannot log in to the host, install arbitrary extensions or read files on the server. Only extensions on the provider's list are available, and versions may lag behind community releases. Some tools that expect superuser or file system access, certain backup, replication or monitoring agents, will not work, or need the provider's alternative.
This is usually acceptable for ordinary OLTP workloads, but it is worth checking before migrating: list the extensions and tools we depend on and confirm each is supported at the version we need.
6Follow-up questions
Does the managed service protect against an accidental DELETE?
Only through point-in-time restore, which creates a new instance at an earlier time. The standby and read replicas receive the DELETE within seconds. Recovering the deleted rows from the restored instance and repairing production is still our work.
Who handles major version upgrades?
The provider offers the upgrade mechanism, sometimes with blue/green deployments, but we decide when to run it, test the application against the new version beforehand and accept the brief downtime or switchover. Providers do eventually force upgrades when a version reaches end of support, so we plan for them.
Do we still need DBAs?
We need fewer people doing installation and patching, but we still need database skills for schema design, query tuning, capacity, upgrades and incident response. The role shifts towards performance and reliability engineering.
7Conclusion
In this answer, we drew the line on a managed database. The provider handles hardware, the operating system, patching windows, automated backups, failover and basic monitoring. We keep schema design, query performance, indexes, connection management, parameter tuning within the allowed limits and capacity choices. Security configuration is shared, restores and failover must still be tested by us, and limited superuser access and extensions can rule out some tools.
Open with
A managed service takes over the infrastructure work. The provider handles the hardware, the operating system, minor version patching in a maintenance window I choose, automated backups with point-in-time restore within a retention period, a standby with automatic failover if I enable it, and basic monitoring.
Then, if they want more
What stays with me is everything about how the application uses the database: schema design, query performance and indexes, connection management, for example making sure the number of service instances times the pool size fits under max_connections, parameter tuning within the limits the provider allows, and capacity choices like instance class, storage and IOPS, which I also pay for.
Security is shared: the provider secures its platform, but I configure network access, encryption keys, database users and IAM correctly. I still have to test restores, because a point-in-time restore creates a new instance that has to be wired up, and test failover from the application side, so the pool reconnects and DNS is not cached for too long.
And I would check limits before moving: no real superuser, no host access, and only the provider's list of extensions, which can block some tools.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- PostgreSQL documentation, MySQL reference manual
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "What does a managed database service such as Amazon RDS, Aurora, Cloud SQL or Azure...": https://scrivio-interview-library.netlify.app/databases/database-operations/6d9b920ee9/