A team wants every change to its Foundry agent tested against a set of queries with built-in evaluators, and the results compared with the current version, before deployment. What fits?
- Exam domain
- Plan and manage an Azure AI solution25–30% of the exam
- Difficulty
- Hard
- In this mock
- 17 questions on this domainPractise this domain
Why the exam asks this
Plan and manage an Azure AI solution: Set up AI solutions in Foundry.
Objective in the exam guide: Integrate Foundry projects with continuous integration and continuous deployment (CI/CD) pipelines.
Agents change often, and small prompt edits can break them. The exam checks that you automate quality checks in the pipeline.
Why A is the answer
The AI agent evaluation GitHub Action in the CI/CD pipeline
The GitHub Action runs offline evaluation inside CI/CD: it invokes the agent with test queries, runs the chosen evaluators and reports scores with confidence intervals.
Remember: Make evaluation a pipeline gate, not a manual step.
How it works
The AI agent evaluation GitHub Action takes a dataset of test queries and a list of evaluators, runs the agent, and writes a summary report.
Results include confidence intervals and a significance test, so you can tell real regressions from noise.
Hosted agents can also be deployed by pipeline templates that deploy, invoke and check a response.
Clues in the question
The words that point to the answer, and what each one tells you.
- Every change
- Automated in CI/CD.
- Compared with the current version
- A statistical comparison.
In detail
- When two agent versions are compared, the report shows whether differences are statistically meaningful.
- Microsoft suggests not running it on every commit, to control cost.
Side by side with look-alikes
| Option | Repeatable | Compares versions |
|---|---|---|
| Evaluation GitHub Action | Yes | Yes, with significance |
| Playground test | No | No |
| Deployment-day policy | n/a | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The AI agent evaluation GitHub Action in the CI/CD pipelineRight
Make evaluation a pipeline gate, not a manual step.
B. A manual chat test in the playground before each releaseWrongMost tempting
Manual tests are not repeatable or comparable.
Why it tempts: Testing in the playground is a real step during development. But it is not repeatable and gives no comparison.
C. An Azure Policy that blocks deployments on FridaysWrong
A day-of-week rule tests nothing.
D. A larger quota for the agent's modelWrong
Quota does not measure quality.
In practice
- Run the Action on pull requests that touch the agent, not on every commit.
- Use OIDC sign-in from GitHub to Azure instead of stored secrets.
Use case
An illustrative scenario, not a real incident.
A pull request that rewrites the agent's instructions shows a drop in task completion in the Action summary, so it is fixed before merge.
See how it works
flowchart LR
P["Pull request changes the agent"] --> E["Evaluation Action: test queries + evaluators"]
E --> C{"Scores hold vs current version?"}
C -- "Yes" --> D["Deploy"]
C -- "No" --> F["Fix before merge"]How to read this chart
- "Pull request changes the agent" leads to "Evaluation Action: test queries + evaluators".
- "Evaluation Action: test queries + evaluators" leads to "Scores hold vs current version?".
- At "Scores hold vs current version?": if "Yes", go to "Deploy"; if "No", go to "Fix before merge".