Google Cloud Intensive
DAY 04 ยท AI & ML ON GOOGLE CLOUD
M1Welcome
โญ 0 pts
DAY 04 ยท AI & ML ON GOOGLE CLOUD

From "what is AI" to building one. ๐Ÿ› ๏ธ

Today we lay the foundation: the difference between AI types, how Google Cloud is built for AI, how models learn โ€” and you finish by training your first ML model in SQL.

Today โ€” We Start With Module 1 ๐Ÿ—บ๏ธ

Module 1 is the whole AI Foundations course, distilled. It maps 1-to-1 to the official Google Skills Boost chapters.

โ˜•

1 ยท Use Case

AI solving real business problems

๐Ÿ”ฎ

2 ยท AI on GCP

Predictive vs Generative + the architecture

๐Ÿ—๏ธ

3 ยท Infrastructure

Compute, storage, TPUs

๐Ÿง 

4 ยท AI Models

Supervised vs unsupervised

๐Ÿช„

5 ยท BigQuery ML

Train a model with SQL

๐Ÿ”œ

Modules 2โ€“4

Generative AI ยท added next

Five chapters, one module. Each ends with a quick check. Use โ† โ†’ to move. Aim for 100+ โญ.
Chapter 1 ยท A Use Case

Meet "Coffee on Wheels" โ˜•๐Ÿšš

An international company selling coffee from trucks in London, New York, San Francisco & Tokyo. They hired a data company (Data Beans) to fix three problems with AI:

๐Ÿ“

Location & Routes

Where to park trucks; best routes given weather & traffic

๐Ÿ“ˆ

Sales Forecasting

Predict sales & monitor performance in real time

๐Ÿ“ฃ

Marketing

Auto-generate campaigns โ€” text & images

Why start here? Every abstract concept today โ€” prediction, generation, BigQuery, Vertex AI โ€” shows up in this one app. Keep the coffee trucks in mind.

What the App Actually Does ๐Ÿ–ฅ๏ธ

Data Beans built a single dashboard. Pick a city โ€” say London โ€” and it shows revenue, operating margin and the number of trucks. From there, AI is doing five jobs at once:

๐Ÿ—บ๏ธ

Smart routing

Cold day forecast? It reroutes trucks to covered areas. Football match nearby? It avoids the congestion.

๐Ÿšš

Per-truck insight

Click a truck for its street view and a revenue forecast for that spot.

๐Ÿฉ

Live menu watch

An item underperforming? Hit Generate and AI suggests a replacement.

๐Ÿ“ฃ

One-click marketing

Auto-creates a campaign โ€” text + images โ€” and emails it to the right customers.

๐Ÿ“‘

Instant reports

Generates an operational report and exports it straight to Google Slides.

Notice the mix: some features predict (sales, routes), others generate (menus, campaigns). That's the whole of AI in one app.

Key Findings From the Use Case ๐Ÿ”‘

Strip away the coffee and three lessons remain โ€” they hold for almost any AI project:

๐Ÿ”€

Predictive + Generative together

The best apps combine both โ€” forecast and create. Rarely just one.

๐Ÿงฉ

Products collaborate

Gemini acquires & generates ยท BigQuery analyses ยท Vertex AI models ยท agents act (e.g. push to Looker).

โšก

Outcome: efficiency

Manual decisions became automated โ€” freeing the team to innovate on the customer experience.

The takeawayYou don't need to invent new AI โ€” you orchestrate existing Google products around a real business problem. You can do the same for your work.
Hold this question: which parts were predictive and which were generative? Chapter 2 makes that split exact.

How One App Pulls It Off ๐Ÿ”ง

The pattern behind the whole demo โ€” and behind most real AI apps:

IN

Multimodal Input

Text, reviews, images, live street view

โ†’
BRAIN

Predict & Generate

Forecast sales ยท write campaigns

โ†’
OUT

Visual Output

Dashboards & reports to act on

The Google products doing the work

๐Ÿ’Ž

Gemini

Multimodal input & generation

๐Ÿ—„๏ธ

BigQuery

Data analytics

๐Ÿญ

Vertex AI

ML development

๐Ÿ“Š

Looker

Visualise insights

Try It ยท Chapter 1

Match Each Google Product to Its Job ๐Ÿงฉ

๐Ÿ•น๏ธDrag each product onto the job it does in the app. Goal: see how Gemini, BigQuery, Vertex AI & Looker split the work. Correct drop โ†’ +5โญ.
Gemini
BigQuery
Vertex AI
Looker
๐Ÿ’Ž Understands images + writes content
๐Ÿ—„๏ธ Stores & analyses the data
๐Ÿญ Builds & serves the ML models
๐Ÿ“Š Turns insights into dashboards
Memory hook: Gemini talks, BigQuery stores, Vertex AI models, Looker shows.
Chapter 2 ยท AI on Google Cloud

Why Google for AI? ๐ŸŸฆ๐ŸŸฅ๐ŸŸจ๐ŸŸฉ

๐Ÿ“œ

Heritage

AI has powered Search, Maps & Workspace for years

๐Ÿš€

Innovation

Gemini, Vertex AI, NotebookLM โ€” frontier tools

โš–๏ธ

Responsible AI

Bold but safe: fair, accountable, transparent

Responsible AI isn't a footnote. Google frames every product around it โ€” bold innovation, responsible deployment, collaborative progress. Expect it on the exam.

The Big One: Predictive vs Generative AI โญ

Almost every AI problem is one of these two. Knowing which is which is half of today.

๐Ÿ”ฎ Predictive AI

analyse & predict
  • Also called traditional or discriminative AI
  • Learns from existing data to classify or forecast
  • "What will happen?" / "Which group is this?"
  • e.g. sales forecasting, churn prediction, route/traffic prediction

โœจ Generative AI

create & take action
  • Creates new content: text, images, video, summaries
  • Built on foundation models (e.g. Gemini)
  • "Make meโ€ฆ" / "Writeโ€ฆ" / "Summariseโ€ฆ"
  • e.g. marketing copy, chatbots, campaign images
One line to rememberPredictive AI analyses and predicts. Generative AI creates and acts.

You Often Use Both Together ๐Ÿค

There's no hard line. The strongest apps chain them โ€” predictive output becomes part of the generative prompt.

STEP 1

Predictive

Forecast which customers will churn

โ†’
STEP 2

Generative

Chatbot helps sales explore those predictions

STEP 1

Predictive

Identify customer segments

โ†’
STEP 2

Generative

Write personalised marketing per segment

Decision shortcut: need a number or a category โ†’ predictive. Need new content or automation โ†’ generative.
Try It ยท Chapter 2

Predictive or Generative? ๐Ÿ”ฎโœจ

๐Ÿ•น๏ธDrag each task into Predictive or Generative. Goal: train your ear for the trigger words. Correct โ†’ +5โญ.
Forecast next month's coffee sales
Write a promo email with an image
Flag which customers may churn
Summarise 500 customer reviews
Predict tomorrow's truck traffic
Generate a chatbot reply
๐Ÿ”ฎ Predictive AI
โœจ Generative AI
Trigger words: "forecast / predict / flag / classify" โ†’ predictive. "write / summarise / generate / reply" โ†’ generative.

The Google Cloud AI Architecture ๐Ÿ›๏ธ

Three layers, bottom to top. Each layer serves a different kind of user.

3 ยท Applications & Solutions out-of-the-box ยท for business users & analysts
2 ยท AI Development Vertex AI ยท Gemini ยท BigQuery ยท for developers & data scientists
1 ยท AI Infrastructure compute ยท network ยท storage ยท the solid ground
Read it like a building. Infrastructure is the foundation, Development is where you build, Applications is the storefront. We spend the rest of Module 1 on layers 1 & 2.
Chapter 3 ยท AI Infrastructure

Inside the Foundation Layer ๐Ÿ—๏ธ

Infrastructure itself has three sub-layers:

Data & AI products BigQuery ยท Vertex AI ยท Looker
Compute & Storage decoupled โ€” scale independently
Networking & Security the base under everything
Key idea: decoupled compute & storageUnlike your laptop, the cloud scales compute and storage separately. Need more processing but the same data? Scale only compute. This is the superpower of cloud computing.

Compute: Control โ†” Convenience โš™๏ธ

Pick how much you manage vs how much Google manages.

MOST CONTROL

Compute Engine

Like running your own server (VMs)

โ†’
BALANCE

GKE

Managed containers + orchestration

โ†’
MOST CONVENIENCE

Cloud Run

Serverless โ€” Google runs it all

The chips that power it

๐Ÿ–ฅ๏ธ

CPU

General-purpose, everyday computing

๐ŸŽฎ

GPU

Parallel work โ€” graphics & some ML

โšก

TPU

Google's custom AI chip (2016). Built for the matrix math in ML โ€” faster & more energy-efficient

Storage & the Data-to-AI Workflow ๐Ÿ—„๏ธ

๐Ÿ“ฆ Unstructured data

no fixed shape
  • Documents, images, audio, video
  • โ†’ store in Cloud Storage

๐Ÿงฎ Structured data

tables, rows, columns
  • Transactions, records, metrics
  • โ†’ BigQuery, AlloyDB, Cloud SQL

The data-to-AI workflow

1

Ingest & Process

Pub/Sub ยท Dataflow

โ†’
2

Store & Analyse

BigQuery ยท Looker

โ†’
3

Activate with AI

Predict ยท Generate

BigQuery is the star: built for structured data, great with JSON, and can even query images/logs in Cloud Storage via external tables.
Chapter 4 ยท AI Models

AI vs ML vs Deep Learning vs GenAI ๐Ÿง 

People mix these up. They're actually nested โ€” each sits inside the one above. Tap any layer to expand.

๐Ÿค– Artificial Intelligence any computer mimicking human intelligence
๐Ÿ“š Machine Learning learns from data, not explicit rules
๐Ÿ•ธ๏ธ Deep Learning neural networks with many layers
โœจ Generative AI foundation models / LLMs like Gemini
AI is the umbrella. ML is AI that learns. Deep learning is ML with layered neural nets. GenAI uses huge deep-learning models (LLMs) to create.

Supervised vs Unsupervised Learning ๐Ÿท๏ธ

The whole difference: do your training examples come with answers (labels) or not?

 ๐Ÿท๏ธ Supervised๐Ÿ” Unsupervised
