Hard1 markMultiple Choice
Domain 4.4: Managing storage and database solutionsDomain 4.4BigQueryCost Estimationbq

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

You are about to run a complex SQL query on a multi-terabyte dataset in BigQuery. Because BigQuery charges per byte processed, you want to estimate the cost of the query BEFORE you actually run it.

Which TWO methods can you use to find out how much data the query will process? (Select TWO)

Answer options:

A.

Look at the query validator in the BigQuery web UI.

B.

Run the query and check the Cloud Billing report.

C.

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

D.

Export the table to Cloud Storage and check the file size.

E.

Use the GCP Pricing Calculator to simulate the query.

How to approach this question

Identify the built-in BigQuery features (UI and CLI) that estimate query size without execution.

Full Answer

Look at the query validator in the BigQuery web UI., Run the bq query command with the --dry_run flag.
BigQuery provides two primary ways to estimate query costs before execution. In the Cloud Console UI, the query validator (green checkmark) displays the estimated bytes processed. In the CLI, appending the `--dry_run` flag to the `bq query` command will return the same estimate without executing the query.

Common mistakes

Thinking the Pricing Calculator can parse SQL queries to estimate data processed.

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam