Sign in
Home/Google Cloud/Generative AI Leader/Free questions

Generative AI Leader — Free Practice Questions

10 free sample questions from a bank of 10, with the correct answers and explanations. No signup required — start practising right now.

1What is the definition of generative AI?
  • A type of predictive model that estimates a relationship by fitting a line to the observed data.
  • A type of artificial intelligence that can create new content and ideas, including text, images, music, and code.
  • A type of machine learning algorithm inspired by the human brain that is made up of interconnected nodes.
  • A type of artificial intelligence that enables a system to autonomously learn and improve using neural networks and deep learning.
Answer: B

The short version

B — Generative AI is artificial intelligence that creates new content and ideas, including text, images, music and code. The word "generative" refers to the model's ability to synthesise new output from patterns it learned in training data.

Key concepts

  • Generative AI: models trained on the distribution of a dataset that can sample brand-new, plausible instances from it, such as a drafted email or a rendered image.
  • Predictive AI: models that fit the relationship between inputs and a known output to estimate a future value; they label, score or forecast but never author content.
  • Neural network: layered nodes connected by weighted edges, the implementation engine behind most generative models; it describes how the model works, not what it produces.
  • Machine learning / deep learning: the broader learning paradigms under which generative AI sits as one application family.

Why B is correct

A generative model is trained to learn the statistical structure of the training data itself, so at inference time it can sample fresh examples from that distribution — a paragraph that never existed in the corpus, a picture, a melody, a function. That content-creation capability is precisely what "generative AI" names, and B is the only option that names it. The other options describe different layers of the stack: predictive/regression modelling, the neural-network implementation technique, and machine learning as a general learning paradigm. None of those describe the act of producing new artefacts, which is the defining feature.

Why the others are wrong

  • A. This is a regression-style predictive model: it fits a line to observed data and estimates a relationship. Estimation of a known quantity is prediction, not creation.
  • C. This describes a neural network, i.e. the architecture. Neural networks are also the engine behind the wrong answers A and D, so the term is too generic to distinguish generative AI.
  • D. This describes AI/machine learning broadly (autonomous learning via neural networks and deep learning). It would equally describe the models in the other options and never mentions producing content.

GAIL exam tip

Ask "does the model produce new artefacts or only predict a value?" Produce content = generative AI; label or forecast = predictive AI, no matter how complex the network.

2A company wants to use an AI agent to automate some tasks. They want everyone to understand the different functions of an AI agent. What is the function of an AI agent in the context of gen AI?
  • To provide the computational resources needed to train and run gen AI models.
  • To store and manage large datasets used for training and running gen AI models.
  • To provide a user-friendly interface for interacting with gen AI models.
  • To analyze situations, use multiple tools, and make informed decisions without requiring constant human input.
Answer: D

The short version

D — An AI agent analyses a situation, uses multiple tools, and reaches informed decisions without constant human input. Its defining function is autonomous goal-directed action, not compute, storage or user interface work.

Key concepts

  • AI agent: software that pursues a defined goal on its own, choosing and sequencing tool calls based on what it observes at each step.
  • Tools/actions: external capabilities such as search, APIs, code execution or file access that let the agent affect its environment rather than only answer.
  • Autonomy: the agent loops observe → reason → act → re-observe, so a single instruction can trigger many decisions without a human in the middle.
  • Chat assistant vs agent: an assistant answers one prompt at a time and waits; an agent keeps working toward the goal after the initial instruction.

Why D is correct

The word "agent" comes from the agent/goal framing: an agent is given an objective, perceives its environment, plans, selects tools, acts, and evaluates the result — repeating until the goal is met. That is exactly what D describes: analysing situations, using multiple tools, and making informed decisions without constant human input. Options A, B and C describe the supporting platform around the model — infrastructure capacity, dataset handling and the chat surface. Those are legitimate concerns for a team deploying gen AI, but they are infrastructure and UX roles, not the function of the agent itself.

Why the others are wrong

  • A. Compute for training and inference is provisioned by the model platform (cloud infrastructure, accelerators). It is a capacity concern of the provider, not the behaviour of the agent application.
  • B. Storing and managing training datasets is a data engineering and MLOps function. It happens long before the agent runs and says nothing about how the agent decides.
  • C. A user-friendly interface is the front end (chat box, API, UI) through which a human talks to a model. It says nothing about autonomous decision-making; a headless agent has no interface at all.

GAIL exam tip

Memorise the agent triad: goal + tools + autonomous loop. If an option mentions hardware, storage or a UI, it is describing the platform around the model, never the agent.

3What is the definition of an AI agent?
  • An application that learns how to achieve a goal based on inputs and tools available to it.
  • A human expert who oversees and manages the operation of a gen AI application.
  • A type of user interface that allows users to interact with a gen AI application.
  • A static component of a gen AI application that provides information to the user.
Answer: A

The short version

A — An AI agent is an application that learns how to achieve a goal based on the inputs and the tools available to it. That single sentence carries the whole definition: goal-directed, tool-using, adaptive.

Key concepts

  • AI agent: a goal-seeking application that observes inputs, decides which action to take, uses the tools it has, and adjusts based on results.
  • Inputs/tools available to it: the information it perceives and the actions it can perform — the boundary that decides what the agent is capable of.
  • Gen AI application: the user-facing product; the agent is one architectural pattern inside it, sitting alongside plain prompts and RAG.
  • Human overseer: a person who supervises, tunes or approves the system's output — an operational role, not the software's definition.

Why A is correct

An agent is defined behaviourally: given a goal and a set of available tools, it works out how to reach that goal from the inputs it receives, and it adapts as it goes. A captures exactly those three elements — it is an application (software, not a person), it learns how to achieve a goal, and its behaviour is bounded by the inputs and tools available. B, C and D each collapse the agent into something narrower or inert: a supervisor, a UI, or a static read-only component — none of which perceives, decides and acts on its own.

Why the others are wrong

  • B. A human expert is the operator or overseer who supervises the gen AI application, guides it and is accountable for its use. Calling that the definition of an AI agent confuses the supervisor with the supervised system.
  • C. A user interface is only the surface a person uses to talk to the model. The agent logic runs behind the interface and can run headlessly via API or schedule.
  • D. A static, informational component returns fixed content and takes no action; it cannot use tools, cannot observe results and cannot iterate, so it is not an agent.

GAIL exam tip

If the description has no verb of action (use a tool, decide, retry) it is not an agent. "Goal + inputs + tools" is the whole test.

4A company is developing an AI character for a video game. The AI character needs to learn how to navigate a complex environment and make decisions to achieve certain objectives within the game. When the AI takes actions that lead to positive outcomes like finding a reward or overcoming an obstacle, it receives a positive score. When it takes actions that lead to negative outcomes, like hitting a wall or losing progress, it receives a negative score. Through this process of trial and error, the AI gradually improves the character’s ability to play the game effectively. What machine learning should the company use?
  • Unsupervised learning
  • Reinforcement learning
  • Supervised learning
  • Deep learning
Answer: B

The short version

B — Reinforcement learning. The character is rewarded for good moves and penalised for bad ones and improves purely through trial and error, which is the reinforcement learning loop.

Key concepts

  • Reinforcement learning: an agent learns a policy by interacting with an environment, receiving numeric reward or penalty signals, and updating its behaviour to maximise cumulative reward.
  • Policy: the learned mapping from situations to actions — in the game, "what move to make right now".
  • Reward / penalty: the feedback signal (score) that substitutes for labelled correct answers; there is no ground-truth answer per action.
  • Exploration vs exploitation: the agent must try new moves to learn the environment, then exploit what worked — the balance that produces gradual improvement.

Why B is correct

The scenario has the defining signature of reinforcement learning: an agent interacts with an environment, receives a numeric reward for outcomes that move it toward the objective and a penalty for outcomes that do not, and improves its behaviour over repeated trials. There is no labelled dataset of correct moves — the only teacher is the reward signal. That is exactly reinforcement learning. Supervised learning would require the company to supply correct action labels for each state, which the game does not produce; unsupervised learning would look for structure in unlabelled data with no notion of good or bad.

Why the others are wrong

  • A. Unsupervised learning discovers groupings or anomalies in data without labels and without any reward/penalty feedback. There is no notion of a better or worse outcome in a clustering objective.
  • C. Supervised learning needs labelled input/output pairs. Here nobody can label "the correct next move" for every game state — only a score after the outcome, which is the reinforcement signal.
  • D. Deep learning is about model architecture (many layers, neural networks); it describes how a model is built, not how it learns from rewards. Reinforcement learning can and often does use deep networks.

GAIL exam tip

Spot the loop: act → get a number → adjust. A numeric score after an outcome is the fingerprint of reinforcement learning; labels beforehand mean supervised.

5A research team has collected a large dataset of sensor readings from various industrial machines. This dataset includes measurements like temperature, pressure vibration levels and electrical current recorded at regular intervals. The team has not yet assigned any labels or categories to these readings and wants to identify potential anomalies, malfunctions or natural groupings of machine behavior based on the sensor data alone. What type of machine learning should they use?
  • Deep learning
  • Reinforcement learning
  • Supervised learning
  • Unsupervised learning
Answer: D

The short version

D — Unsupervised learning. The readings carry no labels, and the team wants structure — anomalies and natural groupings — discovered from the data itself.

Key concepts

  • Unsupervised learning: training on unlabelled data to uncover latent structure such as clusters, groupings or outliers, with no target variable supplied.
  • Labelled data: data where each row is tagged with the answer (faulty/not faulty, spam/not spam); its absence is the tell for unsupervised work.
  • Anomaly detection: identifying records that deviate from the dominant pattern — the classic unsupervised use case for industrial sensor telemetry.
  • Clustering: grouping similar observations together (e.g. machine behaviour modes) purely by distance/similarity in feature space.

Why D is correct

Two facts in the question force the answer: no labels or categories have been assigned, and the goal is to find anomalies, malfunctions or natural groupings from the sensor data alone. Unsupervised learning is precisely the family of methods that operates without a target variable and returns structure — clusters and outliers — as output. Anomaly detection and clustering are its workhorses for this kind of telemetry. Any method that needs a pre-assigned correct answer cannot even run here, because the team has nothing to train against.

Why the others are wrong

  • A. Deep learning describes multi-layer neural architectures, not the learning paradigm. An unsupervised deep autoencoder could technically be built here, but "deep learning" alone never tells you labels are unnecessary.
  • B. Reinforcement learning needs an agent acting in an environment with reward feedback. There is no agent taking actions and no reward; the team is passively analysing recorded measurements.
  • C. Supervised learning requires labelled examples — known faulty vs healthy machines. The team explicitly has assigned no labels, so a classifier cannot be trained.

GAIL exam tip

Two-line cue: labels present = supervised; scores after actions = reinforcement; no labels and looking for structure = unsupervised.

6A highly regulated financial institution wants to use Gemini as the core decision engine for a loan approval system that will deterministically approve or reject loan applications based on a strict set of predefined criteria. Why is this an inappropriate use case for Gemini?
  • Gemini deployment for this scenario would be too expensive and complex.
  • Gemini’s designed for flexible content generation and inference, not rigid rule-based decisions.
  • Gemini is not equipped to handle structured numerical data for financial assessments.
  • Gemini cannot integrate with required financial databases.
Answer: B

The short version

B — Gemini is built for flexible content generation and inference, not rigid rule-based decisions. A loan approve/reject outcome driven by a fixed criteria set needs a deterministic rule engine; a generative model produces probabilistic output instead.

Key concepts

  • Probabilistic generation: a generative model produces the most likely next token/segment, so identical inputs can yield different outputs — it cannot guarantee the same verdict twice.
  • Deterministic rule engine: an exact, ordered evaluation of predefined criteria, which is what a regulated approve/reject decision and its audit trail require.
  • Prompt-as-logic is not logic: instructions such as "approve if income > X and DTI < Y" are soft constraints the model may reinterpret or violate; they are not enforced.
  • Deterministic use cases in Gemini: templating, extraction, summarisation and drafting, where a human reviews and corrects the output.

Why B is correct

The mismatch is one of behaviour, not capability. Gemini's core mechanism is probabilistic next-item prediction, tuned to produce flexible, open-ended content — that is a strength for drafting and exploration and a liability for a hard gate that must return the same decision for the same file. Regulatory decisioning demands deterministic evaluation of predefined criteria, full traceability of the rule applied, and no improvisation. B names exactly that mismatch. Note also that the other three options are factual claims that simply are not true: Gemini runs economically on managed platforms such as Vertex AI, handles numeric and structured financial fields comfortably, and integrates with databases and APIs through connectors.

Why the others are wrong

  • A. Cost and complexity are not the reason, and they are weak reasons anyway: managed Gemini endpoints are inexpensive to call and require no custom infrastructure for a single API endpoint.
  • C. Gemini handles structured numerical inputs fine — extracting income, debt and ratio fields from documents is a standard extraction use case. This is a false limitation.
  • D. Gemini integrates with financial data systems through APIs, connectors and retrieval grounding. Integration is a solved problem, not the disqualifier.

GAIL exam tip

Ask "must the answer be identical every time?" If yes, it is rule-based/transactional software; if no, generative AI fits. Determinism is the disqualifier, not cost or data format.

7What is an example of unsupervised machine learning?
  • Predicting subscription renewal based on past renewal status data.
  • Training a system to recognize product images using labeled categories.
  • Analyzing customer purchase patterns to identify natural groupings.
  • Forecasting sales figures using historical sales and marketing spend.
Answer: C

The short version

C — Analysing customer purchase patterns to identify natural groupings is unsupervised learning. No pre-assigned category exists; the grouping itself is what the algorithm discovers.

Key concepts

  • Unsupervised learning: discovering structure in unlabelled data — clusters, groupings, anomalies — with no target label supplied.
  • Clustering: an unsupervised technique (k-means, hierarchical, DBSCAN) that partitions records so that similar observations sit together based on feature similarity.
  • Supervised learning: predicting a known label (renewed/did not renew, spam/not spam) from examples that already carry that label.
  • Feature/label: the feature is an input attribute such as spend or frequency; the label is the answer you want. Unsupervised tasks have no label column.

Why C is correct

The stem says the system looks at purchase behaviour in order to find groupings that exist naturally in the data — nobody has pre-labelled customers into segments, so the segment boundaries must be derived. That is the definition of unsupervised learning, and customer segmentation by clustering is the textbook example. A supervised model would need someone to have already decided the segments and labelled every customer; here the categories are the output, not the input.

Why the others are wrong

  • A. Renewal based on past renewal status uses a known label — whether the customer renewed — as the target, so this is supervised classification with a binary outcome.
  • B. Recognising product images from labelled categories is the canonical supervised computer-vision task: every training image already carries its category.
  • D. Forecasting sales from historical sales and marketing spend predicts a numeric target from known features against a labelled history, which is supervised regression.

GAIL exam tip

Read the last clause of the question. "Based on the data alone" or "identify natural groupings" means unsupervised; any scenario naming a target column is supervised.

8A user asks a generative AI model about the scientific accuracy of a popular science fiction movie. The model confidently states that humans can indeed travel faster than light, referencing specific but entirely fictional theories and providing made-up explanations of how this is achieved according to the movie's "established science." The model presents this information as factual, without indicating that it originates from a fictional work. What type of model limitation is this?
  • Bias
  • Hallucination
  • Knowledge cutoff
  • Data dependency
Answer: B

The short version

B — Hallucination. The model invented plausible-sounding theories and presented them as fact; fabricated, confidently stated content is the signature of a hallucination.

Key concepts

  • Hallucination: output that is fluent and confident but factually unsupported by any reliable source, fabricated by the model itself.
  • Grounding / source citation: tying generated claims to retrieved, verifiable sources; without it, the model fills gaps with its most likely-sounding continuation.
  • Bias: systematic skew or unfairness in outputs across groups — a fairness property, not a truthfulness one.
  • Knowledge cutoff: the date after which the model's training data ends; it bounds what it can know but does not cause confident invention.

Why B is correct

The model produced statements that are internally coherent and stylistically confident but have no factual basis, and it failed to signal that the content came from a fictional work. That is the definition of a hallucination: the model generates statistically plausible text that is not grounded in truth. Note the tell — the response is delivered as fact with no hedging and no source. Knowledge cutoff, bias and data dependency cannot produce invented-but-confident content: a cutoff causes ignorance (usually admitting it), while bias produces skewed-but-grounded content.

Why the others are wrong

  • A. Bias would show up as systematically skewed treatment of certain groups, values or viewpoints — for example, only recommending leadership roles for one demographic. Nothing here is skewed or unfair; the content is simply false.
  • C. A knowledge cutoff causes the model to lack information about events after the training boundary. It would more likely say it does not know, or give stale facts — not invent fictional physics and assert it as established.
  • D. Data dependency describes reliance on the quality, quantity and representativeness of training data. Weak data can contribute to many problems, but it does not explain this specific fabricated-and-asserted failure.

GAIL exam tip

Confidently wrong = hallucination. Knowingly limited = cutoff. Systematically unfair = bias. Train the ear for the tone, not just the topic.

9What does a diffusion model do?
  • Generates high-quality content by refining noise into structured data.
  • Facilitates the storage and management of structured data.
  • Analyzes data and predicts future trends and patterns.
  • Optimizes business processes and resource allocation.
Answer: A

The short version

A — A diffusion model generates high-quality content by iteratively refining noise into structured data. It starts from random noise and repeatedly denoises it into a coherent image, audio clip or molecule.

Key concepts

  • Diffusion model: a generative model trained by adding noise to real data in steps (forward process) and learning to reverse those steps (reverse/denoising process).
  • Forward noising / reverse denoising: training corrupts data with Gaussian noise on purpose; generation walks the model backwards from pure noise to a structured sample.
  • Latent representation: diffusion models (especially latent diffusion) perform denoising in a compressed latent space and decode to pixels, which makes high-resolution generation affordable.
  • Generative vs predictive vs optimisation: generation creates samples; prediction estimates a value; optimisation allocates resources — three different problem types.

Why A is correct

A diffusion model's mechanism is literally described by A: start with a noisy signal, then iteratively apply the learned denoising steps until a clean, structured sample emerges. That is why it produces high-quality, coherent content — the model has learned the reverse of a noise process, so each step removes noise while preserving emerging structure. B, C and D describe data storage, forecasting and process/resource optimisation respectively; none of them produces a new artefact from noise, which is the defining operation of a diffusion model.

Why the others are wrong

  • B. Storage and management of structured data is a database/data-platform concern. A diffusion model generates; it does not persist or organise records.
  • C. Predicting future trends and patterns is analytic/forecasting work, the job of regression or time-series models — inference over existing data rather than creation of new data.
  • D. Optimising processes and resource allocation is a decision-science/OR task. It consumes data to choose an action; a diffusion model produces content, not decisions.

GAIL exam tip

Picture the two-arrow picture: forward = add noise (training), reverse = remove noise (generation). "From noise to structured output" is the phrase that identifies a diffusion model.

10An organization is collecting data to train a generative AI model for customer service. They want to ensure security throughout the ML lifecycle. What is a critical consideration at this stage?
  • Applying the latest software patches to the AI model on a regular basis.
  • Monitoring the AI model’s performance for unexpected outputs and potential errors.
  • Establishing ethical guidelines for AI model responses to ensure fairness and avoid harm.
  • Implementing access controls and protecting sensitive information within the training data.
Answer: D

The short version

D — Implement access controls and protect sensitive information inside the training data. At the data collection stage, the critical risk is who can reach the dataset and what secrets or personal data it contains.

Key concepts

  • ML lifecycle stages: data collection → preparation → model training → evaluation → deployment → monitoring; controls are matched to the stage they protect.
  • Sensitive data in the training set: personal data, credentials, customer records, copyrighted or licensed content that must be redacted, restricted or access-controlled before use.
  • Data poisoning: an attacker tampering with training data to implant backdoors or skew the model's behaviour — a collection-stage threat.
  • Access control: least-privilege restriction of who can read/write the dataset, the storage bucket and the derived artefacts, with audit logging of access.

Why D is correct

At this point in the lifecycle the organisation is ingesting raw data, so the dominant security questions are who can access that data and what sensitive content it holds. Applying least privilege, encryption and redaction to the collection and storage path prevents personal data leakage, protects credentials and proprietary material, and reduces the poisoning risk — all before a single model is trained. The other options belong to later stages: patching a deployed artifact, monitoring runtime outputs and setting behavioural ethics guidelines are post-deployment/deployment activities, none of which protects the data at rest in the collection phase.

Why the others are wrong

  • A. Patching a model assumes a built, running artifact. There is no model to patch during data collection, and software patching does not protect a dataset.
  • B. Monitoring output performance and errors is a post-deployment activity — you monitor a model once it is serving predictions, not while raw data is being gathered.
  • C. Ethical guidelines for responses concern fairness and harm in generated output. That is a governance/designed-behaviour concern evaluated once responses exist, and it does not secure the collection stage.

GAIL exam tip

Match the control to the stage: collection means protect the data (access control, redaction, poisoning defence); deployment means patch, monitor and govern outputs.

Want the full bank of 10 questions for Generative AI Leader? See all practice exams.