AI-901 sample exam questions

15 exam-style questions for Microsoft AI-901: Azure AI Fundamentals, with answers and explanations. Take them as a timed practice exam first if you want a score out of 1000.

  1. Question 1Single choice
    You are using the Azure Speech SDK to develop a Python application that supports real-time spoken conversations.
    Which Azure Speech class should you use to configure the connection to the Azure Speech service?
    1. A
      AudioOutputConfig
    2. B
      SpeechSynthesizer
    3. C
      AudioConfig
    4. D
      SpeechConfig
    Show answer

    Correct answer: D

    Why

    SpeechConfig holds the Speech resource key, region or endpoint, and language settings that every recognizer or synthesizer uses to connect to the service. AudioConfig and AudioOutputConfig only choose the microphone, speaker or file, and SpeechSynthesizer is the class that performs text to speech.

  2. Question 2Single choice
    You need to create an AI agent in Microsoft Foundry that follows a specific role and behavior when responding to users.
    What should you configure?
    1. A
      system instructions
    2. B
      temperature
    3. C
      tokens per minute (TPM)
    4. D
      max completion tokens
    Show answer

    Correct answer: A

    Why

    System instructions (the system message or agent instructions) define the agent's persona, role, tone and rules for how it responds. Temperature only controls randomness, TPM is a deployment rate limit, and max completion tokens just caps response length.

  3. Question 3Hotspot
    HOTSPOT
    For each of the following statements, select Yes if the statement is true. Otherwise, select No.
    NOTE: Each correct selection is worth one point.
    System prompts can be used to authorize users.Yes / No
    A system prompt is used to reduce tokens per minute (TPM).Yes / No
    A system prompt guides the behavior of a generative AI model.Yes / No
    Show answer
    • System prompts can be used to authorize users. No
    • A system prompt is used to reduce tokens per minute (TPM). No
    • A system prompt guides the behavior of a generative AI model. Yes
    Why

    A system prompt sets the model's role, tone and rules. It has no security power (authorization is done by identity and access control) and has nothing to do with the TPM rate limit.

  4. Question 4Single choice
    You are developing a web app that processes invoices to calculate expenses.
    You need to extract structured fields, including nested values, from the invoices by using a defined schema.
    What should you use?
    1. A
      an optical character recognition (OCR)-only document processing pipeline
    2. B
      a transcription workflow in Azure Speech in Foundry Tools
    3. C
      an analyzer in Azure Content Understanding in Foundry Tools
    4. D
      an Azure AI Search service
    Show answer

    Correct answer: C

    Why

    An Azure Content Understanding analyzer lets you define a field schema, including nested objects and arrays, and returns structured values extracted from documents such as invoices. OCR alone returns only raw text, Speech transcription handles audio, and Azure AI Search indexes and searches content rather than extracting schema fields.

  5. Question 5Multiple response
    What are two purposes of instructions when prompting a generative AI model? Each correct answer presents part of the solution.
    NOTE: Each correct selection is worth one point.
    1. A
      defines the agent’s role and behavior
    2. B
      selects which model to use
    3. C
      defines the Azure region where inference occurs
    4. D
      defines the tokens per minute (TPM) allocation for the model
    5. E
      defines constraints on the model’s responses
    Show answer

    Correct answer: A, E

    Why

    Instructions (the system prompt) tell the model what role to play and how to behave, and they set constraints such as tone, format, scope and topics to avoid. Model choice, the Azure region and the TPM quota are deployment settings, not something a prompt instruction controls.

  6. Question 6Hotspot
    HOTSPOT
    For each of the following statements, select Yes if the statement is true. Otherwise, select No.
    NOTE: Each correct selection is worth one point.
    An AI generative model is retrained before performing each user request.Yes / No
    An AI agent responds by copying and pasting answers stored in a database.Yes / No
    An AI agent uses a generative AI model to establish actions based on user input.Yes / No
    Show answer
    • An AI generative model is retrained before performing each user request. No
    • An AI agent responds by copying and pasting answers stored in a database. No
    • An AI agent uses a generative AI model to establish actions based on user input. Yes
    Why

    Models are trained once and then used as-is. Agents generate answers rather than copying stored ones, and use the model to decide which steps or tools to use.

  7. Question 7Hotspot
    HOTSPOT
    Select the answer that correctly completes the sentence.
    Evaluating model outcomes across demographic groups to reduce bias is an example of the principle ofaccountability / fairness / privacy and security / transparency
    Show answer
    • Evaluating model outcomes across demographic groups to reduce bias is an example of the principle of fairness
    Why

    Fairness is about treating all groups equally, so comparing results across demographic groups to find and reduce bias is a fairness practice.

  8. Question 8Single choice
    You are developing an AI-powered customer support application.
    Which task is an example of the Microsoft responsible AI principle of inclusiveness?
    1. A
      Encrypt stored customer data and restrict access by using role-based controls.
    2. B
      Evaluate model outputs across demographic groups to reduce bias.
    3. C
      Design the interface to support multiple languages and screen readers.
    4. D
      Provide explanations about how predictions are generated.
    Show answer

    Correct answer: C

    Why

    Inclusiveness means designing AI so that people of all abilities and backgrounds can use it, for example multiple languages and screen-reader support. Encryption and access control belong to privacy and security, testing across demographic groups is fairness, and explaining predictions is transparency.

  9. Question 9Single choice
    You have a Microsoft Foundry project that contains a vision-enabled model deployment.
    You need to develop an application that sends a message containing text and an image URL. The solution must ensure the quickest response time.
    Which message structure should you include in the request?
    1. A
      a system message that includes both a text item and an image item in the content array
    2. B
      a system message that includes only a text item and sends an image item in a separate request
    3. C
      a user message that includes only a text item and sends an image item in a separate request
    4. D
      a user message that includes both a text item and an image item in the content array
    Show answer

    Correct answer: D

    Why

    With a vision-enabled chat model you send one user message whose content array holds both a text part and an image_url part, so the model handles both in a single call. Splitting them into separate requests adds round trips, and the system message is meant for instructions, not user-supplied images.

  10. Question 10Single choice
    You are developing an application that processes voicemail recordings by using Azure Content Understanding in Foundry Tools.
    Which feature does Azure Content Understanding use to convert audio to text?
    1. A
      key phrase extraction
    2. B
      transcription
    3. C
      Voice Live
    4. D
      optical character recognition (OCR)
    Show answer

    Correct answer: B

    Why

    Content Understanding processes audio by first running transcription (speech to text, with options such as speaker diarization) and then extracting fields from the transcript. OCR reads text from images and documents, key phrase extraction works on text that already exists, and Voice Live is a real-time voice agent API.

  11. Question 11Single choice
    You are developing an application that extracts fields from PDFs by using Azure Content Understanding in Foundry Tools.
    You need to use the Python SDK to submit a PDF for analysis and retrieve the extraction results.
    What should you do?
    1. A
      Call analyze() to return the extracted fields synchronously in the same request.
    2. B
      Submit the PDF to an analyzer and read the results from the request headers.
    3. C
      Call begin_analyze(), and then call poller.result() to retrieve the results.
    4. D
      Use optical character recognition (OCR) to extract text from the PDF and map the fields in the code.
    Show answer

    Correct answer: C

    Why

    Content Understanding analysis is a long-running operation, so the Python SDK's begin_analyze() returns a poller and poller.result() waits for the operation to finish and returns the extracted fields. Results are not returned synchronously or in the response headers, and plain OCR with hand-written mapping skips the analyzer.

  12. Question 12Hotspot
    HOTSPOT

    Select the answer that correctly completes the sentence.

    A multimodal modelanalyzes images to detect objects / creates new visual content based on text prompts / organizes structured numerical data into predictive categories / uses pattern matching to retrieve similar images from a fixed database
    Show answer
    • A multimodal model creates new visual content based on text prompts
    Why

    A multimodal generative model works across text and images, for example generating an image from a text description. Object detection is classic computer vision and categories from numbers is classification.

  13. Question 13Hotspot
    HOTSPOT

    Select the answer that correctly completes the sentence.

    A virtual assistant that converts spoken customer requests into written text relies on a ... workload.key phrase extraction / Natural Language Understanding (NLU) / speech / text analysis
    Show answer
    • A virtual assistant that converts spoken customer requests into written text relies on a ... workload. speech
    Why

    Turning audio into text is speech recognition (speech to text). The text-based workloads only start after the speech is transcribed.

  14. Question 14Single choice
    Which action can be performed by using the Azure Vision in Foundry Tools service?
    1. A
      creating thumbnails for training videos
    2. B
      extracting key phrases from documents
    3. C
      identifying breeds of animals in live video streams
    4. D
      extracting data from handwritten letters
    Show answer

    Correct answer: D

    Why

    The community answer A is wrong because thumbnails and keyframes for videos come from Azure AI Video Indexer, and Vision's smart thumbnails work only on still images. Azure Vision's OCR (Read) feature pulls printed and handwritten text out of images such as scanned letters. Key phrases come from Azure Language, and breed identification in live video would need a custom model.

  15. Question 15Single choice
    Which feature of the Azure Language in Foundry Tools service should you use to automate the masking of names and phone numbers in text data?
    1. A
      Personally Identifiable Information (PII) detection
    2. B
      custom text classification
    3. C
      entity linking
    4. D
      custom named entity recognition (NER)
    Show answer

    Correct answer: A

    Why

    PII detection in Azure Language finds personal data such as names, phone numbers and email addresses and returns redacted text with those values masked. Entity linking maps entities to Wikipedia entries, while custom NER and custom text classification need you to label and train your own models and do not redact anything.