Domain 3: Evaluate, Optimize, and Monitor Multi-Agent Solutions (Part 1 of 2)
This lesson covers 4 exam topics: Human Review and Component Evaluations, Task Duration, Parallelism and Rate Limits, Diagnosing Context Window Issues, Continuous Improvement Loops. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Human Review and Component Evaluations
Central question: How do people and evaluators judge memory, knowledge, tools and prompts?
Facts
- Human evaluation (preview): builders create templates with question types thumbs up/down, slider, multiple choice, free-form text; templates start Inactive and must be activated; creators need Foundry Project Manager, reviewers need Foundry User plus Reader on the account.
- Trace annotations (preview): thumbs up/down on traces from builders (source builder) or end users (source end_user); annotations are appended, never overwritten; default template scores up = 1.0 pass, down = 0.0 fail.
- Agent evaluators: system (task completion, task adherence, intent resolution, task navigation efficiency, customer satisfaction) and process (tool call accuracy, tool selection, tool input accuracy, tool output utilization, tool call success).
- RAG evaluators (retrieval, document retrieval, groundedness, relevance, completeness) assess knowledge; custom evaluators (code-based grade() returning 0.0–1.0, prompt-based judge, endpoint-based) cover domain rules such as memory accuracy.
Design guidance
- Evaluate memory by checking recall of seeded facts and absence of stale or wrong facts; evaluate prompts as versions on the same dataset.
Exam traps
- Only final-answer evaluation for multi-step agents. Add process evaluators.
- Template not activated, so reviewers see nothing.
- Reviewer role too high (Owner) when Foundry User suffices.
2. Task Duration, Parallelism and Rate Limits
Central question: How do you make multi-agent tasks finish faster within rate limits?
Facts
- Deployments have TPM and RPM limits by model, deployment type and quota tier; exceeding them returns 429.
- Parallel function calls and concurrent orchestration cut wall-clock time for independent steps; agentic retrieval runs subqueries in parallel.
- API Management llm-token-limit caps tokens per minute or quota per key; with estimate-prompt-tokens it can reject before calling the backend.
- Provisioned throughput gives dedicated capacity; batch suits non-urgent bulk work.
Design guidance
- Find the critical path in traces; parallelize independent steps, cache repeated work, use smaller models for simple steps, and stream partial results.
- Respect Retry-After with exponential backoff and jitter; cap concurrency below quota.
Exam traps
- Parallelizing dependent steps.
- Immediate retries on 429 without backoff.
- Optimizing average latency only. Track percentiles per step.
3. Diagnosing Context Window Issues
Central question: Why does the agent forget or confuse things in long conversations?
Facts (design guidance, with verified mechanisms)
| Symptom | Likely cause | Fix |
|---|---|---|
| Sliding-window amnesia | Early facts fell out of a recency window | Pin key facts, summarize, or move to memory |
| Summary drift | Repeated summaries lose or distort details | Keep source facts structured; re-summarize from originals; evaluate summaries |
| Vector-only recall | Semantic search misses exact names, IDs, dates | Hybrid search, metadata filters, structured memory |
| Entity continuity | Same person or item tracked inconsistently | Entity store with IDs; resolve references explicitly |
- Agent Framework compaction strategies (truncation, sliding window, summarization, tool result compaction) trade context for tokens; system messages are always preserved.
- Foundry memory consolidates duplicates and resolves conflicting facts; user profile memory should be retrieved early in each conversation.
- Hybrid search combines keyword and vector retrieval, fixing exact-term misses.
Exam traps
- Bigger context window as the only fix.
- Summaries of summaries with no source of truth.
- Vector-only memory for IDs and dates.
4. Continuous Improvement Loops
Central question: How does the system keep getting better after launch?
Facts
- LLM-as-a-judge: prompt-based custom evaluators and built-in AI-assisted evaluators score outputs; judges are non-deterministic, so calibrate against human labels.
- Synthetic evaluation data: Foundry generates simple Q&A (single-turn) or simulation seeds (multi-turn) from an agent definition, a prompt or a reference file; synthetic covers edge cases and prelaunch, trace-based data reflects real behavior; use both.
- Agent optimizer: evaluate baseline, generate candidates (instructions, skills, tool descriptions, model choice), evaluate candidates on the same dataset, promote the best: a semantic optimization loop.
- User feedback loops: end-user thumbs up/down logged as trace annotations; continuous evaluation scores production traffic; Insights clusters recurring issues from traces.
Exam traps
- Trusting an uncalibrated judge.
- Synthetic data only after launch. Add trace-based data.
- Feedback collected but never fed back into datasets.
References
- AI-500 study guide — checked Oct 22, 2026
- Human evaluation — checked Oct 22, 2026
- Trace annotations — checked Oct 22, 2026
- Agent evaluators — checked Oct 22, 2026
- Custom evaluators — checked Oct 22, 2026
- Azure OpenAI quotas and limits — checked Oct 22, 2026
- Function calling — checked Oct 22, 2026
- llm-token-limit — checked Oct 22, 2026
- Compaction — checked Oct 22, 2026
- Memory in Foundry Agent Service — checked Oct 22, 2026
- Synthetic evaluation dataset — checked Oct 22, 2026
- Agent optimizer — checked Oct 22, 2026
Check your understanding
Wrong tool parameters?Show answerHide answer
Answer
Tool input accuracy.Three independent lookups?Show answerHide answer
Answer
Run in parallel.Agent forgets the order number from turn 2?Show answerHide answer
Answer
Sliding-window amnesia.No production traffic yet, need test data?Show answerHide answer
Answer
Synthetic generation.Reviewers rate with a 1–5 slider?Show answerHide answer
Answer
Human evaluation template.