Medium1 markMultiple Choice
Domain 4.4: Managing storage and database solutionsDomain 4.4BigQueryCost Optimization

GCP ACE · Question 38 · 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 the potential cost of this query.

Which TWO methods can you use to estimate the cost BEFORE executing the query? (Select TWO)

Answer options:

A.

Use the BigQuery web UI (Console) which displays the estimated bytes processed before you click Run.

B.

Run the query with a LIMIT 10 clause to test the cost.

C.

Use the bq query command with the --dry_run flag.

D.

Check the Cloud Billing export logs.

E.

Use the Pricing Calculator to simulate the query execution plan.

How to approach this question

Identify the tools that provide query validation and byte estimation without execution.

Full Answer

Use the BigQuery web UI (Console) which displays the estimated bytes processed before you click Run., Use the bq query command with the --dry_run flag.
BigQuery charges based on the amount of data processed (bytes read). Before running a query, you can see the estimated bytes processed in the top right corner of the BigQuery Console UI. Alternatively, using the CLI, you can append the `--dry_run` flag to the `bq query` command. Both methods are free and do not execute the query.

Common mistakes

Believing that adding `LIMIT 10` reduces the cost of a BigQuery query.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam