A global retailer is migrating its on-premises data warehouse to BigQuery. For the first year the analytics team expects highly variable, mostly ad-hoc workloads and has chosen BigQuery's on-demand pricing model. The business goal is to keep per-query costs as low as possible without limiting analysts' ability to explore data. Which approach best meets these requirements?
Store large fact tables as date-partitioned and appropriately clustered tables, and require analysts to include predicates on those partition and cluster fields in their queries.
Purchase a one-year Enterprise Edition slot commitment sized for anticipated peak demand to avoid on-demand charges.
Disable the BigQuery query cache so that each analyst query is executed against current data.
Regularly export data to Cloud SQL and use federated queries from BigQuery to reduce the bytes scanned within BigQuery.
Under BigQuery's on-demand model you pay for the number of bytes each query reads. Storing large fact tables as date-partitioned (and, where useful, clustered) tables keeps data physically organized so that a query that specifies the partition field and cluster keys reads only the relevant blocks. This directly cuts the bytes scanned and therefore the query charge, while still allowing fully interactive SQL access. Buying slot commitments would switch to capacity pricing, not reduce on-demand scan costs. Disabling caching or forcing fully materialized views increases, not decreases, on-demand charges. Copying data to Cloud SQL and querying it through federated connections does not avoid BigQuery scan fees and constrains analyst flexibility.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are partitioned tables in BigQuery?
Open an interactive chat with Bash
What is clustering in BigQuery and how does it differ from partitioning?
Open an interactive chat with Bash
How does BigQuery's on-demand pricing model work?
Open an interactive chat with Bash
What are date-partitioned tables in BigQuery?
Open an interactive chat with Bash
What is clustering in BigQuery, and how does it help reduce query costs?
Open an interactive chat with Bash
What are the advantages of using the on-demand pricing model for variable workloads in BigQuery?
Open an interactive chat with Bash
GCP Professional Data Engineer
Maintaining and automating data workloads
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .