Domain 3: Developing Custom Agents (Part 2 of 3)
This lesson covers 4 exam topics: RAG Pipelines for Agents, Vector Search and Agent Retrieval, Agent Identity and Permissions, Agent Registry and MCP Servers. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. RAG Pipelines for Agents
Central question: How do you design a RAG pipeline for agents?
Facts
- RAG steps: ingest, transform (chunk), embed, index, retrieve by similarity (for example cosine or dot product), optionally rerank, then generate with citations (RAG Engine overview).
- Reranking reorders retrieved candidates with a more precise model, improving relevance before generation.
- Hybrid search combines semantic (vector) and keyword search, helping with exact terms such as product codes.
- Managed options: Agent Search (prebuilt RAG), RAG Engine (configurable), Agent Retrieval and Vector Search as vector stores.
Design guidance
- Chunk by meaning (sections) with overlap; store metadata for filtering and permissions; evaluate retrieval quality separately from answer quality.
Exam traps
- Fine-tuning to add knowledge. Use RAG.
- Vector-only search for part numbers. Use hybrid search.
2. Vector Search and Agent Retrieval
Central question: Vector Search or Agent Retrieval?
Facts
- Vector Search (1.0) is an approximate nearest neighbor (ANN) index-as-a-service; you create, deploy and manage indexes.
- Agent Retrieval (formerly Vector Search 2.0) is a self-tuning, fully managed, AI-native search engine built around collections of data objects, with replicated storage so it can be the single data source; it supports VPC Service Controls (Agent Retrieval overview).
- The Agent Retrieval remote MCP server lets agents and AI apps (including Antigravity) inspect collections and run vector, semantic, hybrid and text search.
Exam traps
- Building a separate document store next to Agent Retrieval. It stores the data objects.
- Hand-tuning ANN index parameters when a managed, self-tuning option fits.
3. Agent Identity and Permissions
Central question: How does Agent Identity give each agent its own permissions?
Facts
- Agent Identity provides a strongly attested cryptographic identity per agent, based on SPIFFE; unlike service accounts, agent identities aren't shared by default, can't be impersonated, and don't allow long-lived keys; Google Cloud access tokens are bound to the agent's X.509 certificate (Agent Identity overview).
- Supported on Agent Runtime, Gemini Enterprise and Cloud Run.
- Authentication models: user-delegated (3-legged OAuth through the auth manager), agent's own authority to Google Cloud (Agent Identity), and OIDC ID tokens to external services.
- Integrates with IAM, Principal Access Boundary and VPC Service Controls.
Exam traps
- One shared service account for all agents. Use per-agent identities.
- Long-lived keys for an agent. Agent identities don't allow them.
4. Agent Registry and MCP Servers
Central question: How do Agent Registry and Google Cloud MCP servers provide capabilities?
Facts
- Agent Registry is the central hub to store, discover and manage MCP servers, tools, skills (preview), agents and endpoints; agents on supported runtimes register automatically; Agent Gateway checks it before allowing connections (Agent Registry, Agent Gateway docs).
- Google Cloud MCP servers are managed remote servers for services such as BigQuery, Cloud SQL and the gcloud CLI, secured with OAuth and IAM; IAM deny policies can block write tools.
- Register custom MCP servers and endpoints so orchestrators can discover them under governance.
Exam traps
- Hard-coding tool URLs in each agent. Register them in Agent Registry.
- Building a custom BigQuery MCP server when a managed one exists.
References
- PAA exam guide — checked Oct 26, 2026
- RAG Engine overview — checked Oct 26, 2026
- Hybrid search — checked Oct 26, 2026
- Agent Retrieval overview — checked Oct 26, 2026
- Agent Retrieval MCP server — checked Oct 26, 2026
- Agent Identity overview — checked Oct 26, 2026
- Agent Registry — checked Oct 26, 2026
- Google-managed MCP servers — checked Oct 26, 2026
Check your understanding
Improve top results precision?Show answerHide answer
Answer
Reranking.Formerly Vector Search 2.0?Show answerHide answer
Answer
Agent Retrieval.Identity standard?Show answerHide answer
Answer
SPIFFE with X.509 certificates.Central catalog of agents, tools, MCP servers?Show answerHide answer
Answer
Agent Registry.Exact SKU plus meaning?Show answerHide answer
Answer
Hybrid search.