All Google Cloud exams

Free Generative AI Leader practice test: 30 questions with answers

30 original questions for Generative AI Leader, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
112 questions
Real exam
90 min

Generative AI Leader exam guide: topics, cost and format

All 30 Generative AI Leader questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Business strategies for a successful gen AI solution (8 questions)

  1. Question 1

    Which responsible AI principle is most directly concerned with ensuring model outputs and logs do not expose personal information?

    1. APrivacy and data protection for personal information
    2. BInterpretability, so each decision can be explained to a reviewer
    3. CLatency and throughput of the model endpoint under peak load
    4. DFairness, so that output quality is consistent across user groups
    Show answer and explanation
    Correct answer: A

    Privacy and data protection cover how personal data is collected, used, logged and exposed. Fairness concerns differential outcomes, interpretability concerns explaining decisions, and latency concerns performance, so none of them addresses personal data exposure directly.

  2. Question 2

    What is the main purpose of a safety filter on a generative AI endpoint?

    1. ATo shorten responses so they display well on mobile devices
    2. BTo compress the model weights so that they use less storage
    3. CTo speed up token generation for high-traffic endpoints
    4. DTo block or flag harmful or disallowed content
    Show answer and explanation
    Correct answer: D

    Safety filters screen inputs and outputs against policy categories and block or flag content that is harmful or disallowed. Response length, speed and weight compression are performance or formatting concerns and are not what a safety filter is for.

  3. Question 3

    What is prompt injection?

    1. AAdding extra data to a training set to speed up convergence during training
    2. BA tuning step that lowers the cost of each token in a request
    3. CA caching method that reuses earlier answers for prompts that look similar
    4. DMalicious text in user input or retrieved content that overrides rules
    Show answer and explanation
    Correct answer: D

    Prompt injection is an attack where untrusted text, typed by a user or hidden in a retrieved document, tries to change the instructions the model follows. Training speed, caching and token pricing are unrelated to that attack.

  4. Question 4

    A team wants to lower cost per answer without losing quality on simple questions. Which approach fits best?

    1. ARoute simple requests to a smaller model and reserve the large one
    2. BIncrease output length so that every answer is more complete
    3. CDisable grounding to save retrieval time on every request
    4. DUse the largest model for every request so that quality stays consistent
    Show answer and explanation
    Correct answer: A

    Routing by complexity sends easy requests to a cheaper model and keeps the costly model for work that needs it, which lowers average cost while protecting quality where it matters. Using the largest model everywhere raises cost, longer outputs add tokens, and disabling grounding can reduce accuracy.

  5. Question 5

    Which group is best placed to approve deploying a generative AI use case in a regulated business?

    1. AThe model vendor alone, since it trained the model
    2. BA cross-functional group with legal, risk and business owners
    3. CThe first developer who built a prototype of the use case
    4. DIndividual employees who choose their own tools for each task
    Show answer and explanation
    Correct answer: B

    A cross-functional group covers the legal, risk, data and business accountability that a regulated deployment needs, and it can set policies that apply across teams. A vendor, a single developer or individual staff cannot take that accountability for the business.

  6. Question 6

    Which data practice best supports a generative AI pilot?

    1. ACollect user feedback only after the pilot has been closed
    2. BSkip evaluation, because the pretrained model is already tested by its vendor
    3. CDefine an evaluation set of realistic questions and expected answers
    4. DUse the full production database without any review of its quality or privacy
    Show answer and explanation
    Correct answer: C

    A representative evaluation set, agreed before launch, lets the team measure quality and compare changes objectively. Using production data without review creates privacy and quality risks, a pretrained model still needs testing on your own tasks, and feedback gathered after closure cannot improve the pilot.

  7. Question 7

    Which TWO factors matter most when a leader prioritises generative AI use cases? (Choose two.)

    1. AHow many parameters the vendor advertises for its largest model
    2. BExpected business value and measurable outcomes for the use case
    3. CWhether the use case uses the newest model release on the day it ships
    4. DThe colour scheme used in the proposed user interface
    5. EData availability, risk level and ease of integration with existing systems
    Show answer and explanation
    Correct answer: B, E

    Expected value with measurable outcomes and the practicality of data, risk and integration decide which use cases are worth pursuing first. Advertised parameter counts, the newest release and interface colour are not reasons to prioritise a business use case.

  8. Question 8

    Which TWO controls are appropriate for a customer-facing generative AI assistant? (Choose two.)

    1. APublish every answer without review, so that customers get faster replies
    2. BLog no interactions at all, so that user data is never stored anywhere
    3. CA human escalation path for sensitive or high-risk questions
    4. DMonitoring and evaluation of answers for quality and harmful content
    5. EDisable all safety settings to reduce the number of false refusals
    Show answer and explanation
    Correct answer: C, D

    A route to a person for sensitive questions and continuous monitoring of answer quality and safety are standard controls for customer-facing assistants. Publishing without review, disabling safety settings and avoiding all logging each create a risk the business would have to carry.

