Google Professional Cloud Database Engineer exam dumps

Google Professional Cloud Database Engineer practice question 149 of 259

Professional Cloud Database Engineer. Professional level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Database Engineer Question 149

Select 3Google Cloud Platform

Your team is migrating a MySQL database hosted on Google Cloud SQL to a new Cloud SQL instance in a different region. You need to export the data from the current instance and import it into the new instance while ensuring minimal downtime and data integrity. Which steps should you follow to achieve this?

  1. A

    Use the Cloud SQL export feature to export the database to a Cloud Storage bucket as a SQL dump file.

  2. B

    Export the database using mysqldump and store the dump file on a local machine before uploading it to Cloud Storage.

  3. C

    Import the SQL dump file directly into the new Cloud SQL instance using the Cloud SQL import feature.

  4. D

    Use the mysqlimport command-line tool to directly import the SQL dump file from your local machine to the new Cloud SQL instance.

  5. E

    Ensure the Cloud Storage bucket is in the same region as the target Cloud SQL instance to optimize performance during the import.

Show answer and explanation

Correct answers: A, C, E

Explanation

The recommended approach for migrating a Cloud SQL database to another instance in a different region involves using the Cloud SQL export and import features. These features are optimized for transferring data between instances while ensuring data integrity and minimal downtime. Additionally, using a Cloud Storage bucket in the same region as the target instance improves the performance of the import operation. Avoid unnecessary steps, such as transferring data to a local machine, as this can introduce potential risks and inefficiencies.

  • A. Correct.

    Correct: Using the Cloud SQL export feature ensures a reliable and optimized process for exporting the database to a Cloud Storage bucket, preserving data integrity.

  • B. Incorrect.

    Incorrect: While mysqldump can be used, exporting to a local machine adds unnecessary steps and potential risks of data loss or corruption during the upload process.

  • C. Correct.

    Correct: The Cloud SQL import feature is designed to handle SQL dump files stored in Cloud Storage effectively, ensuring compatibility and ease of use.

  • D. Incorrect.

    Incorrect: The mysqlimport command-line tool is not designed for importing SQL dump files directly into Cloud SQL and would require additional configurations and steps.

  • E. Correct.

    Correct: Placing the Cloud Storage bucket in the same region as the target Cloud SQL instance reduces latency and improves performance during the import process.

Timed practice exam

Take a Google Professional Cloud Database Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam