LevelUpWith

Explore / Google Cloud Generative AI Leader Certification Exam Prep / Lesson 2

Lesson 2: Three ML Approaches

[Fundamentals of gen AI] Teaches supervised, unsupervised and reinforcement learning from first principles and what business problem each one fits.

Free to read, no account needed. Part of Google Cloud Generative AI Leader Certification Exam Prep.

By the end of this level you'll be able to

  • Define supervised, unsupervised and reinforcement learning in plain business language
  • Match a scenario (predicting from past examples, finding hidden groups, learning by reward) to the right approach
  • Rule out the two wrong approaches in a 'best answer' question and say why

Why this level matters

Section 1 of the exam guide, Fundamentals of gen AI (about 30% of the exam), expects you to describe the machine learning approaches: supervised, unsupervised and reinforcement learning. You do not need maths or code. You need to read a short business scenario and name the approach that fits.

First, one definition. Machine learning (ML) is a way of building software that learns patterns from data instead of following rules a person wrote by hand. The three approaches differ in one thing: what the model learns from.

Approach 1: Supervised learning — learn from examples with answers

Definition: The model is trained on labeled data. Each past example comes with the correct answer (the label) attached. The model learns the link between the example and its answer, then predicts the answer for new cases.

Analogy: A trainee studies 10,000 past loan files, each stamped "repaid" or "defaulted". After enough files, the trainee can judge a new application.

Supervised learning produces two kinds of prediction:

  • Classification — predicts a category. Example: is this email spam or not spam?
  • Regression — predicts a number. Example: how many units will we sell next month?

Business fit: predicting from past examples. Fraud detection, customer churn prediction, demand forecasting, spam filtering.

Signal words: "historical records with known outcomes", "labeled", "predict", "classify", "forecast".

Approach 2: Unsupervised learning — find structure with no answers

Definition: The model is given unlabeled data. There are no correct answers attached. The model looks for patterns on its own, most commonly by clustering: organising similar items into groups. The groups are not defined by you; the model discovers them.

Analogy: You hand someone a box of 5,000 unsorted customer receipts and say only "tell me what groups you see". They come back with "weekend bulk buyers", "daily lunch shoppers" and a few receipts that look like nothing else.

Business fit: finding hidden groups or unusual items. Customer segmentation, grouping similar products or documents, spotting unusual transactions when no one has labeled what "unusual" looks like.

Signal words: "no labels", "no predefined categories", "discover", "segment", "group similar", "hidden patterns".

Approach 3: Reinforcement learning — learn by reward

Definition: A model (called the agent) takes actions inside an environment and receives rewards or penalties for the results. Through trial and error it works out a policy: the strategy that earns the most reward over time.

Analogy: Training a dog. You do not show it a dataset. It tries something, gets a treat or gets nothing, and adjusts.

Business fit: a sequence of decisions where feedback arrives after acting. Robots learning a physical task, game-playing systems, optimising a control system such as a warehouse route or energy usage.

Signal words: "trial and error", "reward", "penalty", "agent", "environment", "learns from the outcome of its actions", "maximise over time".

Side-by-side comparison

Supervised Unsupervised Reinforcement
Learns from Labeled examples Unlabeled data Rewards and penalties for actions
Output A prediction (category or number) Groups or patterns A strategy (policy) for acting
Typical scenario Predict churn from past customers Segment customers with no predefined groups Robot learns to pick items faster

How to match a scenario to an approach

Apply these steps in order to every scenario.

  1. Find the business goal. Underline the verb: predict, group/discover, or act and improve.
  2. Check the data for labels. Ask: does the scenario mention past examples with known outcomes?
    • Yes → lean supervised.
    • No, just raw data → lean unsupervised.
  3. Check for a feedback loop. Ask: is something taking actions and being scored on the results? If yes → reinforcement, regardless of step 2.
  4. Confirm with the output. A category or number = supervised. Groups or patterns = unsupervised. A strategy for acting = reinforcement.

How to rule out the two wrong answers

