Community Q&A
AI-901 — frequently asked questions
Community-vetted answers to 54 common questions about this exam, each traced back to a specific practice question.
Questions from real practice questions
Each Q&A comes from a specific question — follow the link for the full analysisAzure Speech SDK Connection Configuration
What is the difference between AudioConfig and SpeechConfig?
SpeechConfig handles the service connection (key/region), while AudioConfig specifies the audio input/output device or stream.
Can I use SpeechSynthesizer without SpeechConfig?
No, SpeechSynthesizer requires a SpeechConfig instance to initialize and connect to the Azure Speech service.
Configuring AI Agent Role and Behavior in Microsoft Foundry
What is the difference between system instructions and user prompts?
System instructions set the persistent role and rules for the agent, while user prompts provide the specific input or task for a single interaction.
Can I use temperature to change the AI's personality?
No, temperature only affects randomness and creativity in word choice. Personality and role are defined strictly through system instructions.
AI-901 System Prompt Capabilities and Limitations
Can a system prompt be used for user authentication?
No. Authentication and authorization are handled by external identity providers like Microsoft Entra ID or via API keys, not by the text within a system prompt.
Do system prompts control Tokens Per Minute (TPM)?
No. TPM is a service quota defined by the cloud provider to manage load. While prompts can influence response length, they do not configure or reduce the TPM limit itself.
Extracting Structured Fields from Invoices using Azure Foundry
Why is OCR not enough for invoice extraction?
OCR only converts images to text. It cannot inherently understand or map that text into a structured schema with nested fields required for expense calculation.
What is the role of Azure AI Search here?
Azure AI Search indexes and searches data. It does not extract or structure the initial document content; it relies on other services to provide the structured data first.
Retrieving Analysis Results in Azure Content Understanding
Why can't I access results immediately after starting the analysis?
Because invoice analysis is an asynchronous background task. You must use a poller to wait for the server-side processing to finish before the data is available.
What does poller.result() do in Foundry Tools?
It synchronously waits for the long-running operation to complete and then returns the final result object containing the extracted information.
Connecting to Azure OpenAI Model Deployment in Python
What is the difference between model name and deployment name?
The model name (e.g., gpt-4.1-mini) is the base architecture. The deployment name (e.g., my-mini-gpt) is the unique alias you assign to that model instance in your specific Azure resource.
How do I find the endpoint URL for Azure OpenAI?
The endpoint URL is found in the Azure Portal under the Azure OpenAI resource properties. It typically follows the format https://<resource-name>.openai.azure.com/
Azure AI Agent vs Generative AI Prompt Handling
Why don't AI models get retrained for every prompt?
Models are pre-trained on massive datasets. Retraining them for every prompt would be computationally impossible and slow down responses.
What is the main difference between a model and an agent?
A model generates content like text or images. An agent uses reasoning to plan steps, make decisions, and execute actions using tools.
Azure AI Document Intelligence vs Computer Vision
What is the difference between Document Intelligence and Computer Vision?
Document Intelligence extracts text and structure from documents, while Computer Vision analyzes visual elements like objects and scenes in images.
Can Computer Vision replace Document Intelligence?
No, Computer Vision lacks the advanced layout recognition and table extraction capabilities required for complex document processing tasks.
Responsible AI: Accountability, Transparency, and Fairness
What is the difference between Accountability and Transparency in Responsible AI?
Transparency focuses on openness and visibility, such as naming teams and explaining decisions. Accountability focuses on governance, taking responsibility for outcomes, and having mechanisms for audit and redress.
Does naming the AI team ensure Accountability?
No. Naming the team primarily ensures Transparency by identifying who is involved. Accountability requires a broader framework including governance, documentation, and monitoring to ensure the team can be held responsible.
Which Responsible AI Principle Covers Human Oversight of AI Decisions?
Why is human oversight of AI decisions an Accountability issue and not Transparency?
Accountability assigns ownership of outcomes to people, while Transparency only requires disclosing how a system works and its limits. The sentence stresses reviewers taking responsibility, which is Accountability.
Which responsible AI principles could appear as the other choices in this AI-901 hotspot?
Expect Fairness, Reliability and safety, Privacy and security, Inclusiveness, and Transparency alongside Accountability. Only Accountability describes people staying answerable for AI-driven decisions.
Which AI Workload Generates Marketing Email Drafts?
Why isn't text classification the right workload for email drafting?
Classification only assigns labels or categories to text that already exists, such as sentiment or intent. It cannot author new sentences, so it cannot turn a product description into an email draft.
What if the product description is supplied as a voice memo?
You would add a speech recognition workload to transcribe the audio first, but the drafting step itself still requires generative AI to write the email text.
Responsible AI Principles: Fairness vs Inclusiveness | AI-901
What is the difference between Fairness and Inclusiveness in AI?
Fairness focuses on eliminating bias and ensuring equitable outcomes for different groups. Inclusiveness focuses on making AI accessible and usable for everyone, including those with disabilities.
How does Microsoft define Fairness in its Responsible AI principles?
Microsoft defines Fairness as treating all people fairly and avoiding affecting similarly situated people differently, which includes mitigating bias in data and models.
Microsoft Responsible AI Inclusiveness Principle
How does inclusiveness differ from fairness in Microsoft's Responsible AI?
Inclusiveness focuses on accessibility for all users, including those with disabilities. Fairness focuses on preventing bias and ensuring equitable outcomes across demographic groups.
Why is encrypting data not considered inclusiveness?
Encrypting data falls under the Privacy and Security principle, which protects user information. Inclusiveness is about making the product usable by everyone regardless of their abilities or language.
OpenAI Images API Image Generation Code
What is the difference between client.images.generate and client.chat.completions?
client.images.generate creates visual media from text prompts, while client.chat.completions generates text-based conversational responses.
Which model should I specify for image generation in Azure OpenAI?
For image generation tasks, use models like dall-e-3 or gpt-image-1 depending on availability, ensuring the method matches the image API.
Azure AI Foundry Agent MCP Requirement
Is MCP mandatory for Azure AI Foundry agents?
No, MCP is not mandatory. It is an optional protocol that allows agents to connect to external tools and data sources, but agents can function using other methods.
Can I use MCP with Azure AI Foundry agents?
Yes, you can use MCP if you need standardized tool integration, but it is not a prerequisite for creating or running basic agents in Azure AI Foundry.
Multimodal Generative AI Capabilities in Azure Foundry
What is the difference between Computer Vision and Multimodal Generative AI?
Computer Vision analyzes and interprets existing images (e.g., detecting objects). Multimodal Generative AI creates new content (e.g., generating an image from a text description).
Can multimodal models perform object detection?
Yes, some advanced multimodal models can understand images, but their primary distinction in this context is the ability to generate new content rather than just classify existing data.
Identify Speech-to-Text Workloads in Azure AI
What is the difference between Speech and Natural Language Understanding workloads?
Speech workloads convert audio to text (transcription), while NLU workloads analyze existing text to understand intent, entities, and sentiment.
Can I use Key Phrase Extraction on audio files directly?
No. Key phrase extraction analyzes text documents to find significant terms. You must first transcribe the audio using a Speech workload before applying text-based analytics.
Azure Vision in Foundry Tools Capabilities
Why is extracting key phrases not a Vision task?
Key phrase extraction is a Natural Language Processing (NLP) function handled by Azure AI Language, not Azure AI Vision.
Can Azure Vision identify animal breeds?
While it can detect objects, identifying specific breeds usually requires custom models or specialized services, not the standard Foundry thumbnail tool.
Azure AI Language Named Entity Recognition Hotspot
What is the difference between NER and Key Phrase Extraction?
NER identifies specific proper nouns like names and locations, while Key Phrase Extraction pulls out general topic words that summarize the text.
Does Azure AI Language NER require custom training?
No, Azure AI Language provides pre-trained models for NER that work out-of-the-box for standard entity types like persons and organizations.
Azure Language PII Detection for Data Masking
Why not use Custom NER for masking names?
Custom NER requires training and maintenance. PII detection is a pre-built, optimized service specifically for common sensitive data types like names and phones.
Does PII detection support phone number masking?
Yes, Azure AI Language PII detection includes built-in models that recognize and can redact phone numbers along with other personal identifiers.
Responses API Image Input for Vision Models on AI-901
What image formats does the Responses API accept when calling a vision-enabled model?
It accepts the image either as inline base64-encoded image data embedded in the JSON payload or as a publicly accessible image URL. No other transport, such as CSV or MP4, is used for this image input.
Why is an SAS token not the correct completion for the image-passing sentence?
An SAS token is only a time-limited credential that grants access to stored blobs; it does not contain image content. It might accompany a URL, but the image itself is passed as base64 data or a URL.
Do Overall Accuracy and Group Comparisons Reveal AI Bias?
Why doesn't high overall accuracy mean an AI model is fair?
Overall accuracy is an aggregate across the whole dataset, so poor performance on a small underrepresented group is diluted. Fairness must be measured per subgroup, not on the total score.
How do you detect bias in an AI model's outputs?
Slice evaluation data by sensitive attributes such as demographic groups, then compare error rates and outcome metrics across those slices to reveal disparities, per Microsoft's fairness measure guidance.
Fastest Vision Message Structure in Microsoft Foundry
Why does sending the image in a separate request slow the answer down?
A separate request forces an extra network round trip before the model can see the image, so total latency increases instead of decreasing. Combining both items in one user message lets the model process them simultaneously.
Why is a system message wrong for the image item?
The system message sets standing instructions and role behavior, while the user message carries the actual prompt content. Image references belong with the user's request so they are interpreted as part of that turn.
Submitting a PDF to Azure Content Understanding with Python SDK
Why doesn't analyze() return the extracted fields synchronously?
Document analysis is a long-running operation, so the SDK returns a poller that must be awaited; results are only available after processing finishes.
Why is reading results from request headers incorrect?
Headers only carry operation metadata such as the operation-location URL; the actual extracted fields come from polling the operation until it completes.
AI Workload for Generating Images from Descriptions | AI-901
What is the difference between image generation and image analysis?
Image generation creates new images from prompts, while image analysis interprets existing images to extract data or labels.
Can OCR be used to generate product images?
No, OCR only extracts text from images. It cannot create visual content.
Calling a Microsoft Foundry Generative AI Model
Why can't I use the Playground session history to call the model?
Session history logs past interactions for review but does not contain the live API endpoint or security tokens needed to send new requests.
Is the project display name used in the API URL?
No, the display name is for human identification in the UI; the API uses a unique resource ID or specific endpoint URL for routing.
Azure Speech Text-to-Speech vs Translation
Can Azure Speech Service translate languages?
Yes, but via the 'Speech Translation' feature, not 'Text-to-Speech'. TTS is strictly for converting existing text to audio in the same language.
What is the difference between TTS and Speech Translation?
TTS converts text to speech in one language. Speech Translation converts speech from one language to speech in another, or text to translated speech.