Medium1 markMultiple Choice

GCP ACE · Question 37 · Domain 4.4: Managing storage and database solutions

You are about to run a complex SQL query in BigQuery that joins several multi-terabyte tables. You are concerned about how much this single query will cost.

How can you find out the exact amount of data the query will process BEFORE you run it?

Answer options:

A.

Run the query and check the Billing Dashboard afterward.

B.

Use the Pricing Calculator and manually estimate the table sizes.

C.

Use the BigQuery query validator in the Cloud Console or use the --dry_run flag in the bq CLI.

D.

Set a custom quota on the project to block queries over 1 TB.

How to approach this question

Identify the BigQuery feature that estimates query costs without executing them.

Full Answer

C.Use the BigQuery query validator in the Cloud Console or use the --dry_run flag in the bq CLI.✓ Correct
BigQuery charges based on the amount of data processed. You can perform a 'dry run' of a query (via the UI validator, API, or `bq query --dry_run`). This returns the exact bytes processed without executing the query, allowing you to calculate the exact cost beforehand.

Common mistakes

Assuming you have to run the query to find out the cost.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam