SaveMyCert
Log in
5 of 5 free questions left today·for 30 a day
AI-901 practice

AI-901 sample questions — 25 answered and explained

25 AI-901 sample questions written to the official Microsoft Certified: Azure AI Fundamentals exam guide, grouped by exam domain and weighted like the real exam. Each shows the correct answer, why every other option is wrong, and the lesson that teaches it. None of them repeat the examples on the other AI-901 practice pages.

On this page
25
answers included
Full bank
207
on the practice page
Domains
2
weighted like the exam
Free, no account
5/day
a free account allows 30 a day

Domain 1: Identify AI concepts and capabilities

42% of the AI-901 exam, so 11 of the 25 questions on this page.

Question 1Identify AI concepts and capabilities

An internal assistant answers employee questions using the company's HR documents, including salary records. Testers find that carefully worded prompts make it reveal named colleagues' salaries, although the harmful-content filters flagged nothing. Which responsible AI principle is the assistant failing to meet?

Choose one.

  • a
    Reliability and safety

    Safety filters target harmful content such as violence or hate, which is why they flagged nothing. The failure is the disclosure of personal data, a privacy and security issue.

  • b
    Transparency

    Transparency concerns users understanding how the system works. The assistant is not unclear; it is leaking confidential data.

  • c
    Fairness

    Fairness concerns different outcomes for similar groups of people. Revealing salaries to any asker is a data-protection failure, not unequal treatment.

  • d
    Privacy and security Correct

    The assistant exposes personal, confidential information to people who should not see it. Preventing a system from revealing private details is a privacy and security requirement.

The concept

Privacy and security includes making sure an AI system cannot be used to reveal private personal or organisational details.

Why that’s the answer

Microsoft's guidance says developers must keep data secure and make sure the system itself cannot be used to reveal private personal or organisational information. Here prompts extract colleagues' salaries, so the assistant fails privacy and security. Reliability and safety is tempting because prompts are being used to misuse the system, but the content filters are built for harmful content categories; the harm here is the exposure of personal data.

How to reason it out
  1. Identify what leaked: personal salary data.
  2. Recall that privacy and security covers what the system can be made to reveal, not just stored files.
  3. Explain why the content filters stayed silent: salary figures are not a harmful-content category.
  4. Choose privacy and security.

Exam tip: If an AI system can be coaxed into revealing personal data, privacy and security has failed.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 2Identify AI concepts and capabilities

Which consideration belongs to the privacy and security principle of responsible AI?

Choose one.

  • a
    Making sure the model gives equally accurate results to each group of people who use it

    Equal quality of results across groups is a fairness consideration.

  • b
    Making sure users are told about the model's known limitations before they rely on it

    Explaining limitations to users is a transparency consideration.

  • c
    Making sure the model keeps working as designed when inputs fall outside the usual range

    Behaving consistently under unexpected input is a reliability and safety consideration.

  • d
    Making sure the trained model cannot be prompted to reveal personal data it was trained on Correct

    Privacy and security covers protecting training data and making sure the model itself does not expose personal or confidential details.

The concept

Privacy and security: protect training data and prevent the model from exposing it.

Why that’s the answer

The privacy and security principle covers both the data used to build an AI system and the system's outputs. Developers must keep training data secure and make sure the trained model cannot be used to reveal private personal or organisational details. The other options describe fairness, transparency and reliability and safety.

How to reason it out
  1. Recall the scope of privacy and security: data in and data out.
  2. Match each option to a principle.
  3. Choose the one about the model exposing personal data.

Exam tip: Privacy and security covers what a model could leak, not only where data is stored.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 3Identify AI concepts and capabilities

A city deploys an AI information kiosk that answers questions by voice. The design team adds on-screen captions, a typed input option and adjustable speaking speed so that people with hearing or speech impairments can use it too. Which responsible AI principle does this design reflect?

Choose one.

  • a
    Fairness

    Fairness concerns whether people in similar situations get similar outcomes from the model. The change here is about who can use the kiosk at all.

  • b
    Transparency

    Transparency is about explaining how the system works and its limits. Captions show what the kiosk says, not how it reaches its answers.

  • c
    Inclusiveness Correct

    Inclusiveness asks that AI solutions do not exclude people. Captions, typed input and adjustable speed open the kiosk to people who would otherwise be unable to use a voice-only system.

  • d
    Reliability and safety

    Reliability and safety concerns consistent, safe behaviour. Adding alternative ways to interact widens access rather than improving reliability.

The concept

Inclusiveness: AI solutions should empower everyone and not exclude some users.

Why that’s the answer

A voice-only kiosk excludes people who cannot hear its answers or speak their questions. Adding captions, typed input and speed control removes those barriers so the benefit is open to everyone. That is inclusiveness. Fairness is the near-twin, but it is about equal outcomes from the model, not equal ability to use the system.

How to reason it out
  1. Identify who was excluded: people with hearing or speech impairments.
  2. See that the change adds ways to interact.
  3. Map widening access to inclusiveness, not fairness.

Exam tip: Removing barriers so everyone can use the system: inclusiveness.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 4Identify AI concepts and capabilities

A design team is starting work on an AI app for booking medical appointments. Which practice best supports the inclusiveness principle from the start of the project?

Choose one.

  • a
    Measure whether the app's booking errors differ between demographic groups after launch

    Comparing error rates across groups is a fairness check, and doing it after launch is not starting from the design phase.

  • b
    Document the data used to build the app and the situations it is designed to handle

    Documenting data and intended uses supports transparency rather than widening who can use the app.

  • c
    Test the app with unexpected inputs to confirm that it fails gracefully and safely

    Testing unexpected inputs supports reliability and safety, not inclusiveness.

  • d
    Involve people with a range of abilities, ages and backgrounds in design and user testing Correct

    Including diverse people early surfaces barriers such as accessibility gaps or unfamiliar language before they are built in, which is how inclusive design works.

The concept

Inclusive design: involve diverse users so the solution does not exclude anyone.

Why that’s the answer

Inclusiveness asks that AI solutions benefit everyone, including people with disabilities and people from different backgrounds. The most effective way to achieve that is to involve a diverse range of people in design and testing, so barriers are found and removed early. The other practices are valuable, but they serve fairness, transparency and reliability and safety.

How to reason it out
  1. Restate the principle: nobody should be excluded from using or benefiting from the app.
  2. Ask which practice finds exclusion early.
  3. Reject the practices that belong to fairness, transparency or reliability.
  4. Choose involving diverse people in design and testing.

Exam tip: Inclusiveness is designed in by involving diverse users early.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 5Identify AI concepts and capabilities

A speech-to-text service transcribes customer calls. Analysis shows its word error rate is much higher for speakers with some regional accents, and the service offers no alternative for customers who cannot speak. Which TWO responsible AI principles do these findings concern? (Select TWO.)

Choose TWO.

  • a
    Fairness Correct

    A higher error rate for some accent groups means those speakers get a worse quality of service than others in the same situation, which is a fairness harm.

  • b
    Transparency

    Neither finding is about users understanding how the service works. Disclosing the error rate would not fix either issue.

  • c
    Accountability

    Accountability concerns governance and who answers for the system. The findings describe unequal service and exclusion, not a governance gap.

  • d
    Privacy and security

    Nothing in the findings involves exposing or misusing personal data.

  • e
    Inclusiveness Correct

    Offering no alternative to speech excludes customers who cannot speak from using the service, which is an inclusiveness gap.

The concept

Telling fairness (unequal quality of service between groups) apart from inclusiveness (people unable to use the system).

Why that’s the answer

