0
0
GCPcloud~20 mins

BigQuery SQL and pricing model in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
BigQuery SQL and Pricing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does BigQuery charge for storage?

BigQuery charges for data storage based on the amount of data stored. Which of the following best describes how BigQuery pricing works for storage?

AYou pay a flat monthly fee regardless of data size.
BYou pay per query regardless of data size or storage.
CYou pay per gigabyte of data stored per month, with separate rates for active and long-term storage.
DYou pay only for the data actively queried, not for stored data.
Attempts:
2 left
💡 Hint

Think about how cloud storage usually charges based on data size and duration.

🧠 Conceptual
intermediate
2:00remaining
What is the output of this BigQuery SQL query?

Consider this BigQuery SQL query:

SELECT COUNT(*) AS total_rows FROM `bigquery-public-data.samples.shakespeare` WHERE word = 'cloud';

What does this query return?

AThe number of rows where the word is exactly 'cloud'.
BThe number of unique words in the dataset.
CThe total number of rows in the Shakespeare dataset.
DAn error because the table name is invalid.
Attempts:
2 left
💡 Hint

Look at the WHERE clause filtering on the word column.

Architecture
advanced
2:00remaining
Which BigQuery pricing model minimizes cost for frequent small queries?

You run many small queries daily on a dataset. Which BigQuery pricing model helps minimize your cost?

AFlat-rate pricing with a dedicated slot commitment.
BOn-demand pricing, paying per query data scanned.
CStorage pricing only, no query charges.
DPaying only for data exported from BigQuery.
Attempts:
2 left
💡 Hint

Consider which pricing model offers predictable costs for frequent queries.

security
advanced
2:00remaining
What happens if a user without permission tries to query a BigQuery table?

A user tries to run a query on a BigQuery table they do not have access to. What is the expected behavior?

AThe query runs but returns empty results.
BThe query runs and returns all data but logs a warning.
CThe query runs but only returns metadata.
DThe query fails with a permission denied error.
Attempts:
2 left
💡 Hint

Think about how access control works in cloud services.

Best Practice
expert
2:00remaining
How to optimize BigQuery costs for large datasets with infrequent queries?

You have a large dataset in BigQuery that is queried infrequently. Which approach best optimizes cost?

AKeep all data in active storage and use on-demand queries.
BPartition the table and use long-term storage for older partitions.
CExport data to Cloud Storage and query from there only.
DUse flat-rate pricing with maximum slot commitment.
Attempts:
2 left
💡 Hint

Think about storage costs and query efficiency for large datasets.