Your production Cloud SQL for MySQL instance (instance-prod) is in us-central1 and takes automated backups every night at 02:00. Developers need a copy of last night's backup to test a schema migration in the europe-west1 region. They must receive a fully functional Cloud SQL instance as quickly as possible and without affecting the production instance's binary log position. What should you do?
Use the Cloud SQL clone operation to clone instance-prod directly into europe-west1.
Create a new Cloud SQL instance in europe-west1 and restore the latest automated backup from instance-prod into it.
Create a cross-region read replica of instance-prod in europe-west1 and promote it to standalone.
Export the database from instance-prod to Cloud Storage, create a new instance in europe-west1, and import the SQL dump.
The fastest way to give developers an isolated, fully functional copy of the database is to create a new Cloud SQL instance in europe-west1 and restore the most recent automated backup from instance-prod into it. Restoring from an existing backup is a managed operation that does not change the binary logs or otherwise impact the source instance. Exporting and importing SQL dumps is slower and can miss privileges; using clone or point-in-time recovery would not work across regions, and creating a cross-region read replica would not give an independent instance suitable for destructive testing.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an automated backup in Cloud SQL?
Open an interactive chat with Bash
What is a cross-region read replica in Cloud SQL?
Open an interactive chat with Bash
How does restoring from an automated backup work in Cloud SQL?
Open an interactive chat with Bash
What is a Cloud SQL automated backup?
Open an interactive chat with Bash
What is the difference between restoring a backup and creating a read replica?
Open an interactive chat with Bash
Why doesn’t cloning work across regions in Cloud SQL?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .