Points de contrôle
Check that the Database migration source profile for the stand-alone VM has been created.
Check that there is a Cloud SQL instance with instance ID as per dynamic value and one time migration is performed.
Check that there is a continuous migration job that is running.
Check that the record 974 has been updated in both places.
Check that the Cloud SQL for MySQL destination instance for continuous migration has been promoted.
Migrate MySQL Data to Cloud SQL using Database Migration Service: Challenge Lab
In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the quest to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.
When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.
To score 100% you must successfully complete all tasks within the time period!
This lab is recommended for students enrolled in the Migrate MySQL Data to Cloud SQL using Database Migration Service Quest. Are you ready for the challenge?
Before you click the Start Lab button
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources will be made available to you.
This hands-on lab lets you do the lab activities yourself in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials that you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
- Access to a standard internet browser (Chrome browser recommended).
- Time to complete the lab---remember, once you start, you cannot pause a lab.
Your employer has existing MySQL databases running on a Compute Engine instance. They want to migrate this database to two new Cloud SQL instances using two different migration strategies. For the initial migration you must perform a one-time migration using the external IP address of the compute instance to gain access to the source database. For the second migration you have been instructed to use VPC Peering for access to the source database to remove the dependency on the external ip-address. Before you cut over to the newly migrated database, you must carry out a test to confirm that the migration has been successful. To perform this final test you must make some changes to the source database after the continuous migration job has been started, and then check that those changes are propagated by the Database Migration Service. Finally the destination instance (Cloud SQL for MySQL) must be promoted to a stand-alone database for reading and writing data.
Task 1. Configure a Database Migration Service connection profile for a stand-alone MySQL database
- To complete this task you must configure a connection profile for the migration of the MySQL source instance, running on a compute instance named
, to Cloud SQL using a Database Migration Service one-time migration and the external IP address of the source instance.
The credentials for this source database are provided in the table below:
Task 2. Perform a one-time migration of a stand-alone MySQL database to Cloud SQL
- You must migrate this compute instance based MySQL database to a Cloud SQL instance configured with the following properties:
|Cloud SQL Destination Instance ID|
Once you have migrated this database to a Cloud SQL instance you can confirm that the data has populated the Cloud SQL MySQL database by connecting to the new Cloud SQL MySQL database and running the following query:
If the data are migrated, this query should return a row count of 5030.
Task 3. Create a continuous Database Migration Service migration job to migrate a stand-alone MySQL database to Cloud SQL
- To complete this task you must create a continuous Database Migration Service migration job to migrate a stand-alone MySQL database to a second Cloud SQL instance using VPC peering.
- You must migrate the same stand-alone MySQL database to a second Cloud SQL instance configured with the following properties:
|Cloud SQL Destination Instance ID|
- To complete this task you must start the continuous migration job you have created. Wait until the job is in the
Runningstate before checking your progress below.
Task 4. Test that the continuous Database Migration Service job replicates updated source data
To complete this task you must connect to the source stand-alone MySQL instance and modify the database with the following query:
- Allow a minute for the change to be propagated by the continuous migration job and then check the changes at the destination.
Task 5. Promote the destination Cloud SQL for MySQL database to a stand-alone database
- In this task you must promote the Cloud SQL for MySQL instance to a stand-alone database for reading and writing data.
Earn your next skill badge
This self-paced lab is part of the Migrate MySQL Data to Cloud SQL using Database Migration Service quest. Completing this skill badge quest earns you the badge above, to recognize your achievement. Share your badge on your resume and social platforms, and announce your accomplishment using #GoogleCloudBadge.
This skill badge quest is part of Google Cloud’s Data Engineer learning paths. Continue your learning journey by enrolling in the Engineer Data with Google Cloud quest.
Google Cloud training and certification
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated November 02, 2022
Lab Last Tested November 02, 2022
Copyright 2023 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.