A full Microsoft Certified: Multi-Agent AI Solutions Expert mock exam: 60 questions in 100 minutes, scored against the real exam's pass mark. Your first one is free.
Think first How would you give each agent in a multi-agent solution only the access it needs, and prove it is safe before release?
Why it matters: Questions describe an agent's access, credential or network need and ask which identity, role, Key Vault setting or test fits.
Every agent gets its own Entra identity with no permissions, and you grant roles at resource or resource-group scope where possible. Azure RBAC is the recommended way to authorize the Key Vault data plane. The AI Red Teaming Agent then probes the solution before deployment.
Reported, thanks
Step 2 of 11
Term
Meaning
Agent identity
A special Microsoft Entra service principal that represents one agent instance when it calls downstream resources.
Agent identity blueprint
The parent object agent identities are created under; it is allowed to impersonate them.
Delegated access
On-behalf-of access where the agent acts for the signed-in user instead of as itself.
Attack Success Rate
The share of red teaming attacks that draw an undesirable response; the key scan metric.
Reported, thanks
Step 3 of 11
A new agent identity has no resource permissions. Foundry assigns no RBAC roles or downstream rights to it, so you grant access in each target service. Agent Service uses a federated credential on the blueprint to create identities and get tokens. No client secret or certificate is needed, and agent code never holds the credential.
Exam trap Creating an agent identity does not give it access to storage, search or other services. Until you assign roles in the target service, its calls are not authorized.
Reported, thanks
Step 4 of 11
Scope roles to a resource or resource group. Prefer the narrowest Azure RBAC scope that meets the agent's needs over subscription-wide access. Permissions also stop at each boundary. Agent identities can take Conditional Access policies, identity protection and network access controls.
Exam trap Permission to manage an agent does not let a principal call it at runtime. A runtime caller also gains no automatic access to resources behind the agent.
Reported, thanks
Step 5 of 11
An agent acts as itself or on behalf of a user. With agent identity, Agent Service requests a token scoped to the target service's audience, which is its OAuth resource identifier. With delegated access, both the agent and the user must be authorized.
Agent identity and delegated access compared
Feature
Agent identity
Delegated (on-behalf-of)
Who the agent acts as
Its own agent identity
The signed-in user
Who needs access
The agent identity, granted in the target service
The agent for the delegated permissions, and the user for the resource
How it works
Agent Service runs an automatic OAuth 2.0 token exchange with Entra ID
In preview; needs agent blueprint endpoint access
Reported, thanks
Step 6 of 11
Prefer Entra ID with a managed identity to shared keys. For Azure Storage, disabling Shared Key authorization where compliance allows removes key rotation entirely. In API Management, the authentication-managed-identity policy gets a token and sends it as a Bearer value in the Authorization header. Without client-id, it uses the system-assigned identity. On a self-hosted gateway, set authentication-provider="WorkloadIdentity" and omit client-id.
Exam trap API Management does not check which backend receives the managed identity token. Sending tokens only to trusted backends is your responsibility.
Reported, thanks
Step 7 of 11
The agent subnet must be /27 or larger. Start with /24 or larger for busy production workloads. Several Foundry resources can share a virtual network, but each needs its own agent subnet. The Foundry resource sits in the same region as the virtual network, while Cosmos DB, Foundry IQ and Storage may be elsewhere. People who build agents need the Foundry User role on the project.
Exam trap You cannot add virtual network injection to an existing Foundry account for hosted agents. Include it when you first create the account.
Reported, thanks
Step 8 of 11
Azure RBAC is the recommended Key Vault data plane model. From API version 2026-02-01 it is also the default for new vaults. Under the legacy access policy model, broad roles can grant themselves data access. RBAC works with Privileged Identity Management, so privileged rights expire. Changing enableRbacAuthorization needs Microsoft.KeyVault/vaults/write, and the portal also needs role assignment rights to avoid lockout.
Key Vault permission models compared
Feature
Access policy model
Azure RBAC
Who can grant data plane access
Contributor, Key Vault Contributor or any role with vaults/write
Owner or User Access Administrator
When it applies
Vaults whose enableRbacAuthorization is null keep using it
Default for new vaults from API version 2026-02-01
Exam trap Updating an existing vault with API version 2026-02-01 or later does not switch it to Azure RBAC. It changes only when you set enableRbacAuthorization yourself.
Reported, thanks
Step 9 of 11
Key Vault can trigger rotation 30 days before expiry. It publishes a near-expiry event to Event Grid, which can call a rotation function. With one credential, the secret fails during the lag before the service updates. The dual-key pattern alternates primary and secondary keys as secret versions instead. Rotating a storage key revokes account-level SAS tokens made from it, so regenerate them.
Reported, thanks
Step 10 of 11
The AI Red Teaming Agent finds known risks before deployment. Do a manual round of red teaming first, then measure and mitigate. A default scan sends 10 prompts for each of 4 risk categories, 40 in all. Judge results by Attack Success Rate. The agent supports single-turn, text-only interactions, and agentic risk categories run only in cloud red teaming.
Exam trap Agentic risk categories, such as prohibited actions or sensitive data leakage, are not available in local scans. They run only in cloud red teaming.
Reported, thanks
Step 11 of 11
Grant each agent identity narrow roles yourself; Foundry assigns none automatically.
Delegated access needs authorization for both the agent and the signed-in user.
Use Azure RBAC for Key Vault; existing vaults switch only when you change enableRbacAuthorization.
Each Foundry resource needs its own agent subnet of /27 or larger.
Measure red teaming scans by Attack Success Rate, after an initial manual round.
Think first Where in a multi-agent workflow would you place guardrails, and how would you prove they actually block what they should?
Why it matters: Questions describe an agent's risks and ask which intervention point, guardrail setting, approval step or test fits.
Harmful content can enter at the user's prompt, a tool call, a tool's reply or the final answer. A layered guardrail checks each of these points. You then test that guardrail on a non-production agent and measure again after every change.
Reported, thanks
Step 2 of 11
Term
Meaning
Intervention point
A place where guardrail controls run: user input, tool call, tool response or output.
Guided setup
A Foundry flow that turns your answers about users, data and tools into targeted controls.
Task Adherence
A check that flags tool use that does not match the agent's task, through taskRiskDetected.
Spotlighting
A defense Foundry turns on with tool response validation against prompt injection in tool outputs.
Reported, thanks
Step 3 of 11
Guard user input, tool calls, tool responses and output. Intermediate agents can introduce or pass on harmful content, so one check at the edge is not enough. Tool call controls run before the agent invokes a tool. The tool call point is in preview and works for agents only.
What a hosted agent does when each point blocks
Intervention point
What is checked
When it blocks
User input
The incoming request
HTTP 400 with content_filter before the agent runs
Tool call
Tool name, arguments and content the agent proposes
The tool is not run; the agent waits for new user input
Tool response
Content a supported tool returns
The agent stops; nothing is saved to agent memory
Streamed output
The agent's response
Status stays 200; the stream ends with a content_filter error event
Exam trap Tool call and tool response controls only work for tools that support moderation, such as Azure Functions, OpenAPI and Bing Grounding.
Reported, thanks
Step 4 of 11
An agent's own guardrail fully overrides the model's. Assign a custom guardrail to an agent and that guardrail is used. With none assigned, the agent inherits its model deployment's guardrail. You can also pass a custom guardrail in a request header to override the deployment guardrail for one call.
Exam trap The agent and model guardrails are not merged. Risk detection follows only the guardrail assigned to the agent.
Reported, thanks
Step 5 of 11
Default guardrails are read-only, so create a custom one. You cannot edit Microsoft Default guardrails such as Default.V2. The Violence, Hate, Sexual and Self-harm controls on inputs and outputs can be overridden but not deleted. The High blocking level is the strictest, blocking low, medium and high severity.
Exam trap Document attack detection is off in the default safety policies. Core-harm filters and user prompt attack detection are on, so enable document attacks yourself.
Reported, thanks
Step 6 of 11
Run guided setup separately for each agent. Agents on the same model can need different guardrails. Your answers become controls at the right points. Saying the data includes PII turns on PII detection, and code generation adds protected material and code safety controls.
Guided setup answers and the controls they add
If the agent
Foundry adds
To reduce
Serves public users
Stricter content filtering and jailbreak protection
Exposure to unexpected or adversarial input
Calls external tools
Tool response validation and spotlighting
Prompt injection through tool outputs
Takes consequential actions
Task adherence controls and action validation
Misaligned or unintended actions
Reported, thanks
Step 7 of 11
A bad policy setup can let everything through. Without rai_config, a hosted agent has no content safety guardrail. With rai_config but no rai_policy_name, Microsoft.DefaultV2 applies. On the invocations protocol, a policy without invocations_moderation screens nothing, yet the agent still returns HTTP 200.
Exam trap A successful deploy does not prove the policy ID is valid. An agent can reference a missing policy, report active and filter nothing, because the guardrail fails open.
Reported, thanks
Step 8 of 11
Validate model-generated tool calls before side effects run. Use approval and least privilege for high-risk tools. Agent Framework Tool Approval adds a human decision before the model sees the result. When Task Adherence returns taskRiskDetected as true, block the call or escalate to a human. Between agents, check output and retry, ask for clarification or halt.
Reported, thanks
Step 9 of 11
Test on a non-production model or agent. Assigning a guardrail changes behavior at once, and Try in Playground needs that assignment. An Annotate and block hit shows the risk and intervention point. Task Adherence's Run test flags each sample and adds a reason when it detects a risk. Red-team the setup and measure again after each change. Use rubrics or a model judge, not exact matches.
Exam trap With azd ai agent invoke, a message argument goes as plain text, so an inputContentType of json cannot parse it and it passes unscreened. Send the body as a file.
Reported, thanks
Step 10 of 11
Each intervention point adds about 50 to 100 ms. Default mode buffers output until it is approved. Asynchronous filter mode streams while moderation runs, so content can arrive before a violation is caught. A violating streamed prompt still gets HTTP 400 before any event. The harm classifiers are tested on 8 languages, so check errors in each language you serve.
Reported, thanks
Step 11 of 11
Place controls at user input, tool calls, tool responses and output, not only at the edges.
A guardrail assigned to an agent fully replaces the model deployment's guardrail.
Document attack detection is off by default and must be enabled; core-harm and prompt attack filters are on.
A missing or inert hosted agent policy fails open, so test that blocking really happens.
Test guardrails on non-production agents and re-measure after every change.
Think first How would you move a multi-agent solution from development to production safely, and get back quickly if a release goes wrong?
Why it matters: Questions describe a release, rollback or test need and ask which deployment method, pipeline step or tool fits.
Each environment gets its own isolated resources, and the same tested commit moves forward through them. A canary sends a small share of traffic to a new version, while a staging slot is verified and then swapped into production. Rollback re-runs a known good release.
Reported, thanks
Step 2 of 11
Term
Meaning
Canary deployment
Routing a small part of live traffic to a new candidate version while the stable version serves the rest.
Deployment slot
A staging copy of an app that you verify and then swap into production.
Roll forward
Undoing a change with a new commit and deployment, such as git revert.
Mock data
Simulated results that let workflow unit tests run without calling outside services.
Blue-green deployment
A strategy for zero-downtime releases, used with revisions on Functions on Container Apps, where slots aren't available.
Reported, thanks
Step 3 of 11
Bind each environment to its own Foundry project. Package and deploy hosted agent source for each environment, not one shared build. Test the same commit in the test stage with regression and integration tests before production approval. In GitHub Actions, chain dev, test and production jobs, and protect production with environment rules.
Exam trap Environment names do not isolate Azure resources. Without separate Foundry projects, test and production can share the same resources.
Reported, thanks
Step 4 of 11
A canary and the stable version share one production endpoint. Use azd ai agent endpoint update to change the traffic split without redeploying or making a version. If a canary check fails, stop raising traffic and set the stable version to 100%. A 400 saying the version is still provisioning means poll until active, then retry.
Exam trap The --version flag on azd ai agent invoke picks a version for your test session only. It does not change the traffic percentages.
Reported, thanks
Step 5 of 11
A new version appears only when the code or definition changes. Versioning is content-addressable, so reposting identical code returns the latest version. The service keeps the zip's SHA-256 and returns it on download, which reveals drift. In a pipeline, --deploy-mode code selects source deployment and needs --runtime and --entry-point.
Reported, thanks
Step 6 of 11
Deploy to a staging slot, verify it, then swap. To undo a swap, swap again. If any instance fails to restart during a swap, the swap reverts and stops. Hosting plans differ in what they offer.
Release options by Azure Functions hosting choice
Hosting choice
Deployment slots
Safe release approach
Consumption plan
2: one production, one staging
Verify in staging, then swap
Flex Consumption plan
Not supported
Rolling updates; a separate app as staging
Azure Container Apps
Not available
Revisions with a blue-green strategy
Exam trap A slot swap does not guarantee zero downtime. For zero-downtime Functions releases, use the Flex Consumption plan with rolling updates.
Reported, thanks
Step 7 of 11
Workflows run only in the production slot. The dispatcher is off in other slots, and traffic distribution is disabled. Slots still let you roll back to an earlier version. Deploying from VS Code overwrites the slot's content. Swap with preview needs deployment slot settings enabled. Behind a private-endpoint storage firewall, create slots with Bicep or ARM.
Exam trap Standard logic app deployment slots do not support blue-green deployment. Plan another release method if you need it.
Reported, thanks
Step 8 of 11
Roll back by re-running a previous successful pipeline run. The re-run checks out that run's original commit, not the branch head. It reuses the old YAML, but secrets and variables take current values. It does not restore outside resource settings, downstream data or Key Vault secrets. A postdeploy health check can trigger this re-run automatically.
Exam trap A git revert is not a rollback. It creates a new commit and a new deployment, so it is a roll forward.
Reported, thanks
Step 9 of 11
Logic Apps unit tests use mocks instead of real services. Create a UnitTestExecutor and run RunWorkflowAsync(). Setup() makes a new executor before each test. The mock file's triggerMocks section is required to start a run. Building tests from runs needs a locally executed workflow and skips Data Mapper, custom code, XML and Liquid actions.
Exam trap Workflow unit tests do not call real actions. Only C# is supported, and every action in the execution path must be mocked.
Reported, thanks
Step 10 of 11
Bicep replaces all app settings on each deployment. It needs no cleanup step, and what-if detects drift. Wait 30 seconds after deploying settings, because the app restarts and code deploys can fail. OIDC uses a managed identity, so GitHub stores no secrets. The Logic Apps extension generates ARM-based pipelines, but you connect them to Azure DevOps.
Exam trap A Standard logic app's local.settings.json is not deployed. Its settings apply only to local runs, and Azure ignores the file.
Reported, thanks
Step 11 of 11
Give every environment its own Foundry project; names alone do not isolate resources.
Undo a failed canary by setting the stable version back to 100% of traffic.
Re-running a previous successful run is a rollback; git revert is a roll forward.
Slot swaps do not guarantee zero downtime on Azure Functions.
Logic Apps unit tests need every action in the execution path mocked.
Each topic's Check tested it on its own; this mixes them.
Mixed quiz
Take the Domain 4 quiz
14 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.
Thank you. It goes straight to the people who write these notes.
Test yourself in exam conditions
A full Microsoft Certified: Multi-Agent AI Solutions Expert mock exam: 60 questions in 100 minutes, scored against the real exam's pass mark. Your first one is free.
Free to start: the study notes and plan, quizzes, flashcards and the first mock exam, no card needed. A free account keeps your place and saves your quiz scores.