GCP Data Analysis & Reporting 2 — Questions and Answers
Question 1: Which BigQuery feature allows you to query data directly from Google Sheets without importing it?
- External tables (Correct answer)
- Federated queries
- Materialized views
- Connected Sheets
Correct answer: External tables
BigQuery external tables let you query data stored in Google Sheets (and other sources like GCS) without loading it into BigQuery storage.
Question 2: In Looker Studio, what is the purpose of a 'calculated field'?
- To filter dashboard data by date range
- To create new metrics derived from existing data source fields (Correct answer)
- To connect multiple data sources together
- To schedule automatic report refreshes
Correct answer: To create new metrics derived from existing data source fields
Calculated fields in Looker Studio let you define custom metrics or dimensions using formulas applied to existing fields in your data source.
Question 3: You need to analyze streaming sensor data with sub-second latency on GCP. Which service is most appropriate?
- BigQuery batch load
- Cloud Dataflow with streaming pipeline (Correct answer)
- Cloud Composer
- Cloud Scheduler
Correct answer: Cloud Dataflow with streaming pipeline
Cloud Dataflow's streaming pipelines process unbounded data in real time, making it ideal for low-latency sensor data analysis.
Question 4: What does the BigQuery PARTITION BY clause in a DDL statement accomplish?
- It splits a query across multiple slots
- It divides a table into segments based on a column to reduce query costs (Correct answer)
- It replicates data across regions
- It creates a clustered index on the table
Correct answer: It divides a table into segments based on a column to reduce query costs
Partitioning divides a BigQuery table into segments (e.g., by date), so queries that filter on the partition column scan only relevant partitions, reducing cost.
Question 5: Which Looker Studio chart type is best suited for showing the composition of a whole across multiple categories?
- Line chart
- Scatter plot
- Pie chart (Correct answer)
- Bullet chart
Correct answer: Pie chart
A pie chart is designed to show part-to-whole relationships, displaying how each category contributes to the total.
Question 6: In BigQuery, what is a 'slot' in the context of query execution?
- A storage partition for a table
- A unit of computational capacity used to execute SQL queries (Correct answer)
- A reserved IP address for BigQuery connections
- A named query saved in BigQuery
Correct answer: A unit of computational capacity used to execute SQL queries
BigQuery slots are virtual CPUs used to execute queries; projects have a default pool and can purchase dedicated slots for guaranteed capacity.
Question 7: Which GCP service provides a managed environment for running Apache Spark and Hadoop jobs for data analysis?
- Cloud Dataflow
- Dataproc (Correct answer)
- Cloud Composer
- Pub/Sub
Correct answer: Dataproc
Dataproc is GCP's managed Hadoop and Spark service, allowing you to run big data processing jobs without managing cluster infrastructure.
Which BigQuery feature allows you to query data directly from Google Sheets without importing it?