Domain 4: Evaluating and Deploying Agentic Workflows (Part 2 of 2)
This lesson covers 3 exam topics: Choosing a Deployment Runtime, Troubleshooting Agents, Monitoring and Optimizing Agents. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Choosing a Deployment Runtime
Central question: Which runtime should host the agent?
Facts
| Runtime | Fits |
|---|---|
| Agent Runtime | Managed agent hosting: sessions, memory, identity, governance built in |
| Cloud Run | Serverless containers; any framework; scale to zero; supports Agent Identity |
| GKE | Full control, custom networking, sidecars, existing Kubernetes platform |
- ADK agents run locally or scale on Runtime, Cloud Run or GKE (ADK page).
- Agent Runtime abstracts infrastructure, supports multiple frameworks and A2A, VPC-SC and IAM (Agent Runtime docs).
- Cost and operations rise from Agent Runtime and Cloud Run to GKE; choose GKE only when its control is required.
Exam traps
- GKE for a simple agent. Agent Runtime or Cloud Run means less to operate.
- Building your own session store when Agent Runtime provides Sessions and Memory Bank.
2. Troubleshooting Agents
Central question: How do you troubleshoot common agent failures?
Facts (design guidance; observability tools verified)
| Symptom | Likely cause | Fix |
|---|---|---|
| Quality slowly drops | Drift: data, tools or model changed | Re-evaluate; update prompts, data, golden set |
| Slow responses | Tool invocation latency | Trace spans; cache; parallelize; faster tools |
| Agent repeats steps forever | Reasoning loop | Max iterations, clearer tool results, stop conditions |
| Errors or timeouts | System failures: auth, quotas, tool outages | Retries with backoff, fallbacks, alerts |
- Cloud Trace shows the spans of an agent run, including model calls and tool calls, to locate latency; Cloud Logging records errors and tool inputs and outputs.
Exam traps
- Raising the model tier to fix a slow tool. Trace first.
- Unbounded loops. Always set a maximum.
3. Monitoring and Optimizing Agents
Central question: How do you monitor and optimize agents for performance, reliability and cost?
Facts (design guidance; tools verified)
- Observe with Google Cloud Observability: Cloud Logging and Cloud Trace for runs, Cloud Monitoring for metrics and alerts.
- Track latency per step, error rate, tool success, task success, hallucination rate and token cost per task.
- Optimize: smaller models for simple subtasks, context caching, fewer tool round trips, parallel tool calls, and caching tool results.
- Agent Gateway token management policies will enforce shared token budgets (coming soon) (Agent Gateway overview).
Exam traps
- Only tracking uptime. Track task success and cost per task.
- One frontier model for every step.
References
- PAA exam guide — checked Oct 26, 2026
- Agent Runtime — checked Oct 26, 2026
- Agent Development Kit — checked Oct 26, 2026
- Agent Gateway overview — checked Oct 26, 2026
Check your understanding
Managed sessions and memory?Show answerHide answer
Answer
Agent Runtime.Which step is slow?Show answerHide answer
Answer
Cloud Trace spans.Find hallucination trends?Show answerHide answer
Answer
Score sampled traces.Custom sidecars and networking?Show answerHide answer
Answer
GKE.Agent calls the same tool repeatedly?Show answerHide answer
Answer
Reasoning loop: bound and clarify.