Domain 3: Test and Manage Agents
This lesson covers 4 exam topics: Agent Evaluation: Test Sets and Methods, Reviewing Evaluation Results, Solutions and Environment Variables, Power Platform Pipelines for Agents. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Agent Evaluation: Test Sets and Methods
Central question: How do you test an agent systematically?
Test sets
- A single response test set has up to 100 test cases; conversation (multi-turn) evaluations also exist.
- Create cases manually, import a spreadsheet/CSV, or generate with AI from the agent's design and resources.
- Results are kept 89 days; export to CSV to keep longer.
Test methods
| Method | Checks | Score |
|---|---|---|
| General quality | Response quality (relevance, completeness); no expected answer needed | % |
| Content safety | Harmful content (hate, violence, self-harm, sexual) | Pass/fail |
| Compare meaning | Meaning vs expected answer | % |
| Tool use | Used all/any expected tools (capabilities) | Pass/fail |
| Keyword match | Expected keywords or phrases present | Pass/fail |
| Text similarity | Text vs expected answer | % |
| Exact match | Identical to expected answer | Pass/fail |
| Custom | Your defined criteria/labels | Pass/fail |
Exam traps
- Exact match for free-form answers. Use compare meaning.
- Testing only happy paths.
- Losing results after 89 days without export.
2. Reviewing Evaluation Results
Central question: How do you turn evaluation results into improvements?
Facts
- Results show a test run table (each conversation, message count, scores), an overall score, per-method Pass/Fail or percentages, and credits used (agent responses plus grading).
- Open individual conversations to see the agent's responses and reasoning/activity.
- Low general quality scores → review and refine the agent's instructions; results can be exported to CSV.
Improvement loop (design guidance)
Run → sort failures → classify cause (knowledge gap, wrong tool, instructions, topic trigger) → fix → rerun the same test set → compare versions.
Exam traps
- Changing several things at once, so you can't tell what helped.
- New test set after each fix instead of rerunning the same one.
- Ignoring evaluation credit costs.
3. Solutions and Environment Variables
Central question: How do agents move between environments?
Solutions
- Every agent is created in a Power Platform solution (a "carrier"); by default the default solution, changeable by setting a preferred solution.
- Create custom solutions, add existing agents and components, then export and import across environments (also used by pipelines).
- Managed vs unmanaged layers apply (you can remove an unmanaged layer from a managed agent).
Environment variables
- Store per-environment configuration (endpoints, site URLs, IDs) separately from components; types Decimal, Text, JSON, Two options, Data source, Secret (Secret uses Azure Key Vault).
- Current value overrides the default value; set values per target environment on import.
- In Copilot Studio they're read-only; republish agents after values change.
Exam traps
- Agents in the default solution for ALM.
- Hard-coded URLs instead of environment variables.
- Secrets as Text variables instead of the Secret type.
4. Power Platform Pipelines for Agents
Central question: How do you automate agent deployments safely?
Facts
- Pipelines in Power Platform bring ALM automation and CI/CD: admins configure pipelines; makers deploy solutions in-product from development environments.
- Deployments are prevalidated against the target (missing dependencies caught early).
- Both managed and unmanaged solutions are exported and stored in the pipelines host for every deployment.
- The pipelines host should be a production environment; target environments must be Managed Environments (developer environments needn't be).
- Approval-based delegated deployments secure production; developers can extend pipelines (e.g. gated extensions with Power Automate) and run them with the Power Platform CLI; reporting via Power BI.
Exam traps
- Manual export/import for every release.
- Non-managed target environments.
- No approval gate before production.
References
- AB-620 study guide — checked Oct 22, 2026
- Create a test set — checked Oct 22, 2026
- Evaluation overview — checked Oct 22, 2026
- View evaluation results — checked Oct 22, 2026
- Solutions in Copilot Studio — checked Oct 22, 2026
- Export and import with solutions — checked Oct 22, 2026
- Environment variables — checked Oct 22, 2026
- Pipelines overview — checked Oct 22, 2026
Check your understanding
Max cases in a single response test set?Show answerHide answer
Answer
100.Low general quality scores?Show answerHide answer
Answer
Refine instructions (and knowledge).Package agents for another environment?Show answerHide answer
Answer
Custom solution, export/import.Where are deployed solution artifacts stored?Show answerHide answer
Answer
Pipelines host.Did the agent call the right tool?Show answerHide answer
Answer
Tool use method.