WebMagicInformatica
AI-901 practice questions

AI-901 practice questions: Implement AI solutions by using Microsoft Foundry

8 free questions on Implement AI solutions by using Microsoft Foundry, 58% of the Azure AI Fundamentals (AI-901) exam. Try each one, then open the answer and explanation. None of them are in the free readiness check, so you can still take it fresh.

Question 1

A model keeps inventing details that are not in the policy document a user pasted into the prompt. Which prompt change is MOST likely to reduce this?

  1. A.

    Instruct the model to answer only from the provided document and to say when the answer is not there.

  2. B.

    Increase the temperature to 1.5.

  3. C.

    Ask the model to be as creative as possible.

  4. D.

    Remove the document from the prompt.

Show answer and explanation

Answer: A

Grounding the model in provided content and telling it to say 'I don't know' when the answer is missing reduces fabricated details. Higher temperature or creativity increases invention, and removing the document removes the source of truth.

Question 2

A Python chat client sometimes returns responses that are cut off in the middle of a sentence. Which setting should the developer check FIRST?

  1. A.

    The maximum output tokens limit.

  2. B.

    The top_p (nucleus sampling) value.

  3. C.

    The presence penalty value.

  4. D.

    The Azure region of the resource group.

Show answer and explanation

Answer: A

A low max output tokens value stops generation when the limit is reached, so the reply is cut off (the response's finish reason reports length). top_p and presence penalty change which tokens are chosen, not how many can be produced, and the region does not affect output length.

Question 3

A developer wants a lightweight app that detects the language of customer messages and extracts key phrases. Which Foundry Tools service should the app call?

  1. A.

    Azure Translator only.

  2. B.

    Azure Content Safety only.

  3. C.

    Azure Language.

  4. D.

    Azure Speech.

Show answer and explanation

Answer: C

Azure Language provides language detection, key phrase extraction, sentiment analysis and more. Speech handles audio, Content Safety detects harmful content, and Translator translates text.

Question 4

A lightweight app must read the text printed on photographed shop receipts. Which vision capability is designed for this?

  1. A.

    Sentiment analysis.

  2. B.

    Speech synthesis.

  3. C.

    Optical character recognition (OCR).

  4. D.

    Image generation.

Show answer and explanation

Answer: C

OCR extracts printed and handwritten text from images. Image generation creates images, speech synthesis creates audio, and sentiment analysis classifies text opinions.

Question 5

Which approach in a prompt helps a model solve a multi-step problem more reliably?

  1. A.

    Ask it to work through the problem step by step before giving the final answer.

  2. B.

    Remove all context.

  3. C.

    Increase the number of images attached.

  4. D.

    Tell it to answer in as few words as possible.

Show answer and explanation

Answer: A

Asking for step-by-step reasoning improves multi-step accuracy for many models. Forcing brevity or removing context makes errors more likely.

Question 6

A developer is writing a Python app and wants to count how many tokens a response used for cost tracking. Where can this be found?

  1. A.

    In the Azure Activity log entry for the resource.

  2. B.

    In the subscription's tag list.

  3. C.

    In the deployment's model version number.

  4. D.

    In the usage information returned with the response.

Show answer and explanation

Answer: D

Each chat completion response includes a usage object with prompt, completion and total token counts, which the app can log for cost tracking. The Activity log records management operations such as creating a deployment, not per-request token counts; tags are resource metadata; and the model version identifies the model, not usage.

Question 7

A lightweight app must determine whether each customer review is positive or negative by calling a service from Python. What should the app send, and what does it get back?

  1. A.

    A product photo; it gets a price.

  2. B.

    The review audio; it gets a transcript only.

  3. C.

    The review text; it gets a generated image.

  4. D.

    The review text; it gets a sentiment label with confidence scores.

Show answer and explanation

Answer: D

Azure Language sentiment analysis takes text and returns sentiment labels with confidence scores. The others describe different inputs or outputs.

Question 8

A developer wants an app to return an AI-generated image at a specific size. Which parameter of the image generation request controls this?

  1. A.

    The image size parameter.

  2. B.

    The speech voice name.

  3. C.

    The system message.

  4. D.

    The temperature for text.

Show answer and explanation

Answer: A

Image generation requests include parameters such as size and count. Temperature, system messages and voice names belong to other model types.

How ready are you for AI-901?

Take the free readiness check: 15 questions from every exam domain in 20 minutes, with your score per domain.

  • 20 minutes
  • 15 questions
  • Free with an account

More AI-901 practice by topic

Back to the AI-901 practice test →

Independent practice material written from the official exam guide. Not affiliated with or endorsed by the exam provider.