GCP Professional Data Engineer Practice Question

Your data engineering team needs to stream change data capture (CDC) events from an on-premises MySQL 8.0 database into BigQuery with end-to-end latency under two minutes. The solution must

  • require minimal custom code and operational overhead,
  • automatically propagate source-table schema changes to BigQuery, and
  • allow the future onboarding of an additional PostgreSQL source without major re-engineering. Which approach best meets these requirements?
  • Schedule daily exports from MySQL using BigQuery Data Transfer Service to load CSV files from Cloud Storage into BigQuery tables.

  • Configure Datastream to capture MySQL binary log events into a Cloud Storage staging bucket and invoke the Google-provided Datastream-to-BigQuery Dataflow template for continuous loading into BigQuery.

  • Deploy a self-managed Debezium connector that streams MySQL binlogs into Pub/Sub topics and trigger Cloud Functions to write each message to BigQuery.

  • Set up asynchronous replication from the on-premises MySQL instance to Cloud SQL, then query the replica directly from BigQuery using federated queries refreshed every hour.

GCP Professional Data Engineer
Ingesting and processing the data
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot