Google Cloud Intensive
DAY 04 Β· AI & ML ON GOOGLE CLOUD
M1Welcome
⭐ 0 pts
DAY 04 Β· AI & ML ON GOOGLE CLOUD

Today is easier than yesterday. πŸ› οΈ

Five quick modules. The hands-on side of AI on Google Cloud. By 5pm you'll know what to click and why.

Here's What We'll Cover πŸ—ΊοΈ

πŸ₯ž

M1 Β· The Stack

Google's 4 AI layers

πŸ›€οΈ

M2 Β· Pick a Path

API vs AutoML vs BQ ML vs Custom

πŸͺ„

M3 Β· BigQuery ML

ML with pure SQL

🏭

M4 Β· Vertex AI

One platform, all your ML

πŸ”„

M5 Β· MLOps

Keep models healthy in production

πŸ…

Then: Homework

4 labs on Skills Boost

Same deal as Day 3. Framework + two labs in class, rest as homework. You'll be ready.
Before We Dive In

Today's Labs β€” 2 in Class, 2 at Home πŸ§ͺ

All labs live on Skills Boost. Open it now in another tab: skills.google β†’ sign in with Google β†’ find "Introduction to AI and Machine Learning on Google Cloud".

🎯

Live in class

  • Entity & Sentiment Analysis with NL API (~45 min)
  • Get Started with Agent Studio (~60 min)
🏠

Homework tonight

  • Predict Visitor Purchases with BigQuery ML (~60 min)
  • Predicting Loan Risk with AutoML (~60 min)
Why split it4 hours of clicking in one day fries the brain. The 2 we do together are the most fun ones. The 2 at home are more SQL-heavy and easier to do at your own pace.
All 4 labs count toward the official Google badge. The split is for sanity, not skipping.
MODULE 01

The 4-Layer Stack πŸ₯ž

Four layers. Remember them in order. That's the whole module.

Just 4 Layers πŸ₯ž

Layer 4 β€” AI Solutions Contact Center AI Β· Document AI
Layer 3 β€” Pre-trained APIs Vision Β· Speech Β· Translate Β· NL
Layer 2 β€” ML Development Vertex AI Β· BigQuery ML Β· AutoML
Layer 1 β€” Infrastructure TPUs Β· GPUs Β· Storage
Golden RuleClimb only as high as you need. Pre-trained APIs first. Custom training last.
Try It Β· Module 1

Match Each Product to Its Layer πŸ₯ž

Drag each Google product onto the layer where it lives.

TPU v5p chips
BigQuery ML
Vision API
Contact Center AI
Vertex AI (Agent Platform)
Speech-to-Text
Document AI
GPUs
4️⃣ AI Solutions
3️⃣ Pre-trained APIs
2️⃣ ML Development
1️⃣ Infrastructure
Pattern: chips = bottom Β· Vertex/BQ ML = middle Β· APIs = pre-trained Β· "X AI" solutions = top.
Knowledge Check Β· Module 1

5 Quick Wins πŸ§ͺ

Q1Vertex AI sits in which layer?

Infrastructure
ML Development
Pre-trained APIs
AI Solutions

Q2Best layer to start with for a generic problem?

Custom training
Pre-trained APIs
Infrastructure
AutoML

Q3Contact Center AI lives in which layer?

Infrastructure
ML Development
Pre-trained APIs
AI Solutions

Q4TPUs and GPUs belong to which layer?

Infrastructure
ML Development
Pre-trained APIs
AI Solutions

Q5AutoML and BigQuery ML both live in which layer?

Infrastructure
ML Development
Pre-trained APIs
AI Solutions

Module 1 β€” Recap βœ…

Infrastructure ML Development Pre-trained APIs AI Solutions

πŸ“Ί Reinforce Tonight on Skills Boost

  • Module 2 β†’ AI on Google Cloud (~5 min)
  • Module 2 β†’ AI infrastructure (~7 min)

~12 min Β· skim if confident

πŸŽ‰ Module 1 complete Β· 4 of 20 concepts
MODULE 02

Pick a Path πŸ›€οΈ

Four choices. Each fits a different team and problem.

4 Paths to AI πŸ›€οΈ

πŸ“ž

Pre-trained API

Call Google's models. Easiest.

πŸ“Š

BigQuery ML

SQL skills only. Data in BQ.

πŸ€–

AutoML

Bring data, no model code.

πŸ§ͺ

Custom Training

Full control. ML team required. Hardest.

Pick by team skill, not "power"SQL team β†’ BQ ML. Analyst team β†’ AutoML. ML engineers β†’ Vertex AI Custom.
Try It Β· Module 2

Pick the Right Path πŸ›€οΈ

Drop each real-world scenario into the cheapest path that fits.

OCR receipts Β· no ML team
Predict churn Β· 80M rows in BigQuery Β· SQL team
Image classifier Β· labelled photos Β· no coders
Novel research model Β· 3 ML PhDs on staff
Sentiment on Bahasa Malay reviews
Time-series forecast Β· data already in BQ
Tabular fraud detector Β· analysts have data
πŸ“ž Pre-trained API
πŸ“Š BigQuery ML
πŸ€– AutoML
πŸ§ͺ Custom Training
Trigger words: "no ML team" β†’ API. "in BigQuery + SQL" β†’ BQ ML. "labelled, no coders" β†’ AutoML. "ML PhDs / novel" β†’ Custom.
Knowledge Check Β· Module 2

5 Quick Wins πŸ§ͺ

Q1Team has zero ML experience. Needs to OCR receipts. Best path?

Vision API (pre-trained)
Custom TensorFlow model
Train from scratch
Build with Vertex AI custom training

Q250M rows in BigQuery. SQL skills available. Predict churn. Pick:

Export to CSV β†’ Python
Hire ML team first
BigQuery ML
Vision API

Q3Have labelled image data but no ML team. Best path?

Custom training
Pre-trained Vision API
AutoML Vision
BigQuery ML

Q4Unique research problem with a strong ML team. Best path?

Pre-trained API
AutoML
BigQuery ML
Vertex AI Custom Training

Q5Order the 4 paths from EASIEST to HARDEST:

Pre-trained API β†’ BQ ML β†’ AutoML β†’ Custom
Custom β†’ AutoML β†’ BQ ML β†’ Pre-trained API
AutoML β†’ Pre-trained API β†’ Custom β†’ BQ ML
BQ ML β†’ Custom β†’ AutoML β†’ Pre-trained API

Module 2 β€” Recap βœ…

Pre-trained API BigQuery ML AutoML Custom Training

πŸ“Ί Reinforce Tonight on Skills Boost

  • Module 4 β†’ AI development options (~5 min)
  • Module 4 β†’ Vertex AI + AutoML + Pre-trained APIs + Custom training (~19 min)
  • 🎯 Lab in class β†’ Entity & Sentiment Analysis with Natural Language API (~45 min)

~70 min Β· we do this one together β€” it's the easiest entry

πŸŽ‰ Module 2 complete Β· 8 of 20 concepts
🎯 Live Lab · ~45 min

Lab β€” Entity & Sentiment Analysis πŸ’¬

Skills Boost lab: "Entity and Sentiment Analysis with the Natural Language API". Open Skills Boost β†’ search for it β†’ click Start Lab.

πŸ”§

What you'll do

  • Enable the NL API in a temp GCP project
  • Run gcloud ml language analyze-entities on a Wikipedia article
  • Run sentiment analysis on a customer review
  • Read the JSON output β€” entities, sentiment, salience
βœ…

What success looks like

  • JSON with entities[] populated
  • Sentiment score between βˆ’1 and +1
  • Each entity has a salience score
  • Lab marks you βœ“ green at the end
If you get stuckDon't refresh Cloud Shell β€” your credentials reset. If the terminal hangs, type gcloud auth list to confirm you're signed in as the temp lab user.
Goal: see real entities & sentiment scores come out of a one-line API call. That's it. Don't overthink the JSON.
MODULE 03

BigQuery ML πŸͺ„

Train ML models with SQL. No Python. No notebooks.

3 SQL Statements. That's It. ✨