Fundamentals of gen AI (8 questions)

  1. Question 9

    A model's answer about a company's refund policy is fluent and confident, but the policy it describes does not exist. Which term describes this failure?

    1. AOverfitting, where the model memorises its training examples
    2. BHallucination, where fluent output is factually wrong
    3. CTokenisation drift, where token counts change between model versions
    4. DLatent bias, where the model favours some topics over others
    Show answer and explanation
    Correct answer: B

    Hallucination is the term for fluent output that is presented as fact but is not supported by the data or the world. Overfitting describes a training problem rather than a confident invented answer, and tokenisation drift concerns how text is split, not whether it is true. Latent bias is about systematic skew, which is a different risk.

  2. Question 10

    A marketing team wants more varied, creative wording in generated taglines. Which model setting most directly increases this randomness?

    1. ATop-k set to 1, which keeps only the single most likely token at each step
    2. BStop sequences, which end generation when a chosen marker appears
    3. CTemperature, which controls how random the token sampling is
    4. DMaximum output tokens, which caps the length of each reply
    Show answer and explanation
    Correct answer: C

    Temperature controls how much the model's sampling favours less likely tokens, so raising it gives more varied output. Setting top-k to 1 makes output close to deterministic, and length caps and stop sequences do not change how varied the wording is.

  3. Question 11

    In the context of large language models, what is a token?

    1. AA single pixel of an image that is used as input for multimodal prompts
    2. BA signed key that authenticates each API call made to the model endpoint
    3. CA chunk of text, such as a word piece, that the model reads and writes
    4. DA fixed-length vector that stores the meaning of a whole document at once
    Show answer and explanation
    Correct answer: C

    Tokens are the units of text that a language model reads and produces, and they are what usage and context limits are measured in. A signed key is a credential, a pixel belongs to image input, and a document-level vector is an embedding rather than a token.

  4. Question 12

    Which statement best distinguishes a foundation model from a traditional machine learning model built for one task?

    1. AIt is trained only on labelled data for one narrow task and nothing else
    2. BIt cannot generate new content and is limited to classifying existing content
    3. CIt must be rebuilt from scratch for every department that wants to use it
    4. DIt is pretrained on broad data and can be adapted to many downstream tasks
    Show answer and explanation
    Correct answer: D

    Foundation models are trained on large, broad datasets and then adapted through prompting, tuning or grounding to many tasks. Traditional models are typically trained for one narrow task on labelled data, and foundation models can generate content as well as classify it.

  5. Question 13

    Which TWO statements about large language models are true? (Choose two.)

    1. AThey predict the next token given the tokens that come before it
    2. BThey always return the same answer for the same prompt, whatever the settings
    3. CThey store and recall every training document word for word on request
    4. DTheir output can vary between runs, depending on the sampling settings used
    5. EThey cannot be used for summarisation because they only generate new text
    Show answer and explanation
    Correct answer: A, D

    Language models generate text by predicting the next token, and sampling settings such as temperature mean that the same prompt can produce different outputs. Models do not reliably store documents verbatim, and summarisation is a standard use of generation.

  6. Question 14

    A business leader asks why a customer chatbot gave a confident wrong answer about current shipping rules. Which first mitigation is most appropriate?

    1. AGround the responses on the approved shipping documents through retrieval
    2. BRemove the policy documents so that the model cannot confuse itself with them
    3. CTrain a new model from scratch on public internet text this quarter
    4. DIncrease the temperature so that the model tries more answers before replying
    Show answer and explanation
    Correct answer: A

    Grounding ties answers to approved, current documents retrieved at query time, which addresses the wrong answer directly and keeps the answer current. Raising temperature makes errors more likely, removing the documents leaves the model with less to go on, and retraining from scratch is slow and costly for a documentation problem.

  7. Question 15

    Which statement best describes a context window?

    1. AThe number of users who can share one model endpoint at the same time
    2. BThe approved list of topics that the model is allowed to discuss
    3. CThe time the model takes to return a response to a single prompt
    4. DThe most text, in tokens, that the model can consider in one request
    Show answer and explanation
    Correct answer: D

    The context window is the total number of tokens the model can take into account for one request, including the prompt and any retrieved material. User counts, response time and allowed topics are different things that a team might configure or measure.

  8. Question 16

    What does it mean for a generative model to be multimodal?

    1. AIt runs on several cloud providers at once for redundancy
    2. BIt answers from several databases at once with no connectors needed
    3. CIt stores several versions of every answer for later comparison
    4. DIt can process more than one type of input, such as text and images
    Show answer and explanation
    Correct answer: D

    A multimodal model accepts more than one kind of input, such as text, images, audio or video, within the same model. The other options describe deployment or data-access patterns rather than the model's input types.

Techniques to improve gen AI model output (7 questions)

  1. Question 17

    Which statement about prompt design is most accurate?

    1. ALonger prompts always improve accuracy, so the prompt length should be maximised
    2. BPrompts must be written in English for the model to respond correctly at all
    3. CClear instructions, context and an example often improve output quality
    4. DPrompts cannot influence the output once a model is deployed to production
    Show answer and explanation
    Correct answer: C

    Clear instructions, relevant context and a worked example usually make outputs more accurate and better formatted. Length alone does not help, and many models handle several languages. Prompts remain one of the main levers after deployment.

  2. Question 18

    Which technique adds worked examples to the prompt so that the model follows a required format?

    1. ABatch scoring, which runs the model over a file of prompts overnight
    2. BFew-shot prompting, which gives examples in the prompt to guide the format
    3. CHyperparameter sweeping, which searches training settings for the best model
    4. DGradient clipping, which limits the size of weight updates during training
    Show answer and explanation
    Correct answer: B

    Few-shot prompting places a small number of examples in the prompt so the model imitates their structure and style, without any retraining. Batch scoring is an execution pattern, and sweeps and gradient clipping are training-time techniques.

  3. Question 19

    A retailer wants the model to answer questions about its latest product catalogue without retraining. Which approach fits best?

    1. ALower the temperature so that the model repeats older answers
    2. BRetrieval-augmented generation that fetches catalogue data at query time
    3. CUse a smaller model with no added context at query time
    4. DRetrain the whole model from scratch every week on the full catalogue data set
    Show answer and explanation
    Correct answer: B

    Retrieval-augmented generation fetches the current catalogue at query time and supplies it to the model, so answers stay current without retraining. Weekly retraining is expensive and still lags behind changes, lowering temperature does not add knowledge, and a smaller model with no context cannot know the catalogue.

  4. Question 20

    Which statement about reducing hallucinations is accurate?

    1. AGrounding and human review reduce hallucinations but do not eliminate them
    2. BHallucinations occur only with open-source models and not with managed ones
    3. CGrounding eliminates all hallucinations once it is switched on
    4. DSetting the temperature to its maximum value reduces hallucinations in answers
    Show answer and explanation
    Correct answer: A

    Grounding and human review lower the rate of hallucinations, but no single control removes them completely, so high-stakes outputs still need checks. Hallucinations occur in managed and open models alike, and raising temperature tends to increase them.

  5. Question 21

    Which measure best tells you whether a generated summary is faithful to its source document?

    1. AThe number of words in the summary compared with the length of the source
    2. BThe time to first token in the streamed reply
    3. CGroundedness, checked against the source document
    4. DA count of unique adjectives used in the summary
    Show answer and explanation
    Correct answer: C

    Groundedness checks whether each claim in the summary is supported by the source, which is what faithfulness means. Word count, latency and vocabulary counts say nothing about whether the content is accurate.

  6. Question 22

    What is a system prompt?

    1. AA password that unlocks the model endpoint for a user group
    2. BInstructions that set the model's role, tone and rules
    3. CThe first message a user sends to start a conversation
    4. DA log of every training dataset used to build the model
    Show answer and explanation
    Correct answer: B

    A system prompt sets standing instructions such as the assistant's role, tone, scope and constraints, and it applies across the conversation. Credentials, the user's first message and training logs are different things.

  7. Question 23

    Which THREE techniques can improve the quality of model output? (Choose three.)

    1. AProviding relevant examples in the prompt to show the expected answer
    2. BRaising the temperature to its maximum for factual question answering
    3. CGrounding answers in trusted, current documents retrieved at query time
    4. DRemoving all instructions so that the model decides the format itself
    5. ESpecifying the required output format and constraints explicitly in the prompt
    Show answer and explanation
    Correct answer: A, C, E

    Relevant examples, grounding in trusted documents and explicit format constraints all steer the model toward accurate, well-formed output. Maximum temperature makes factual answers less reliable, and removing instructions leaves formatting and scope to chance.

