Home › Studies › AI-103 › Plan & Manage › Responsible AI & Agent Governance

Responsible AI & Agent Governance

Guardrails and controls · Prompt Shields · Task Adherence · safety evaluators · red teaming · tracing and audit · approvals and tool control

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Guardrails, controls and intervention points

A guardrail is a named collection of controls. Each control defines a risk to detect, the intervention points to scan, and the action to take. One guardrail can be applied to many models and many agents in a project. Content risks are flagged by Azure AI Content Safety classification models.

Intervention pointScansApplies to
User inputThe prompt sent to a model or agentModels and agents
Tool call (preview)The action and data the agent proposes to send to a toolAgents only
Tool response (preview)Content returned from a tool to the agent, before it reaches memory or the userAgents only
OutputThe final completion returned to the userModels and agents
Blocking level (hate, sexual, self-harm, violence)Blocks
OffNothing. Detection can still return annotations. Inputs can be turned off by all customers; outputs only by approved customers
LowHigh-severity content only (least restrictive)
MediumMedium and high severity (the DefaultV2 level for the four core-harm categories)
HighLow, medium and high severity (most restrictive)

Risk detection: Prompt Shields and Task Adherence

ControlDetectsWhere
User prompt attack (Prompt Shields)Prompts that try to bypass system rules: change rules, conversation mockup, role-play, encoding. Formerly jailbreak risk detectionUser input. On by default
Document / indirect attack (Prompt Shields)Hidden instructions in documents, emails or web pages that try to hijack the session (cross-domain prompt injection, XPIA)User input for models; also tool response for agents with supported tools. Off by default
Protected materialCopyrighted text (and code) in completionsOutput
Task Adherence (preview)Tool calls and responses that don't match the user's intent; signal to block or escalate to human-in-the-loop reviewAgents and models

Evaluators, safety evaluations and red teaming

Evaluators are scoring methods for quality, safety and reliability. Some are deterministic; AI-assisted evaluators use a judge model and can provide explanations. Foundry evaluations produce metrics and, when supported, explanations.

Safety evaluatorMeasuresTargets
Hate and unfairness, Sexual, Violence, Self harmHarmful content; 0-7 severity, default threshold 3 (pass when score is at or below it)Model and agents
Protected materialsCopyrighted text such as lyrics, recipes and articlesModel and agents
Code vulnerabilityGenerated code with security flaws (for example SQL injection)Model and agents
Ungrounded attributesUngrounded inferences about personal attributesModel and agents
Indirect attack (XPIA)Whether the response fell for an indirect jailbreakModel only
Prohibited actions (preview)Behaviours that violate explicitly disallowed actions or tool usesAgents only
Sensitive data leakage (preview)Agent exposing sensitive informationAgents only

Auditing: traces, sensitive content and provenance

Governing agent behavior: approvals and tool access

CLI and PowerShell

TaskAzure CLIPowerShell
Enable the dedicated table for sensitive trace contentaz feature register --namespace Microsoft.Insights --name protectGenAISensitiveData-
Install client-side tracing packages (Python)pip install azure-ai-projects opentelemetry-sdk azure-core-tracing-opentelemetry-

Exam Tips

Tick each tip once you can answer it without looking.

“Block jailbreak-style prompts before the model sees them” → Guardrail control: user prompt attack (Prompt Shields) at user input, action Annotate and block.. Trap: Output scanning happens after the model has produced a completion.

“Agent calls a tool; scan retrieved tool content for hidden instructions” → Indirect (document) attack control at the tool response intervention point.. Trap: User input doesn't see tool responses.

“Model guardrail is strict but its agent is more permissive” → The agent's own guardrail fully overrides the model's guardrail.. Trap: Assuming the model guardrail still applies to the agent.

“Tool call or tool response control does nothing for a custom tool” → The tool must support moderation; only listed tools do.. Trap: Assuming every tool is scanned.

“Document attack detection isn't blocking anything on a new deployment” → It's off by default; enable it in the guardrail controls.. Trap: User prompt attack detection is on by default, document attack is not.

“Need to edit the violence control on user input” → Override the control with the same risk; those controls can't be deleted.. Trap: Deleting and re-adding it.

“Agent's tool call doesn't match what the user asked” → Task Adherence: block the tool call or escalate to human-in-the-loop review.. Trap: Prompt Shields don't judge whether a request is on task.

“Which safety evaluator is model-only, not for agents” → Indirect Attack (XPIA).. Trap: Prohibited actions and sensitive data leakage are agents only.

“Safety evaluator score is 3 with default settings” → Pass: pass when the score is less than or equal to the threshold (default 3) on the 0-7 scale.. Trap: Treating a score equal to the threshold as a fail.

“Automated adversarial scan with Attack Success Rate” → AI Red Teaming Agent (PyRIT-based); agentic risks need cloud red teaming.. Trap: Running agent risk categories in a local scan.

“Trace data contains prompts with personal data” → Redact before telemetry; route to the protected AppGenAIContent table and grant Privileged Monitoring Data Reader only to those who need it.. Trap: Log Analytics Reader alone doesn't read protected content; Privileged Monitoring Data Reader is needed in addition.

“Why did the agent call that tool? Find the step that failed” → Traces: spans per operation, stored in Application Insights; start with server-side tracing.. Trap: Evaluators score outputs; traces show each step.

“MCP tool that writes data must get a human check” → require_approval set to always; review server, tool and arguments, then send the approval response; log it.. Trap: allowed_tools limits which tools exist, it doesn't ask a human.

“Limit an MCP server to two of its tools” → allowed_tools with exactly those names (a nonempty list).. Trap: An empty list allows all tools.

“Central rate limits and audit logging for agent MCP tools” → AI gateway on API Management; apply the policies in API Management.. Trap: Changing the MCP server or agent code; the gateway enforces the policies without it.

“Groundedness detection (preview) in a content filter” → Retires April 30, 2027: plan to use Foundry evaluation or your own grounding validation.. Trap: Groundedness isn't a control agents support in guardrails.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Quotas, Monitoring & SecurityPlan & Manage overview →