Skip to content

Generative AI Leader · Domain 2: Google Cloud's gen AI offerings · 35% of the exam

Task 2.5: Define the purpose and types of tooling for gen AI agents.

How agents act through tools such as extensions, functions, data stores and plugins, which Google Cloud services and pre-built AI APIs serve as tools, and when to use Agent Studio or Google AI Studio.

Study it

  • How agents use tools: extensions, functions, data stores and plugins

    Partly covered by: Agents and Tools, The Tool-Use Loop

  • Pre-built AI APIs and Google Cloud services as agent tools

    Lesson coming

  • Google AI Studio or Agent Studio

    Lesson coming

Sample questions

Try each one before opening the answer. Every option is explained, with the Google Cloud documentation page that proves it.

Question 1 · choose 1

A retailer's agent must tell customers the status of their orders, which only the company's order API knows. With function calling on Agent Platform, what happens when a customer asks "Where is my order?"

  1. AThe model connects to the order API over the internet on its own
  2. BThe model names the function and arguments; the app calls the API
  3. CThe model looks up the order in data it memorized during tuning
  4. DThe model retrieves similar past orders from a vector database instead
Show the answer and why
  • AThe model connects to the order API over the internet on its own

    Incorrect

    The model only proposes the call; your application decides whether to make it and makes it.

  • BThe model names the function and arguments; the app calls the API

    Correct

    With function calling, the model does not execute anything itself: it returns a structured request naming the function and its arguments, the application calls the order API, and the result is passed back to the model for the answer.

  • CThe model looks up the order in data it memorized during tuning

    Incorrect

    The model has no record of this customer's order; only the order API knows its current status.

  • DThe model retrieves similar past orders from a vector database instead

    Incorrect

    Similarity search finds related passages; the customer needs the exact live status of one order.

Tools such as functions let an agent reach live systems, but the model only asks; the application acts.

Question 2 · choose 1

An accounts-payable agent must pull the supplier name, invoice number, due date and line items out of scanned invoices and store them as structured fields. Which pre-built Google Cloud API should it use as a tool?

  1. ADocument AI
  2. BCloud Vision API
  3. CCloud Natural Language API
  4. DCloud Translation API
Show the answer and why
  • ADocument AI

    Correct

    Document AI turns unstructured documents into structured data: it digitizes with OCR, extracts fields and key-value pairs, and has pretrained parsers for documents such as invoices.

  • BCloud Vision API

    Incorrect

    The Vision API analyzes images in general; it does not map an invoice's contents to named fields such as due date and line items.

  • CCloud Natural Language API

    Incorrect

    The Natural Language API analyzes text that is already digital; it does not read scanned documents or their layout.

  • DCloud Translation API

    Incorrect

    The Translation API translates text between languages; it does not extract fields.

For document field extraction, Document AI is the purpose-built tool; the other APIs cover images, text analysis and translation.

Question 3 · choose 1

A legal agent must translate signed contracts from German to English as DOCX and PDF files, keeping the original layout, tables and formatting. Which capability should it call?

  1. AText translation in Cloud Translation Basic
  2. BThe Cloud Text-to-Speech API with a German-language voice
  3. CDocument translation in Cloud Translation Advanced
  4. DDocument AI form parsing of each contract
Show the answer and why
  • AText translation in Cloud Translation Basic

    Incorrect

    Basic translates text strings; the agent would have to extract the text and lose the layout it must keep.

  • BThe Cloud Text-to-Speech API with a German-language voice

    Incorrect

    Text-to-Speech turns text into spoken audio; it does not translate documents.

  • CDocument translation in Cloud Translation Advanced

    Correct

    Cloud Translation Advanced can translate whole documents in formats such as DOCX and PDF while preserving their original formatting and layout.

  • DDocument AI form parsing of each contract

    Incorrect

    Document AI does not translate documents.

When the format must survive translation, use document translation rather than plain text translation.

Question 4 · choose 1

An independent developer wants to try Gemini prompts and a quick prototype this afternoon, signing in with a Google Account and using an API key, at no cost where possible. Which tool fits?

  1. AAgent Studio on Gemini Enterprise Agent Platform
  2. BGemini Enterprise
  3. CGoogle AI Studio
  4. DCX Agent Studio
Show the answer and why
  • AAgent Studio on Gemini Enterprise Agent Platform

    Incorrect

    Agent Studio needs a Google Cloud account with billing, which is more setup than this afternoon's personal prototype calls for.

  • BGemini Enterprise

    Incorrect

    Gemini Enterprise is a licensed work assistant for organizations, not a developer playground for prototyping with the API.

  • CGoogle AI Studio

    Correct

    Google AI Studio is the fastest way to start building with the Gemini API: you sign up with a Google Account, authenticate with an API key, and no-cost usage is available where applicable.

  • DCX Agent Studio

    Incorrect

    CX Agent Studio is not a general place to experiment with Gemini prompts.