Google Cloud's gen AI offerings (7 questions)

  1. Question 24

    Which metric best describes the usage cost of an LLM call on a pay-per-use service?

    1. AInput and output tokens processed by each request
    2. BThe total storage size of the model file in the cloud bucket
    3. CThe number of pages in the source document uploaded to the chat
    4. DThe number of employees who use the assistant in a given month
    Show answer and explanation
    Correct answer: A

    Pay-per-use LLM services generally bill for the tokens sent in and generated out by each request, so token volume is the cost driver to track. User counts, page counts and model file size may affect other things but are not what is billed per call.

  2. Question 25

    Which TWO are Google Cloud capabilities for building generative AI solutions? (Choose two.)

    1. ACloud Storage lifecycle policies that move objects to colder classes
    2. BVertex AI for accessing, tuning and managing foundation models
    3. CModel Garden for choosing among available foundation models
    4. DCloud Armor rules that filter web traffic to an application
    5. EBigQuery slot reservations that reserve analytics capacity
    Show answer and explanation
    Correct answer: B, C

    Vertex AI provides access to and management of foundation models, and Model Garden helps teams choose and deploy models from its catalogue. Lifecycle policies, Cloud Armor and slot reservations are real Google Cloud features, but they do not build generative AI solutions.

  3. Question 26

    Which Google offering lets employees use Gemini for assistance inside the email, documents and spreadsheets they already work in?

    1. AVertex AI Model Garden, which hosts models for custom application builds by engineers
    2. BCloud Vision API, which labels the images that are uploaded to Cloud Storage buckets
    3. CBigQuery ML, which trains models with SQL on tables stored in the warehouse
    4. DGemini for Google Workspace, which adds assistance inside Gmail, Docs and Sheets
    Show answer and explanation
    Correct answer: D

    Gemini for Google Workspace brings generative assistance into the productivity apps staff already use, with the organisation's data protections applied. Model Garden and BigQuery ML serve builders rather than end-user productivity, and the Vision API analyses images for labels rather than assisting with documents.

  4. Question 27

    A company wants a customer-facing search and chat experience grounded on its own documents, with as little custom infrastructure as possible. Which service fits best?

    1. AVertex AI Agent Builder, which provides managed search and agents
    2. BCloud Storage, which keeps the source documents as objects in managed buckets
    3. CCloud Functions, which runs event-driven code without the team managing any servers
    4. DCompute Engine GPUs, which the team would configure, patch and manage itself
    Show answer and explanation
    Correct answer: A

    Vertex AI Agent Builder provides managed components for search, grounding and conversational agents over enterprise content, which reduces the custom work. Functions and storage are building blocks rather than a finished search and chat experience, and raw GPUs leave the team to build everything itself.

  5. Question 28

    A research analyst wants to upload a set of reports and ask questions that are answered only from those files. Which Google tool is designed for this?

    1. ALooker Studio, which builds dashboards from connected data sources
    2. BNotebookLM, which answers only from sources the user uploads
    3. CGoogle Ads, which manages paid search campaigns and their bids
    4. DGoogle Trends, which compares search interest for terms over time
    Show answer and explanation
    Correct answer: B

    NotebookLM is designed around the user's own sources, so answers come from the uploaded material and can be traced back to it. Google Trends, Ads and Looker Studio do not answer questions from a user's own document set.

  6. Question 29

    A developer wants to try prompts against Gemini models quickly and obtain an API key for early prototyping. Which tool is the best starting point?

    1. ALooker, which models business metrics for governed dashboards and reports
    2. BGoogle AI Studio, which prototypes prompts and issues API keys
    3. CCloud Logging, which stores application logs for later analysis and alerting
    4. DCloud Run, which hosts containerised services that scale down to zero when idle
    Show answer and explanation
    Correct answer: B

    Google AI Studio is the quickest route to test prompts against Gemini and obtain an API key for prototyping, before a team moves the work onto a production platform. Logging, Looker and Cloud Run are useful in other stages of a system but do not provide that prototyping surface.

  7. Question 30

    Which TWO are useful benefits of Gemini for Google Workspace for everyday employee work? (Choose two.)

    1. ADrafting and summarising content inside the tools that staff already use
    2. BReplacing the need for any review of documents before they are shared
    3. CChanging the Workspace billing plan automatically when usage goes up
    4. DStoring employee passwords so that they can be used in other applications
    5. ESummarising long email threads and helping prepare meeting notes
    Show answer and explanation
    Correct answer: A, E

    Drafting and summarising inside existing tools saves time without leaving the workflow, and summarising long threads and meeting notes is a common everyday use. Assistance does not remove the need for human review, billing is an administrator decision, and storing passwords is not a Workspace AI feature.