CREATE MODEL my.churn_model OPTIONS(model_type='LOGISTIC_REG') AS SELECT * FROM my.training_data;
SELECT * FROM ML.EVALUATE(MODEL my.churn_model);
SELECT * FROM ML.PREDICT(MODEL my.churn_model, ...);
The whole magicTrain β†’ Evaluate β†’ Predict. All in SQL. All in BigQuery. Predictions plug straight into Looker Studio.
Try It Β· Module 3

Tap Each Highlighted Keyword πŸ§ͺ

Click any yellow keyword in this real BQ ML statement. The explainer underneath updates. +2⭐ per new keyword discovered.

CREATE OR REPLACE MODEL proj.ds.churn_model OPTIONS(model_type='LOGISTIC_REG', input_label_cols=['churned']) AS SELECT * EXCEPT(customer_id) FROM proj.ds.customer_features WHERE split = 'TRAIN';
Click a yellow keyword above to see what it does.
After tapping every keyword you've seen the anatomy of a working BQ ML statement. The exam tests these exact pieces.
Knowledge Check Β· Module 3

5 SQL Wins πŸ§ͺ

Q1Which SQL function gives predictions?

ML.EVALUATE
ML.PREDICT
ML.TRAIN
ML.RUN

Q2BigQuery ML's biggest advantage?

Best accuracy
Cheapest cost
No data movement β€” model trains where data lives
Easiest GPU access

Q3Which function evaluates model performance on a hold-out set?

ML.EVALUATE
ML.PREDICT
CREATE MODEL
ML.CHECK

Q4To classify "churned: yes/no", which model_type?

LINEAR_REG
LOGISTIC_REG
KMEANS
ARIMA_PLUS

Q5For monthly sales time-series forecasting, which model_type?

LOGISTIC_REG
KMEANS
ARIMA_PLUS
BOOSTED_TREE_CLASSIFIER

Module 3 β€” Recap βœ…

CREATE MODEL ML.EVALUATE ML.PREDICT LOGISTIC_REG

πŸ“Ί Reinforce Tonight on Skills Boost

  • Module 2 β†’ BigQuery ML (~6 min)
  • 🏠 Lab at home β†’ Predict Visitor Purchases with BigQuery ML (~60 min)

~66 min Β· the lab walks you through every SQL statement we covered. Easiest to do at your own pace tonight.

πŸŽ‰ Module 3 complete Β· 12 of 20 concepts
MODULE 04

Vertex AI 🏭

One platform for everything ML. Recently rebranded to Agent Platform.

4 Things to Remember 🧩

🌳

Model Garden

150+ models. One-click try.

🎨

Agent Studio

Gen AI prompt workbench.

πŸ—ƒοΈ

Model Registry

Version + govern models.

πŸ“‘

Endpoints

Deploy & serve predictions.

Online vs Batch predictionOnline = low-latency single requests (chatbot). Batch = many rows at once (nightly scoring). Pick by need.
Try It Β· Module 4

Online or Batch? βš‘πŸ“¦

Drag each real use case into the right serving mode.

Customer-service chatbot reply
Nightly churn-risk scoring Β· 50M customers
Real-time fraud detection on each card swipe
Monthly revenue forecast across all branches
In-app product recommendation on page load
Quarterly customer-segment clustering
⚑ Online Prediction
πŸ“¦ Batch Prediction
Trigger words: "real-time / on click / per call" β†’ Online. "Nightly / monthly / many rows" β†’ Batch.
Knowledge Check Β· Module 4

5 Quick Wins πŸ§ͺ

Q1Which component versions and governs models before serving?

Endpoints
Model Registry
Agent Studio
Workbench

Q2Score 50M customers once a month. Best serving mode?

Online prediction
Batch prediction
Real-time stream
Manual prediction

Q3Need low-latency chatbot responses. Best serving mode?

Online prediction via Endpoint
Batch prediction
Overnight scoring job
Manual CSV upload

Q4Where do you browse 150+ models in one click?

Cloud Storage
BigQuery
Endpoints
Model Garden

Q5Vertex AI is rebranding to:

Cloud AI
Gemini Studio
Agent Platform
AI Workshop

Module 4 β€” Recap βœ…

Model Garden Agent Studio Model Registry Endpoints Online vs Batch

