Skip to main content

Professional Cloud Architect practice question · Analyzing and optimizing technical and business processes

Every night, a company exports a multi-terabyte Cloud SQL for PostgreSQL database and fully rebuilds a date-partitioned…

Every night, a company exports a multi-terabyte Cloud SQL for PostgreSQL database and fully rebuilds a date-partitioned BigQuery reporting table from it. Only about 1% of rows change each day, and the job's cost and runtime keep growing. Which change best addresses the root inefficiency?

  • AReplicate inserts, updates, and deletes into BigQuery with Datastream, then apply them with a MERGE filtered on the partitioning column
  • BPurchase additional BigQuery slot capacity through a reservation so the nightly full rebuild of the table completes sooner
  • CRun the nightly rebuild as a Spark job on a larger Dataproc cluster with more workers to parallelize the full export and load
  • DChange the export format to compressed Avro files in Cloud Storage so each nightly full load into BigQuery is faster
Show the answer and explanation

Correct answer: A) Replicate inserts, updates, and deletes into BigQuery with Datastream, then apply them with a MERGE filtered on the partitioning column

When only a small share of the data changes, process just the changes. Datastream CDC into BigQuery plus a partition-pruned MERGE does this, while adding slots, workers, or a better file format only speeds up redundant work.

Why each option is right or wrong

  • A) Correct. Datastream uses change data capture to replicate each insert, update, and delete into BigQuery. A MERGE with a filter on the partitioning column lets BigQuery prune untouched partitions. Only changed data is processed, so the repeated full rebuild goes away.
  • B) Incorrect. More slots can shorten runtime, but the job still reprocesses the whole dataset every night. This adds cost without removing the redundant work.
  • C) Incorrect. Adding compute just brute-forces the same full rebuild. The cost still grows with total data size, not with the amount that changed.
  • D) Incorrect. A more efficient file format can speed up loading, but the pipeline still exports and reloads every row each night instead of only the changed ones.
Exam domain
Analyzing and optimizing technical and business processes · ~15% of Professional Cloud Architect
Question type
Multiple choice (one answer)

Practise the full Professional Cloud Architect exam

This question is one of a small free sample from the CertRidge Professional Cloud Architect bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.