Google CloudProfessional levelPage 3 of 3

Google Professional Cloud Database Engineer exam dumps: questions 201 to 258 of 258

Page 3 of the free Google Professional Cloud Database Engineer question bank for the Professional Cloud Database Engineer exam. Questions 201 to 258 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated December 2024

Free Google Professional Cloud Database Engineer practice questions

Questions 201 to 205 of 258

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

Google Professional Cloud Database Engineer Question 201

Single answerGoogle Cloud Platform

You are managing a Cloud SQL database instance for a retail application and need to set up regular daily exports of the database to a Google Cloud Storage bucket for backup purposes. Which approach should you take to schedule these exports while ensuring minimal operational overhead?

  1. A

    Use a Cloud SQL export operation scheduled via a Cloud Scheduler job with a Pub/Sub trigger.

  2. B

    Manually trigger an export operation in the Cloud SQL console each day.

  3. C

    Use a Cloud SQL export operation and configure it directly to run on a daily schedule within the Cloud SQL settings.

  4. D

    Write a custom script to trigger the export operation and deploy it using a Compute Engine instance with a cron job.

Show answer and explanation

Correct answer: A

Explanation

To schedule recurring database exports in Cloud SQL, the recommended approach is to use Cloud Scheduler to automate the export process. Cloud Scheduler can trigger a Cloud Function or Pub/Sub event that initiates the export operation. This method minimizes operational overhead and leverages Google Cloud's native services for automation. Other options, like manual exports or deploying custom scripts on Compute Engine, are either inefficient or more complex to manage.

  • A. Correct.

    This is the correct approach. You can use Cloud Scheduler to automate the export process by invoking a Cloud Function or Pub/Sub-triggered process to initiate the Cloud SQL export operation. This ensures minimal operational overhead.

  • B. Incorrect.

    This is incorrect because manually triggering exports every day is not efficient and introduces a risk of human error, especially in a production environment.

  • C. Incorrect.

    This is incorrect because Cloud SQL does not natively support configuring scheduled exports directly within its settings. A separate service is required for scheduling recurring tasks.

  • D. Incorrect.

    This is incorrect because using a custom script and Compute Engine introduces unnecessary complexity and maintenance overhead when simpler solutions like Cloud Scheduler and Pub/Sub are available.

Google Professional Cloud Database Engineer Question 202

Single answerGoogle Cloud Platform

Your organization requires daily exports of a Cloud SQL database for archival purposes. The export files should be stored in a Google Cloud Storage bucket. You need to schedule these exports to occur automatically at 2 AM every day. Which approach should you take to meet this requirement?

  1. A

    Use Cloud Scheduler to trigger a Cloud Function that calls the Cloud SQL Admin API to export the database.

  2. B

    Configure the Cloud SQL instance to automatically export the database to a Cloud Storage bucket using a built-in schedule in the Cloud SQL settings.

  3. C

    Use a cron job on a Compute Engine VM to call the Cloud SQL Admin API and export the database.

  4. D

    Manually export the database each day using the Google Cloud Console.

Show answer and explanation

Correct answer: A

Explanation

Cloud Scheduler is a fully managed cron job service that integrates seamlessly with Cloud Functions and the Cloud SQL Admin API. By using Cloud Scheduler, you can automate the export process and specify the exact time for the operation, such as 2 AM daily. This solution is more reliable and easier to maintain compared to using a Compute Engine VM or performing manual exports.

  • A. Correct.

    This is the correct approach. Cloud Scheduler can be used to trigger a Cloud Function that automates the export process using the Cloud SQL Admin API. This approach allows you to schedule the export at a specific time, such as 2 AM daily.

  • B. Incorrect.

    This option is incorrect because Cloud SQL does not have a built-in feature for scheduling automatic exports. Exports must be managed externally using tools like Cloud Scheduler and Cloud Functions.

  • C. Incorrect.

    This option is technically possible but is not the best practice. Managing cron jobs on a Compute Engine VM introduces additional complexity and maintenance overhead compared to using Cloud Scheduler and Cloud Functions.

  • D. Incorrect.

    This option is incorrect because it involves manual intervention, which does not meet the requirement for automation.