DataLabelled (has answers)Unlabelled (no answers)
Driven byA task / goalThe data itself
FindsA known targetHidden patterns
Example"Is this a cat or dog?" (you labelled the photos)"Group these dog breeds" (you don't know them)
The one testLabelled data โ†’ supervised. No labels โ†’ unsupervised. That's it.

The 5 Model Types You Must Know ๐ŸŽฏ

๐Ÿ•น๏ธTap each card to open it โ€” the problem it solves + its classic algorithm. Goal: link each model type to its use. (Explore freely โ€” no points.)

๐Ÿท๏ธ Classification

SUPERVISED ยท tap to expand
Predicts a category โ€” cat vs dog, churn yes/no. Classic model: logistic regression.

๐Ÿ“ˆ Regression

SUPERVISED ยท tap to expand
Predicts a number โ€” future sales, price. Classic model: linear regression.

๐Ÿงฉ Clustering

UNSUPERVISED ยท tap to expand
Groups similar data points โ€” customer segmentation. Classic model: k-means.

๐Ÿ”— Association

UNSUPERVISED ยท tap to expand
Finds things that go together โ€” "people who buy X also buy Y". Algorithm: Apriori.

๐Ÿ“‰ Dimensionality Reduction

UNSUPERVISED ยท tap to expand
Shrinks many features into fewer โ€” simplify an insurance quote. Technique: PCA.

๐Ÿ’ก Quick recall

CHEAT ยท tap to expand
Category โ†’ logistic ยท Number โ†’ linear ยท Groups โ†’ k-means ยท Goes-together โ†’ Apriori ยท Fewer features โ†’ PCA.
Try It ยท Chapter 4

Pick the Right Model ๐ŸŽฏ

๐Ÿ•น๏ธDrag each scenario onto the model that fits. Goal: pick by the answer shape โ€” a category, a number, or a group. Correct โ†’ +5โญ.
Will this customer buy? (yes/no)
Predict next quarter revenue ($)
Group customers into segments
Forecast a product's future price
Spam or not spam?
Find natural shopper groups
๐Ÿท๏ธ Classification
logistic
๐Ÿ“ˆ Regression
linear
๐Ÿงฉ Clustering
k-means
Category answer โ†’ classification. A number โ†’ regression. "Group / segment" โ†’ clustering.
Chapter 5 ยท BigQuery ML

Train a Modelโ€ฆ in SQL ๐Ÿช„

BigQuery is two things in one: a storage warehouse and a fast SQL engine. BigQuery ML lets you build models where the data already lives โ€” no Python, no data movement.

The 5 phases of an ML project

1

ETL

Get data into BigQuery

โ†’
2

Features

Preprocess ยท one-hot encoding

โ†’
3

Create

CREATE MODEL

4

Evaluate

ML.EVALUATE โ€” accuracy, precision, recall

โ†’
5

Predict

ML.PREDICT โ€” adds predicted_

One-hot encoding = turning categories ("London/Tokyo") into numbers a model can use. BigQuery ML does it for you automatically.
Try It ยท Chapter 5

Tap Each Keyword to Learn It ๐Ÿงช

๐Ÿ•น๏ธTap any yellow keyword โ†’ its job shows below. Goal: learn the anatomy of a BigQuery ML statement, piece by piece. Each new keyword โ†’ +2โญ.
CREATE MODEL ecommerce.purchase_model OPTIONS(model_type='LOGISTIC_REG', input_label_cols=['will_buy']) AS SELECT * FROM ecommerce.visitor_data; ML.EVALUATE(MODEL ecommerce.purchase_model); ML.PREDICT(MODEL ecommerce.purchase_model, ...);
Click a yellow keyword above to see what it does.
This exact pattern โ€” CREATE โ†’ EVALUATE โ†’ PREDICT โ€” is your homework lab: predicting visitor purchases on the Google Merchandise Store.
Knowledge Check ยท Module 1

Lock It In ๐Ÿงช

Q1"Forecast next month's sales" is which kind of AI?

Predictive AI
Generative AI
Responsible AI
Neither

Q2What is a TPU built for?

Rendering graphics
General everyday computing
The matrix math in machine learning
Storing files

Q3"Compute & storage scale separately" describes:

Decoupling
One-hot encoding
Overfitting
Clustering

Q4Predicting a continuous number (future spending) uses which model?

Logistic regression
Linear regression
K-means
Apriori

Q5Deep learning is best described as:

The same thing as AI
A type of unsupervised data
A storage format
ML with many neural-network layers

Q6Which command trains the model?

ML.PREDICT
ML.EVALUATE
CREATE MODEL
SELECT

Q7ML.EVALUATE reports which metrics?

Latency & cost
Rows & columns
Storage & compute
Accuracy, precision, recall

Q8After ML.PREDICT, your label column comes back as:

deleted
unchanged
prefixed with predicted_
turned into an image

Module 1 โ€” You Can Now Explainโ€ฆ โœ…

Predictive vs Generative 3-Layer Architecture Decoupled Compute/Storage TPU
AI โŠƒ ML โŠƒ DL Supervised vs Unsupervised Classification / Regression Clustering
CREATE MODEL ML.EVALUATE ML.PREDICT One-hot encoding
Finish Module 1 in 2 stepsDo the hands-on lab first โ€” then take the graded quiz.

๐Ÿงช Step 1 ยท Lab โ€” Predict Visitor Purchases with BigQuery ML (~60 min)

Hands-on the exact CREATE โ†’ EVALUATE โ†’ PREDICT flow we just covered, on the Google Merchandise Store data. Open the lab โ†’

๐Ÿ“ Step 2 ยท Official Module 1 Quiz โ†’

After the lab, take the graded quiz on Skills Boost to confirm you're exam-ready. skills.google โ€บ course 593 โ€บ quiz 617884

Foundation locked in. ๐Ÿงฑ
MODULE 1 COMPLETE

Next: Generative AI. โœจ

You've got the foundation. Module 2 is ready now โ€” generative AI, prompts, tuning, and agents. Modules 3 & 4 drop in next.

๐Ÿ’Ž

M2 ยท Generative AI

Start now โ†’

๐Ÿ›ค๏ธ

M3 ยท AI Dev Options

Coming soon

๐Ÿ”„

M4 ยท AI Dev Workflow

Coming soon