Original study notes for cloud certification exams — Google Cloud first, more clouds in build.

Database Migration Service Study Notes

Database Migration Service, or DMS, is a serverless, fully managed service for migrating databases to Google Cloud with minimal downtime. It supports homogeneous migrations such as PostgreSQL to Cloud SQL for PostgreSQL and heterogeneous migrations such as Oracle to PostgreSQL. DMS handles initial load and continuous change replication until you promote the destination at cutover.

Exam tip: Minimal downtime plus database migration to Cloud SQL or AlloyDB in the same sentence is always Database Migration Service.

Key facts

What the exam expects you to know

Database Migration Service vs Cloud SQL import/export: when to use which

Use Database Migration Service when migrating a live production database with minimal downtime, because it continuously replicates changes after the initial load so the destination stays current until cutover. Use Cloud SQL import and export with dump files in Cloud Storage when the database is small, downtime is acceptable, or you are seeding a development environment. The exam signal is downtime tolerance: near-zero downtime and ongoing changes mean DMS, while a simple offline move during a maintenance window can use import and export. See also the Cloud SQL import/export notes.

Useful gcloud commands

gcloud database-migration connection-profiles create my-source --region=us-central1 --type=POSTGRESQL --display-name=SourceProfile
gcloud database-migration migration-jobs create my-job --region=us-central1 --source=my-source --destination=my-dest --connectivity-type=STATIC_IP
gcloud database-migration migration-jobs list --region=us-central1

Common exam traps

Frequently asked questions

How does DMS minimize downtime during migration?

DMS first loads an initial snapshot of the source database and then continuously applies new changes captured from the source transaction logs to the destination. Because the destination stays synchronized while the source remains live, the final cutover only needs a brief window to drain remaining changes and redirect applications. This is far shorter than an offline dump and restore.

What is a connection profile in DMS?

A connection profile stores all the details DMS needs to reach a source or destination database, including host, port, username, password, and SSL configuration. Profiles are reusable across migration jobs and keep credentials managed in one place. Creating and testing profiles for both source and destination is the first step in any DMS migration workflow tested on the exam.

What happens when you promote a DMS destination?

Promotion finalizes the migration by stopping replication and converting the destination replica into a standalone Cloud SQL or AlloyDB instance ready for production traffic. Applications then connect directly to the promoted instance using its connection details. After promotion, the migration job is complete and the source is no longer synchronized, so rollback requires a separate plan.

Study aid disclaimer: Cloud Cert Notes is an independent educational study aid. It is not affiliated with, endorsed by, or sponsored by Google, Microsoft, Amazon, Oracle, or Alibaba. Google Cloud, Associate Cloud Engineer, and Cloud Digital Leader are trademarks of Google LLC; all other certification names and product names are trademarks of their respective owners. Always confirm service details against the official provider documentation before sitting an exam.