Google Professional Cloud Database Engineer Question 203

Select 3Google Cloud Platform

You are managing a PostgreSQL database on Cloud SQL and need to schedule regular daily exports of the database to a Cloud Storage bucket for backup purposes. Which of the following steps should you take to automate this process?

  1. A

    Create a Cloud Scheduler job with a cron schedule and configure it to trigger a Cloud Function.

  2. B

    Write a Cloud Function that uses the Cloud SQL Admin API to trigger an export operation to a Cloud Storage bucket.

  3. C

    Grant the Cloud Scheduler and Cloud Function service accounts the 'Cloud SQL Admin' and 'Storage Admin' roles.

  4. D

    Use the gcloud CLI to manually export the database to Cloud Storage every day.

  5. E

    Enable the automated backup feature in the Cloud SQL instance settings.

Show answer and explanation

Correct answers: A, B, C

Explanation

To schedule daily database exports, you need to automate the process using tools like Cloud Scheduler and Cloud Functions. Cloud Scheduler defines the schedule, while a Cloud Function can handle the export logic using the Cloud SQL Admin API. Appropriate IAM roles must also be assigned to ensure permissions are in place. Manual exports and automated backups do not meet the requirement for scheduled daily exports to a Cloud Storage bucket.

  • A. Correct.

    Correct: Cloud Scheduler is used to define a schedule (e.g., cron job) to trigger a task like database export. It can call a Cloud Function to execute the export operation.

  • B. Correct.

    Correct: A Cloud Function can use the Cloud SQL Admin API to programmatically export the database to Cloud Storage as part of an automated workflow.

  • C. Correct.

    Correct: To enable these operations, appropriate IAM roles (e.g., 'Cloud SQL Admin' for database export and 'Storage Admin' for writing to the bucket) must be granted to the service accounts involved.

  • D. Incorrect.

    Incorrect: While the gcloud CLI can be used for manual exports, it does not automate the process or align with the requirement to schedule daily exports.

  • E. Incorrect.

    Incorrect: Enabling automated backup only creates backups within Cloud SQL and does not export the data to a Cloud Storage bucket.

Google Professional Cloud Database Engineer Question 204

Single answerGoogle Cloud Platform

Your company needs to migrate a PostgreSQL database from an on-premises data center to Google Cloud. The database is critical for business operations, and downtime must be minimized during the migration. Which approach would best ensure a successful migration with minimal downtime?

  1. A

    Use a one-time dump of the database using pg_dump, transfer the dump to Cloud Storage, and restore it in Cloud SQL.

  2. B

    Set up a Database Migration Service (DMS) continuous replication job to sync data from the on-premises PostgreSQL to a Cloud SQL instance.

  3. C

    Export the database as a set of CSV files, upload them to BigQuery, and recreate the database schema manually in Cloud SQL.

  4. D

    Perform a live migration using a VM snapshot of the database server and import it into Cloud SQL.

Show answer and explanation

Correct answer: B

Explanation

To minimize downtime during the migration of a PostgreSQL database from an on-premises environment to Google Cloud, Database Migration Service (DMS) is the most appropriate choice. It supports continuous replication, allowing the source and target databases to remain synchronized until the final cutover, ensuring minimal disruption to business operations.

  • A. Incorrect.

    While using pg_dump is a valid method for migrating data, it involves significant downtime because the database must be stopped during the dump and restore process. This approach does not meet the requirement of minimal downtime.

  • B. Correct.

    Database Migration Service (DMS) enables continuous replication from the source database to the target Cloud SQL instance, ensuring minimal downtime and seamless migration. This is the best choice for the scenario described.

  • C. Incorrect.

    Exporting the database as CSV files and manually recreating the schema is time-consuming and prone to errors. Additionally, it does not provide a mechanism for continuous replication or minimal downtime.

  • D. Incorrect.

    Live migration using a VM snapshot is not supported for database migrations to Cloud SQL. Snapshots are typically used for VM migrations, not database-specific workloads.

