
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Check that the Database migration source profile for the stand-alone VM has been created.
/ 20
Check that there is a Cloud SQL instance with instance ID as per dynamic value and one time migration is performed.
/ 20
Check that there is a continuous migration job that is running.
/ 20
Check that the record 974 has been updated in both places.
/ 20
Check that the Cloud SQL for MySQL destination instance for continuous migration has been promoted.
/ 20
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 course 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 skill badge. Are you ready for the challenge?
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 are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Certain Compute Engine resources live in regions and zones. A region is a specific geographical location where you can run your resources. Each region has one or more zones.
Run the following gcloud commands in Cloud Shell to set the default region and zone for your 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.
The credentials for this source database are provided in the table below:
Property | Value |
---|---|
Username | admin |
Password | changeme |
Property | Value |
---|---|
Cloud SQL Destination Instance ID | |
Root password | supersecret! |
Choose a Cloud SQL edition | Enterprise |
Database version | Cloud SQL for MySQL 8 |
Machine Shape | 2 vCPU,8 GB |
Storage type | SSD |
Storage capacity | 10GB |
If the data are migrated, this query should return a row count of 5030.
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:
Property | Value |
---|---|
Cloud SQL Destination Instance ID | |
Root password | supersecret! |
Choose a Cloud SQL edition | Enterprise |
Database version | Cloud SQL for MySQL 8 |
CPU | 2 vCPU,8 GB |
Storage type | SSD |
Storage capacity | 10GB |
Running
state before checking your progress below.In this lab, you learned how to: configure a Database Migration Service connection profile for a stand-alone MySQL database; perform a one-time migration of a stand-alone MySQL database to Cloud SQL; create a continuous Database Migration Service migration job to migrate a stand-alone MySQL database to Cloud SQL; test that the continuous Database Migration Service job replicates updated source data; and promote the destination Cloud SQL for MySQL database to a stand-alone database.
This self-paced lab is part of the Migrate MySQL Data to Cloud SQL using Database Migration Service skill badge. 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 Database Engineer learning path. If you have already completed the other skill badges in this learning path, search the catalog for other skill badges in which you can enroll.
...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 January 14, 2025
Lab Last Tested January 14, 2025
Copyright 2025 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.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one