In a "best answer" question, do not stop at picking one. Eliminate the other two with a stated reason:

  • Rule out supervised when there are no labeled examples to learn from. No known answers, no supervision.
  • Rule out unsupervised when the scenario already has known outcomes and wants a specific prediction. Clustering finds groups; it does not predict a defined target.
  • Rule out reinforcement when nothing is taking actions and receiving rewards. A fixed dataset analysed once is not trial and error.

Worked example. A retailer has two years of customer records. Each record shows whether the customer cancelled their subscription. The retailer wants to know which current customers are likely to cancel.

  1. Goal: predict.
  2. Labels: yes — "cancelled" or "did not cancel".
  3. Feedback loop: none.
  4. Output: a category.

Answer: supervised (classification). Not unsupervised, because the outcome is known and labeled. Not reinforcement, because no agent is acting and being rewarded.

Common trap. "Grouping" appears in both supervised and unsupervised scenarios. If the groups are named in advance and you have examples of each (spam / not spam), it is supervised classification. If the model must invent the groups, it is unsupervised clustering.

What the exam asks about this

Expect scenario-based multiple-choice questions at business level. A scenario describes a goal and the available data, and you choose the approach. The exam does not ask for algorithms or formulas. The deciding detail is nearly always one of three things: labels present, labels absent, or reward feedback.

Key takeaways

  • Supervised = labeled examples → predicts a category (classification) or a number (regression).
  • Unsupervised = unlabeled data → discovers groups or patterns (clustering) that nobody defined in advance.
  • Reinforcement = an agent acts in an environment, gets rewards or penalties, and learns a policy by trial and error.
  • Decide by asking in order: What is the goal? Are there labels? Is there a reward loop?
  • Always state why the other two approaches do not fit before you commit to an answer.

A 6-question knowledge check follows this lesson in the app, free and without an account.

Keep going: levels 3 and 4 are free

Create a free account to open the next two levels, save your progress and pick up where you left off. No card needed.

Next: Level 3, Foundation Models, LLMs and Multimodal.

Create a free account →See the whole course

More like this

  • Google Cloud Associate Cloud Engineer Exam Prep

    Covers every item in Google's Associate Cloud Engineer exam guide, with each section given levels in line with its exam weight. For each topic you learn what t…

    Exam prep · Google · Cloud & Compute · Expert · 52 levels · 4 free · Professionally curated by levelupwith.com

  • Support Pro: Helping Users Move to Google Workspace

    Get first and second line support ready to carry users through a Microsoft 365 to Google Workspace cutover. You will prepare before cutover, map each Microsoft…

    Course · Google · Suite Support Pro: Configure and Fix · Expert · 40 levels · 4 free · Professionally curated by levelupwith.com

  • Google Workspace Support Pro: Gemini for End Users

    Diagnose and fix real Gemini tickets in Google Workspace. You'll work out which Gemini a user has from their edition and add-ons, read the Gemini app and servi…

    Course · Google · Suite Support Pro: Configure and Fix · Expert · 40 levels · 4 free · Professionally curated by levelupwith.com

  • Google Workspace Support Pro: Drive and Shared Drives

    Diagnose and fix Google Drive problems the way experienced support engineers do: read Admin console Drive policy and explain what it does, find out who can rea…

    Course · Google · Suite Support Pro: Configure and Fix · Expert · 34 levels · 4 free · Professionally curated by levelupwith.com

  • Google Workspace Support Pro: Meet and Chat

    Diagnose and fix the Meet and Chat faults that reach first and second line support: audio, video, screen sharing, spaces, external guests, recordings and room…

    Course · Google · Suite Support Pro: Configure and Fix · Expert · 40 levels · 4 free · Professionally curated by levelupwith.com

  • Google Workspace Support Pro: Gmail and Calendar

    Configure delegation, send-as, shared inboxes, calendars and resources. Trace any message with Email Log Search and bounce codes, release quarantined mail, res…

    Course · Google · Suite Support Pro: Configure and Fix · Expert · 40 levels · 4 free · Professionally curated by levelupwith.com