The two findings are different kinds of harm. Higher error rates for some accents mean a group gets lower-quality results from a service they can use, which is a fairness issue (Microsoft's Responsible AI Standard treats quality-of-service differences between groups as fairness). Having no non-speech option means some customers cannot use the service at all, which is inclusiveness. Mixing the two up is the common mistake.

How to reason it out
  1. Separate the two findings.
  2. Accent error gap: a group receives worse results, so fairness.
  3. No alternative to speech: some people are shut out, so inclusiveness.
  4. Reject principles not involved: transparency, accountability, privacy.

Exam tip: Worse results for a group = fairness; can't use it at all = inclusiveness.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 6Identify AI concepts and capabilities

A bank tells loan applicants that an AI system assesses their application, describes the kinds of data the system was trained on, and explains its known limitations. Which responsible AI principle does this practice reflect?

Choose one.

  • a
    Accountability

    Accountability is about who is answerable for the system and how it is governed. Explaining the system to applicants is transparency.

  • b
    Fairness

    Fairness concerns equal outcomes for similar applicants. Disclosure does not change or measure outcomes.

  • c
    Transparency Correct

    Disclosing that AI is used, what data shaped it and where it falls short helps people understand the system they are dealing with.

  • d
    Privacy and security

    Privacy and security protects personal data. Describing the training data in general terms is about understanding, not protection.

The concept

Transparency: make users aware that AI is used, how it works and its limitations.

Why that’s the answer

Transparency means people should understand how an AI system works and what its limitations are, especially when it informs decisions about them. Disclosing the use of AI, describing the training data (without revealing confidential details) and stating known limitations are all transparency practices. Accountability is the tempting near-twin, but it is about people and organisations being answerable, not about explaining the system.

How to reason it out
  1. Identify the action: telling people about the AI system.
  2. Note it covers use of AI, data and limitations.
  3. Map explaining the system to transparency.

Exam tip: Disclose AI use, data and limitations: transparency.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 7Identify AI concepts and capabilities

A company adds a generative AI chat assistant to its website. Support staff notice that many users assume they are chatting with a human agent and act on its answers without checking them. Which change best addresses the responsible AI concern raised by this behaviour?

Choose one.

  • a
    Tell users the assistant is an AI system and that its answers sometimes contain mistakes Correct

    Users are misjudging what they are dealing with. Disclosing that it is AI and stating its limitations lets them calibrate their trust.

  • b
    Assign a manager to own the assistant and review users' complaints about its answers each week

    A named owner reviewing complaints is an accountability practice. Users would still assume they were talking to a person.

  • c
    Apply content filters that block harmful categories of content in the assistant's answers

    Content filters address harmful output (reliability and safety), not users' misunderstanding of what the assistant is.

  • d
    Offer the assistant in more languages and support screen readers for users chatting with it

    More languages and screen-reader support make the assistant inclusive but do not correct the mistaken belief that a human is answering.

The concept

Transparency for generative AI: disclose AI involvement and limitations so users can calibrate trust.

Why that’s the answer

The problem is a misunderstanding: users don't know they are talking to AI, so they over-trust it. Transparency addresses that directly by making the AI's involvement and its limitations clear. Ownership, content filters and accessibility are worthwhile but address accountability, safety and inclusiveness, and none of them corrects the users' belief.

How to reason it out
  1. Diagnose the problem: users misunderstand what the system is.
  2. Map misunderstanding to transparency.
  3. Choose the change that discloses AI use and its limits.
  4. Check the other options against their own principles.

Exam tip: When users over-trust AI because they don't know it is AI, the fix is disclosure.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 8Identify AI concepts and capabilities

An applicant whose loan was refused by an AI model asks why. The bank wants to show which factors, such as income and existing debt, contributed most to that particular decision. Which principle and approach does this involve?

Choose one.

  • a
    Accountability, by explaining the features that influenced this individual prediction

    The approach is right but the principle is not: explaining a decision helps people understand the system, which is transparency. Accountability is about who answers for it.

  • b
    Transparency, by comparing approval rates across groups of similar applicants

    The principle is right but the approach is not: a group comparison assesses fairness and cannot say why this applicant was refused.

  • c
    Transparency, by explaining the features that influenced this individual prediction Correct

    Showing which features drove one decision is a local explanation, part of model interpretability, which serves transparency.

  • d
    Accountability, by comparing approval rates across groups of similar applicants

    Both parts are wrong: a group comparison is a fairness assessment that cannot say why this applicant was refused, and explaining a decision serves transparency rather than accountability.

The concept

Interpretability (global and local explanations) is a key part of transparency.

Why that’s the answer

When AI informs decisions about people, transparency asks that those people can understand how the decision was made. Interpretability tools provide that: global explanations show which features drive the model overall, and local explanations show why one prediction came out as it did. Here the bank needs a local explanation for one applicant. Comparing approval rates across groups is a fairness assessment that addresses a different question, and accountability concerns who answers for the system, not how a decision is explained.

How to reason it out
  1. Identify the need: explain one specific decision.
  2. Recall that explanations of model behaviour are interpretability.
  3. Map interpretability to transparency.
  4. Reject the group comparison, which tests fairness.

Exam tip: Why did the model decide this? That's interpretability, and it serves transparency.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 9Identify AI concepts and capabilities

An organization sets up an internal review board that must approve each AI system before release, and it names a person who answers for each system's behaviour once it is in production. Which responsible AI principle do these measures support?

Choose one.

  • a
    Accountability Correct

    A governance framework with approval gates and named, answerable owners makes people responsible for how AI systems operate.

  • b
    Transparency

    Transparency is about helping people understand the system. A review board and named owners make people answerable rather than explain the system.

  • c
    Reliability and safety

    A review board may check safety, but the measures described are about governance and responsibility, not the system's technical behaviour.

  • d
    Fairness

    Fairness concerns equal outcomes across groups. Approval gates and named owners are governance measures.

The concept

Accountability: people and organizations are answerable for AI systems, supported by a governance framework.

Why that’s the answer

Accountability holds that the people who design and deploy AI systems are answerable for how they operate. Organizations put that into practice with a governance framework, such as review boards that approve releases and named owners responsible for systems in production. Transparency and reliability may be checked within that process, but the measures themselves are accountability.

How to reason it out
  1. Identify the measures: an approval board and named owners.
  2. Ask what they create: responsibility and governance.
  3. Map that to accountability.

Exam tip: Governance and named owners: accountability.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 10Identify AI concepts and capabilities

An insurer uses an AI model that rejects some claims without human involvement. Regulators ask how the company keeps people, not the model, as the final authority on decisions that affect customers. Which practice best answers this?

Choose one.

  • a
    Publish a document that describes the model's training data and its known limitations

    Describing the model supports transparency, but the model would still make final decisions with no person answerable.

  • b
    Measure the share of rejected claims across age groups of customers with similar claim histories

    Comparing outcomes across groups is a fairness assessment; it does not put people in control of decisions.

  • c
    Have claims handlers review rejected claims and let customers appeal decisions to a person Correct

    Human review and an appeal route keep people in meaningful control of decisions that affect customers, which is what accountability requires.

  • d
    Retrain the model each month so its claim decisions stay accurate as patterns change

    Regular retraining supports reliability, but the model would remain the final authority.

The concept

Accountability: AI should not be the final authority on decisions that affect people's lives; humans keep meaningful control.

Why that’s the answer

Microsoft's accountability principle says AI systems should not be the final authority on decisions that affect people's lives and that humans should keep meaningful control. Human review of rejections plus an appeal route to a person does exactly that. The other practices support transparency, fairness and reliability, but in each case the model would still decide alone.

How to reason it out
  1. Restate the requirement: people, not the model, have the final say.
  2. Look for the option that adds human decision-making and recourse.
  3. Reject options that improve the model or its documentation but leave it in sole control.

Exam tip: Accountability keeps humans as the final authority on consequential AI decisions.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Question 11Identify AI concepts and capabilities

Which statement correctly distinguishes transparency from accountability in responsible AI?

Choose one.

  • a
    Transparency means publishing the model's source code; accountability means the model explains each of its own decisions

    Transparency is about people understanding the system and its limits, which does not require publishing source code. Explaining decisions is part of transparency (interpretability), and accountability rests with people, not with the model.

  • b
    Transparency protects the data the system relies on; accountability keeps the system working consistently

    Protecting data is privacy and security, and consistent operation is reliability and safety.

  • c
    Transparency helps people understand how the system works; accountability makes people answerable for its outcomes Correct

    Transparency is about understanding the system and its limits; accountability is about people and organizations being responsible for what it does.

  • d
    Transparency opens the system to users of differing abilities; accountability gives similar people similar outcomes

    Access for people of every ability is inclusiveness, and similar outcomes for similar people is fairness.

The concept

Transparency (understanding the system) versus accountability (people answerable for it).

Why that’s the answer

The two principles are often confused because both involve openness about AI. Transparency is about making the system understandable: disclosing AI use, explaining decisions and stating limitations. Accountability is about responsibility: people and organizations answer for how the system behaves, supported by governance and human oversight.

How to reason it out
  1. Recall that transparency is about understanding the system and its limits.
  2. Recall that accountability is about people being responsible for it.
  3. Reject statements that put responsibility on the model or describe other principles.

Exam tip: Transparency = understandable; accountability = answerable.

Microsoft's Responsible AI Principles for Azure AI Fundamentals (AI-901) — the lesson that teaches this.

Domain 2: Implement AI solutions by using Microsoft Foundry

58% of the AI-901 exam, so 14 of the 25 questions on this page.

Question 12Implement AI solutions by using Microsoft Foundry

A developer deploys the gpt-4.1-mini model in Foundry and names the deployment support-bot. The Foundry project is named support-project and the Foundry resource is contoso-foundry. In Python code that calls responses.create through the project's OpenAI client, which argument selects the model?

Choose one.

  • a
    model="support-bot" Correct

    The model argument takes the name of the deployment, which is the name you chose when deploying.

  • b
    model="contoso-foundry"

    The resource name is part of the endpoint URL, not the model selector.

  • c
    model="gpt-4.1-mini"

    This is the underlying model's catalog name; requests are routed by the deployment name, which here differs from it.

  • d
    model="support-project"

    The project name is part of the project endpoint used to build the client, not the model selector.

The concept

Deployment name vs model name vs endpoint.

Why that’s the answer

When you call a Foundry deployment, the model argument is the deployment name, the value in the Name column of the project's deployed models. Many tutorials name the deployment after the model, which hides the difference; here the developer chose support-bot, so that is the value to pass. The resource and project names belong in the project endpoint, https://<resource>.services.ai.azure.com/api/projects/<project>.

How to reason it out
  1. Separate the three names: resource, project and deployment.
  2. Resource and project names form the endpoint used to create the client.
  3. The model argument identifies which deployment answers.
  4. Pass the deployment name, not the catalog model name.

Exam tip: model= takes the deployment name you chose, not the catalog name.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 13Implement AI solutions by using Microsoft Foundry

Before writing any code, a developer wants to send one prompt and system message to three different deployed chat models at once and see their answers side by side. Which Foundry portal feature fits?

Choose one.

  • a
    The agents playground with a file search tool attached

    The agents playground tests one agent's conversation and tools; it does not run three models side by side.

  • b
    A Global Batch deployment that processes a file of prompts

    Batch deployments process large jobs asynchronously; they are not an interactive side-by-side comparison.

  • c
    The model playground in compare mode Correct

    Compare mode in the model playground sends the same prompt and system message to up to three models and shows their responses side by side.

  • d
    An evaluation run that scores one model against a test set

    Evaluations score outputs against a dataset; they do not give an interactive side-by-side chat.

The concept

Model playground compare mode.

Why that’s the answer

The model playground's compare mode runs up to three models in parallel with synchronized input, so each receives the same prompt, system message and parameters and the responses stream side by side. The agents playground focuses on a single agent with tools, batch deployments process files asynchronously and evaluations score outputs against a dataset.

How to reason it out
  1. The need is interactive, no code, and side by side across models.
  2. The model playground is where you try prompts against deployments.
  3. Its compare mode handles up to three models with synced prompts.

Exam tip: Side-by-side model testing without code: model playground, compare mode.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 14Implement AI solutions by using Microsoft Foundry

A developer has a prompt and system message working well in the Foundry model playground and now wants starter Python code that already targets the same deployment. What should the developer use?

Choose one.

  • a
    The Save as agent option in the playground

    Save as agent turns the setup into an agent to keep prototyping in the agents playground; it does not produce sample code.

  • b
    The Code tab in the playground's chat pane Correct

    The Code tab shows multilingual sample code for the current deployment and can open it in VS Code for the Web with the endpoint imported.

  • c
    The Compare models option in the playground

    Compare mode runs several models side by side; it is for testing, not exporting code.

  • d
    The Tools section in the playground setup

    The Tools section adds tools such as web search or code interpreter to the chat; it does not export code.

The concept

Moving from the playground to code.

Why that’s the answer

The model playground's Code tab provides sample code in several languages for the deployment you are testing, and an Open in VS Code for the Web button that imports the code sample and endpoint. Save as agent, Compare models and Tools are playground features for further prototyping, not for getting code.

How to reason it out
  1. The goal is code that already points at the tested deployment.
  2. Find the playground feature that exports samples.
  3. The Code tab shows them and can open them in VS Code for the Web.

Exam tip: Playground to app: use the Code tab.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 15Implement AI solutions by using Microsoft Foundry

A Python developer is writing a lightweight chat client that connects to a Microsoft Foundry project by using the Foundry SDK. Which package and client class should the code start from?

Choose one.

  • a
    azure-ai-textanalytics and TextAnalyticsClient

    This is the Azure Language text analytics library for tasks such as sentiment and entity detection, not the Foundry project client.

  • b
    azure-identity and DefaultAzureCredential

    This provides the credential the client uses to authenticate; it is not the client that talks to the project.

  • c
    azure-ai-projects and AIProjectClient Correct

    The azure-ai-projects package is the Foundry SDK client library; AIProjectClient connects to the project endpoint and provides get_openai_client().

  • d
    azure-ai-inference and ChatCompletionsClient

    This is an earlier, separate inference library; the current Foundry SDK path is the project client.

The concept

Foundry SDK client library for Python.

Why that’s the answer

The Foundry SDK for Python is the azure-ai-projects package. Code creates an AIProjectClient with the project endpoint and a credential from azure-identity (typically DefaultAzureCredential), then calls get_openai_client() to chat with models and agents. azure-identity supplies the credential but not the client, azure-ai-textanalytics is the Language service library, and azure-ai-inference is a separate, older inference client.

How to reason it out
  1. Identify which library represents a Foundry project.
  2. azure-ai-projects provides AIProjectClient.
  3. azure-identity only supplies the credential it needs.

Exam tip: Foundry SDK in Python = azure-ai-projects → AIProjectClient (+ azure-identity for auth).

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 16Implement AI solutions by using Microsoft Foundry

A chat client contains this code: project = AIProjectClient(endpoint=endpoint, credential=DefaultAzureCredential()) client = project.__________ reply = client.responses.create(model="chat-deploy", input="Hello") Which call completes the second line?

Choose one.

  • a
    get_openai_client() Correct

    get_openai_client() returns an authenticated OpenAI client for the project, which exposes responses.create.

  • b
    deployments.get("chat-deploy")

    deployments.get returns information about a deployment; it is not a client that can generate responses.

  • c
    agents.create_version("chat")

    agents.create_version creates or updates an agent definition; it does not return a chat client.

  • d
    connections.get_default()

    Connections operations list or fetch connected resources; they do not return a chat client.

The concept

Getting the OpenAI client from the project client.

Why that’s the answer

In the Foundry SDK, AIProjectClient.get_openai_client() returns an authenticated OpenAI client for the project, which is then used for Responses and Conversations operations such as responses.create. The deployments, agents and connections operation groups manage or inspect project resources; none of them returns a client that generates text.

How to reason it out
  1. The next line calls responses.create, so the variable must be an OpenAI client.
  2. The project client provides one through get_openai_client().
  3. The other calls return deployment, agent or connection data instead.

Exam tip: Project client → get_openai_client() → responses.create.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 17Implement AI solutions by using Microsoft Foundry

A chat client creates AIProjectClient(endpoint=project_endpoint, credential=DefaultAzureCredential()). On a new developer laptop, every call fails with an authentication or authorization error. Which TWO actions should fix it? (Select TWO.)

Choose TWO.

  • a
    Sign in with az login so the credential can get a token Correct

    DefaultAzureCredential can use the Azure CLI sign-in on a developer machine; without a signed-in identity there is no token to send.

  • b
    Pass the Foundry resource's API key as the credential argument

    The project client authenticates with Microsoft Entra ID only; it does not accept an API key as its credential.

  • c
    Change the endpoint to the resource's Azure OpenAI endpoint URL

    The project client needs the project endpoint; switching to another endpoint does not supply a token or a role.

  • d
    Assign the developer the Foundry User role on the resource Correct

    Entra ID calls are authorized by Azure RBAC, and Foundry User (formerly Azure AI User) is the least-privilege role for building and testing in a project.

  • e
    Set the model argument to the catalog model name instead

    The model argument only selects the deployment; it has nothing to do with authentication or authorization.

The concept

Entra ID authentication and RBAC for the Foundry SDK.

Why that’s the answer

The Foundry project client supports Microsoft Entra ID only. DefaultAzureCredential needs a signed-in identity, which on a developer machine typically comes from az login, and that identity needs a role on the Foundry resource or project, with Foundry User (previously named Azure AI User) the least-privilege role for developers. Passing an API key, changing endpoints or changing the model argument does not fix authentication.

How to reason it out
  1. The failure is about identity, not about the request content.
  2. Authentication: give DefaultAzureCredential a signed-in identity (az login).
  3. Authorization: grant that identity a Foundry role such as Foundry User.
  4. Remember that the project client does not take API keys.

Exam tip: Foundry SDK auth = Entra ID token (az login / DefaultAzureCredential) + an RBAC role.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 18Implement AI solutions by using Microsoft Foundry

A Python chat client calls responses.create once for each message the user types. The first answer is correct, but a follow-up such as 'And what is its capital?' gets a reply that ignores the earlier question. The developer wants the service to keep the conversation state. What should each follow-up call include?

Choose one.

  • a
    store=False so the service keeps the earlier turns

    store=False tells the service not to store the response, which prevents later calls from chaining to it.

  • b
    The same deployment name that the first call used

    Using the same deployment does not link calls; each call is independent unless state is passed.

  • c
    A higher max_output_tokens value so the history fits

    max_output_tokens limits the length of the reply; it does not add earlier turns to the context.

  • d
    previous_response_id set to the id of the last response Correct

    Passing the previous response's id lets the service include the earlier turns as context, so follow-ups are answered in context.

The concept

Multi-turn state with the Responses API.

Why that’s the answer

Each responses.create call is independent unless you link it to earlier turns. The client can pass previous_response_id with the id of the last response (or use a conversation object) so the service supplies the earlier exchange as context. Reusing the deployment name links nothing, max_output_tokens only caps reply length, and store=False prevents the response from being stored for chaining.

How to reason it out
  1. Diagnose: the follow-up is answered without the earlier turn.
  2. Recall that calls are independent unless state is linked.
  3. Link the turns with previous_response_id or a conversation.
  4. Reject settings that only affect model choice, length or storage.

Exam tip: No link, no memory: chain turns with previous_response_id or a conversation.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 19Implement AI solutions by using Microsoft Foundry

A developer moves a chat client to responses.create on the project's OpenAI client. The old code put a system message at the start of a messages list and resent the full history every turn. The new client must keep the system rules on every turn and avoid storing history on the client. Which approach meets both requirements?

Choose one.

  • a
    Pass the rules as instructions on the first call only, then chain with previous_response_id

    Instructions from a previous response are not carried over when you chain with previous_response_id, so later turns would lose the rules.

  • b
    Pass the rules as instructions on every call and chain turns with previous_response_id Correct

    Chaining keeps the conversation on the service side, and sending instructions on each call keeps the rules in force because they are not inherited from earlier responses.

  • c
    Pass the rules as instructions on every call and resend the full history as input

    This keeps the rules, but the client still has to store and resend the history, which the requirement rules out.

  • d
    Pass the rules as instructions on the first call only, then reuse one conversation object

    A conversation keeps the message history on the service, but instructions apply only to the response they are sent with, so later turns would lose the rules.

The concept

Responses API: instructions vs chained state.

Why that’s the answer

Two facts decide this. First, chaining with previous_response_id (or using a conversation) keeps the conversation history on the service side, so the client does not resend it. Second, the instructions parameter applies only to the response it is sent with: it is not carried over when you chain with previous_response_id, and a conversation stores items, not instructions. So the system rules must be sent on each call. Sending them only on the first call loses them on later turns whichever chaining method is used, and resending the full history breaks the no-client-history requirement.

How to reason it out
  1. Requirement one: no client-side history, so chain turns on the service.
  2. Requirement two: system rules on every turn.
  3. Recall that instructions are not inherited through previous_response_id.
  4. Combine: chain the turns and send instructions with each call.

Exam tip: Chaining keeps the history but not the instructions; send instructions every call.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 20Implement AI solutions by using Microsoft Foundry

In the Microsoft Foundry portal, a developer creates a prompt agent without writing any code. Which set of settings defines that agent?

Choose one.

  • a
    A container image, a managed endpoint and a scaling rule

    Packaging your own code as a container describes a hosted agent, not a prompt agent.

  • b
    A model deployment, instructions and optional tools Correct

    A prompt agent is defined entirely by configuration: the model it uses, its instructions and any tools it can call.

  • c
    A training dataset, a base model and a fine-tuning job

    These describe customizing a model through fine-tuning, not defining an agent.

  • d
    A search index, an embedding model and a chunk size

    These are retrieval settings for building a search index, not an agent definition.

The concept

What defines a prompt agent.

Why that’s the answer

Foundry Agent Service prompt agents are defined through configuration: a model deployment, instructions that set behaviour, and optional tools such as file search or code interpreter. Foundry runs them with no code or infrastructure to manage. A container image describes a hosted agent, while fine-tuning and search-index settings belong to other workloads.

How to reason it out
  1. A prompt agent is configuration only.
  2. Its parts are the model, the instructions and the tools.
  3. Containers mean hosted agents; datasets mean fine-tuning.

Exam tip: Prompt agent = model + instructions + tools, run by Foundry.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 21Implement AI solutions by using Microsoft Foundry

A team's chat app currently sends a long system message with every model call. They plan to move that behaviour into a prompt agent created in Foundry and call the agent from the app instead. Which TWO statements about the new design are correct? (Select TWO.)

Choose TWO.

  • a
    The agent no longer needs a model deployment once its instructions are saved

    A prompt agent always runs on a model; instructions guide the model, they do not replace it.

  • b
    The team builds and scales a container that runs the agent code

    Prompt agents are run by Foundry with no code or containers; containers are needed only for hosted agents.

  • c
    The instructions live in the agent definition, not in each request Correct

    A prompt agent keeps its instructions in its definition, so the client does not need to resend them with each request.

  • d
    Saving a change to the agent's definition creates a new version of the agent Correct

    Agent definitions are versioned, so each saved change produces a new version that can be compared or rolled back.

  • e
    The agent keeps earlier turns even when calls send no conversation id

    Multi-turn context still needs a conversation (or a previous response id) on each call.

The concept

Prompt agents: stored instructions, versions, runtime and state.

Why that’s the answer

Moving from a raw model call to a prompt agent changes where the behaviour lives: the model, instructions and tools are stored in the agent definition in the project, so the client sends only the user input, and each saved change becomes a new agent version. The agent still needs a model, Foundry runs it without containers (those are for hosted agents), and multi-turn context still depends on passing a conversation or previous response id.

How to reason it out
  1. Ask what moves from the client into the agent: the instructions.
  2. Recall that agent definitions are versioned when they change.
  3. A model is still required, and Foundry runs prompt agents without containers.
  4. Conversation state is still passed per call.

Exam tip: A prompt agent stores and versions the instructions; the app still passes the conversation.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 22Implement AI solutions by using Microsoft Foundry

An agent must calculate loan repayment schedules and draw charts from CSV files that users upload during the chat. Which built-in tool should the developer add to the agent?

Choose one.

  • a
    The file search tool

    File search retrieves relevant passages from documents to ground answers; it does not run calculations or draw charts.

  • b
    The code interpreter tool Correct

    Code interpreter lets the agent write and run Python in a sandbox to process uploaded files, do calculations and create charts.

  • c
    The Azure AI Search tool

    Azure AI Search grounds answers in an existing search index; it does not execute code.

  • d
    The OpenAPI specification tool

    An OpenAPI tool calls an external REST API described by a specification; it does not compute over uploaded files.

The concept

Code interpreter for calculations and charts.

Why that’s the answer

The code interpreter tool lets an agent write and run Python in a secure sandbox, which suits calculations, data transformation of uploaded files such as CSVs, and chart generation. File search and Azure AI Search retrieve text for grounding, and an OpenAPI tool calls an external API.

How to reason it out
  1. The task needs computation and charts over uploaded data.
  2. Running code is what code interpreter does.
  3. Retrieval tools and API tools do not execute code.

Exam tip: Calculate, transform, chart: code interpreter.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 23Implement AI solutions by using Microsoft Foundry

An HR agent must answer from policy PDFs that the team uploads to the agent, and it must also report this week's public holiday announcements from government websites. Which TWO tools should be added? (Select TWO.)

Choose TWO.

  • a
    The code interpreter tool

    Code interpreter runs code over data; it neither searches uploaded policy documents for passages nor fetches current web content.

  • b
    The image generation tool

    Image generation creates images; it does not retrieve policy text or current announcements.

  • c
    The function calling tool

    A function tool calls code in your own application; nothing in the scenario requires custom app code.

  • d
    The file search tool Correct

    File search grounds answers in documents uploaded to the agent, such as the policy PDFs.

  • e
    The web search tool Correct

    Web search grounds answers in current public web content, such as this week's announcements.

The concept

Matching agent tools to knowledge sources.

Why that’s the answer

File search grounds an agent in documents you upload to it, and web search brings in current public information from the web. Together they cover the uploaded policies and this week's announcements. Code interpreter runs code, image generation produces images, and a function tool calls your own application's code.

How to reason it out
  1. Split the requirement into two knowledge sources.
  2. Uploaded documents → file search.
  3. Current public web content → web search.

Exam tip: Your documents: file search. Current public info: web search.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 24Implement AI solutions by using Microsoft Foundry

A retail agent must report live order status. The lookup is existing Python code in the company's client application, which can reach the internal order system; the order system has no public API. Which tool should the agent use so the model can request that lookup?

Choose one.

  • a
    A function tool that describes the lookup and its parameters Correct

    A function tool lets the model ask the client app to run its own code, so the existing lookup can reach the internal system.

  • b
    A code interpreter tool loaded with a copy of the lookup script

    Code interpreter runs code in an isolated sandbox that cannot reach the private internal order system.

  • c
    A file search tool over a nightly export of the orders table

    A nightly export is out of date, so it cannot report live status.

  • d
    A web search tool limited to the order system's internal domain

    Web search queries public web content; it cannot reach an internal system.

The concept

Function tools for app-side code.

Why that’s the answer

A function tool gives the model a description of a function and its parameters; when the model decides to use it, the client application runs its own code and returns the result. That is how an agent reaches systems only your app can access. Code interpreter runs in an isolated sandbox, file search over an export is stale, and web search cannot reach internal systems.

How to reason it out
  1. The data is live and reachable only through the app's own code.
  2. The model must be able to ask the app to run that code.
  3. A function tool describes the function; the app executes it.
  4. Sandboxed code, stale exports and web search all fail one requirement.

Exam tip: Code that only your app can run → function tool.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Question 25Implement AI solutions by using Microsoft Foundry

After creating a prompt agent in the Foundry portal, a developer wants to chat with it over several turns, see which tools it called and tune its instructions before writing any client code. Where should the developer do this?

Choose one.

  • a
    In the agents playground Correct

    The agents playground lets you chat with an agent over several turns, configure its instructions and tools, and view traces of its responses.

  • b
    In the model playground's compare mode

    Compare mode runs up to three models side by side; it does not test an agent's tools and instructions.

  • c
    In an agent evaluation run on the deployment

    An evaluation scores outputs against a dataset; it is not an interactive multi-turn chat.

  • d
    On the Code tab of the model playground

    The Code tab shows sample code for a model deployment; it is not where you test an agent interactively.

The concept

Testing agents in the agents playground.

Why that’s the answer

The agents playground is where you prototype and test agents without code: configure instructions and tools, add knowledge, hold multi-turn conversations and review tracing and evaluation data for each response. Compare mode and the Code tab belong to the model playground, and evaluation runs score outputs against a dataset.

How to reason it out
  1. The subject is an agent, not a bare model.
  2. The need is interactive, multi-turn, with tool visibility.
  3. That is the agents playground, which includes tracing.

Exam tip: Test an agent interactively in the agents playground.

Generative AI Apps and Agents in Microsoft Foundry (AI-901) — the lesson that teaches this.

Keep going with AI-901

AI-901 practice by domain

AI-901 sample questions: your questions

No. Real exam questions are confidential. These are original questions written to the skills in the official AI-901 exam guide, so they test the same knowledge in the same style without being copies of the exam.

Source

The domains and weights on this page come from the official AI-901 exam guide.