Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Cloud Digital Leader Practice Question: Drag and drop the steps to migrate an on-premises…
Drag and drop the steps to migrate an on-premises MySQL database to Cloud SQL using Database Migration Service into the correct order.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Set up the destination Cloud SQL instance, then connect to the source database, then create and start the migration job, then promote the Cloud SQL instance to make it primary.
The migration process requires setting up the destination, connecting to the source, creating and starting the migration, then promoting.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Set up the destination Cloud SQL instance, then connect to the source database, then create and start the migration job, then promote the Cloud SQL instance to make it primary.
Why this is correct
This is the correct order because you first need to create the target Cloud SQL instance where the data will migrate to, then establish connectivity to the source database, then create and run the migration job, and finally promote the instance to make it the active database.
- ✗
Connect to the source database, then set up the destination Cloud SQL instance, then create and start the migration job, then promote the Cloud SQL instance.
Why it's wrong here
This sequence is invalid because it begins by connecting to the source before any Cloud SQL destination exists. In Database Migration Service, a migration job must reference a live destination instance to validate connectivity and create the data path; without that target, the source connection cannot be associated with a migration and no data can be staged. The destination Cloud SQL instance must be provisioned first so it can serve as the endpoint for the job, and only then should you configure the source connection and launch the migration.
- ✗
Set up the destination Cloud SQL instance, then create and start the migration job, then connect to the source database, then promote the Cloud SQL instance.
Why it's wrong here
Starting the migration job before connecting to the source is not possible because the job's initial load and continuous replication require source database endpoint, credentials, and binlog settings to be known at creation time. The Database Migration Service validates the source connection as part of job creation and fails validation if no connectivity is configured. Therefore, creating the destination instance, then using a connection profile to the source, must precede creating and starting the migration job.
- ✗
Set up the destination Cloud SQL instance, then connect to the source database, then promote the Cloud SQL instance, then create and start the migration job.
Why it's wrong here
Promoting the Cloud SQL instance to primary before creating/starting the migration job inverts the cutover process. Promotion is the final cutover that stops continuous replication and redirects writes to Cloud SQL; it must only be run after the migration job has been created, started, and completed an initial sync plus a continuous catch-up. Promoting early makes a live primary with stale or empty data, and any subsequent migration would risk conflicting with writes made directly to Cloud SQL.
Go deeper
Related to this question
Learn chapter
Cloud Digital Transformation
Key term
Cloud SQL
Cloud SQL is a fully managed relational database service that lets you set up, maintain, and scale SQL databases (like MySQL, PostgreSQL, and SQL Server) in the cloud without managing the underlying infrastructure.
Key term
SQL
SQL is a standardized programming language used to manage and manipulate relational databases, enabling querying, updating, and data retrieval.
About these practice questions
Courseiva writes every GCDL question from scratch — 829 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This GCDL practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCDL exam.