An enterprise gaming company is planning to migrate its mission-critical PostgreSQL database and associated multi-terabyte media storage from an on-premises data center to Google Cloud (Cloud SQL for PostgreSQL and Cloud Storage) with minimal operational downtime. What is the correct sequence of steps to execute this migration strategy while ensuring zero data loss and minimal service interruption?
- 1Establish dedicated network connectivity via Cloud Interconnect and set up target GCP IAM roles and VPC infrastructure.
- 2Initiate initial baseline data transfer for media files to Cloud Storage via Storage Transfer Service and start continuous Database Migration Service (DMS) CDC replication.
- 3Verify data consistency, schema validation, and monitor CDC replication lag between the on-premises database and Cloud SQL.
- 4Place the on-premises database in read-only mode, allow final CDC catch-up, and promote the Cloud SQL instance to primary.
- 5Update client application database connection strings and DNS records to direct production traffic to GCP.
Answer
The correct sequence of steps is: 1) Establish dedicated network connectivity via Cloud Interconnect and set up target GCP IAM roles and VPC infrastructure, 2) Initiate initial baseline data transfer for media files to Cloud Storage via Storage Transfer Service and start continuous Database Migration Service (DMS) CDC replication, 3) Verify data consistency, schema validation, and monitor CDC replication lag between the on-premises database and Cloud SQL, 4) Place the on-premises database in read-only mode, allow final CDC catch-up, and promote the Cloud SQL instance to primary, and 5) Update client application database connection strings and DNS records to direct production traffic to GCP.
The correct sequence follows GCP migration best practices: pre-provisioning secure network and IAM foundations, establishing baseline file transfers alongside continuous database replication (CDC), validating sync status, executing a zero-loss cutover (setting source read-only, draining CDC, promoting target), and re-pointing application endpoints.
Step-by-Step Solution
Key Concept
Staging continuous database and data transfer migrations to achieve minimal downtime and zero data loss on GCP.