How to minimize Cloud SQL load for BigQuery analytics?
Short answer
C Create streams in Datastream to replicate the required tables from both Cloud SQL databases to BigQuery for these queries.
Question
Key Takeaways
The exam tests the ability to offload analytical query workloads from operational databases (Cloud SQL) to analytical warehouses (BigQuery) using replication services like Datastream, avoiding the trap of using federated queries which increase load on the source.
To minimize load on Cloud SQL databases while frequently joining data with BigQuery, use Datastream to replicate the SQL data into BigQuery. This allows the marketing team to run high-frequency analytical queries directly within BigQuery without impacting the performance of the transactional databases.
Common mistake: Choosing Option A (BigQuery federated queries) is a common mistake because it allows querying without moving data, but it fails the requirement to minimize load on Cloud SQL as each query hits the source database directly.
Expert Analysis
Why the Answer Is Correct
Option C is correct because Google Datastream enables change data capture (CDC) to replicate data from Cloud SQL (MySQL and PostgreSQL) into BigQuery in near real-time. Once the data resides in BigQuery, the marketing team can run up to 300 analytical queries per day against the combined dataset (Analytics + SQL data) entirely within BigQuery. This approach completely isolates the heavy analytical workload from the transactional Cloud SQL instances, ensuring minimal load and high performance.
Why the Other Options Are Wrong
Option A is incorrect because BigQuery federated queries execute the query portion against the external Cloud SQL database for every run. Running this 100-300 times a day would place significant read load on the transactional databases, violating the requirement to keep load to a minimum. Options B and D are incorrect because using Dataproc (Serverless or Cluster) to query Cloud SQL directly still requires connecting to the source databases for each job, incurring similar load and complexity without the benefits of BigQuery's native performance for this specific use case.
Community Comment Notes
The community strongly supports Option C, noting that Datastream is a fully managed service designed for this specific integration scenario. Several users initially considered Option A but switched to C upon realizing that federated queries are slower and shift processing burden to the source database. Commenters highlighted that while read replicas could help with federated queries, replication to BigQuery is the superior architectural pattern for high-frequency analytics.
Official Reference
These links open the official vendor documentation in a new tab.
Exam Strategy
When questions ask to 'minimize load' on a transactional database (Cloud SQL) while performing analytics in BigQuery, look for data replication (Datastream) rather than direct querying (Federated Query).
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 8 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 8
-
raaad 👍 11 Answered C- Datastream: It's a fully managed, serverless service for real-time data replication. It allows to stream data from various sources, including Cloud SQL, into BigQuery. - Reduced Load on Cloud SQL: By replicating the required tables from both Cloud SQL databases into BigQuery, you minimize the load on the Cloud SQL instances. The marketing team's queries will be run against BigQuery, which is designed to handle high-volume analytics workloads. - Frequency of Queries: BigQuery can easily handle the high frequency of queries (100 times daily, up to 300 during sales events) due to its powerful data processing capabilities. - Combining Data Sources: Once the data is in BigQuery, you can efficiently combine it with the Google Analytics data for comprehensive analysis and campaign planning.
-
987af6b 👍 3 Answered CInitially I said A, but this question was how I learned about Datastream, which I think would be the better solution in this scenario. So my answer is C
-
scaenruy 👍 3 Answered CC. Create streams in Datastream to replicate the required tables from both Cloud SQL databases to BigQuery for these queries.
-
joao_01 👍 1Its option C. "Performance. A federated query is likely to not be as fast as querying only BigQuery storage. BigQuery needs to wait for the source database to execute the external query and temporarily move data from the external data source to BigQuery. Also, the source database might not be optimized for complex analytical queries." So, it will load the Cloud SQL external sources with the queries, impacting performance on those. Link: https://cloud.google.com/bigquery/docs/federated-queries-intro
-
AlizCert 👍 1 Answered CC, noting that federated queries on read replicas would be the ideal solution
Show 3 more comments
-
Blackstile 👍 1 Answered CTo Replication data, use datastream
-
datasmg 👍 1 Answered CC is make sense
-
JyoGCP 👍 1 Answered COption C
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.