Skip to main content

AI-200 practice question · Secure, Monitor, and Troubleshoot Azure Solutions

A team has attached a custom content filter to their Microsoft Foundry model deployment that blocks content at medium…

A team has attached a custom content filter to their Microsoft Foundry model deployment that blocks content at medium and high severity. Before public launch, they need numbers: how often the filter blocks legitimate requests (false positives) and how often harmful content gets through (false negatives). What should they do?

  • ASend a labeled dataset of benign and harmful prompts through the deployment and compare which items were filtered against the labels
  • BChange the filter so it blocks low, medium, and high severity content for all four harm categories
  • CCheck that responses contain no error object in content_filter_results, confirming the filter ran on each call
  • DSwitch the deployment's filter to Annotate only and review the returned annotations after users start sending traffic
Show the answer and explanation

Correct answer: A) Send a labeled dataset of benign and harmful prompts through the deployment and compare which items were filtered against the labels

To measure a content filter's real false-positive and false-negative rates, run a labeled set of benign and harmful examples through the deployment before launch and compare the filter's decisions with the labels. Changing thresholds, checking that the filter ran, or switching to annotate-only doesn't measure accuracy.

Why each option is right or wrong

  • A) Correct. Foundry's pre-production evaluation guidance is to test the application with evaluation datasets before deployment. A filtered prompt returns HTTP 400, and a filtered completion has finish_reason set to content_filter. Checking those results against known labels shows how many legitimate items were blocked (false positives) and how many harmful items got through (false negatives). The team can then tune the thresholds and test again.
  • B) Incorrect. A stricter threshold changes how the filter behaves; it doesn't measure anything. It would probably reduce false negatives and increase false positives, and the team still wouldn't know either rate.
  • C) Incorrect. An error object in content_filter_results means the filter didn't run. Having no error only confirms that filtering happened. It says nothing about whether the filter's decisions were correct.
  • D) Incorrect. Annotate only stops blocking content, and using it for completions requires approval for modified content filters. This option also waits until after launch and uses unlabeled production traffic, so it can't measure error rates before release.
Question type
Multiple choice (one answer)

Practise the full AI-200 exam

This question is one of a small free sample from the CertRidge AI-200 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.