Google Professional Cloud Database Engineer Question 205

Single answerGoogle Cloud Platform

Your organization needs to migrate a 5 TB MySQL database from an on-premises data center to Cloud SQL on Google Cloud with minimal downtime. The database is actively used, and data changes frequently during the migration process. Which approach would best meet the requirements for this migration?

  1. A

    Use the Cloud SQL import/export functionality to transfer the database into Cloud SQL.

  2. B

    Set up a database replication pipeline using the Database Migration Service (DMS) and perform a cutover once replication is in sync.

  3. C

    Use a custom data migration script to extract data from the on-premises database and import it into Cloud SQL.

  4. D

    Take a full backup of the on-premises database, upload it to Cloud Storage, and restore it into Cloud SQL.

Show answer and explanation

Correct answer: B

Explanation

The Database Migration Service (DMS) is designed for migrating databases like MySQL with minimal downtime. By setting up replication, DMS can synchronize the on-premises database with the Cloud SQL instance, allowing for a seamless cutover at a convenient time with minimal disruption to the application's operations.

  • A. Incorrect.

    This approach is not suitable as the Cloud SQL import/export functionality only supports non-real-time migrations and does not handle frequent data changes effectively.

  • B. Correct.

    This is the correct option. The Database Migration Service (DMS) supports setting up replication for MySQL databases, allowing near-zero-downtime migrations by keeping the source and target databases in sync until a planned cutover.

  • C. Incorrect.

    While a custom script could work, it would require significant manual effort and would likely not handle frequent data changes well, leading to potential data loss or inconsistencies.

  • D. Incorrect.

    This approach involves high downtime as the data is static from the moment the backup is taken until it is restored and operational in Cloud SQL, making it unsuitable for minimizing downtime in active use cases.

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

Google Professional Cloud Database Engineer practice questions 201 to 258 of 258

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 3 pages of up to 100 questions.

  1. 201.You are managing a Cloud SQL database instance for a retail application and need to set up regular daily...
  2. 202.Your organization requires daily exports of a Cloud SQL database for archival purposes. The export files...
  3. 203.You are managing a PostgreSQL database on Cloud SQL and need to schedule regular daily exports of the...
  4. 204.Your company needs to migrate a PostgreSQL database from an on-premises data center to Google Cloud. The...
  5. 205.Your organization needs to migrate a 5 TB MySQL database from an on-premises data center to Cloud SQL on...
  6. 206.Your company needs to migrate a MySQL database from an on-premises data center to Cloud SQL for MySQL on...
  7. 207.Your organization is planning to migrate a mission-critical on-premises PostgreSQL database to Google Cloud....
  8. 208.Your company is migrating its on-premises MySQL database to Cloud SQL for MySQL on Google Cloud. The database...
  9. 209.Your company is planning to migrate a mission-critical MySQL database hosted in an on-premises data center to...
  10. 210.Your organization is planning to migrate its primary relational database from an on-premises data center to...
  11. 211.Your company is planning to migrate a mission-critical on-premises transactional database to Google Cloud...
  12. 212.You are tasked with migrating a production database to Google Cloud SQL with minimal downtime. The database...
  13. 213.Your organization is planning to migrate its on-premises PostgreSQL database to Cloud SQL for PostgreSQL. The...
  14. 214.You are managing a Google Cloud-based database system that replicates data from your on-premises database to...
  15. 215.Your company is running a hybrid cloud architecture with a PostgreSQL database on-premises and a Cloud SQL...
  16. 216.You are managing a hybrid database architecture where a MySQL database is hosted on-premises, and a replica...
  17. 217.Your organization has migrated a MySQL database to Google Cloud SQL for MySQL. To maintain business...
  18. 218.You have configured a Google Cloud SQL PostgreSQL database with replication from an on-premises PostgreSQL...
  19. 219.Your company has decided to migrate an on-premises MySQL database to Google Cloud SQL. The database contains...
  20. 220.Your company is migrating an on-premises MySQL database to Cloud SQL for MySQL. The database serves a...
  21. 221.You are tasked with migrating an on-premises MySQL database to Cloud SQL for MySQL. The database has a...
  22. 222.Your company is migrating a MySQL database hosted on-premises to Cloud SQL for MySQL on Google Cloud. The...
  23. 223.Your company is planning to migrate its on-premises PostgreSQL database to Cloud SQL for PostgreSQL on Google...
  24. 224.You are tasked with migrating a large PostgreSQL database from an on-premises data center to Cloud SQL for...
  25. 225.Your company is migrating a MySQL database hosted on-premises to Cloud SQL for MySQL. The database contains 5...
  26. 226.You are tasked with migrating a large-scale on-premises MySQL database to Google Cloud. The database contains...
  27. 227.You are tasked with migrating a PostgreSQL database from an on-premises data center to Google Cloud. The...
  28. 228.Your company is planning to migrate its MySQL database from an on-premises data center to Google Cloud. The...
  29. 229.You are designing a highly available and scalable database solution for an e-commerce application hosted on...
  30. 230.You are designing a highly scalable and available database architecture for an e-commerce application hosted...
  31. 231.You are designing a database architecture for a global e-commerce platform that requires high availability...
  32. 232.Your company is migrating an on-premises e-commerce application to Google Cloud. The application requires a...
  33. 233.You are tasked with designing a highly available and scalable database architecture for an e-commerce...
  34. 234.You are tasked with designing a high-availability solution for a MySQL database on Google Cloud. The database...
  35. 235.Your company runs a mission-critical e-commerce application on Google Cloud, and it requires a highly...
  36. 236.Your company runs a mission-critical application that uses a database hosted on Google Cloud. The database...
  37. 237.Your company is running a mission-critical application that requires high availability for its PostgreSQL...
  38. 238.Your company runs a mission-critical application that requires a relational database with high availability...
  39. 239.Your organization runs a mission-critical application on a Cloud SQL instance. To ensure high availability...
  40. 240.Your company uses Cloud SQL for a mission-critical application and requires high availability and disaster...
  41. 241.You are a database engineer managing a mission-critical application hosted on Google Cloud using Cloud SQL....
  42. 242.Your company uses a Cloud SQL instance for its production database. To ensure high availability, the instance...
  43. 243.Your company runs a mission-critical application on Google Cloud using a Cloud Spanner database. To ensure...
  44. 244.Your company has a global e-commerce application running on Google Cloud, backed by a Cloud SQL database. To...
  45. 245.You are managing a Cloud Spanner database for a global e-commerce platform. The platform requires high...
  46. 246.Your company runs a globally distributed e-commerce platform, and you are tasked with setting up a highly...
  47. 247.You are managing a Cloud Spanner database for a global e-commerce platform. The platform requires low-latency...
  48. 248.You are designing a multi-regional database solution for a global e-commerce platform using Cloud Spanner....
  49. 249.Your team is managing a Cloud SQL for PostgreSQL instance that handles a high number of read requests. The...
  50. 250.Your team is running an e-commerce application on Cloud SQL for PostgreSQL. The application's read traffic...
  51. 251.You are managing a Cloud SQL instance for an e-commerce application that experiences high read traffic during...
  52. 252.Your team is managing a MySQL database hosted on Cloud SQL. Due to increasing traffic, there is a need to...
  53. 253.Your organization is running a global e-commerce platform hosted on Google Cloud. The platform uses a Cloud...
  54. 254.You are a database engineer tasked with automating the provisioning of Cloud SQL instances for a new project....
  55. 255.Your organization requires the automated provisioning of Cloud SQL instances for different environments...
  56. 256.You are responsible for automating the provisioning of database instances on Google Cloud for your...
  57. 257.Your organization frequently provisions Cloud SQL instances for different projects. To streamline the...
  58. 258.You are a database engineer for a company that needs to automate the provisioning of Cloud SQL instances for...