Course menuAI-901

Exams / AI-901 / Prompts and deploying a model in the Foundry portal / Question 5

AI-901 practice question: Prompts and deploying a model in the Foundry portal (5 of 5)

Implement AI solutions by using Microsoft Foundry A free question from our original AI-901 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current Microsoft Learn ·How we write our questions

A dental clinic network has tested a booking-help chat model in the Foundry playground and has just edited its Instructions.

The developer wants to retest the new Instructions without earlier messages affecting the replies. The developer also wants starter Python code that calls the same deployment.

Which two playground actions should the developer use? (Choose two.)

Choose two answers.

  1. A. Open the Cost tab to review token usage for the earlier test conversations
  2. B. Select New chat, which clears the conversation history before the next test
  3. C. Raise max tokens so that longer earlier replies stay out of the next answer
  4. D. Select Continue in code, which shows client code for calling the deployment
  5. E. Add a web search tool so the model checks new facts before each reply
Show the answer and explanation

Answers: B, D

  • A. Wrong: The Cost tab shows token usage and spending. It helps track cost but neither clears the conversation nor produces client code.
  • B. Right: Correct. New chat starts a fresh conversation, so earlier messages no longer influence the replies. The developer can then see how the edited Instructions behave on their own. Learn more: Lab: Generative AI and agents (opens in a new tab)
  • C. Wrong: Max tokens caps the length of each response. It does not remove earlier messages from the conversation or generate any code.
  • D. Right: Correct. The Continue in code option shows sample client code for the model the developer has been testing. It gives a starting point for the Python app. Learn more: Lab: Generative AI and agents (opens in a new tab)
  • E. Wrong: Web search lets the model use current web results. It does not clear the earlier conversation or give the developer starter code.

Explanation

New chat clears the conversation history, so a retest reflects only the edited Instructions. Continue in code shows client code for the tested deployment, which gives the developer a starting point. Cost, max tokens and web search each serve a different purpose.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Prompts and deploying a model in the Foundry portal? The 5 full-length practice sets have 25 more Prompts and deploying a model in the Foundry portal questions, 225 in all, none of them in the free exam. One payment of $9.99 $6.99, no subscription. Get the practice sets

Every exam starts with free questions. No account needed.