Google AI Studio is the quickest way to start experimenting with the Gemini API.

Question 5 · choose 1

A field-service agent should accept spoken problem reports from technicians and work with them as text. Which pre-built Google Cloud API turns the audio into text for the agent?

  1. ACloud Text-to-Speech
  2. BCloud Translation
  3. CCloud Natural Language
  4. DCloud Speech-to-Text
Show the answer and why
  • ACloud Text-to-Speech

    Incorrect

    Text-to-Speech goes the other way, turning text into natural-sounding audio.

  • BCloud Translation

    Incorrect

    Translation converts text between languages; it does not transcribe audio.

  • CCloud Natural Language

    Incorrect

    Natural Language analyzes text for sentiment and entities; it needs the text first.

  • DCloud Speech-to-Text

    Correct

    Speech-to-Text converts audio into a text transcription, including streaming and long audio, which the agent can then process.

Voice in is Speech-to-Text; voice out is Text-to-Speech.

Question 6 · choose 1

An agent needs a small tool that, when called, creates a refund record in the company's system. The developers want a lightweight, single-purpose piece of code with no servers to manage. Where should they host it?

  1. AA Compute Engine VM the team patches
  2. BCloud Run functions
  3. CA Gemini Notebook Enterprise notebook
  4. DAn Agent Search data store
Show the answer and why
  • AA Compute Engine VM the team patches

    Incorrect

    A VM works, but the team would manage the server, which it wants to avoid for a small function.

  • BCloud Run functions

    Correct

    Cloud Run functions is a lightweight compute option for single-purpose, stand-alone functions that respond to events or HTTP calls without managing a server or runtime.

  • CA Gemini Notebook Enterprise notebook

    Incorrect

    Notebooks are for research over documents; they do not host code that an agent can call.

  • DAn Agent Search data store

    Incorrect

    A data store gives an agent information to read; it cannot create a refund record.

Functions are a natural home for small tools: the agent calls them, and the platform handles the servers.

Question 7 · choose 1

A travel agent receives photos from users and must identify famous landmarks in them and read any text on signs, as inputs to its answer. Which pre-built Google Cloud API fits as a tool?

  1. ADocument AI
  2. BCloud Vision API
  3. CCloud Speech-to-Text
  4. DCloud Natural Language
Show the answer and why
  • ADocument AI

    Incorrect

    Document AI extracts structured fields from documents such as forms and invoices, not landmarks from travel photos.

  • BCloud Vision API

    Correct

    The Vision API offers image labeling, face and landmark detection, and optical character recognition, which covers landmarks and sign text.

  • CCloud Speech-to-Text

    Incorrect

    Speech-to-Text transcribes audio; the inputs here are photos.

  • DCloud Natural Language

    Incorrect

    Natural Language analyzes text that already exists; it cannot read images.

For general image understanding tasks such as landmarks and OCR, the Vision API is the pre-built option.

Question 8 · choose 1

An agent must answer questions from a library of product manuals. Which kind of agent tooling gives it access to that information?

  1. AA data store
  2. BA function
  3. CA Code Execution sandbox
  4. DA safety filter
Show the answer and why
  • AA data store

    Correct

    Data stores give an agent access to information, such as indexed documents, that it can retrieve when answering.

  • BA function

    Incorrect

    Functions define specific actions the agent can take, such as calling an order API; reading a document library is the job of a data store.

  • CA Code Execution sandbox

    Incorrect

    Code Execution lets an agent run generated code in an isolated sandbox, for tasks such as calculations; it does not hold the manuals.

  • DA safety filter

    Incorrect

    Safety filters block harmful content; they do not give the agent any knowledge.

Match the tool to the need: functions take actions, data stores provide information, and sandboxes run code.

Question 9 · choose 1

A social-listening agent must score the sentiment of thousands of short posts and pull out the brand and product names mentioned, using a pre-built API rather than a custom model. Which API fits?

  1. ACloud Translation API
  2. BCloud Vision API
  3. CCloud Natural Language API
  4. DCloud Text-to-Speech API
Show the answer and why
  • ACloud Translation API

    Incorrect

    Translation converts text between languages; it does not score sentiment.

  • BCloud Vision API

    Incorrect

    The Vision API analyzes images; these posts are text.

  • CCloud Natural Language API

    Correct

    The Natural Language API provides sentiment analysis, entity analysis, entity sentiment and content classification for text.

  • DCloud Text-to-Speech API

    Incorrect

    Text-to-Speech produces audio from text; it does not analyze meaning.

Pre-built APIs give agents ready-made skills: sentiment and entities come from the Natural Language API.

Practise domain 2 →Practise all domains →