πŸ“Ί Reinforce Tonight on Skills Boost

  • Module 3 β†’ Generative AI on Google Cloud + Idea to app (~14 min)
  • Module 3 β†’ Deployment & model tuning (~8 min)
  • Module 5 β†’ Model serving (~3 min)
  • 🎯 Lab in class β†’ Get Started with Agent Studio (~60 min)

~85 min Β· we do this together β€” it's the highlight of the whole course

πŸŽ‰ Module 4 complete Β· 17 of 20 concepts
MODULE 05

MLOps Basics πŸ”„

How models survive in production. Three ideas β€” that's it.

3 Ideas You'll Be Asked About 🎯

1. MLOps Maturity LevelsLevel 0 = manual. Level 1 = automated pipelines. Level 2 = CI/CD. Most teams are at 0. Go to 1.
2. DriftLive data slowly drifts away from training data. Model accuracy quietly drops. Monitor for it.
3. Continuous trainingWhen drift hits, auto-retrain on fresh data. Deploy via canary. Loop.
Try It Β· Module 5

Honest Self-Check β€” Where Are You? πŸͺž

Click the level that sounds like your team. The card reveals what you have and what you're missing.

LEVEL

0

Manual everything

LEVEL

1

Pipelines automated

LEVEL

2

CI/CD for pipelines

Most enterprises = Level 0. Moving to Level 1 unlocks 80% of the value. Don't chase Level 2 unless you ship a lot of models.
Knowledge Check Β· Module 5

5 Final Wins πŸ§ͺ

Q1Model accuracy drops 87% β†’ 62% over three months. Most likely cause?

The model "broke"
Data drift β€” live behaviour changed
BigQuery got slower
Endpoint scaling failure

Q2Team at MLOps Level 0. Highest-leverage upgrade?

Buy more GPUs
Automate the training pipeline (move to Level 1)
Hire 10 more data scientists
Switch cloud providers

Q3Level 2 MLOps maturity means:

Manual deployment from a notebook
Automated retraining only
Full CI/CD for ML pipelines themselves
Real-time model inference

Q4Training data differs from live serving data from day 1. That's called:

Training-serving skew
Concept drift
Overfitting
Hallucination

Q5Drift detected β†’ auto-retrain on fresh data β†’ canary deploy. That's:

Fine-tuning
Manual deployment
A/B testing
Continuous training

Module 5 β€” Recap βœ…

Level 0 / 1 / 2 Drift Continuous training

πŸ“Ί Reinforce Tonight on Skills Boost

  • Module 5 β†’ ML workflow + Data preparation + Model development (~13 min)
  • Module 5 β†’ MLOps and workflow automation (~6 min)
  • Module 5 β†’ How a machine learns (optional but recommended) (~11 min)
  • 🏠 Lab at home β†’ Agent Platform: Predicting Loan Risk with AutoML (~60 min)

~90 min Β· do this one tonight at your own pace β€” it earns the official Google Cloud badge

πŸŽ‰ Module 5 complete Β· 20 of 20 concepts
You've got the whole Day 4 framework. 🎯
🎯 Closing Lab · ~60 min

Final Lab β€” Get Started with Agent Studio 🎨

Last live lab of the day. Skills Boost: "Get Started with Agent Studio". The headline lab of the whole course β€” leave on a high.

πŸ”§

What you'll do

  • Open Agent Studio in the GCP Console
  • Pick a Gemini model (Pro or Flash)
  • Write a prompt β†’ adjust temperature, top-p, max tokens
  • Test multimodal input (paste an image or PDF)
  • Save the prompt as a reusable template
βœ…

What success looks like

  • Prompt returns coherent text in the response pane
  • Lower temperature β†’ more deterministic output
  • Same prompt with image input returns image-grounded answer
  • Template appears in your saved prompts list
Pro tip mid-labTry the SAME prompt at temperature 0.0 vs 1.5 to feel the difference. That's the moment "sampling parameters" stops being abstract.
Goal: leave today knowing you could build a Gen AI prototype tomorrow. Then wrap-up + homework, and we're done.
Group Activity Β· 15 min

Think Β· Pair Β· Share πŸ’­

Pair up with someone nearby. Pick one prompt. Discuss 5 min. Share with the room.

πŸ“Š

Which Path?

For your workplace's biggest data problem β€” Pre-trained API, BQ ML, AutoML, or Custom? Why?

