Easy1 markMultiple Choice
Domain 3.4: Deploying and implementing data solutionsCloud SQLData MigrationCloud Storage

GCP ACE · Question 27 · Domain 3.4: Deploying and implementing data solutions

You are migrating a MySQL database to Cloud SQL. You have exported your on-premises database to a SQL dump file. What is the recommended sequence of steps to import this data into your new Cloud SQL instance?

Answer options:

A.

Upload the SQL dump file to a Cloud Storage bucket, then use the Cloud Console or gcloud to import the file from the bucket into Cloud SQL.

B.

Use the 'gcloud sql import' command to upload the local file directly to the Cloud SQL instance.

C.

Connect to the Cloud SQL instance using SSH and use the 'mysql' command line tool to import the local file.

D.

Upload the file to Google Drive and link it to Cloud SQL.

How to approach this question

Understand the staging requirements for importing data into managed GCP database services.

Full Answer

A.Upload the SQL dump file to a Cloud Storage bucket, then use the Cloud Console or gcloud to import the file from the bucket into Cloud SQL.✓ Correct
To import data into Cloud SQL, the dump file (SQL or CSV) must first be uploaded to a Cloud Storage bucket. Once the file is in Cloud Storage, you can trigger the import process via the Cloud Console, gcloud, or the API.

Common mistakes

Assuming you can upload a local file directly via the gcloud import command.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam