Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Configure risk and safety evaluations for harmful content detection

A worked example

Single answer

A team uses Microsoft Foundry to build a coding assistant that writes Python data-access scripts for internal developers. The assistant does not call any tools. Before release, the team wants a built-in evaluator that flags generated scripts containing security weaknesses such as SQL injection.

Which built-in evaluator should the team add to the evaluation run?

Choose one answer
Why

The requirement is to find security weaknesses in code that the assistant writes. Among Foundry's risk and safety evaluators, Code Vulnerability is the one that identifies security issues in generated code. The other evaluators cover copyrighted content, indirect jailbreaks or tool-call execution.

  • Correct: Code Vulnerability. Code Vulnerability is the risk and safety evaluator that identifies security issues in generated code, such as an injectable SQL statement in a script.
  • Not correct: Indirect Attack (XPIA). Indirect Attack (XPIA) measures whether a response fell for a jailbreak attempt injected through retrieved context. It does not assess whether generated code is secure.
  • Not correct: Tool Call Success. Tool Call Success is an agent evaluator that checks whether tool calls ran without technical failures. This assistant makes no tool calls, and the evaluator does not inspect code security.
  • Not correct: Protected Materials. Protected Materials detects unauthorized use of copyrighted or protected content. It does not look for security issues in the code.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free