πŸ”„

One Pipeline

Sketch a continuous training pipeline for one real use case. What triggers retraining?

πŸ“‘

Online or Batch?

Pick three live use cases at your work. Which need online prediction, which batch? Why?

No wrong answers. Goal: connect today's stack to real problems you actually have.
Screenshot This πŸ“Έ

Your Exam Cheat Sheet πŸ“‹

All 20 concepts on one screen. Take a photo. Review before the exam.

πŸ₯ž The Stack

InfrastructureML DevelopmentPre-trained APIsAI Solutions

πŸ›€οΈ Pick a Path

Pre-trained APIBigQuery MLAutoMLCustom Training

πŸͺ„ BigQuery ML

CREATE MODELML.EVALUATEML.PREDICTLOGISTIC_REG

🏭 Vertex AI / Agent Platform

Model GardenAgent StudioModel RegistryEndpointsOnline vs Batch

πŸ”„ MLOps

Level 0 / 1 / 2DriftContinuous training
Match these 20 keywords to their meanings and you're 80% to a pass. Easy.
Final Practice Β· 10 Mixed Questions

Exam Simulation 🎯

Mixed-module questions. Same shape as the real exam. Answers shuffled.

F1Vertex AI sits in which layer?

ML Development
Infrastructure
Pre-trained APIs
AI Solutions

F250M rows in BigQuery, SQL team, predict churn. Pick:

BigQuery ML
Custom training
Vision API
Export to Python

F3SQL function for predictions:

ML.PREDICT
ML.EVALUATE
ML.TRAIN
CREATE MODEL

F4Score 50M customers monthly. Best mode:

Batch prediction
Online prediction
Stream processing
Manual CSV

F5Versions and governs models before serving:

Model Registry
Endpoints
Agent Studio
Workbench

F6Silent accuracy drop over 3 months. Cause?

Data drift
Model broke
BigQuery slow
Endpoint failure

F7MLOps Level 0 team's biggest upgrade:

Automate the pipeline (Level 1)
Buy more GPUs
Hire more engineers
Switch clouds

F8Vertex AI is rebranding to:

Agent Platform
Cloud AI
Gemini Studio
AI Workshop

F9Training data β‰  live data from day 1 is called:

Training-serving skew
Concept drift
Overfitting
Hallucination

F10For monthly sales time-series forecasting:

ARIMA_PLUS
LOGISTIC_REG
KMEANS
LINEAR_REG (classification)
7+ correct β†’ exam ready. 5-6 β†’ solid, finish Skills Boost tonight. Under 5 β†’ no worries, the labs will lock it in.

Exam Day β€” Know What to Expect ⏰

πŸ“‹

Format

50–60 multiple choice questions

⏱️

Time

90 minutes Β· ~90 sec per question

🎯

Pass Mark

~75% Β· aim for 80% safe

🧠 Test-taking tips

1. First read β€” answer everything you know fast. Flag hard ones.
2. Second pass β€” return to flagged with fresh eyes.
3. Eliminate β€” wrong answers are usually obvious. Cross them off.
4. Trust patterns β€” "drift" answers production-drop questions. "Batch" answers high-volume monthly questions. "ML Development" hosts Vertex AI / BigQuery ML.
5. Never leave blank β€” no negative marking. Guess if you must.

90 minutes for 60 questions = generous. You've prepared. Breathe. You'll do well.
Tonight πŸ“

Do the Labs β€” Earn the Badge πŸ…

You've got the framework. Tonight you click through the official labs.

πŸ”— Introduction to AI and Machine Learning on Google Cloud

skills.google/course_templates/593

6 modules Β· 4 hands-on labs Β· Google Cloud badge on completion

πŸ§ͺ

Lab 1

Visitor Purchases with BQ ML

🎨

Lab 2

Get Started with Agent Studio

πŸ’¬

Lab 3

NL API β€” Sentiment Analysis

Doing the labs is what gets the framework to stick. One hour tonight = real confidence tomorrow.
DAY 4 COMPLETE

You're ready. πŸš€

Two days. Two frameworks. 45 exam concepts. Tomorrow you take the exam β€” and pass. Rest tonight. Hydrate. We've done the hard part.