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

CertStreak
Menu

Create prompt variants and compare performance across different prompts

A worked example

Yes or no

A team manages an agent named trail-guide in Microsoft Foundry. They normally deploy it with a Python script that reads the system instructions from a prompt file.

To try a friendlier tone, a teammate edits the trail-guide agent's instructions directly in the Microsoft Foundry portal and saves the change. The team now wants to compare how the different prompt versions answer the same user questions.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

StatementYesNo
Saving the updated instructions in the Microsoft Foundry portal creates a new version of the trail-guide agent.

Foundry creates a new agent version whenever an agent is created or updated. This applies to updates made through the portal as well as through the Python SDK.

Correct
To compare the prompt versions, the team must deploy each prompt as a separate agent with a different name.

Prompt versions share the same agent name, and the team can switch between deployed agent versions in the portal or through the SDK. Separate agents with different names are not required.

Correct
Agent versions can be compared manually in the Microsoft Foundry portal, because the Python SDK is not available to automate the comparison.

The SDK can list all agent versions programmatically, which supports automated comparison workflows alongside comparison in the portal.

Correct
Why

Every create or update of a Foundry agent produces a new agent version, whether the change comes from the portal or from the Python SDK. Because versions sit under the same agent, the team can compare prompt variants by switching between versions in the portal and observing how the same input produces different outputs. The team can also list the versions through the SDK to automate the comparison.

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