ASSOCIATE-CLOUD-ENGINEER practice question 31 of 35
You need to run an important query in BigQuery but expect it to return a lot of records. You want to find out how much it will cost to run the query. You are using on-demand pricing. What should you do?
Full set: 332 questionsBigQuery's on-demand pricing model charges for the number of bytes read (processed) by a query, not the amount of data returned. The most effective way to estimate this cost without incurring any charges is to perform a dry run. The bq query --dryrun command-line flag or the query validator in the Google Cloud Console simulates the query execution. It validates the query and returns an estimate of the total bytes that will be processed. This byte estimate can then be entered into the Google Cloud Pricing Calculator to determine the monetary cost before you execute the actual query.
A. Switching pricing models is a commitment for managing overall costs, not a method for estimating the cost of a single on-demand query.
C. On-demand pricing is based on the volume of data read from the tables, not the volume of data returned to the user.
D. Running SELECT COUNT() is a billable query that processes data and provides a row count, not the byte-based estimate needed for cost calculation.
1. Google Cloud Documentation - BigQuery pricing, "Query pricing models": "On-demand pricing is based on the amount of data processed by your queries... You are charged for the number of bytes processed (also referred to as bytes read)." This confirms the pricing metric is bytes read.
2. Google Cloud Documentation - "Estimate query costs": "You can estimate the cost of a query before you run it. To estimate query costs, you can use: The query validator in the Google Cloud console... The --dryrun flag in the bq command-line tool... When you use one of these options, BigQuery returns an estimate of the number of bytes that the query will read." This directly supports using a dry run to estimate bytes read.
3. Google Cloud Documentation - bq command-line tool reference, "bq query": Describes the --dryrun flag: "If set, the query is not executed. Instead, a server-side analysis is performed to determine query statistics, such as the total bytes that are processed." This confirms the function of the command-line tool option.
Keep practicing
Take the free ASSOCIATE-CLOUD-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ASSOCIATE-CLOUD-ENGINEER practice questions
- Question 1You need to verify that a Google Cloud Platform service account was created at a particul…
- Question 2You are building a new version of an application hosted in an App Engine environment. You…
- Question 3You need to create a new billing account and then link it with an existing Google Cloud P…
- Question 4You want to configure 10 Compute Engine instances for availability when maintenance occur…
- Question 5You need to create a custom VPC with a single subnet. The subnet’s range must be as large…
- Question 6You significantly changed a complex Deployment Manager template and want to confirm that …
