Think first What should drive your choice of model, agent framework and memory setup when you build an agent in code?
Why it matters: Questions describe an agent's needs and ask which model option, build path, or session and memory setting fits them.
A coded agent rests on three layers. You pick and serve a model from Model Garden, build the agent logic with ADK, and give it context. Sessions hold one conversation, while memories carry user facts across sessions.
Reported, thanks
Step 2 of 11
Term
Meaning
Model Garden
Platform to discover, test, customize and deploy Google proprietary models and select open-source models.
Model as a Service (MaaS)
Serverless, managed API for using open and partner models without managing infrastructure.
Agent Development Kit (ADK)
Framework for building complex agents in custom code, with fine-grained control over logic and tools.
Session
The ordered messages and actions (events) of one ongoing interaction between a user and the agent.
Memory Bank
Store of user memories that agents read and write; it evolves with the context the agent provides.
Reported, thanks
Step 3 of 11
Model Garden is where you discover, test and deploy models. It offers more than 200 foundation models from Google, partners and the open-source community. Partner models include Anthropic Claude, Grok and Mistral AI. Gemma 3 is an open model with text and image input and a 128K context window. Gemini 3.1 Flash-Lite is the most cost-efficient model, built for low-latency, high-volume, cost-sensitive traffic. Pay-as-you-go use comes in 3 options: Flex, Priority and Standard.
Reported, thanks
Step 4 of 11
MaaS removes infrastructure work; self-deployment fits custom models. Partner models used as MaaS are serverless, yet requests still go to Gemini Enterprise Agent Platform endpoints. Self-deployment is also cost-effective for production apps with predictable, high-volume traffic.
MaaS and self-deployment compared
Feature
MaaS
Self-deployment
How the model runs
Serverless, behind a managed API
Deployed by you from Model Garden
Best fit
Partner and open models with no infrastructure to manage
Apps that need custom weights or a fine-tuned version
Exam trap Self-deployment is not only for custom models. For production apps with predictable, high-volume traffic, it is also a cost-effective option.
Reported, thanks
Step 5 of 11
Quantization and distillation both yield smaller, more efficient models. Pick quantization when you want lower inference latency and power use. Pick distillation when a large model must serve devices with limited resources.
Quantization and distillation compared
Feature
Quantization
Distillation
How it works
Lowers the numeric precision of model parameters
Trains a small student model to mimic a larger teacher
Main benefit
Smaller model, less power, lower inference latency
More efficient models for devices with limited resources
Reported, thanks
Step 6 of 11
Organization policies limit which models and endpoints teams use. A Model Garden policy at organization, folder or project level can allow only vetted models and deny all others. The constraint constraints/gcp.restrictEndpointUsage blocks the global endpoint to enforce regional ones. Use a regional endpoint for data residency needs. Prompts and responses for partner models are not shared with third parties.
Exam trap Hugging Face models flagged as suspicious are not blocked. Only models flagged as unsafe are blocked; suspicious ones are marked but can still be deployed.
Reported, thanks
Step 7 of 11
ADK is the custom-code path for multi-agent systems. It gives fine-grained control over logic, tools and environment simulation. You use it to build, test and deploy a prototype agent to a Google Cloud runtime. Agent Runtime is a fully managed place to host, deploy and scale agents built with ADK or other tools.
Exam trap You do not have to build session handling yourself. Once an ADK agent is deployed to Gemini Enterprise Agent Platform, session management is automatic.
Reported, thanks
Step 8 of 11
A session covers one conversation; memory spans many sessions. Every session needs a user ID, and memories extracted from it map to that user. Sessions are also the input from which long-term memories are generated.
Three places an agent keeps context
Feature
Session
State
Memory
What it holds
Messages and actions (events) in order
Temporary data
Personalized information about a user
How long it matters
One ongoing interaction
Only the current conversation
Across multiple sessions
Reported, thanks
Step 9 of 11
Memory Bank evolves with agent context, unlike RAG's static store. It keeps only extracted facts that match at least one of the instance's memory topics. By default, it generates memories with gemini-3.5-flash, in the first person. You can switch to third person, or set a TTL so stale memories are deleted automatically. Region and encryption settings are fixed once the instance exists.
Exam trap Memories do not expire on their own by default. Memory Bank sets no TTL on created or updated memories unless you configure one.
Reported, thanks
Step 10 of 11
ADK agents read and write Memory Bank with built-in tools. The VertexAiMemoryBankService handles these calls, and ADK can orchestrate fetches automatically. Use CreateMemory when the agent needs more control over which facts are saved. Each memory has a scope, set when the memory is generated or created and fixed after that. A retrieval request names a scope too. RetrieveMemories looks memories up by that scope; ListMemories skips scope filtering and is not recommended for low-latency retrieval. Agents on Agent Runtime already have permission to read, write and generate memories.
Exam trap RetrieveMemories does not return partial scope matches. It returns only memories with exactly the same scope as the request, in any key order.
Reported, thanks
Step 11 of 11
Use MaaS for open and partner models without infrastructure work; self-deploy for custom weights or fine-tuned versions.
A session holds one conversation, while memory follows one user across many sessions.
ADK agents deployed to Gemini Enterprise Agent Platform get session management automatically.
Memory Bank sets no TTL by default, so add one if stale memories should be deleted automatically.
Think first How would you ground an agent in enterprise data while keeping its access to tools and credentials tightly controlled?
Why it matters: Questions describe a retrieval or tool-access need and ask which search setup, permission control or toolset fits it.
Grounding an agent in enterprise knowledge has two sides. Retrieval finds the right content, using embeddings, filters and reranking in Vector Search. Access control decides what the agent may reach, using a sandbox, least-privilege credentials and Agent Registry policies.
Reported, thanks
Step 2 of 11
Term
Meaning
Embedding
A vector representation of text, used for semantic search, classification and clustering.
Hybrid search
Search that uses dense and sparse embeddings together, weighted as you specify.
Restrict
A feature, also called filtering, that limits a search to part of the index with Boolean rules.
Agents API
The control plane that creates agents and configures their environments, data mounts and network allowlists.
Agent Registry
A unified catalog of Model Context Protocol (MCP) servers, tools, skills and AI agents across an organization.
Reported, thanks
Step 3 of 11
Embeddings turn text into vectors that Vector Search can compare. The Embeddings for Text model produces vectors for semantic search, classification and clustering. For standard text-to-text or text-to-image matching, a ready-to-use model needs no training or tuning. Vector Search itself is built on the ScaNN algorithm.
Exam trap Do not plan a training or tuning job for plain text-to-text or text-to-image matching. A ready-to-use model already covers that standard case.
Reported, thanks
Step 4 of 11
Vector Search supports dense, sparse and hybrid search. Pick by what must match. Dense embeddings find results by meaning, while sparse embeddings suit keyword searches. Hybrid search uses both types, weighted the way you choose.
The three Vector Search modes compared
Feature
Dense
Sparse
Hybrid
Captures
Semantic meaning of text
Text syntax
Both, through two embedding types
Array values
Mostly non-zero
Very few non-zero
Uses both kinds of embeddings
Typical use
Results by semantic similarity
Keyword searches
Blending both, by weights you set
Exam trap Hybrid search is not a switch between dense and sparse. It uses both embedding types, weighted as you specify.
Reported, thanks
Step 5 of 11
Restrict narrows the index; the ranking API reorders results. Restrict applies Boolean rules so a query searches only a subset of the index. The ranking API then reranks documents by relevance to the query, using a pre-trained language model. Recall measures index quality: the share of returned neighbors that are true nearest neighbors.
Exam trap Reranking does not shrink what gets searched. Restrict limits the index with Boolean rules; the ranking API only reorders and scores the documents returned.
Reported, thanks
Step 6 of 11
A public endpoint needs no network setup. Choose it when fast setup and easy maintenance matter more than the lowest latency. Public networks have slightly higher latency than private endpoints.
Reported, thanks
Step 7 of 11
A managed agent starts with no outside access at all. By default, each agent works in a sandbox without external systems, networks or credentials. You must configure any connectivity beyond it explicitly. The Agents API does this by mounting outside data, such as Cloud Storage, and defining network allowlists. With network access enabled, the agent can reach external APIs, clone public repositories and download packages. At runtime, you talk to deployed agents through the Interactions API, the data plane.
Reported, thanks
Step 8 of 11
An agent may use any credential it can access. That is why every credential should be least privilege. Create service accounts or API keys with only the permissions the agent needs, and avoid broad or admin access. Prefer short-lived, expiring tokens over long-lived API keys. Configure tools with minimum permissions, using read-only mode unless write access is necessary.
Exam trap Do not assume an agent uses only the credentials its task seems to need. It may use any credential it has access to.
Reported, thanks
Step 9 of 11
Agent access policies apply to resources in Agent Registry. Register MCP servers, tools, skills, agents and endpoints to govern centrally what agents can connect to. IAM allow policies then control agent communication with registered resources. Agent Gateway enforces these policies through Identity-Aware Proxy.
Example: An IAM policy binding that grants agent principals egress access to registered resources.
roles/iap.egressor: the role that grants agent egress access
Exam trap A policy cannot be bound to a resource that is not registered. Register the resource in Agent Registry first, or the binding fails with NOT_FOUND.
Reported, thanks
Step 10 of 11
Toolsets come from MCP servers, OpenAPI schemas or Integration Connectors. The Agents API connects external tools and APIs, such as MCP servers, to extend a managed agent. When you build tools in CX Agent Studio, each toolset type generates its tools differently.
CX Agent Studio toolset types compared
Feature
MCP toolset
OpenAPI toolset
Connector toolset
Tools come from
The list an MCP server offers
An OpenAPI schema
An Integration Connectors connection
Key rule
Server must use Streamable HTTP transport
An unnamed tool takes its operationId as its name
Admin auth by default; end-user auth can override it
Exam trap An MCP server on another transport will not work. CX Agent Studio MCP tools support only servers that use Streamable HTTP.
Reported, thanks
Step 11 of 11
Dense embeddings match meaning, sparse embeddings match keywords, and hybrid search weights both.
Restrict filters the index with Boolean rules; the ranking API reorders results by relevance.
Agents start sandboxed, so every outside connection must be configured explicitly.
Give agents least-privilege, short-lived credentials and read-only tools where possible.
Agent access policies bind only to resources registered in Agent Registry.
Think first How would you connect, hand off between, and govern several cooperating agents on Google Cloud?
Why it matters: Questions describe a multi-agent design and ask which protocol, handoff model, or governance service fits it.
Agents rely on two open protocols: MCP connects them to external systems, and A2A lets them coordinate with other agents. On Google Cloud, each deployed agent gets an Agent Identity and a place in Agent Registry. Agent Gateway then enforces policies on its calls.
Reported, thanks
Step 2 of 11
Term
Meaning
Model Context Protocol (MCP)
An open standard that connects AI applications to external systems.
Agent2Agent (A2A)
An open messaging standard that lets autonomous agents talk and coordinate tasks across separate systems.
Agent Identity
A unique, SPIFFE-formatted ID for one agent, used in place of shared service accounts.
Agent Registry
One catalog to store, discover, and manage MCP servers, tools, skills, and agents across an organization.
Agent Gateway
The runtime checkpoint that intercepts an agent's calls to tools or other agents to enforce access policies.
Reported, thanks
Step 3 of 11
MCP links agents to systems; A2A links agents to agents. Both are open standards. MCP connects an AI application to external systems. A2A lets autonomous agents exchange messages and share tasks across systems that differ.
MCP and A2A compared
Feature
MCP
A2A
Connects
An AI application to external systems
Autonomous agents to each other across systems
Session state
Stateless starting with version 2026-07-28
Remote third-party sessions are stateless by default
Wire options
HTTP endpoint (remote server) or stdio (local server)
JSONRPC, GRPC, or HTTP+JSON bindings
Reported, thanks
Step 4 of 11
Remote MCP servers offer an HTTP endpoint; local ones use stdio. A local server usually runs on your own machine and talks over standard input and output. A remote server runs on the provider's infrastructure. Under stateless MCP, every request carries what it needs in HTTP headers or the _meta parameter. CX Agent Studio accepts only StreamableHttpTransport servers, not SSE ones.
Exam trap Do not plan an initialize handshake or an Mcp-Session-Id for stateless MCP. Each request already holds all the information the server needs.
Reported, thanks
Step 5 of 11
An AgentCard is the manifest an agent uses to describe itself. It lists the agent's identity, capabilities, skills, supported ways to communicate, and security requirements. When a task reaches TASK_STATE_INPUT_REQUIRED, it is interrupted until the user supplies more input.
Exam trap Sending embeddings or raw audio to a remote agent over A2A is wrong. Neither one crosses the A2A network interface.
Reported, thanks
Step 6 of 11
Delegation keeps control with the primary agent; pass-through hands it off. Choose delegation when the primary agent should stay in charge and sum up the answer. Choose pass-through, a Preview feature, when the remote agent should take over the conversation.
The two A2A handoff models
Feature
Delegation
Pass-through
Session control
Stays with the primary agent
Moves to the remote A2A agent
Remote agent's role
Called by the primary agent as a tool
Its replies go back to the user as they are
Handling the result
Primary agent summarizes it
No intermediate model call
Exam trap Pass-through does not summarize the remote agent's reply. The primary application returns it without any intermediate model call.
Reported, thanks
Step 7 of 11
Agent as a tool stays inside one app; an A2A Protocol tool reaches out. An A2A Protocol tool calls external agents, remote services, or third-party platforms. A RemoteA2aConfig names the remote agent with an inline agentCard or an agentRegistry reference, never both. You can also list a RemoteA2aAgent under a parent's childAgents and hand off with a PARENT_TO_CHILD transfer rule. When several rules match, the first wins.
Reported, thanks
Step 8 of 11
Agent Runtime deploys agents from many languages and frameworks. It also supports the A2A protocol; an A2A agent lists google-adk[a2a] in its requirements. ADK is the custom-code path for complex multi-agent orchestration. LangGraph models a workflow as a graph, with human-in-the-loop and rewind or replay. Agents CLI offers ReAct, RAG, and multi-agent templates.
Reported, thanks
Step 9 of 11
Deployed agents carry a unique identity and join Agent Registry automatically. Agent Identity is a SPIFFE-formatted ID that is more granular than a shared service account. It follows the agent resource ID, not the framework you built with. Agents deployed to Agent Platform are registered without extra steps.
Exam trap Patching an already deployed agent to add identity_type or agent_gateway_config does not work. Both fields cannot change after deployment, so you must redeploy the agent.
Reported, thanks
Step 10 of 11
Agent Gateway intercepts agent calls to enforce access policies. It enforces IAM allow policies through Identity-Aware Proxy (IAP). Egress policies cover four interactions: agent to registry, agent to agent, agent to MCP server, and agent to endpoint. Conditions can limit destructive actions, like deleting resources, or close off open-world tools, like web search. Begin in dry-run mode.
Exam trap A policy cannot be bound to a resource missing from Agent Registry. The binding fails right away with NOT_FOUND, not later at runtime.
Reported, thanks
Step 11 of 11
MCP connects AI applications to external systems, while A2A lets agents coordinate across systems.
In delegation the primary agent keeps control; in pass-through the remote A2A agent takes over.
An AgentCard lists an agent's identity, skills, communication methods, and security requirements.
Agent Gateway intercepts agent calls to enforce policies, and policies bind only to registered resources.
Agent Identity is a unique SPIFFE ID tied to the agent resource, not to its framework.
Each topic's Check tested it on its own; this mixes them.
Mixed quiz
Take the Domain 3 quiz
20 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.
Free to start: the study notes and plan, quizzes, flashcards and the first mock exam, no card needed. A free account keeps your place and saves your quiz scores.