Cloud / Google Cloud Agent Studio Interview questions
Last updated
1. What is Google Cloud Agent Studio?
Agent Studio is a low-code visual designer inside the Google Cloud console for building, configuring and testing AI agents. It sits in the Gemini Enterprise Agent Platform (the platform that used to be called Vertex AI) and is the no-code/low-code entry point to agent development.
You describe the agent in a chat box or lay it out on a canvas, give it instructions, pick a model, attach tools, and chat with it in a Preview tab. When it behaves the way you want, you can deploy it to Agent Runtime or copy the generated code and keep working in a code editor.
One thing to mention in an interview: Google's documentation marks the design-agents feature as Preview, so it is under the Pre-GA terms and details can change.
Take quiz
a command-line tool used only to scaffold ADK projects
a low-code visual designer in the Google Cloud console
a managed relational database for agent state
Retired in favour of Dialogflow
Preview (Pre-GA terms apply)
Generally available with a financial SLA
2. How does Agent Studio relate to Vertex AI?
Google renamed the platform: what used to be Vertex AI is now the Gemini Enterprise Agent Platform, and Agent Studio is its low-code surface. Third-party write-ups describe Agent Studio as the successor of the low-code experience in Vertex AI Agent Builder, so you will still see both names in older blog posts and tutorials.
The docs also use "Studio" for UI-based work with models, such as prompt design and model tuning, not only for agents. So the same console area covers experimenting with a model and designing an agent around it.
Naming has moved quickly in this area. If an interviewer uses the older term, say so briefly and map it to the current one rather than correcting them.
Take quiz
Firebase Studio
Cloud Composer
Vertex AI
VPC firewall rule authoring
BigQuery slot reservation planning
Cloud Billing invoice export
prompt design, model tuning and other UI-based model interactions
3. What is the Gemini Enterprise Agent Platform?
It is Google Cloud's unified platform to build, deploy, govern and optimize enterprise-grade AI agents and model-based solutions. Think of it as the umbrella under which Agent Studio, the Agent Development Kit, Agent Runtime, Agent Registry and the evaluation tooling live.
It supports different skill levels. Low-code users work in Agent Studio. Developers who want code use the Agent Development Kit (ADK) or Colab Enterprise notebooks. Both groups get the same integrated security and governance layer, including agent identity.
Take quiz
Agent Studio
Colab Enterprise
Cloud Build
Agent Development Kit (ADK)
Agent Studio flow canvas
Looker Studio
4. What are the four pillars of Gemini Enterprise Agent Platform?
The platform is organized around Build, Scale, Govern and Optimize. Each pillar maps to a stage of the agent lifecycle.
| Pillar | What it covers | Examples |
| Build | Creating agents | Agent Studio, ADK, Agent Garden, Managed Agents API |
| Scale | Running agents in production | Agent Runtime, Sessions, Memory Bank, Sandbox |
| Govern | Security and control | Agent Identity, Agent Registry, Agent Gateway, policies |
| Optimize | Quality and tuning | Observability, evaluation, Example Store |
Agent Studio belongs to Build, but its deploy button hands the agent to Agent Runtime, which is a Scale component.
Take quiz
Optimize
Build
Govern
Memory Bank
Agent Registry
Agent Garden
Sessions
5. What are the ways to create an agent in Agent Studio?
There are two main methods, plus a shortcut.
- Prompts: open the canvas, describe the agent in the chat box, and the flow builder updates to show a live preview. Changes are saved automatically. If the prompt is vague, the assistant asks a clarifying question; if it cannot apply the request, it asks you to rephrase.
- Flow builder: design the main agent and subagents visually and configure each in a Details panel.
- Agents mode toggle: on the Studio welcome prompt, switch to Agents mode and submit; the designer canvas opens pre-populated from your prompt.
You can mix them, for example start with a prompt and then fine-tune in the flow builder.
Take quiz
importing a Terraform plan
deploying through the Agent Registry
creating the agent using prompts
ask a clarifying question in the chat
switch to the ADK CLI
deploy a default agent to production
silently delete the agent
6. What is the Agent Studio flow builder?
The flow builder is the visual representation of an agent's workflow and control logic on the canvas. The main agent and its subagents appear as nodes, so you can see how work is split before you run anything.
Clicking a node opens its Details panel. For a main agent or local subagent you set a name, description, instructions, model and tools. The Add a subagent (+) button creates child agents.
The main agent is always a local agent, while subagents can be local or taken from Agent Registry.
Take quiz
Terraform backend bucket
Tools
Model
Instructions
a local agent
an Agent Registry agent
a deployed A2A agent
7. What is the Preview tab used for in Agent Studio?
Preview is the built-in chat pane for testing your agent while you design it, next to the Flow tab. You type test questions and watch how the agent answers with its current instructions, model and tools.
For a saved agent, Studio first checks that the agent's identity has the required IAM roles. If something is missing, a notification appears and Manage opens the permissions dialog.
You can also click an event in the conversation to inspect the author, request and response, tool calls and metadata, which makes Preview the first place to debug behaviour.
Take quiz
the size of your billing account
the agent's identity permissions
that a Cloud Run service exists
rotate CMEK keys
inspect request, response, tool calls and metadata
rename the Google Cloud project
8. Which IAM role do you need to use Agent Studio?
The documented requirement is the Agent Platform User role, roles/aiplatform.user, granted on the project. An administrator normally grants it.
A custom role or another predefined role can also work if it carries the same permissions. Keep in mind this role is for you, the person designing the agent. The agent itself runs under its own identity, which needs separate roles for things like Cloud Storage files or MCP tools.
A quick way to verify access is to ask whether you can open Agents under Agent Studio in the console. If the page is blocked, check the project selector first, then the role on that specific project, because a role granted on a different project does not carry over.
Take quiz
roles/billing.viewer
roles/storage.admin
roles/aiplatform.user
the project's billing account
the person's Gmail address only
the agent's own identity
9. What is the difference between a local agent and an Agent Registry agent?
A local agent is defined entirely on the Studio canvas. A Registry agent already exists elsewhere and is pulled in as a remote subagent.
| Local agent | Agent Registry agent |
| Instructions, model and tools are authored on the canvas. | Registered and published in Agent Registry. |
| Can be the main agent or a subagent. | Can only be a subagent; the main agent is always local. |
| Name and description are editable. | Name and description are imported and read-only. |
| Runs as part of your agent. | Called remotely; the parent routes tasks to it. |
The Registry option only appears after you save the agent, because the parent needs an identity first.
Take quiz
an Agent Registry agent
a local agent
the main agent
the parent agent has no identity until it is saved
unsaved agents cannot have a name
Registry agents are billed per canvas
10. What is an Agent Card?
In the Agent2Agent (A2A) protocol, an Agent Card is a structured description of an agent: who it is, what it can do and how to reach it. Other agents read it to decide whether to delegate a task.
Agent Studio uses this idea for registry subagents. The parent agent routes tasks to the subagent based on its Agent Card, and the subagent's name and description are imported from the registry.
So a vague card means poor routing. When you register your own agents, write the description like a job ad: what it handles and what it does not.
Take quiz
Terraform state file
Agent Card
billing label
the colour theme of the console
what the agent handles and what it does not
the VM size it was trained on
11. What tools can you add to an agent in Agent Studio?
The documented tool options are:
- Google Search: lets the agent run web searches; on by default.
- URL context: lets the model analyze URLs found in prompts sent to the agent; on by default.
- MCP Server from Agent Registry: attaches a registered MCP server as a node-level tool. It only appears after the agent is saved, and Auth Config None means access is resolved through IAM bindings.
Direct MCP endpoints and Vertex AI Search data store tools are deprecated; existing ones are read-only.
Take quiz
Registry MCP servers and Terraform
Only the legacy data store tool
Google Search and URL context
Cloud DNS
Cloud Storage
Agent Registry
12. What is the URL context tool in Agent Studio?
URL context lets the model read the pages behind URLs that appear in the prompts sent to the agent. If a user pastes a link and asks for a summary, the agent can analyze that page instead of guessing.
It is switched on by default, as is Google Search. For a closed-domain agent, such as an internal HR assistant, think about turning both off so answers come only from the instructions, knowledge files and approved MCP tools.
That is a design judgement, not a rule from the docs, but it is a good point to raise when asked about grounding and control.
Take quiz
analyze URLs provided in prompts to the agent
create new IAM roles
write DNS records for the agent
consider disabling Google Search and URL context
always keep every default tool on
upload the whole intranet as knowledge files
13. What are knowledge files in Agent Studio?
Knowledge files are static reference documents you upload so the agent grounds its answers in your content instead of only model memory.
You attach them in the Knowledge section of the parent agent's Details panel. That section appears only after the first save. On save, the files go into a dedicated Cloud Storage bucket under a path prefix matching the agent's AGENT_ID.
After uploading, use the Preview tab to ask a question whose answer is in the file and confirm the agent uses it without making things up.
Take quiz
inside the model weights
in a Cloud Storage bucket in your project
in a public Google-managed bucket
only when using Terraform
after the agent is saved for the first time
only after production deployment
14. What are the limits on knowledge files in Agent Studio?
Per the docs, each agent can have up to 10 files, each no larger than 2 MB, and the supported types are PDF and plain text.
Two more constraints matter in design: files attach only to the parent agent node, not to subagents, and you cannot add knowledge when you build the agent through prompts alone; use the flow builder.
If your corpus is larger or changes often, these limits are the signal to move to a search-based tool rather than uploading files.
Take quiz
100
3
10
Excel and PowerPoint
MP4 and WAV
PDF and plain text
only Registry agents
every subagent
the parent agent only
15. What is Agent Registry?
Agent Registry is the central hub for governance, discovery and search of your AI ecosystem on the platform. It is a unified catalog where you store and find MCP servers, tools, agents, endpoints and standalone skills (Preview).
It targets the usual scaling problems: fragmented tool access, isolated data and duplicated work. You can search by keyword, prefix or semantic query.
For Agent Studio, it matters because registered A2A agents become selectable subagents and registered MCP servers become tools, which is how Studio standardizes and secures tool access.
Take quiz
governance, discovery and search of agents and tools
training custom foundation models
managing VM images
MCP servers and endpoints
Pub/Sub snapshots
Cloud SQL backups
16. What does the Get code button do in Agent Studio?
Get code shows the code for the agent you designed, so you can copy it into an editor and keep developing outside the canvas. It is the bridge from low-code to code-first.
The generated Python is based on the ADK model; the docs mention an agent.py that also shows the knowledge-file grounding configuration. If your agent uses a remote Registry subagent, the code calls AgentRegistry.get_remote_a2a_agent to resolve that subagent at runtime.
Treat the exported code as a snapshot. Changes you make later on the canvas do not flow into code you already copied, so decide early which side is the source of truth.
Take quiz
Storage.sign_url
AgentRegistry.get_remote_a2a_agent
BigQuery.create_table
delete the agent identity
continue development in a code editor
export billing data
17. What is the Agent Development Kit (ADK)?
ADK is an open-source, modular, model-agnostic framework for building agents and multi-agent systems in code, while keeping precise control over how the agents behave.
It is the code-first counterpart to Agent Studio. Studio's generated code and its "standard ADK application" deployment option show that the two are designed to hand work to each other.
Choose ADK when you need custom orchestration, tests in your repo, or logic the canvas cannot express.
In practice you define an agent with a name, a model, instructions and tools, then compose several agents into a hierarchy. Because it is model-agnostic, the same structure is not tied to one model family.
Take quiz
a Google-only closed UI builder
a data warehouse engine
an open-source, model-agnostic agent framework
Preview tab
Agent Studio canvas
ADK
18. What is Agent Runtime?
Agent Runtime is the managed service that hosts deployed agents so they can run and scale in production. Earlier documentation called it Vertex AI Agent Engine, and you will still find that name in older material.
It runs agents built with ADK, Agent2Agent, LangChain, LangGraph, AG2, LlamaIndex or a custom framework, and it connects to platform services such as Sessions and Memory Bank. It also supports tracing, logging and monitoring for deployed agents.
When you press Deploy in Agent Studio, a new Agent Runtime instance is created for that agent.
Take quiz
a new Agent Runtime instance
a Dialogflow CX flow
a new Google Cloud organization
Vertex AI Agent Engine
Cloud Functions Gen 1
App Engine Flexible
19. What is agent identity?
Each agent in Agent Studio gets its own unique identity that acts as an IAM principal. That identity, not your personal account, is what touches other Google Cloud resources when the agent runs.
The principal string looks like principal://agents.global.org-ORG_ID.system.id.goog/resources/aiplatform/projects/PROJECT_NUMBER/locations/LOCATION/reasoningEngines/REASONING_ENGINE_ID. You can copy it from the drop-down next to the agent name in the canvas header and search for it in IAM.
An unsaved agent has no identity yet, which is why saving comes first.
Other agents can also be identified this way. When a parent calls a remote subagent over A2A, IAM decides whether the parent's identity is allowed to discover and invoke it.
Take quiz
a billing account
an IAM principal
a VPC subnet
the Preview chat transcript
the drop-down next to the agent name in the canvas header
the Cloud Billing reports page
20. What is Agent Garden?
Agent Garden is a library of prebuilt agents and templates that you can discover, customize and deploy. Instead of starting from a blank canvas, you begin from an agent already built for a common use case.
It sits in the Build pillar next to Agent Studio and ADK. A sensible workflow is to start from a Garden template, adjust it, and then deploy it like any other agent.
Templates are a starting point, not a finished product. Review the instructions, tools and permissions of anything you pull in before it handles real data.
Take quiz
network firewalls for agents
encryption keys for agents
prebuilt agents and templates to customize
Scale
Govern
Build
21. Why must you save an agent before previewing it?
Because an unsaved agent has no identity, and Preview, Deploy, knowledge uploads and Registry features all depend on that identity.
Specifically, you must save before you can preview, deploy, upload knowledge files, add Agent Registry MCP servers as node-level tools, or use Registry subagents. Until then, Preview and Deploy are disabled and the permissions dialog does not appear.
The first save asks for an agent name. After that, autosave applies your changes, and Studio prompts you if you try to leave an unsaved new agent.
Take quiz
editing instructions on the canvas
Deploy
Knowledge upload
Registry subagents
saved automatically
queued until a manual export
discarded on refresh
22. How do you deploy an agent from Agent Studio?
Deployment is a few clicks once the agent is saved and tested.
- Open the agent from the Agents list page.
- Click Deploy to open the "Deploy to an Agent Runtime instance" dialog. If permissions are missing, the permissions dialog appears first.
- Edit the display name, optionally add a description, and decide whether to tick Deploy as A2A.
- Select a deployment region and click OK, then Deploy.
Creating the runtime instance can take up to five minutes. A success message then appears on the Flow tab.
Take quiz
up to five days
up to five minutes
up to five seconds
the Cloud Billing console
the Deploy button on the agent detail page
the IAM audit log
23. What is the Deploy as A2A option?
It is a checkbox in the deployment dialog. When ticked, the agent is deployed as an Agent-to-Agent (A2A) asset that other agents can reuse as a remote subagent.
Leave it unticked for a standalone application: Studio then packages the agent as a standard ADK application.
| Deploy as A2A | Standard ADK app |
| Reusable by other agents | Used directly by your own app or users |
| Fits a shared, specialist agent | Fits a self-contained assistant |
A practical rule: if more than one team or agent needs the same capability, such as a shared compliance checker, deploy it as A2A and register it. If only one app calls it, the standard package is simpler.
Take quiz
run only on a developer laptop
bypass IAM entirely
be reusable by other agents
a Cloud Run Job
a BigQuery view
a standard ADK application
24. What is the Agents mode toggle in the Studio prompt?
On the Agent Studio welcome workspace, the main prompt box has a mode toggle. Switching it to Agents mode and sending a prompt launches the agent builder in the designer canvas instead of a plain model chat.
Studio pre-populates the flow and configuration from your prompt; you then keep editing instructions, models, tools and subagents.
It is a faster route than clicking Create agent first, handy when you already know the agent's purpose and want a draft to refine.
The difference from a plain model chat is the destination. Without the toggle, your prompt goes to the model for prompt design and experimentation; with it, the result is an agent definition you can save, preview and deploy.
Take quiz
opens the designer canvas with a pre-populated agent
creates a new Google Cloud project
immediately deploys to production
keep editing instructions, models, tools and subagents
only read the draft
only export to PDF
25. What can you inspect in agent events?
In the Preview tab, selecting an event in the conversation opens its details. What you see depends on the event type, but it can include four things.
| Detail | Why it helps |
| Author | Shows which agent or subagent produced the step in a multi-agent run. |
| Request and response | Shows the payload sent to the model and what came back. |
| Tool calls | Shows the arguments passed to tools. |
| Metadata | Model name, token usage and timestamp. |
If the run fails, the error is displayed in Preview too.
A typical debugging move: a user says the agent gave a wrong answer, you open that event, see the exact request sent to the model, and notice a tool was never called. That points to unclear instructions, not a model fault.
Take quiz
Timestamp
Author
Region
Tool calls
Metadata
Author
26. Why can't you add knowledge to agents built with prompts?
The docs list this as a current limitation of prompt-based creation: the assistant is unable to add knowledge to an agent. The docs do not give a reason, so treat it as a product limit rather than a design principle.
The workaround is simple. Create the agent with prompts, save it, then open the flow builder and add files in the Knowledge section. Both methods edit the same agent, so nothing is lost by switching.
Remember also that the Knowledge section only shows up after the first save, so even in the flow builder the order is: create, save, then attach files. Skipping the save is the usual reason people cannot find the option.
Take quiz
redeploy it as an A2A asset first
rewrite the prompt in all capitals
use the flow builder after saving
Yes
No, they create separate agents
27. What is the difference between Agent Studio and ADK?
Agent Studio is visual and low-code; ADK is code-first. They target the same kind of agent but give you different amounts of control.
| Agent Studio | ADK |
| Visual canvas and prompts in the console | Python framework in your editor |
| Fast prototyping and preview | Granular control over logic, tools and environment simulation |
| Deploy button to Agent Runtime | You scaffold, test and deploy through your own workflow |
| Get code exports to code | Open source and model-agnostic |
They are not rivals. A common path is prototype in Studio, then export and continue in ADK.
For an interview answer, frame it as a maturity ladder: explore in Agent Studio, harden in ADK, run on Agent Runtime. Studio's own deploy option still produces a standard ADK application, so the two share a packaging model.
Take quiz
ADK
The Preview tab
The permissions dialog
prototype in Studio, then export code to continue in ADK
export from ADK into a spreadsheet
write ADK first and never use Studio
28. What is the difference between Agent Studio and the Managed Agents API?
Agent Studio is a visual designer. The Managed Agents API is a config-driven, REST-first API for building autonomous agents inside a fully managed sandbox where the agent can take actions.
Use Studio when a person designs and tests the agent by hand. Use the Managed Agents API when you want to create and drive agents programmatically from your own systems and let them act in the managed sandbox.
Both are Build-pillar options, alongside ADK for custom code.
A useful test: if the person who builds the agent is a non-developer iterating on wording, pick Studio. If an application provisions agents on demand for many tenants, pick the API.
Take quiz
a canvas-only tool
config-driven and REST-first
a spreadsheet add-on
on the user's laptop
inside a fully managed sandbox
inside a Gmail inbox
29. Why might agent creation fail in a restricted organization?
The docs note that all configuration files for created agents are stored in the us-west1 region. If an organization policy restricts resource locations and does not allow that region, you might not be able to create an agent.
The fix is administrative: review the Restrict resource locations organization policy and have an admin allow the needed location for the project.
This is easy to miss, because deployment regions are chosen separately at deploy time, while the design-time configuration location is fixed.
Check the policy before a workshop or demo. A new project that inherits a strict location constraint will fail at the first Create agent attempt, which is a bad moment to discover it.
Take quiz
europe-west4 only
asia-south1 only
us-west1
automatic Grant All of roles
faster previews
agent creation to fail
30. How does the permissions dialog in Agent Studio work?
When you click Deploy or open Preview for a saved agent, Studio checks whether the agent's identity has the IAM roles it needs.
If roles are missing, a dialog lists them. Grant All grants every listed role to the identity in one action. Proceed anyway lets you preview or deploy without granting, at the risk of runtime failures. If everything is already granted, the dialog does not show.
It handles the standard roles only. Roles for downstream resources, such as BigQuery Data Viewer for a tool that queries BigQuery, must be granted manually.
Choosing Proceed anyway is fine for a quick experiment, but a missing role then shows up as a failing tool call or a failed knowledge lookup. Production deployments should have every role granted deliberately.
Take quiz
Grant All
Get code
Proceed anyway
you, manually
the dialog automatically
no role is ever needed
31. Which IAM roles does an Agent Studio agent identity need?
It depends on what the agent uses. The permissions dialog grants these automatically.
| Role | Needed when |
roles/storage.objectViewer |
The agent uses uploaded knowledge files (on that bucket) |
roles/mcp.toolUser |
The agent uses an Agent Registry MCP tool |
roles/agentregistry.viewer |
The agent uses a Registry MCP tool or subagent |
roles/iamconnectors.user |
A Registry MCP tool specifies an authProviderName |
roles/aiplatform.viewer |
The agent calls remote subagents via A2A delegation |
The dialog covers the common roles above. Your own tools may need more, and those grants are your responsibility. Prefer granting discoveryengine.viewer on the specific data store rather than the whole project. If you only grant roles at project level during testing, tighten them before production.
Take quiz
roles/mcp.toolUser
roles/storage.objectViewer
roles/aiplatform.viewer
roles/iamconnectors.user
roles/aiplatform.viewer
roles/storage.objectViewer
32. How do you ground a multi-agent design with knowledge files?
You attach the files to the parent agent only. Studio does not let you attach knowledge files to subagents.
So when a subagent needs reference material, you have two options. Keep the facts on the parent and have the parent pass the relevant context into its request, or give the subagent a search-based tool, such as the Agent Search MCP server from Agent Registry, so it can fetch grounding itself.
Keep the 10-file and 2 MB limits in mind when deciding what goes on the parent.
For example, a root agent can hold the return-policy PDF and pass the relevant rule to a refunds subagent in its request, while a product specialist searches the catalog itself through a search tool.
Take quiz
only the Registry subagents
each subagent node
the parent agent node only
a larger canvas
a second Preview tab
a search tool such as the Agent Search MCP server
33. Why shouldn't you upload sensitive files as knowledge?
Uploaded knowledge files are stored in a Cloud Storage bucket in your own project, and the docs warn that anyone with access to the project or that bucket can view them.
That means project-level access, not agent access, decides who can read the documents. If a file contains salary data or customer records that should not be visible to every project principal, do not upload it as knowledge.
The permissions dialog grants the agent's identity only roles/storage.objectViewer on that bucket, which is the right scope for the agent itself.
Practical advice: review each file before upload, strip anything that is not needed for answers, and prefer a governed search tool when content is sensitive and access should follow existing data permissions.
Take quiz
anyone with access to the project or bucket
only the agent
only Google support staff
Storage Object Viewer on the bucket
Owner on the organization
Storage Admin on the project
34. Why does each agent get its own identity?
A per-agent identity lets you apply least privilege: grant each agent only the roles its tools need, and see in IAM and audit logs which agent did what.
If agents shared one account, giving one of them BigQuery access would give all of them BigQuery access. With separate principals, the support agent can read a knowledge bucket while the reporting agent gets a BigQuery role and nothing else.
It also supports A2A delegation, since the parent's identity needs permission to discover and invoke remote subagents.
It also makes cleanup safer. When an agent is retired, removing its single principal from IAM revokes everything it could do, without touching other agents.
Take quiz
automatic prompt translation
least-privilege access and clear attribution
unlimited free tokens
block all previews
also give that access to the others
delete the other agents
35. Why did Agent Studio deprecate direct MCP connections?
Google's stated reason is to enforce security and standardize tool management through Agent Registry. A direct endpoint URL pasted into an agent is hard to govern; a registered MCP server is catalogued, discoverable and tied to IAM.
Direct Vertex AI Search data store tools were deprecated for the same reason. Existing agents that use either keep working in a read-only state, but you cannot edit those tools. To keep full functionality you migrate to an MCP server from Agent Registry.
The interview takeaway: tool access is moving from per-agent wiring to a governed catalog.
Practically, a team with many direct connections should inventory them, register each MCP server, and swap the tool on every agent. Until then those agents keep running, but you lose the ability to adjust their legacy tools.
Take quiz
deleted immediately
upgraded automatically with no action
read-only
remove the Preview tab
reduce the number of regions
enforce security and standardize tool management via Agent Registry
36. How do you migrate from a legacy Vertex AI Search data store tool?
The replacement is the Agent Search MCP server from Agent Registry, which appears as discoveryengine.googleapis.com.
- Note the old tool's project ID, location and data store ID.
- Create a new agent and save it.
- Grant the agent identity
roles/discoveryengine.viewer, ideally on the target data store or app. The dialog grantsroles/mcp.toolUser. - Add the MCP server from Agent Registry with Auth Config None.
- Tell the agent which serving configuration to use in its instructions.
Use the search tool to answer questions about YOUR_TOPIC. When using the search tool, use this servingConfig: projects/PROJECT_ID/locations/LOCATION/collections/default_collection/dataStores/DATA_STORE_ID/servingConfigs/default_search
For a search app, replace dataStores/DATA_STORE_ID with engines/APP_ID.
Take quiz
discoveryengine.googleapis.com
compute.googleapis.com
bigquery.googleapis.com
in the agent's instructions
in the Cloud Billing export
in the VPC route table
roles/discoveryengine.viewer
roles/compute.admin
roles/owner
37. How do you migrate a legacy direct MCP server?
The key prerequisite is that your MCP server must be registered in Agent Registry first. A raw endpoint URL cannot be carried over.
- Register the MCP server in Agent Registry.
- Open the agent in the Studio canvas and remove the legacy direct connection.
- Click Add (+) next to MCP Server from Agent Registry and pick the registered server.
- Click Add, and save if it is the agent's first save.
If the tool reaches other Google Cloud resources, check that the agent identity has the roles for those too.
Registering first also gives you a bonus: the same registered server can be reused by other agents, and its access can be controlled in one place instead of per agent.
Take quiz
the agent must be deleted
the MCP server must be registered in Agent Registry
the project must change regions
converted into a knowledge file
removed from the agent before adding the Registry tool
kept in addition forever
38. Explain the flow from Agent Studio prototype to production?
The path runs from design to a running runtime instance, with a permission check in the middle.
flowchart LR
A["Design with prompts or flow builder"] --> B["Save the agent and get an identity"]
B --> C["Preview and inspect events"]
C --> D{Identity has required roles?}
D -- No --> E["Permissions dialog: Grant All"]
E --> F[Deploy]
D -- Yes --> F
F --> G["Agent Runtime instance created"]
G --> H["Deployments page: Metrics and Playground"]
Saving gives the agent an identity. Preview exercises it, and Deploy creates a runtime instance in the region you pick, which can take up to five minutes. Afterwards you test and watch it from the Deployments page. At any point, Get code lets you leave the canvas and continue in ADK.
Take quiz
a new VPC
a billing alert
an agent identity
the Cloud Shell welcome screen
the Billing reports page
the Agent Platform Deployments page
39. How do you test a deployed agent?
Use the platform's Deployments page rather than the Studio canvas.
- Open Deployments in the Agent Platform console.
- Filter by Region so your agent shows up.
- Click the agent's name to open its Metrics page.
- Switch to the Playground tab, type a test query, and confirm it runs successfully.
Preview tests the saved design; Playground tests the actual runtime instance, so a pass in one does not guarantee a pass in the other, especially if roles differ.
A good habit is to run the same three or four test prompts in Preview before deployment and in Playground after it. Differences between the two usually come from roles, region or network settings on the runtime instance.
Metrics on the same page show how the deployed agent is behaving over time, which is where you look when users report slowness or errors.
Take quiz
Playground
Metrics only
Billing
agents are listed per deployment region
to reset the agent identity
to change the model
40. When should you move from Agent Studio to ADK?
Move when the canvas stops being the fastest way to express what the agent must do.
Typical triggers are custom orchestration logic, tests and code review in a repository, a framework such as LangGraph, or behaviour you need to simulate and control tightly. ADK gives granular control over logic, tools and environment simulation, which a visual designer cannot match.
The move is cheap because Get code hands you the generated agent code. Prototype in Studio to settle instructions, tools and subagent structure, then continue in code once you need versioning and CI.
A caution: moving is a one-way habit. Once logic lives in code and tests, editing the canvas copy creates drift, so announce the cut-over to the team and archive or label the Studio version as the prototype.
Take quiz
needing a bigger Preview window
needing custom orchestration and tests in a repository
wanting to hide the agent from IAM
ADK deletes the Studio agent
Get code exports the generated agent code
Studio forbids exports
41. How do you troubleshoot an agent that fails in Preview?
Work from the cheapest check to the most specific.
- Permissions: look for the notification in Preview. Click Manage and use Grant All, or add roles manually.
- Events: click the failing event and read the author, request and response, tool calls and metadata.
- Tool access: for a Registry MCP tool, confirm
roles/mcp.toolUserandroles/agentregistry.viewer; for downstream resources such as BigQuery, add those roles yourself. - Grounding: if answers ignore a file, confirm the agent was saved and the file is on the parent agent.
The preview error text is shown directly in the tab, so read it before changing anything.
If the same prompt works in Preview but fails after deployment, compare the roles on the deployed instance and the region. Preview runs under the saved agent's identity checks, while the runtime has its own configuration.
Take quiz
the Cloud DNS zone
the Pub/Sub quota
the identity permissions notification
region only
timestamp only
author
42. What is the difference between Sessions and Memory Bank?
Both give agents state, but over different time spans. Sessions manage stateful data and context within a single agent interaction. Memory Bank gives agents persistent memory so they can recall information across multiple sessions.
| Sessions | Memory Bank |
| Scope: one conversation | Scope: across conversations |
| Holds the running context | Holds recallable memories |
| Ends with the interaction | Persists afterwards |
Example: a user's current question and earlier turns sit in the session; a remembered preference such as "always reply in French" belongs in Memory Bank.
Design tip: keep sensitive or short-lived details in the session, and write to long-term memory only what is worth remembering. Memory Bank also has its own controls, including IAM Conditions, so what is remembered can be restricted. Deciding what to store is a product decision as much as a technical one.
Take quiz
Memory Bank
Agent Garden
Sessions
Sessions
Memory Bank only
Agent Registry
43. How does A2A delegation work between agents?
The parent agent finds a remote subagent through Agent Registry, reads its Agent Card, and sends it work over the Agent2Agent protocol. In generated code, AgentRegistry.get_remote_a2a_agent resolves the subagent at runtime.
sequenceDiagram participant U as User participant P as Parent agent participant R as Agent Registry participant S as Remote A2A subagent U->>P: Request P->>R: Resolve subagent and Agent Card R-->>P: Card and endpoint P->>S: Delegate task S-->>P: Result P-->>U: Final answer
It only works if the parent's identity may discover and invoke the subagent. Studio's permissions dialog grants roles/agentregistry.viewer and roles/aiplatform.viewer for this; you can also grant them manually.
If delegation fails, check three things in order: the subagent is registered and published, the parent identity has the Registry and AI Platform viewer roles, and the subagent was deployed as an A2A asset.
Take quiz
Cloud CDN
Agent Registry
Memorystore
change the subagent's model
discover and invoke the A2A subagent
delete the subagent
44. How can you evaluate an agent built in Agent Studio?
Start by hand in Preview, then use the platform's Optimize tooling once the agent matters.
The evaluation section of the platform covers offline evaluations, simulated agent behaviour, online monitors for continuous evaluation, evaluation metrics, analysis of failure clusters, quality alerts and prompt optimization. Together they take you from "it worked in my test chat" to measurable quality over time.
The exact setup steps vary by release, so check the current evaluation docs before promising specifics in an interview.
For a Studio agent, a sensible loop is: build a small set of representative questions, run them offline, read the failure clusters, adjust instructions in the canvas, and rerun. After deployment, online monitors catch regressions you did not anticipate.
Take quiz
the Get code button
manual Preview chats only
online monitors
rename the agent
change the Cloud region
see groups of similar failures
45. How does Agent Gateway fit into agent governance?
Agent Gateway sits in the Govern pillar and controls the traffic going to and from agents. The docs describe routing Agent Runtime traffic and Gemini Enterprise traffic through a gateway, applying extensible policies, monitoring traffic, and configuring Model Armor on a gateway for content security.
Compare roles: Agent Identity decides who the agent is, Agent Registry decides what exists and is discoverable, and Agent Gateway inspects and governs the calls in between.
I am describing it from the documented structure; read the current gateway overview for exact capabilities.
A concrete picture: an agent on Agent Runtime calls an external MCP server. Instead of going directly, the call passes through the gateway, where policy can allow, block or inspect it, and the traffic is visible in monitoring.
Take quiz
traffic to and from agents
agent prompt wording
Cloud Storage lifecycle rules
on a gateway
only in Colab notebooks
only inside Preview
46. What is the difference between Agent Studio and CX Agent Studio?
The names are close, so clarify which one is meant. Agent Studio in the Gemini Enterprise Agent Platform is the low-code designer for general enterprise agents. CX Agent Studio is a separate low-code, Gemini-powered platform aimed at conversational customer-experience agents; community resources describe it as building on Dialogflow CX lineage and supporting root agents with sub-agents.
| Agent Studio | CX Agent Studio |
| Part of Gemini Enterprise Agent Platform | Conversational AI for customer experience |
| Deploys to Agent Runtime | Has its own console and docs |
| Registry subagents and MCP tools | Aimed at chatbot and contact-centre scenarios |
Product packaging evolves, so confirm against current Google documentation.
The practical difference shows in the console and docs you open. Agent Studio agents live under the Agent Platform's Agents page and deploy to Agent Runtime, while CX Agent Studio has its own documentation and console path.
Take quiz
network load balancing
conversational customer-experience agents
BigQuery table design
a Dialogflow phone gateway
Agent Runtime
Cloud Functions only
47. Which is better for grounding: knowledge files or Agent Search MCP?
It depends on size, freshness and who needs access. Knowledge files are the quick option for a small, static set; Agent Search through MCP suits larger or changing enterprise content.
| Knowledge files | Agent Search MCP |
| Up to 10 files, 2 MB each, PDF or text | Searches a data store or search app |
| Parent agent only | Needs a servingConfig in the instructions |
| Stored in a project bucket | Agent needs discoveryengine.viewer access |
| Good for a handbook or FAQ | Good for big or frequently updated content |
Pick files for a pilot, then switch to search when limits or freshness start to hurt.
A hybrid also works: a small, stable policy file on the parent as knowledge, plus a search tool for the large catalog. Test both in Preview with questions whose answers exist only in one source, to see which one the agent actually used.
Take quiz
a single 2 MB PDF
a Preview chat history
Agent Search through the MCP server
Google Search tool
knowledge files
Agent Search MCP
48. How would you design a multi-agent support assistant in Agent Studio?
Use a root agent that triages and hands work to specialists.
flowchart TD U["Customer question"] --> R["Root triage agent"] R -->|billing| B["Local billing subagent"] R -->|technical| T["Registry A2A technical subagent"] R --> K["Knowledge files: policy FAQ"] B --> M["Registry MCP tool: orders"] T --> S["Agent Search MCP: product docs"]
Keep the policy FAQ as knowledge files on the root, since subagents cannot hold files. Write the root's instructions as clear routing rules. Make billing a local subagent, and reuse an existing technical specialist from Agent Registry. Grant each identity only what it needs, test with realistic chats in Preview, and read the event author to confirm routing before you deploy.
Test the routing with ambiguous messages too, such as a billing complaint that mentions a bug. If the root sends it to the wrong specialist, sharpen the routing rules in its instructions and the descriptions of the subagents.
Take quiz
on the root (parent) agent
on the Registry
on each subagent
inspect the event author in Preview
count the canvas nodes
check the billing invoice
49. How would you move a Studio agent into a CI/CD workflow?
Studio auto-saves changes but the docs do not describe a built-in release process, so treat the canvas as the prototype and put the release in code.
- Use Get code to export the agent and commit it to a repository.
- Continue in ADK, with the Agents CLI to scaffold, test and deploy.
- Provision runtime agents with Terraform, which the platform documents for Agent Runtime.
- Gate releases on offline evaluations, then deploy to Agent Runtime.
After the move, the repo is the source of truth. Editing the canvas copy afterwards would let the two drift apart.
Also keep a record of which Studio agent version produced the exported code, for example in the commit message, so reviewers can trace the repo back to the prototype that was tested.
Take quiz
Grant All
Get code
Deploy as A2A
the Preview chat history
the code repository
the Studio canvas copy
50. How would you secure an agent end to end before production?
Layer the controls, because no single setting covers everything.
- Identity: rely on the per-agent identity and grant least-privilege roles, adding downstream roles manually and only where needed.
- Tools: use MCP servers from Agent Registry, not direct endpoints, and turn off Google Search and URL context if the agent should stay closed-domain.
- Data: keep sensitive files out of knowledge uploads, since anyone with project access can read the bucket.
- Traffic: route calls through Agent Gateway and add Model Armor for content checks.
- Quality and audit: run evaluations, set up monitoring and quality alerts, and watch traces and logs after launch.
Finish with a pre-launch review: confirm the roles on the agent principal match the tools list, no deprecated tools remain, the deployed region is approved, and an owner is named for alerts. That review catches most gaps that individual controls leave.