Learning Objectives
By the end of this chapter, you will be able to:
- Define and execute SQL queries in BigQuery to generate reports and extract key insights
- Use Jupyter notebooks to analyze and visualize data (e.g., Colab Enterprise)
- Analyze data to answer business questions
- Create, modify, and share dashboards to answer business questions
- Compare Looker and Looker Studio for different analytics use cases
- Manipulate simple LookML parameters to modify a data model
- Identify ML use cases for developing models by using BigQuery ML and AutoML
- Use pretrained Google large language models (LLMs) using remote connection in BigQuery
- Plan a standard ML project (e.g., data collection, model training, model evaluation, prediction)
- Execute SQL to create, train, and evaluate models using BigQuery ML
- Perform inference using BigQuery ML models
- Organize models in Model Registry
Executive Summary
- BigQuery is the analytical engine: every reporting workflow you build on Google Cloud starts with a SQL query against a project, dataset, and table, billed either by bytes scanned (on-demand) or by reserved slot capacity.
- Colab Enterprise is the governed Jupyter notebook surface tied to Vertex AI; it inherits IAM, VPC Service Controls, and CMEK from your Google Cloud project and connects to BigQuery through the magic command
%%bigqueryor the BigQuery Storage Read API. - Looker is a governed semantic-layer BI product backed by LookML and live SQL; Looker Studio is a free self-service visualization tool that ships with the same chart library but no governed model. Each fits a different audience, and the exam treats the choice as a business-requirements question.
- BigQuery ML lets you train classification, regression, time-series, clustering, recommender, dimensionality-reduction, anomaly-detection, and remote LLM models with
CREATE MODEL, evaluate them withML.EVALUATE, and score new rows withML.PREDICT, all without moving data out of the warehouse. - Vertex AI Model Registry is the central catalog where BigQuery ML models, AutoML models, and custom-trained models are versioned, governed, and promoted to endpoints.
Assumptions
- The reader has read Chapter 1 and is familiar with BigQuery datasets, tables, jobs, and the bytes-scanned billing model.
- Region examples use
USmulti-region andus-central1regional location unless noted. BigQuery datasets and the data they query must reside in the same location. - LookML examples target a hosted Looker instance with a Git-backed project; Looker Studio examples assume the free tier connected to BigQuery via the native connector.
- All ML examples assume the project has the BigQuery API, Vertex AI API, and BigQuery Connection API enabled. Remote model calls require a BigQuery connection of type
CLOUD_RESOURCEand the service account permissions documented later in section 2.3. - Cost callouts use on-demand pricing for BigQuery query slots and standard Vertex AI prediction pricing. Reserved slot, flat-rate, and committed-use pricing change the trade-offs but not the technical mechanism.
