Domain 3: Developing Custom Agents (Part 3 of 3)
This lesson covers 4 exam topics: Custom Integrations for Agents, MCP and A2A, Multi-Agent Workflow Patterns, Agent Runtime and Agent Policies. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Custom Integrations for Agents
Central question: How do you build custom integration layers for databases, APIs and SaaS tools?
Facts (design guidance; products verified)
- Wrap internal APIs and databases (Cloud SQL, Firestore, BigQuery) as MCP servers or function tools with narrow, well-described operations.
- Host custom MCP servers on Cloud Run or GKE; protect them with IAM (for example IAP for Cloud Run MCP) and register them in Agent Registry.
- Connect third-party SaaS through MCP servers using OAuth 2.0 (auth manager) so each user's permissions apply.
Exam traps
- One generic 'run any SQL' tool. Expose narrow, purpose-built operations.
- Shared admin credentials for SaaS tools. Use per-user OAuth.
2. MCP and A2A
Central question: When do you use MCP and when A2A?
Facts
| Protocol | Connects | Use |
|---|---|---|
| MCP (Model Context Protocol) | Agent to tools, data, prompts | Give an agent capabilities |
| A2A (Agent2Agent) | Agent to agent | Delegate a task to another agent that reasons for itself |
- Remote MCP servers communicate over HTTP; local MCP servers typically use stdio (Agent Retrieval MCP docs).
- Agent Runtime supports deploying agents with the Agent2Agent open protocol; ADK agents can expose and call A2A agents.
- Agent Gateway mediates protocols, connecting agents using MCP and A2A under policy.
Exam traps
- MCP to call another team's reasoning agent. Use A2A.
- A2A for a simple database lookup. Use an MCP tool.
3. Multi-Agent Workflow Patterns
Central question: Which multi-agent pattern fits the workflow?
Facts
| Pattern | Use |
|---|---|
| Sequential | Fixed order of steps |
| Parallel | Independent subtasks at the same time, then merge |
| Loop | Repeat until a condition, with a maximum |
| Graph workflow | Branching and joins with explicit control (ADK 2.0) |
| Coordinator / delegation | An LLM agent routes to specialist subagents |
- ADK template workflow agents (Sequential, Parallel, Loop) run sub-agents by predefined logic without asking a model to orchestrate, giving deterministic execution; ADK 2.0 adds graph-based and dynamic workflows (ADK docs).
- Handoffs: a coordinator can transfer control to a subagent, or call subagents like tools and keep ownership.
Exam traps
- Coordinator LLM for a fixed pipeline. Use a sequential or graph workflow.
- Loops without a maximum. Bound them.
4. Agent Runtime and Agent Policies
Central question: How do Agent Runtime and agent policies coordinate agents in production?
Facts
- Agent Runtime (formerly Agent Engine; API resource ReasoningEngine) is a fully managed runtime to deploy, operate and scale agents, with VPC-SC compliance, IAM and authentication, custom container build scripts, and support for multiple frameworks and A2A (Agent Runtime docs).
- Agent Platform overview: Agent Runtime offers sub-second cold starts and long-running agents; Sessions and Memory Bank add state and memory.
- Coordination under governance: Agent Identity (who), Agent Registry (what's approved), agent policies (IAM allow/deny, semantic governance) enforced by Agent Gateway.
Exam traps
- Running production agents on a laptop scheduler. Use Agent Runtime.
- Coordinating agents with no identity or policy. Use Identity, Registry and policies.
References
- PAA exam guide — checked Oct 26, 2026
- IAP for Cloud Run MCP — checked Oct 26, 2026
- Agent Registry — checked Oct 26, 2026
- Agent Runtime — checked Oct 26, 2026
- Agent Gateway overview — checked Oct 26, 2026
- ADK workflow agents — checked Oct 26, 2026
- Agent Platform overview — checked Oct 26, 2026
- Policies overview — checked Oct 26, 2026
Check your understanding
Host a custom MCP server?Show answerHide answer
Answer
Cloud Run (or GKE).Delegate booking to a partner's agent?Show answerHide answer
Answer
A2A.Search flights and hotels at once?Show answerHide answer
Answer
Parallel.Old name of Agent Runtime?Show answerHide answer
Answer
Agent Engine (ReasoningEngine in the API).SaaS access as the user?Show answerHide answer
Answer
3-legged OAuth.