Cloud / Gemini Enterprise Agent Platform Interview questions
Last updated
1. What is Gemini Enterprise Agent Platform?
Gemini Enterprise Agent Platform is Google Cloud's platform for building, scaling, governing and optimizing AI agents. Google announced it on April 22, 2026 at Cloud Next '26 as the evolution of Vertex AI.
It keeps what Vertex AI customers already relied on (model selection, model building and agent building) and adds new capabilities for agent integration, DevOps, orchestration and security. Vertex AI services and roadmap items are now delivered through Agent Platform instead of as a standalone service.
Teams can build with low-code Agent Studio or code-first ADK, run agents on Agent Runtime, and control them with identity, registry, gateway and evaluation tools. Agents built here can also be surfaced in the Gemini Enterprise app.
Take quiz
April 22, 2026, as a separate product unrelated to Vertex AI
April 22, 2026, as the evolution of Vertex AI
March 2025, as a replacement for Dialogflow
May 2021, as the first release of AutoML
Through a separate Vertex AI roadmap that ignores Agent Platform
Only inside the Gemini Enterprise app
Only through Google Workspace admin tools
Through Agent Platform rather than as a standalone service
2. What are the four pillars of Gemini Enterprise Agent Platform?
The platform is organized around four pillars: Build, Scale, Govern and Optimize. Each pillar covers one stage of an agent's life, from first prototype to continuous improvement in production.
| Pillar | What it covers | Key components |
| Build | Creating agents | Agent Studio, ADK, Agent Garden, Model Garden |
| Scale | Running agents in production | Agent Runtime, Sessions, Memory Bank, Agent Sandbox |
| Govern | Identity, access and policy | Agent Identity, Agent Registry, Agent Gateway, Model Armor |
| Optimize | Quality and visibility | Agent Simulation, Agent Evaluation, Agent Observability, Agent Optimizer |
In an interview, tie any feature you mention back to its pillar. It shows you understand the lifecycle rather than a list of product names.
Take quiz
Govern
Build
Scale
Optimize
Govern
Build
Optimize
Scale
3. What is the Gemini Enterprise app and how does it relate to Agent Platform?
The Gemini Enterprise app is the employee-facing front door to AI at work. It offers permissions-aware search across connected systems such as Confluence, Jira, SharePoint and ServiceNow, an AI assistant, and a place to run agents.
It is built on Agent Platform, so identity, security and governance come standard. Any agent a technical team builds on Agent Platform can be surfaced in the app for employees, and partner-built agents from the Agent Marketplace appear in an Agent Gallery. An Inbox gives IT and users one place to manage agents at scale, including long-running ones.
| Agent Platform | Gemini Enterprise app | |
| Audience | Developers and platform teams | Employees across the organization |
| Purpose | Build, scale, govern and optimize agents | Search, assistant and day-to-day use of agents |
| Examples | ADK, Agent Runtime, Agent Gateway | Inbox, Agent Gallery, data connectors |
Take quiz
Only platform engineers who deploy agents
Security analysts reviewing IAM policy
ML researchers fine-tuning Gemma
Employees across the organization
Agent Garden
Inbox in Gemini Enterprise
Model Garden
Agent Anomaly Detection
4. What is Agent Studio?
Agent Studio is the low-code, visual workspace in Agent Platform. People use it to discover models, engineer prompts and build agents without writing code, which makes it a good fit for rapid prototyping and business-centric agents.
It is collaborative, so product owners and developers can work on the same agent. When a prototype needs deeper customization, you can export the logic into ADK and continue in a full-code environment instead of rebuilding from scratch.
A typical flow is to describe the agent's goal, try prompts against different models, attach tools and test it in the same workspace. Because the export lands in ADK, the work done in Studio is not throwaway.
Take quiz
Re-create it from scratch because export is not supported
Convert it into a Terraform module automatically
Hand it to Agent Garden to be deleted
Export its logic into ADK and continue in code
Enforcing network policy on MCP traffic
Rapid prototyping and business-centric agents built without code
Running multi-day autonomous agents at scale
Scanning model-generated code in a hardened sandbox
5. What is the Agent Development Kit (ADK)?
ADK is the code-first framework for building agents on Agent Platform. It gives you granular control over logic, tools and environment, and it is the path most teams take for complex, multi-agent systems.
The upgraded ADK adds a graph-based framework for organizing agents into a network of sub-agents, secure sandboxed workspaces where agents can run bash commands and manage files, and multimodal streaming for live audio and video. Deploy the result to Agent Runtime with a single call.
from google.adk.agents import Agent def get_exchange_rate(base: str, target: str) -> dict: """Return the exchange rate between two currencies.""" return {"base": base, "target": target, "rate": 0.92} # stub root_agent = Agent( name="currency_agent", model="MODEL_ID", # a model available to your project instruction="Answer currency questions using the tool.", tools=[get_exchange_rate], )
The same agent code can be run locally while you iterate and then deployed to Agent Runtime, where Sessions and Memory Bank can be attached through ADK.
Take quiz
As one monolithic prompt chain only
As separate virtual machines managed by the user
As a graph-based network of sub-agents
As rows in a BigQuery table
A hardened sandboxed environment to run bash commands and manage files
A shared whiteboard for Agent Studio users
A billing report grouped by team
A vector index for RAG
6. What is Agent Garden?
Agent Garden is a library of prebuilt agent samples and templates in the Build pillar. Instead of starting with a blank file, you pick a template for a common pattern and adapt it.
Google lists templates such as code modernization, financial analysis, economic research and invoice processing. They work as building blocks for multi-agent systems, so one template can become a sub-agent in a larger design.
Do not confuse it with Model Garden, which is the catalog of foundation models. Agent Garden is about agent logic, Model Garden is about the models underneath.
Take quiz
A catalog of over 200 foundation models
Prebuilt agent samples and templates for common patterns
A registry of approved MCP servers
Access policies for the Agent Gateway
Network firewall tuning
Data center capacity planning
Mobile app UI testing
Invoice processing
7. What is Model Garden in Agent Platform?
Model Garden is the library of more than 200 foundation models you can discover, test and use from Agent Platform. It lets teams pick the best model for each job instead of being tied to one vendor.
- First-party Google models: Gemini 3.1 Pro, Gemini 3.1 Flash Image and Lyria 3.
- Open models: for example Gemma 4.
- Third-party models: including Anthropic's Claude Opus, Sonnet and Haiku.
Because the agent logic and the model are separate, you can swap the model later without redesigning the agent.
Take quiz
More than 200
About 20, all from Google
Exactly 50, all open source
Fewer than 100, all from partners
Only models trained by Google
None, since third-party models are excluded
Anthropic's Claude Opus, Sonnet and Haiku
Only open-weight models hosted by Meta
8. What is Agent Runtime?
Agent Runtime is the fully managed environment for hosting, deploying and scaling agents built with ADK or other frameworks. It is the Scale pillar's core service, and earlier documentation often calls the same service Agent Engine.
The re-engineered runtime offers sub-second cold starts, lets you provision new agents in seconds, and supports long-running agents that run autonomously for days. It also supports bidirectional streaming, Private Service Connect interfaces and customer-managed encryption keys.
Under the hood a deployed agent is a reasoningEngine resource, and you create it with client.runtimes.create(...) in the Python SDK.
Take quiz
Sub-second cold starts
Cold starts of several minutes per request
Roughly 30 seconds for every first call
No cold starts because instances never scale to zero
notebookRuntime
customJob
reasoningEngine
featureView
9. What are Sessions in Agent Platform?
A session stores the history of interactions between one user and an agent during a single conversation. It supplies the context the agent needs to continue a multi-turn exchange and is also the raw material for long-term memory.
With Custom Session IDs you can use your own identifiers, which lets you map a session straight to a record in your internal database or CRM. Access can be restricted with IAM Conditions, and you manage sessions through ADK, the console or API calls.
Take quiz
Share one session across every user
Skip authentication for the agent
Convert sessions into model weights
Map sessions to your own database or CRM records
A session replaces Memory Bank for cross-user recall
A session is a source for generating long-term memories
A session must be deleted before any memory exists
A session stores the agent's container image
10. What is Memory Bank in Agent Platform?
Memory Bank gives agents long-term memory. It extracts, stores and retrieves personalized information about a user across multiple sessions, so an agent can pick up where it left off days later.
Memories are generated and curated dynamically from conversations. Memory Profiles let agents recall high-accuracy details with low latency. You can also ingest events, fetch memories, review memory revisions and restrict access with IAM Conditions.
Customers such as Gurunavi and Payhawk use it to remember user preferences and habits, for example to propose restaurants or pre-fill expenses.
Take quiz
Per-conversation history only
A catalog of foundation models
Long-term, cross-session personalized memory
Network egress filtering
High-accuracy recall of details with low latency
Cheaper token pricing for every model
Automatic agent versioning
Faster container builds
11. What is Agent Identity?
Agent Identity gives each agent its own cryptographic identity: a unique, SPIFFE-formatted ID. It is a granular alternative to sharing one service account across many workloads.
The identity works directly in IAM, so you can grant a single agent access to a specific Cloud Storage bucket or BigQuery dataset. It also pairs with the Auth Manager for user-delegated tool access, and it leaves a clear audit trail. Identities are protected by default with Context-Aware Access using mTLS and DPoP.
You turn it on at deployment with identity_type=AGENT_IDENTITY.
Take quiz
An API key string
A SPIFFE-formatted ID
A user's email address
A Kubernetes namespace name
Reuse the default Compute Engine account
Embed an API key in env_vars
Register it in Model Garden
Set identity_type to AGENT_IDENTITY
12. What is Agent Registry?
Agent Registry is the queryable, central directory for your own, Google and third-party agents and MCP servers. It indexes agents, tools and skills so only governed, approved assets are discoverable.
For each entry it captures metadata such as versions, the framework (for example ADK) and capabilities like MCP tool names and annotations. Agents deployed to Agent Platform are registered automatically, and you can link them to an existing AI application or create a new one. Agent Gateway consults the registry to decide whether a destination is approved.
Take quiz
It must be registered through a support ticket
It is registered automatically in Agent Registry
It is registered only after passing evaluation
It is registered only if it uses LangChain
Per-token billing rates
Customer chat transcripts
GPU utilization graphs
Tool names and annotations
13. What is Agent Gateway?
Agent Gateway is the governance and security enforcement layer for agent traffic. It acts as the entry and exit point for interactions between users and agents, agents and MCP tools, and agents and other agents.
It terminates mTLS, translates between protocols (MCP, A2A, REST and gRPC), applies access policies and Model Armor screening, and emits telemetry to Agent Observability. In short, identity says who is calling, the registry says what is approved, and the gateway is where those rules are actually enforced.
Take quiz
MCP, A2A, REST and gRPC
SMTP and FTP only
Only GraphQL subscriptions
Only WebRTC
It is the design-time editor for prompts
It is the training service for tuned models
It is the runtime point where policies are enforced
It is the billing export tool
14. What is Agent Sandbox?
Agent Sandbox is a hardened, isolated environment where an agent can safely run model-generated code or perform computer-use tasks such as browser automation, without putting host systems at risk.
It supports code execution, computer use and a shell sandbox. You can manage sandbox templates and snapshots, bring your own container (BYOC), and apply VPC Service Controls and customer-managed encryption keys.
Think of it as a disposable computer for the agent. If the model writes code that deletes files or opens odd network connections, the damage stays inside the sandbox instead of reaching your host systems. VPC Service Controls and CMEK let security teams apply the same perimeter and encryption rules they use elsewhere.
Take quiz
Slow cold starts
Expired OAuth tokens
Duplicate session IDs
Untrusted model-generated code reaching host systems
Fine-tuning Gemma
Computer use such as browser automation
Hosting the Agent Registry
Issuing SPIFFE IDs
15. What is Model Armor in Agent Platform?
Model Armor provides content security filters you attach to a gateway. It scans user prompts and tool responses in real time and blocks prompt injection, sensitive data leaks and harmful content.
Because it sits on the gateway, one Model Armor policy protects every agent routed through it, and its findings appear in observability as Model Armor spans. Agent Gateway runs it on both prompts going in and tool payloads coming back.
It is the right tool for content risk, not access risk. Model Armor does not decide whether an agent may call a tool; IAM policies do that. Pair them: policy limits where an agent can go, and Model Armor checks what is said on the way there.
Take quiz
Only training data before tuning
Only BigQuery tables
Prompts and tool responses passing through the gateway
Only source code at commit time
Prompt injection
Quota exhaustion
Slow DNS resolution
Version drift in requirements.txt
16. What agent frameworks does Agent Runtime support?
Agent Runtime is framework-flexible. You can deploy agents built with ADK, Agent2Agent (A2A), LangChain, LangGraph, AG2, LlamaIndex or a fully custom implementation.
| Framework | agent_framework value | Note |
| ADK | google-adk | Install the agent_engines and adk extras |
| LangChain | langchain | Install the langchain extra |
| LangGraph | langgraph | Install the langgraph extra |
| AG2 | ag2 | Install the ag2 extra |
| LlamaIndex | llama-index | Query pipeline, Preview when documented |
| A2A | - | Add google-adk[a2a], Preview when documented |
| Custom | custom | Default when deploying from source files |
If you deploy an agent object, the framework is detected automatically. If you deploy from source files and omit it, it defaults to custom.
Take quiz
google-adk
langgraph
custom
It is detected as ag2
google-adk[a2a]
langchain-a2a
agent_engines[mcp]
llama_index[a2a]
17. What is the Managed Agents API?
The Managed Agents API is a config-driven, REST-first way to build autonomous agents inside a fully managed sandbox. You describe the agent in configuration instead of writing and hosting your own runtime code.
Two APIs work together. The Agents API creates and manages agent configurations and sandbox environments with mounted sources such as skills and artifacts. The Interactions API is what you call to talk to a deployed agent at runtime. Evaluation is supported too.
Choose it when you want a managed sandbox for actions and prefer to drive everything through REST calls, for example from a backend service, rather than packaging a Python class for Agent Runtime.
Take quiz
The Agents API
The Interactions API
The Registry API
The Sessions feedback API
Customer VPC firewall rules
Gateway TLS certificates
Vertex training pipelines
Sources such as skills and artifacts
18. What is Agent Observability?
Agent Observability collects traces, logs and metrics from your agents using OpenTelemetry. It builds on Cloud Trace, Cloud Logging, Cloud Monitoring and Topology, and it is collected by default when you deploy with ADK.
- Traces: the execution path of a request, including reasoning steps and tool calls.
- Logs: events and errors.
- Metrics: latency and token usage.
Telemetry also arrives from Agent Gateway and Model Armor, so you can debug a failure, watch cost, and see the full path of an agent's reasoning in one place.
Take quiz
OpenTelemetry
SNMP
JMX
RFC 5424 syslog only
Registry entries
Session IDs
Metrics
Sandbox snapshots
19. When would you choose Agent Studio, the Managed Agents API or ADK?
Pick by who is building and how much control they need. Agent Studio suits fast, visual prototyping, Managed Agents API suits teams that want a REST-first, config-driven agent without hosting runtime code, and ADK suits custom logic and multi-agent orchestration.
| Path | Style | Choose it when |
| Agent Studio | Low-code, visual | Prototyping or business-owned agents; you can export to ADK later |
| Managed Agents API | Managed, config-driven, REST | You want a managed sandbox and want to create agents with API calls |
| ADK | Custom code | You need granular control over logic, tools and environment simulation |
A common path is to prototype in Studio, export to ADK once requirements harden, and deploy to Agent Runtime.
Take quiz
Agent Studio
Managed Agents API
Agent Garden
ADK
A custom Dockerfile on Agent Runtime
Managed Agents API
Agent Studio export only
Gemini Deep Research Agent
20. What is the difference between Sessions and Memory Bank?
A session remembers one conversation. Memory Bank remembers a user across conversations. Sessions hold the raw interaction history, while Memory Bank extracts and curates the facts worth keeping.
| Sessions | Memory Bank | |
| Scope | A single conversation | Across many sessions for a user |
| Content | Turn-by-turn history | Curated, extracted memories and profiles |
| Typical use | Keep a multi-turn chat coherent | Personalization and cross-session continuity |
flowchart LR A["User conversation"] --> B["Session history"] B --> C["Memory generation"] C --> D["Memory Bank"] D --> E["Retrieved in a later session"]
Sessions feed memory generation, so the two are used together rather than as alternatives.
A practical rule: if losing the information when the chat ends is acceptable, a session is enough. If the agent should still know it next week, it belongs in Memory Bank. Memory revisions and IAM Conditions also let you review and restrict who can read stored memories, which matters for personal data.
Take quiz
Sessions alone
Agent Registry
Agent Gateway
Memory Bank
Registry entries
Conversation content, such as session history
Gateway TLS certificates
Model Garden metadata
21. What is the difference between Agent Identity and a shared service account?
A shared service account is one principal reused by many workloads, so IAM and audit logs cannot say which agent did what. Agent Identity gives every agent its own SPIFFE-based principal, so permissions and audit entries map to a single agent.
| Shared service account | Agent Identity | |
| Principal | One account for many workloads | One unique ID per agent |
| Permissions | Often broad, because many agents need them | Granted per agent in IAM |
| Audit trail | Hard to attribute to one agent | Clear, per-agent trail |
| Gateway use | Weak basis for fine-grained policy | Used by Agent Gateway for access control |
Custom service accounts are still allowed: set service_account when you create or update the runtime instance. Agent Identity is simply the better default for least privilege.
Take quiz
It disables Cloud Logging
It forces all agents into one region
Many agents act as one principal, so actions cannot be attributed to a single agent
It blocks MCP traffic
Yes, by setting service_account when creating or updating the instance
No, Agent Identity is mandatory
Only for LangChain agents
Only in Preview regions
22. What is the difference between Agent Registry and Agent Gateway?
The registry is a directory that records what is approved. The gateway is the enforcement point that checks traffic against that directory and against policy. One without the other leaves a gap: a list nobody enforces, or an enforcer with nothing to enforce.
| Component | Question it answers |
| Agent Identity | Who made the request? |
| Agent Registry | What destinations are approved? |
| Policies | What actions are permitted? |
| Agent Gateway | Where are policies enforced? |
Google describes the pieces in exactly this way: identity, registry, policies and gateway work together as one governance architecture.
A quick review test is to remove one piece mentally. Without the registry, the gateway has no trusted list to compare against. Without the gateway, a registry entry is only documentation, because nothing blocks a call to an unlisted tool.
Take quiz
Agent Registry
Agent Gateway
Agent Identity
Agent Garden
Agent Gateway
Agent Identity
Model Armor
Agent Registry
23. How do you deploy an agent to Agent Runtime?
There are five deployment methods, and you pick one based on your workflow. All of them end in a client.runtimes.create(...) call that returns a remote agent object.
| Method | Best for | Languages |
| Developer Connect | Git-managed projects with CI/CD | Python only |
| Source files | Automation, Terraform, no Cloud Storage bucket needed | Python only |
| Dockerfile | Control over the API server you deploy | Any language |
| Container image | Own build process, lower deployment latency (Artifact Registry) | Any language |
| Agent Platform SDK | Interactive work, such as Colab, with an in-memory agent object | Python |
remote_agent = client.runtimes.create( agent=local_agent, config={ "requirements": ["google-cloud-aiplatform[agent_engines,adk]"], "display_name": "currency-agent", "identity_type": "AGENT_IDENTITY", }, ) print(remote_agent.api_resource.name)
Deployment takes a few minutes, and its latency depends mostly on how long it takes to install your packages.
Take quiz
Developer Connect and source files
Dockerfile and container image
The SDK method only
All five methods
A Cloud Storage pickle file only
An Artifact Registry image
A linked Git repository revision such as a branch, tag or commit SHA
A Colab notebook cell
24. When should you deploy from source files instead of a container image?
Choose source files when you work in Python and want a simple, declarative deployment for CI/CD or Terraform. Choose a container image when you need any language, control over the build, or lower deployment latency.
| Source files | Container image | |
| Language | Python only | Any |
| Storage needed | No Cloud Storage bucket | Image in Artifact Registry |
| Build control | Service installs requirements at deploy time | You control the build |
| Constraints | source_packages total of 8 MB or less; class_methods required | Must follow the runtime contract |
| Latency | Depends on package installation | Lower deployment latency |
If you need to own the API server but still want Agent Runtime to build it, a Dockerfile sits in the middle.
Take quiz
Container image
Source files
Developer Connect
In-memory SDK deployment
1 MB
100 MB
8 MB in total
No limit
25. How do you control scaling for an agent on Agent Runtime?
You pass resource controls in the deployment config: min_instances, max_instances, resource_limits and container_concurrency. These were in Preview in the docs I reviewed, so check the current launch stage.
min_instances: instances kept warm, range 0 to 75, default 1.max_instances: ceiling for traffic spikes, range 1 to 1000, default 100 (1 to 100 if VPC-SC or PSC-I is enabled).resource_limits: onlycpuandmemory, default 4 CPU and 4Gi.container_concurrency: default 9, recommended 2 x cpu + 1.
config={ "min_instances": 1, "max_instances": 10, "resource_limits": {"cpu": "4", "memory": "8Gi"}, "container_concurrency": 9, }
A higher min_instances keeps capacity warm for latency-sensitive agents, while a lower value saves cost for rarely used ones. Raise max_instances only if downstream systems can take the load, since scaling out agents also multiplies tool and model calls. The docs say idle-time billing behavior during Preview is subject to change.
Take quiz
1
75
1000
100
cpu x 10
2 x cpu + 1
memory in Gi
max_instances divided by 2
26. How do you pass secrets to an agent deployed on Agent Runtime?
Reference a Secret Manager secret in env_vars by giving a secret ID and version. The value then appears as a normal environment variable inside the agent.
env_vars = { "CLOUD_SQL_CREDENTIALS_SECRET": {"secret": "SECRET_ID", "version": "SECRET_VERSION_ID"}, }
- Create the secret in the same project as the deployed agent.
- Grant
secretmanager.versions.access(for example viaroles/secretmanager.secretAccessor) to the agent's runtime identity. - If the agent uses Agent Identity, also grant that permission to the Agent Platform Service Agent, because it fetches secrets during deployment.
Secrets are strings, so parse JSON payloads yourself. Do not set reserved variables such as GOOGLE_CLOUD_PROJECT or PORT.
Never hard-code credentials in agent source or in the deployment config. A secret reference keeps the value in Secret Manager, where rotation and access are controlled. If you pass a plain list of variable names instead of a dictionary, Secret Manager integration is not available.
Take quiz
In any project in the organization
In a Cloud Storage bucket
In the same project as the deployed agent
Inside Agent Registry
The Agent Platform Service Agent
The end user's account
Model Armor
Only the agent identity at runtime
27. What happens when an agent calls a tool that is not in Agent Registry?
The call is blocked. Agent Gateway uses the registry to check whether a destination is approved, and IAM Unified Access Policies are default deny: a connection is blocked unless an explicit policy grants access.
To fix it, register the MCP server or tool in Agent Registry, then create an IAM Unified Access Policy that links the agent's identity to that registry entry. Only then will the gateway let the call through, and Model Armor can still screen what passes.
This is why unapproved or shadow tools cannot quietly appear in production.
A common surprise is a tool that works from a laptop but fails from the deployed agent. That is expected: the gateway evaluates the call against registry and policy, not against whether the server is reachable.
Take quiz
It is allowed but logged
It is blocked
It is allowed over mTLS
It is allowed during business hours
A user's password and a session
A prompt and a model version
A VPC and a billing account
An agent's identity and approved tools or endpoints in Agent Registry
28. What are the governed access paths of Agent Gateway?
Agent Gateway governs two paths: Client-to-Agent (ingress) and Agent-to-Anywhere (egress).
| Path | Direction | What the gateway does |
| Client-to-Agent | Ingress | Authenticates incoming user credentials and inspects prompts before they reach the agent or MCP tool |
| Agent-to-Anywhere | Egress | Enforces workload identity, registry compliance, IAM access policies and payload sanitization on calls to tools, SaaS APIs, remote MCP servers or other agents |
Think of ingress as protecting the agent from the outside and egress as protecting the outside from the agent.
An example: a customer-facing web app calling your support agent is ingress, and the support agent calling a SaaS CRM API or another agent is egress. You usually need both, because ingress stops hostile prompts reaching the agent and egress stops a compromised agent reaching unapproved systems. Both directions export telemetry for auditing.
Take quiz
Client-to-Agent (ingress)
Agent-to-Anywhere (egress)
Session replay
Registry synchronization
Governs only outbound SaaS calls
Builds container images
Stores Terraform state
Authenticates incoming user credentials and inspects prompts
29. What types of policies can Agent Gateway enforce?
Agent Gateway can combine several policy types. Some are deterministic, some content-based, and one is written in plain language.
| Policy type | What it controls |
| IAM Unified Access Policies | Which agent identities can reach which registered tools and endpoints; default deny |
| Model Armor | Prompts and tool responses: prompt injection, sensitive data leakage, harmful content |
| Semantic Governance | Plain-language rules on how agents use tools, such as blocking unsafe combinations |
| Token management | Token usage attribution and shared token budgets across agents |
| Custom authorization engines | Delegating decisions to third-party systems through Service Extensions |
In the docs I reviewed, token management policies and extension bindings were marked as coming soon, so confirm their status before promising them.
Take quiz
Token management policies
Model Armor
IAM Unified Access Policies
Semantic Governance policies
Gemini models in Model Garden
Agent Garden templates
Third-party systems through Service Extensions
Cloud Trace dashboards
30. What is the difference between IAM Unified Access Policies and Semantic Governance policies?
IAM Unified Access Policies answer a precise question: may this agent identity reach this registered destination? They are deterministic, use CEL attributes, and deny by default.
Semantic Governance policies are written in plain language and enforce business rules at runtime on how tools are used. They can stop a risky combination of tool calls even when each call is individually allowed, for example reading from an untrusted source and then triggering a payment.
| IAM Unified Access | Semantic Governance | |
| Written as | Access rules with CEL attributes | Plain-language rules |
| Decides | Identity to destination access | Whether a pattern of tool use is acceptable |
| Nature | Deterministic, default deny | Business-rule enforcement at runtime |
Take quiz
IAM Unified Access Policies
Token budget policies
Context-Aware Access
Semantic Governance policies
SQL
CEL (Common Expression Language)
GraphQL
Mermaid
31. How do you evaluate an agent before releasing it?
Use Agent Simulation and offline evaluation. Simulation tests the agent against human-like synthetic users and virtualized tools in a controlled environment, then scores it on task success and safety across multi-step conversations.
- Define the scenarios and success criteria you care about.
- Run simulated conversations with synthetic users and virtualized tools, so no real backend is touched.
- Review scores for task success and safety, and open failing conversations in traces.
- Fix instructions, tools or routing, then run the same evaluation again to confirm the change helped.
This gives you a repeatable gate before production, where online monitors take over.
Keep the scenario set in version control so each release is tested against the same cases plus any regressions you discover later.
Take quiz
Container image size
Number of registry entries
Task success and safety across multi-step conversations
Gateway throughput only
Virtualized tools
Production databases
Cached Memory Bank entries
Human reviewers only
32. What is the difference between offline evaluation and Online Monitors?
Offline evaluation checks an agent against prepared test cases before release. Online Monitors continuously score a live agent on real traffic after release. One protects the launch, the other protects the product over time.
| Offline evaluation | Online Monitors | |
| When | Before or between releases | Continuously in production |
| Input | Prepared datasets and scenarios | Live traffic |
| Scoring | Metrics you select and manage | Multi-turn autoraters that judge the whole conversation |
| Output | Result analysis and failure clusters | Dashboards and quality alerts |
Use them together. A failing online monitor alert should become a new offline test case, so the same regression cannot return unnoticed. Quality alerts tell the team when scores drop, and failure clusters group the cause instead of forcing you to read conversations one at a time.
Take quiz
Offline evaluations
Agent Garden
Online Monitors
Sandbox snapshots
The logic of an entire conversation, not a single response
Only the final token
Only the system prompt
Only tool latency
33. What is Agent Optimizer and how does it improve an agent?
Agent Optimizer automates the tedious part of tuning. Instead of reading logs by hand, it clusters real-world failures and suggests refined system instructions to improve accuracy.
It fits into the evaluation loop: evaluation shows which conversations failed, failure clusters group them by cause, and the optimizer proposes better instructions for those groups. You then apply the change and evaluate again to verify the fix.
Treat suggestions as proposals, not automatic changes. Review the revised instructions, check they do not break scenarios that already passed, and roll them out through your normal revision and traffic controls on Agent Runtime. Because the optimizer works from real failure clusters, the largest groups of failures are the first candidates to fix.
Take quiz
New IAM roles
Refined system instructions
Larger machine types
New Memory Bank profiles
By randomly sampling prompts
By reading registry metadata
By comparing token prices
By clustering real-world failures
34. What changed for developers moving from Vertex AI to Agent Platform?
Mostly names, packaging and new governance features. The core agent resource is still a reasoningEngine, and many package extras (for example google-cloud-aiplatform[agent_engines,adk]) still appear in the docs.
- The product is Gemini Enterprise Agent Platform, and Vertex AI services are delivered through it.
- The managed runtime is Agent Runtime, created with
client.runtimes.create(...); earlier material calls it Agent Engine. - Vector Search 2.0 is now Agent Retrieval.
- New governance pieces exist: Agent Identity, Registry, Gateway and Anomaly Detection.
There is a dedicated Agent Runtime SDK migration page, so read it before changing production code.
Plan the move in phases: inventory what you run today, update names in scripts and docs, adopt Agent Identity for new deployments, then add the registry and gateway.
Take quiz
Agent Retrieval
Agent Garden Search
Registry Search
Model Garden Index
agentRuntimes
agentGateways
reasoningEngines
agentSessions
35. How does Agent Platform support multi-agent orchestration?
It supports it at three levels: ADK for designing the network of agents, Agent Runtime for agent-to-agent orchestration, and Agent Gateway for governing the traffic between them.
ADK's graph-based framework lets you define clear logic for how sub-agents cooperate. Agent-to-agent orchestration lets agents delegate to one another using generative or deterministic patterns. For critical flows such as compliance, deterministic paths make sure the agents follow a well-specified route every time. Between agents, A2A traffic is governed by the gateway and agents are discovered through Agent Registry.
flowchart TD U["User request"] --> R["Root agent"] R --> A["Research sub-agent"] R --> B["Billing sub-agent"] R --> C["Compliance check - deterministic path"] A --> T1["Approved MCP tool"] B --> T2["Approved MCP tool"]
In an interview, mention the trade-off. Fully generative delegation is flexible but harder to predict, while deterministic flows are predictable but rigid. Mixing both inside one graph is the usual answer: let a generative router pick the specialist, and force fixed steps for regulated actions such as consent checks or payment approval.
Take quiz
It removes the need for Model Armor
It lets agents skip tools to run faster
It removes identity requirements
So agents follow a well-specified path every time
JDBC
A2A
SAML
WebSocket framing
36. How do long-running agents work on Agent Runtime?
Agent Runtime lets you deploy agents that run autonomously for days at a time and keep state while they do. A typical example is a sales prospecting sequence that waits, follows up and adapts over many days.
Because instances can scale and be replaced, keep durable state in Sessions and Memory Bank instead of in process memory. Custom Session IDs let you tie the work to your own records. Sub-second cold starts keep resumed work responsive.
For oversight, long-running agents can be tracked in the Inbox in Gemini Enterprise, and Agent Gateway and Observability still record every call along the way.
A practical design question is how the agent wakes up. Plan a trigger, such as an event or a schedule, and store the current step in the session so a restart resumes at the right point. The docs also describe autonomous agent scheduling for this kind of work, so check them for current options.
Take quiz
Answering one FAQ in a single turn
Formatting one line of JSON
Translating one sentence
Managing a sales prospecting sequence
In process variables only
In Sessions and Memory Bank rather than only in process memory
In Agent Registry entries
In gateway TLS certificates
37. How does Agent Platform handle real-time audio and video interactions?
It uses bidirectional streaming over the WebSocket protocol, so audio and video can flow in both directions without waiting for a full request to finish. ADK adds multimodal streaming support for live audio and video cues.
On Agent Runtime you declare this in the agent's exposed methods through the api_mode field. The documented options are an empty string for a plain call, async, async_stream, stream and bidi_stream.
class_methods = [ {"name": "live_session", "api_mode": "bidi_stream"}, {"name": "ask", "api_mode": ""}, ]
Use this for live customer or employee conversations where lag would break the experience.
Latency also depends on how you design the agent. Keep tool calls fast during a live audio turn, and if a tool must be slow, have the agent say so while it waits rather than going silent. Memory Bank can supply user context quickly without replaying a whole transcript.
Take quiz
async_stream
stream
bidi_stream
async
WebSocket
Plain HTTP polling
SMTP
FTP
38. Explain the execution flow of an agent's outbound call through Agent Gateway?
A simplified egress flow has five stages: authenticate the agent, check the destination, apply policy, screen the payload, then record telemetry. Google does not publish a strict step order, so treat this as a mental model.
sequenceDiagram participant A as Agent participant G as Agent Gateway participant R as Agent Registry participant M as Model Armor participant T as MCP tool participant O as Observability A->>G: Call with SPIFFE identity over mTLS G->>R: Is the destination approved? G->>G: Evaluate IAM and semantic policies G->>M: Screen prompt or tool payload G->>T: Forward allowed request T-->>G: Response G->>M: Screen response G-->>A: Return response G->>O: Export traces and access logs
- Identity: the gateway terminates mTLS and learns which agent is calling.
- Registry: it confirms the destination is an approved entry.
- Policy: IAM Unified Access and Semantic Governance rules decide whether the call is allowed; default is deny.
- Content: Model Armor scans payloads in both directions.
- Telemetry: traces and access logs go to Agent Observability.
The key interview point is that none of these checks live in agent code. The developer writes the tool call, and the platform wraps it with identity, approval, policy and inspection, so a change in security policy usually needs no change to the agent. A response that Model Armor flags is stopped before the agent acts on it.
Take quiz
Only the HTTP verb
Identity, registry approval, policy and payload screening
Only DNS TTL
Nothing, since policies apply afterwards
Agent Garden
Model Garden
Memory Bank
Agent Observability, such as Cloud Trace and Cloud Logging
39. How does Agent Identity Auth Manager let agents act on behalf of users?
Auth Manager handles the hard parts of OAuth for agents: the handshake, token storage and refresh. Agents can call tools on behalf of a user without developers writing credential code or storing secrets.
| Mode | Use it when |
| 3-legged OAuth | The agent must act as a specific signed-in user |
| 2-legged OAuth | The agent acts as itself for service-to-service access |
| API key | The tool only accepts an API key |
You configure managed OAuth 2.0 connections through the registry. Agent Gateway integrates with Auth Manager and transparently handles OAuth 2.0 handshakes and Workload Identity Federation, so credentials stay out of agent code.
The benefit shows in audits: the tool sees a request tied to a particular user's consent, and the platform records which agent made it. If a user's consent is revoked at the provider, the agent can no longer act for that user.
Take quiz
3-legged OAuth
2-legged OAuth
An API key in an environment variable
A shared service account key
The developer inside agent code
Model Armor
Agent Identity Auth Manager
Cloud Build
40. How does Agent Gateway govern MCP traffic at the tool level?
For MCP traffic the gateway inspects the JSON-RPC request and extracts the tool name and method attributes. Those values become inputs to policy, so access can be decided per tool instead of per server.
This matters because one MCP server often exposes both harmless and dangerous tools. With tool-level attributes you can let an agent call a read tool, such as fetching a ticket, while denying a destructive one, such as deleting it. The registry stores tool names and annotations, which gives policies something stable to refer to.
The gateway handles MCP over Server-Sent Events or HTTP POST.
In practice, write allow rules around the tool names listed in the registry, and review annotations when a server adds new tools. A server that gains a destructive tool should not automatically become callable by every agent that already uses it.
Take quiz
JSON-RPC tool names and method attributes
Only the TCP port
Only a browser cookie
Only the model temperature
Only local stdio
Only UDP
Server-Sent Events or HTTP POST
Only IMAP
41. Why is Agent Gateway needed when IAM already exists?
IAM decides who may use Google Cloud resources. It cannot see what is inside an agent's prompt or a tool's response, and agents often call third-party MCP servers or run outside Google Cloud. The gateway fills that gap at the network layer.
| Concern | IAM alone | With Agent Gateway |
| Who may reach a resource | Yes | Yes, using agent identity and registry |
| Prompt injection in a tool response | No visibility | Model Armor screens payloads |
| Protocol handling for MCP, A2A, gRPC | None | Mediated by the gateway |
| Tool-level control | Not available | Policies on MCP attributes |
| Network-level telemetry | Audit logs only | Layer 7 traces and access logs |
The two are complementary: Unified Access Policies are IAM-based, and the gateway is where they are enforced.
A one-line answer: IAM controls access to the door, and the gateway also inspects what is carried through it.
Take quiz
Create service accounts
Rotate CMEK keys
Build container images
Inspect prompts and tool payloads in flight
An expired TLS certificate
A prompt injection hidden in a tool response
A missing IAM binding on a bucket
Quota exhaustion
42. How do Agent Gateway deployment models differ across runtimes?
The gateway's control plane is the same everywhere, but who runs the proxy changes with the host environment. This reflects the docs as of late October 2026, so check availability before planning.
| Host | Model | Proxy infrastructure | Status in docs |
| Agent Runtime and Gemini Enterprise | Google-managed | Run by Google | Available |
| GKE | Self-managed | GKE Gateway API, Secure Web Proxy, ambient networking | Coming soon |
| Cloud Run | Self-managed | Application Load Balancer and Secure Web Proxy | Coming soon |
| Cross-cloud | Self-managed | Envoy-based gateway in your cluster | Coming soon |
In every model you manage identities, registry entries and policies centrally. In the cross-cloud case agent traffic stays in your environment, and only configured checks such as Model Armor call out to Google Cloud.
Pick by where your agents already run. On Agent Runtime or Gemini Enterprise you get the managed gateway with mTLS termination, IAP access policies, Model Armor and Semantic Governance, with no proxy to operate.
Take quiz
You, through Secure Web Proxy
A partner ISV only
Google, fully managed
Your GKE nodes
A lightweight Envoy-based Agent Gateway
Cloud CDN edge cache
A Google-managed proxy outside your network
Apigee hybrid runtime
43. How can you prevent prompt injection and data exfiltration in agents?
No single control is enough, so layer them. The goal is to limit what an agent can reach and to inspect what moves in and out.
- Screen content: attach Model Armor to the gateway for prompts and tool responses.
- Deny by default: use IAM Unified Access Policies so the agent reaches only registered destinations.
- Constrain tool combinations: add Semantic Governance rules for risky sequences.
- Keep traffic inside a perimeter: route through private network attachments and VPC Service Controls.
- Isolate generated code: run it in Agent Sandbox.
- Use least privilege: give each agent its own identity and minimal IAM roles.
- Watch for drift: enable Agent Anomaly Detection and Threat Detection.
The order matters operationally: identity and default deny shrink the blast radius, while content screening and anomaly detection catch what policy cannot predict. Test the controls with adversarial simulations before launch.
Take quiz
A longer system prompt
Default-deny egress through IAM Unified Access Policies
A higher model temperature
A larger context window
To lower token costs
To register the agent automatically
To enable OAuth
So the code cannot reach host systems
44. What is the difference between Agent Anomaly Detection and Agent Threat Detection?
Agent Anomaly Detection looks for unusual reasoning, while Agent Threat Detection looks for known malicious activity. One asks 'is this odd?', the other asks 'is this an attack?'.
| Agent Anomaly Detection | Agent Threat Detection | |
| Method | Statistical models plus an LLM-as-a-judge framework | Detection of malicious behavior |
| Flags | Unusual agent reasoning | Reverse shells, connections to known bad IP addresses |
| Complements | Threat Detection | Anomaly Detection |
Results surface in the Agent Security dashboard, which is powered by Security Command Center. It also maps relationships between agents and models, automates asset discovery and scans for vulnerabilities in the operating system and language packages.
Use both in operations: an anomaly finding says the agent's behavior changed and needs investigation, while a threat finding calls for incident response. Both feed the same security view, so analysts do not need separate tools.
Take quiz
Agent Threat Detection
Agent Anomaly Detection
Topology graphs
Model Garden
A slightly longer reasoning chain
A new runtime revision
A low evaluation score
A reverse shell or connection to a known bad IP
45. How do you troubleshoot an agent deployment that fails on Agent Runtime?
Work from the deployment config outward. Most failures come from a small set of causes.
- Dependencies: pin package versions, especially
google-cloud-aiplatform,cloudpickleandpydantic, so the deployed environment matches the one that built the agent. - Environment variables: do not set reserved names such as
GOOGLE_CLOUD_PROJECT,GOOGLE_CLOUD_LOCATION,PORTorK_SERVICE. - Entry point: for source or Developer Connect deploys, check
entrypoint_moduleandentrypoint_object. - Size: keep
source_packagesunder 8 MB. - Containers: make sure a Dockerfile or image follows the runtime contract.
- Permissions: if secrets are used, check
secretmanager.versions.accessfor the Agent Platform Service Agent.
Then read Cloud Logging for the build and startup errors.
When behavior differs after a clean deploy, compare pinned versions locally and remotely, and confirm the agent identity has the IAM roles the code needs. A missing role often shows up as a permission error at runtime rather than a deployment failure.
Take quiz
GOOGLE_CLOUD_PROJECT and PORT
MODEL_NAME and LOG_LEVEL
Any variable containing an underscore
Only secret-backed variables
The number of Memory Bank profiles
The gateway token budget
Whether it follows the runtime contract
The Agent Garden template version
46. How do you troubleshoot a tool call that Agent Gateway blocks?
Because the gateway is default deny, a blocked call usually means a missing grant rather than a bug. Check in this order:
- Registry: is the MCP server or tool registered in Agent Registry?
- Policy: does an IAM Unified Access Policy link this agent's identity to that registry entry?
- Content: did Model Armor block the prompt or payload? Look at the Model Armor spans.
- Network: if you use VPC connectivity, is the route configured and reachable?
- Capacity: a gateway can govern up to 5,000 registered resources.
Use gateway monitoring and traces to see which stage rejected the request, then fix that stage specifically.
A useful habit is to reproduce the denial with the same agent identity, because an administrator's own permissions can hide the problem. Fix one layer at a time and retest, since registry and policy changes may each be needed before the call works.
Take quiz
A larger max_instances value
A new Memory Bank
A Mermaid diagram
An IAM Unified Access Policy for that agent's identity
Up to 500
Up to 5,000
Up to 50,000
Up to 100
47. How can you optimize cost and token usage of agents on Agent Platform?
Cost comes from model tokens and from compute, so tune both.
- Token budgets: token management policies attribute token usage and enforce shared budgets. The docs listed them as coming soon.
- Model choice: pick a smaller model from Model Garden for simple steps.
- Fewer wasted turns: run Agent Optimizer on clustered failures to tighten system instructions.
- Compute settings: tune
min_instances,max_instancesandcontainer_concurrencyto the real load. - Background work: use batch and event-driven agents for asynchronous tasks.
- Measure: watch token and latency metrics in Observability.
Avoid cutting the wrong thing. Lowering concurrency or instance counts to save money can raise latency, and a cheaper model may need stricter instructions to hold quality. Validate every cost change against evaluation scores so savings do not hide a quality drop, and review token metrics per agent so you know which workload is actually expensive before optimizing it.
Take quiz
Higher min_instances
More Agent Garden templates
Token management policies
Longer sessions
By refining system instructions based on clustered failures
By disabling observability
By removing agent identity
By switching to HTTP/1.0
48. When should you use Agent Sandbox instead of running code in the agent process?
Use a sandbox whenever the code is untrusted or model-generated, or when the agent needs a full environment, such as a shell, files or a browser. Keep trusted, deterministic function tools in the agent process.
| Situation | Where to run it |
| Executing Python the LLM just wrote against user data | Agent Sandbox (code execution) |
| Driving a browser to fill a web form | Agent Sandbox (computer use) |
| Running shell commands and managing files | Agent Sandbox (shell sandbox) |
| Calling a trusted internal REST tool | In process, through the gateway |
Sandboxes also support templates, snapshots, custom containers, VPC Service Controls and CMEK, so they can meet enterprise network and encryption rules.
Also consider data movement. Code that needs sensitive files should get them placed into the sandbox deliberately instead of being given broad network access, and VPC Service Controls can restrict where it can connect.
Take quiz
Calling a trusted internal REST tool
Reading Agent Registry metadata
Executing LLM-generated Python on user data
Listing session IDs
Snapshots
Topology graphs
Memory Profiles
Quality alerts
49. How does Agent Platform provide telemetry and audit trails for agent activity?
Three layers combine: application telemetry, network telemetry and identity-based audit. Together they answer what the agent did, what crossed the wire and who is accountable.
flowchart LR A["Agent on Runtime"] --> O["Agent Observability"] G["Agent Gateway"] --> O M["Model Armor"] --> O O --> T["Cloud Trace"] O --> L["Cloud Logging"] O --> C["Cloud Monitoring"] O --> P["Topology graphs"]
- Application: OpenTelemetry traces, logs and metrics from the agent.
- Network: the gateway adds Layer 7 traces and access logs for every interaction.
- Identity: Agent Identity maps each action to one agent, and audit logging tracks agent activity.
Topology graphs then show agent dependencies and traffic between agents and tools.
For incident review, start from a trace: it shows the agent's reasoning path and tool calls. Then pivot to gateway logs to see what crossed the network, and to the identity to see which principal acted. This three-way view is faster than reading raw application logs alone. Use Model Armor spans to see content-security decisions, and Agent Security findings in Security Command Center to complete the picture.
Take quiz
A shared service account
Agent Identity mapped to IAM
The Model Garden catalog
Agent Garden templates
GPU temperature
Billing invoices
Prompt templates
Agent dependencies and traffic between agents and tools
50. How would you design a governed multi-agent customer support system on Agent Platform?
Start from the lifecycle: build with ADK, run on Agent Runtime, govern at the gateway, and keep improving with evaluation. Here is one reasonable design.
flowchart TD U[Customer] --> GW["Agent Gateway ingress"] GW --> R["Router agent on Agent Runtime"] R --> B["Billing agent"] R --> S["Troubleshooting agent"] B --> MCP1["Registered billing MCP tool"] S --> MCP2["Registered diagnostics MCP tool"] R --> SS["Sessions with CRM IDs"] R --> MB["Memory Bank"] GW --> MA["Model Armor"]
- Build: a router agent with billing and troubleshooting sub-agents in ADK.
- Scale: deploy to Agent Runtime; use Sessions with Custom Session IDs mapped to CRM records, and Memory Bank for preferences.
- Govern: give each agent its own Agent Identity, register tools, allow access with Unified Access Policies, and attach Model Armor.
- Optimize: run Agent Simulation and offline evaluation before launch, then Online Monitors and Agent Optimizer in production.
Finish by exposing the router in the Gemini Enterprise app if employees also need it.
Trade-offs to mention: a router adds one more hop but keeps specialists small, and strict policies add review work but make the system safe to scale. Start with the smallest tool set, then widen it through the registry.