Courseiva

Microsoft Azure AI Engineer Associate AI-102 (AI-102) — Questions 301–375

761 questions total · 11pages · All types, answers revealed

Page 4

Page 5 of 11

Page 6
301
MCQmedium

A company uses Azure OpenAI to generate product descriptions. They want to ensure that the descriptions are consistent in style and tone. Which strategy should they use?

A.Fine-tune the model on a dataset of product descriptions.
B.Provide a few examples of desired style in the prompt (few-shot learning).
C.Set max_tokens to a small value to limit output length.
D.Increase the temperature to 1.0 for more creativity.
AnswerB

Few-shot prompting supplies concrete exemplars of the target style and tone directly in the prompt, so the model infers the desired register and structure without retraining. This satisfies the consistency constraint more reliably than zero-shot instructions alone, since patterns are demonstrated rather than described.

Why this answer

Few-shot learning (option B) is the correct strategy because it directly controls style and tone by providing examples of desired output within the prompt. This leverages the model's in-context learning ability without modifying the underlying model weights, making it ideal for enforcing consistency without the cost and complexity of fine-tuning.

Exam trap

The trap here is that candidates often confuse fine-tuning (option A) as the only way to enforce style, overlooking that few-shot learning is a lighter, more flexible method that achieves the same goal without retraining.

How to eliminate wrong answers

Option A is wrong because fine-tuning requires a large, curated dataset and retraining the model, which is overkill for simple style consistency and introduces risks of catastrophic forgetting or overfitting to narrow patterns. Option C is wrong because setting max_tokens to a small value only truncates the output length; it does not influence the style, tone, or content of the generated text. Option D is wrong because increasing temperature to 1.0 increases randomness and creativity, which would actually reduce consistency in style and tone, not enforce it.

302
MCQmedium

You are testing a Conversational Language Understanding application. You send the JSON request shown in the exhibit. What is the purpose of this request?

A.Translate the text to another language.
B.Generate a response to the user.
C.Summarize the conversation.
D.Analyze the utterance for intent and entities.
AnswerD

The prediction request submits an utterance to the Conversational Language Understanding runtime, returning the top-scoring intent plus any extracted entities. It performs inference only; authoring, training and deployment occur through separate project and model endpoints.

Why this answer

The JSON request sends a user utterance to a Conversational Language Understanding (CLU) endpoint, which is designed to analyze natural language input. The response will include the predicted intent (e.g., 'GetWeather') and extracted entities (e.g., 'location: Seattle'), fulfilling the core function of CLU: intent and entity recognition. This is not a generative or translation task; it is a classification and extraction operation.

Exam trap

The trap here is that candidates confuse the purpose of CLU (intent/entity analysis) with generative AI or other NLP services, assuming any language input to Azure AI implies translation, summarization, or response generation, when in fact CLU is strictly a classification and extraction engine.

How to eliminate wrong answers

Option A is wrong because translation is handled by Azure Translator or Cognitive Services Translator, not by the Conversational Language Understanding API, which does not output translated text. Option B is wrong because generating a response is the role of a conversational AI like Azure OpenAI or a bot framework; CLU only analyzes the utterance and returns structured data (intent/entities), not a natural language reply. Option C is wrong because summarization is a separate capability (e.g., Azure Text Analytics for conversation summarization), and CLU does not produce a condensed version of the conversation; it processes a single utterance at a time.

303
MCQmedium

You are building a solution to generate product descriptions using Azure OpenAI Service. You need to ensure that the output adheres to a specific tone (professional, friendly) and length (50-100 words). Which parameter should you adjust?

A.Configure max_tokens to limit response length.
B.Modify the top_p parameter.
C.Set the system message with instructions about tone and length.
D.Adjust the temperature parameter.
AnswerC

The system message sets persistent behavioural instructions applied before user turns, so tone and word-count guidance there governs every generated description. Prompt-level parameters such as temperature or max_tokens cannot reliably enforce a professional-friendly tone or a 50-100 word range.

Why this answer

The system message in Azure OpenAI Service is specifically designed to set the overall behavior and context for the model, including tone and length constraints. By providing instructions like 'Respond in a professional and friendly tone, and keep the output between 50 and 100 words,' the model will adhere to these guidelines throughout the conversation. This is the primary mechanism for controlling qualitative aspects of the output, as opposed to parameters that control randomness or token limits.

Exam trap

The trap here is that candidates often confuse parameters that control output randomness (temperature, top_p) or length (max_tokens) with the system message's role in defining qualitative constraints like tone and style, leading them to select A or D instead of C.

How to eliminate wrong answers

Option A is wrong because max_tokens only caps the total number of tokens (words/punctuation) in the response, but it does not enforce a specific tone or guarantee the output will be between 50-100 words—it simply cuts off at the limit, which can result in incomplete sentences. Option B is wrong because top_p (nucleus sampling) controls the diversity of word choices by limiting the cumulative probability of token selection; it does not influence tone or enforce a word count range. Option D is wrong because temperature adjusts the randomness of the model's output (higher values produce more creative/random responses, lower values produce more deterministic ones), but it cannot enforce a specific tone or a precise length range.

304
MCQmedium

You are developing a customer support chatbot using Azure OpenAI Service. The chatbot must only answer questions related to the company's product catalog and policies. You want to minimize the risk of the chatbot generating harmful or off-topic responses. Which approach should you use?

A.Set the max_tokens parameter to 100.
B.Use a system message that instructs the model to only answer product-related questions.
C.Set the temperature parameter to 0.
D.Set the top_p parameter to 0.1.
AnswerB

A system message constrains the model's behaviour across all turns, instructing it to answer only product-catalogue and policy questions, which reduces harmful or off-topic output. Content filtering alone cannot enforce topical scope, since it targets categories rather than subject relevance.

Why this answer

A system message sets the foundational behavior of the model by providing high-level instructions that guide all subsequent responses. By explicitly instructing the model to only answer product-related questions, you establish a clear boundary that minimizes off-topic or harmful outputs. This approach leverages the model's instruction-following capability, which is more effective than parameter tuning alone for content restriction.

Exam trap

The trap here is that candidates often confuse content filtering parameters (temperature, top_p, max_tokens) with instruction-based control, assuming that reducing randomness or output length can prevent off-topic responses, when in fact only explicit system-level instructions can enforce domain constraints.

How to eliminate wrong answers

Option A is wrong because setting max_tokens to 100 only limits the length of the response, not the content or topic; the model could still generate harmful or off-topic text within that token limit. Option C is wrong because setting temperature to 0 makes the model deterministic and reduces randomness, but it does not prevent the model from generating off-topic or harmful content if the prompt or context leads it there. Option D is wrong because setting top_p to 0.1 narrows the probability distribution for token selection, which reduces diversity but does not constrain the model to a specific domain or topic.

305
MCQeasy

You need to extract handwritten text from scanned forms. Which Azure Computer Vision feature should you use?

A.OCR API (optical character recognition)
B.Tag API
C.Read API
D.Describe API
AnswerC

The Read API performs optical character recognition on both printed and handwritten text, directly satisfying the stem's handwriting requirement. Unlike the older OCR API, which handles printed text only, Read supports handwriting through Microsoft Entra ID-authenticated Computer Vision resources, returning extracted lines and words for scanned forms.

Why this answer

The Read API is specifically designed for extracting printed and handwritten text from images and documents, including scanned forms. It uses advanced deep-learning models optimized for text recognition and is the correct service for this task in Azure Computer Vision.

Exam trap

The trap here is that candidates confuse the legacy OCR API (which only handles printed text) with the Read API (which handles both printed and handwritten text), leading them to select Option A incorrectly.

How to eliminate wrong answers

Option A is wrong because the OCR API is a legacy service that only extracts printed text and does not support handwritten text recognition. Option B is wrong because the Tag API returns a list of content tags (objects, concepts) based on the image, not text extraction. Option D is wrong because the Describe API generates human-readable captions describing the image content, not text extraction.

306
MCQmedium

Your team is building a knowledge mining solution for research papers. You need to automatically categorize papers into topics and extract author names, publication dates, and references. The solution must use custom models because the papers are domain-specific. Which combination of Azure services should you use?

A.Azure AI Document Intelligence's pre-built invoice model and Azure Bot Service
B.Azure AI Document Intelligence's custom extraction model and Azure AI Language's custom text classification
C.Azure AI Search's built-in OCR skill and a custom skill using Azure Functions
D.Azure AI Language's pre-built entity extraction and Azure AI Search
AnswerB

Document Intelligence's custom extraction model handles domain-specific fields such as authors, dates and references, while Azure AI Language's custom text classification assigns topics using labelled training data. Together they satisfy the requirement for custom models on domain-specific research papers.

Why this answer

It combines Azure AI Document Intelligence's custom extraction model to extract domain-specific fields like author names, publication dates, and references, with Azure AI Language's custom text classification to categorize research papers into topics. This pairing directly addresses the need for custom models tailored to the specialized domain, unlike pre-built or generic solutions.

Exam trap

A common mistake on the Azure AI-102 exam is choosing pre-built models (like the invoice model or generic entity extraction) thinking they can be adapted to domain-specific needs, but the question explicitly requires custom models. Always verify if the scenario demands custom training.

How to eliminate wrong answers

Option A is wrong because the pre-built invoice model is designed for invoice-specific fields (e.g., total amount, vendor name) and cannot be customized to extract author names, publication dates, or references from research papers, nor does it handle topic classification. Option C is wrong because Azure AI Search's built-in OCR skill only extracts raw text from images, not structured fields, and a custom Azure Functions skill would require building extraction logic from scratch, lacking the pre-built custom extraction and classification capabilities needed. Option D is wrong because Azure AI Language's pre-built entity extraction recognizes generic entities (e.g., person names, dates) but cannot be trained on domain-specific categories like research paper topics, and Azure AI Search alone does not provide custom classification or extraction models.

307
Multi-Selecthard

You are managing an Azure AI services resource that is used by several departments. The security team requires that you monitor the resource for unusual access patterns and receive alerts when the number of failed authentication attempts exceeds a threshold. You need to configure the appropriate Azure Monitor components. Which two actions should you take? (Choose two.)

Select 2 answers
A.Enable Azure Defender for AI services to detect anomalies and generate security alerts.
B.Create a metric alert on the TotalCalls metric for the Azure AI services resource.
C.Configure a private endpoint for the Azure AI services resource to restrict access to a virtual network.
D.Create an alert rule in Azure Monitor that triggers when the count of failed authentication events in the Log Analytics workspace exceeds a threshold.
E.Enable diagnostic settings on the Azure AI services resource to send logs to a Log Analytics workspace.
AnswersD, E

After logs are in Log Analytics, you can create an alert rule that evaluates a log query periodically. The alert rule can count failed authentication events and trigger when the count exceeds your defined threshold. This directly fulfills the requirement to receive alerts on excessive failed authentication attempts. It is the action that turns the collected data into actionable notifications.

Why this answer

To monitor failed authentication attempts, you must first enable diagnostic settings to collect logs into a Log Analytics workspace. Then, you can create an alert rule that queries those logs and triggers when the count of failed authentication events exceeds a threshold. The other options either address network security, provide general threat detection, or use an unrelated metric, so they do not meet the specific monitoring and alerting requirement.

Exam trap

The trap here is assuming that enabling a private endpoint or Azure Defender automatically provides threshold-based alerts on failed authentication attempts, when they serve different security purposes.

308
MCQeasy

Your company is developing an AI-powered document processing solution using Azure AI Document Intelligence. The solution must extract data from scanned PDF forms. The forms are in a custom format not supported by prebuilt models. You have 10,000 labeled forms for training. The solution must be deployed in a region that supports Document Intelligence and must be accessible via a REST API. You need to ensure the solution can process forms with high accuracy. What should you do?

A.Use Azure AI Language to extract entities from the text
B.Train a custom extraction model using the labeled forms
C.Use a prebuilt model and map fields manually
D.Use the Read model and write custom logic to extract fields
AnswerB

Custom extraction models learn the layout and field patterns of your specific form type from labelled samples, which prebuilt models cannot handle. Training with 10,000 labelled forms yields the high accuracy the custom format demands, and the model is callable via REST API.

Why this answer

Azure AI Document Intelligence supports training custom extraction models using labeled forms, which is essential for handling custom form layouts not covered by prebuilt models. With 10,000 labeled forms, you have sufficient data to train a high-accuracy model that extracts specific fields via the REST API, meeting the deployment and accessibility requirements.

Exam trap

The trap here is that candidates may confuse Azure AI Language's entity extraction with Document Intelligence's form extraction, or assume that a prebuilt model can be adapted via manual mapping, when in reality custom training is mandatory for unsupported formats.

How to eliminate wrong answers

Option A is wrong because Azure AI Language is designed for text analytics and entity extraction from unstructured text, not for structured field extraction from scanned forms, and it cannot learn custom form layouts. Option C is wrong because prebuilt models are designed for standard form types (e.g., invoices, receipts) and cannot be manually mapped to extract fields from a custom format, leading to poor accuracy. Option D is wrong because the Read model only performs OCR (optical character recognition) to extract raw text and layout, requiring custom logic to identify and extract specific fields, which is error-prone and does not leverage the labeled training data for high accuracy.

309
MCQeasy

A developer is building an Azure AI Vision solution that must detect and locate multiple objects in an image, such as cars, people, and traffic lights. The solution must return bounding boxes for each detected object. Which Azure AI Vision capability should the developer use?

A.Image classification
B.Object detection
C.Optical character recognition (OCR)
D.Face detection
AnswerB

Object detection in Azure AI Vision identifies and localizes multiple objects within an image, returning bounding boxes and labels for each detected object. It is designed for scenarios like detecting cars, people, and traffic lights simultaneously. This capability directly provides the required bounding box coordinates and object labels, making it the correct choice for the scenario.

Why this answer

Object detection is the correct capability because it identifies and localizes multiple objects in an image, returning bounding boxes and labels for each. Image classification only labels the whole image, OCR extracts text, and face detection is limited to faces. For detecting cars, people, and traffic lights with bounding boxes, object detection is the appropriate Azure AI Vision feature.

Exam trap

The trap here is confusing object detection with image classification, where classification only labels the overall image and does not provide bounding boxes for individual objects.

310
MCQeasy

You are deploying a custom Azure AI Language question answering project. The solution must only answer questions based on a specific set of internal FAQ documents. Which data source type should you use when creating the project?

A.URLs or files containing FAQ content
B.Prebuilt model from Azure AI Language
C.Azure SQL Database with a QnA Maker schema
D.Azure Cognitive Search index
AnswerA

Custom question answering grounds answers strictly in supplied content, so URLs or files containing FAQ content constrain the knowledge base to those internal documents. This satisfies the requirement that responses derive only from the specified FAQ set, excluding general or external knowledge.

Why this answer

Azure AI Language custom question answering is designed to ingest structured FAQ content from URLs or files. When you create a custom project, selecting 'URLs or files containing FAQ content' as the data source type allows the service to automatically extract question-answer pairs from the provided documents, ensuring the solution only answers questions based on that specific set of internal FAQs.

Exam trap

The trap here is that candidates may confuse the data source types for creating a custom project with the broader integration options (like Cognitive Search or SQL), leading them to select a wrong option that is technically possible but not the correct data source type for the initial project creation.

How to eliminate wrong answers

Option B is wrong because a prebuilt model from Azure AI Language is a general-purpose, pretrained model that does not use your specific FAQ documents; it answers based on general knowledge, not your internal content. Option C is wrong because Azure SQL Database with a QnA Maker schema is a legacy approach from the deprecated QnA Maker service; Azure AI Language custom question answering does not support direct ingestion from a SQL database with that schema. Option D is wrong because an Azure Cognitive Search index is a separate search service that can be used as a custom answer source via the 'Custom question answering' feature, but it is not a data source type for creating the project itself; the project creation requires FAQ URLs or files as the initial data source.

311
Drag & Dropmedium

Drag and drop the steps to create a custom question answering project in Azure Language Service into the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

First, create the Azure resource. Then access Language Studio, create the project, add QnA pairs, and finally train and deploy.

312
MCQhard

You are deploying an Azure AI Search solution that indexes medical research papers. The papers contain sensitive patient data that must be de-identified before indexing. You need to use Azure AI Services to detect and redact personal information. Which combination of skills should you include in a skillset?

A.Custom Entity Lookup skill and Sentiment skill
B.PII detection skill
C.Text Translation skill and Entity Recognition skill
D.Entity Recognition skill and Key Phrase Extraction skill
AnswerB

The PII detection skill calls Azure AI Language's entity recognition to identify and mask personal data such as names, addresses, and identifiers during skillset enrichment. Running it before indexing redacts sensitive patient information, satisfying the de-identification requirement.

Why this answer

The PII detection skill in Azure AI Services is purpose-built to identify and redact personal information such as names, addresses, phone numbers, and medical record identifiers. For de-identifying medical research papers before indexing in Azure AI Search, this skill directly satisfies the requirement by detecting and masking PII during the enrichment pipeline. The other skill combinations address sentiment, translation, entity recognition, or key phrases, none of which perform de-identification.

Exam trap

AI-102 often tests whether candidates confuse entity recognition (which extracts but does not redact) with PII detection (which detects and can mask) — the trap is picking Entity Recognition because it sounds like it handles personal data.

How to eliminate wrong answers

Option A is wrong because Custom Entity Lookup requires you to define entities manually and Sentiment analyzes tone — neither detects or redacts PII automatically. Option C is wrong because Text Translation converts languages and Entity Recognition extracts named entities (people, places, organizations) but does not redact PII. Option D is wrong because Entity Recognition plus Key Phrase Extraction identifies entities and topics but leaves sensitive data intact in the index.

313
Multi-Selectmedium

A company uses Azure Document Intelligence to process custom forms. They have trained a custom model using labeled data. They need to improve the model's accuracy for a specific field that is frequently misrecognized. The field appears in a consistent location but has varying formats. Which two actions should they take? (Choose two.)

Select 2 answers
A.Add more labeled samples that include variations of the field's format to the training dataset.
B.Use the prebuilt model for that field type instead of the custom model.
C.Use the model's confidence scores to identify low-confidence instances and correct their labels in the training set.
D.Retrain the model using the same dataset but with a different neural network architecture.
E.Increase the model's confidence threshold to reduce false positives for that field.
AnswersA, C

Adding more labeled samples with format variations helps the model learn to generalize and recognize the field regardless of format changes. The custom model learns from the labeled examples, so increasing diversity in the training data directly improves accuracy for that field. This is a fundamental step in improving model performance.

Why this answer

Improving a custom model's accuracy requires enhancing the training data. Adding labeled samples with format variations exposes the model to diverse representations, while correcting low-confidence instances ensures the training set is accurate. These actions directly address the model's learning process, unlike threshold adjustments or architectural changes.

Exam trap

The trap here is thinking that adjusting confidence thresholds or changing the model type can fix recognition errors, when the real solution lies in improving the training data.

314
Multi-Selecthard

Which THREE considerations are important when designing a custom skill for Azure AI Search that calls an external API for specialized data extraction?

Select 3 answers
A.The API endpoint must be reachable from the search service
B.The skill can only accept one input and produce one output
C.The skill must be written in Python
D.The skill must handle payloads up to 16 MB
E.The skill must complete within 230 seconds
AnswersA, D, E

The search service invokes the custom skill over HTTP during enrichment, so the external API endpoint must be reachable from the service's network path. This satisfies the stem's design consideration, since an unreachable endpoint causes skill execution failures and incomplete indexing.

Why this answer

Option A is correct because a custom skill in Azure AI Search is essentially a Web API skill that the indexer invokes over HTTPS, so the external API endpoint must be network-reachable from the search service (including any required private endpoint or firewall rules) or enrichment will fail. Option D is correct because the Web API skill has a documented maximum request payload size of 16 MB; larger payloads will be rejected, so the skill design must keep the serialized input within that limit. Option E is correct because the Web API skill enforces a maximum execution time of 230 seconds per call, after which the request times out, so long-running extraction logic must be optimized or split.

Option B is wrong because a custom skill can accept multiple inputs and produce multiple outputs via the inputs and outputs mappings. Option C is wrong because the skill can be implemented in any language or framework (for example C#, Node.js, or Java) as long as it exposes a compatible HTTP endpoint.

Exam trap

AI-102 often tests the specific numeric limits (16 MB, 230 seconds) and the misconception that custom skills are restricted to a single input/output or a specific programming language.

315
Multi-Selecteasy

Which TWO features of Azure AI Content Safety can help you moderate user-generated content in a social media application?

Select 2 answers
A.Self-harm content detection.
B.Hate speech severity detection.
C.PII redaction.
D.Groundedness detection.
E.Prompt injection detection.
AnswersA, B

Self-harm content detection identifies text, images and videos depicting suicide or self-injury, letting moderators filter or escalate such posts. This directly addresses the social media scenario's need to remove harmful user-generated content before it reaches vulnerable users.

Why this answer

Self-harm content detection (A) is a feature of Azure AI Content Safety that specifically identifies text or images related to self-harm, which is a critical category for moderating user-generated content in social media to prevent harm and comply with safety policies. Hate speech severity detection (B) is another core feature that classifies hate speech into severity levels (e.g., low, medium, high), enabling nuanced moderation of offensive content.

Exam trap

The trap here is that candidates may confuse Azure AI Content Safety's features with those of other Azure AI services (like Azure AI Language for PII or Azure OpenAI for prompt injection), leading them to select options that are technically valid in Azure but not part of Content Safety's core moderation capabilities.

316
MCQmedium

Refer to the exhibit. You execute a search query on an Azure AI Search index and get these results. The query was 'brown fox'. Why is the first result scored higher than the second?

A.The first document has a higher value in a scoring profile field
B.The first document is more similar to the query in vector space
C.The first document was boosted by a semantic ranking function
D.The first document has a higher term frequency and better term proximity for the query terms
AnswerD

Azure AI Search's BM25 scoring rewards documents where query terms appear more often and closer together. The first document contains 'brown' and 'fox' repeatedly and adjacent, so its term frequency and proximity boosts outweigh the second document's weaker matches.

Why this answer

The first document is scored higher because it has a higher term frequency and better term proximity for the query terms 'brown fox'. In Azure AI Search's default scoring profile, documents that contain the query terms more frequently and closer together receive higher relevance scores.

Exam trap

AI-102 often tests the difference between default scoring and optional features like semantic ranking or vector search — candidates may assume advanced features are always active, but the default behavior is based on term frequency and proximity.

How to eliminate wrong answers

Option A is wrong because a scoring profile field boost would only apply if a custom scoring profile was used and the field was boosted; the question does not indicate that. Option B is wrong because vector similarity applies to vector search, not the default keyword search. Option C is wrong because semantic ranking is an optional feature that re-ranks results using semantic understanding, but the question does not specify it was enabled.

317
MCQeasy

You are planning to deploy an Azure AI solution that uses multiple Azure AI services. You need to monitor the solution for performance and operational issues. You want to collect metrics and logs from all the services and analyze them in a central location. What should you use?

A.Azure Advisor
B.Azure Monitor
C.Azure Service Health
D.Azure Cost Management
AnswerB

Azure Monitor collects metrics and logs from Azure resources, including Azure AI services. It provides a centralized platform to analyze and alert on performance and operational data. By using Azure Monitor, you can create dashboards, set up alerts, and query logs across multiple services, meeting the requirement for central monitoring.

Why this answer

Azure Monitor is the correct choice because it is the comprehensive monitoring solution for collecting and analyzing metrics and logs from Azure resources, including AI services. It enables centralized monitoring, alerting, and diagnostics, which are essential for maintaining the performance of a multi-service AI solution.

Exam trap

The trap here is confusing Azure Monitor with other Azure governance or advisory services that do not provide resource-level telemetry.

318
MCQhard

You are building a generative AI feature in an application using the Azure OpenAI SDK. The feature must stream tokens to the user as they are generated and must also capture the full response for logging. Which implementation approach satisfies both requirements?

A.Disable streaming and set n=2 so the model returns two completions, displaying one and logging the other.
B.Make two separate non-streaming requests: one to display the response and one to log it.
C.Set stream=true and log only the first chunk received from the stream.
D.Set stream=true on the chat completions request, iterate over the streamed chunks to display deltas, and accumulate the delta content to form the complete response for logging.
AnswerD

Streaming returns incremental chat completion chunk objects containing delta content. Displaying each delta gives the user progressive output, while concatenating deltas reconstructs the full message for logging. This single request satisfies both real-time display and complete capture without a second call.

Why this answer

Streaming chat completions deliver delta content across multiple chunk objects. Rendering those deltas satisfies the progressive display requirement, and concatenating them rebuilds the exact full message for logging. A single streaming request therefore meets both needs, whereas duplicate calls, partial logging, or multiple completions fail one requirement or the other.

Exam trap

The trap here is believing that a streaming response cannot also be captured in full, when accumulating the delta chunks reconstructs the complete message.

319
Multi-Selecthard

You are deploying a generative AI model using Azure AI Foundry. The model must be accessible only from within a specific virtual network. Additionally, you need to monitor all API calls for auditing. Which two configurations are required? (Choose two.)

Select 2 answers
A.Assign a managed identity to the model deployment.
B.Configure CORS to allow only the VNet's domain.
C.Enable public network access from selected IP addresses.
D.Enable diagnostic settings to send logs to a Log Analytics workspace.
E.Disable public network access and configure a private endpoint.
AnswersD, E

Diagnostic settings stream control-plane and data-plane request logs from the Azure AI Foundry resource to a Log Analytics workspace, satisfying the auditing requirement for all API calls. This directly addresses the stem's monitoring constraint, complementing the private endpoint needed for virtual network isolation.

Why this answer

Enabling diagnostic settings to send logs to a Log Analytics workspace allows you to capture and audit all API calls made to the model deployment. This is essential for monitoring, security auditing, and compliance, as it records detailed telemetry such as request timestamps, caller IPs, and operation names. Option E is correct because disabling public network access and configuring a private endpoint ensures that the model is only accessible from within the specified virtual network, meeting the isolation requirement.

Exam trap

The trap here is that candidates often confuse network-level access controls (like IP whitelisting or CORS) with true VNet isolation via private endpoints, and they overlook that diagnostic settings are the standard Azure mechanism for auditing API calls, not managed identities or CORS.

320
MCQeasy

You need to implement a solution that searches through a collection of scanned invoices and extracts invoice numbers, dates, and total amounts. The solution must run on a schedule without manual intervention. Which Azure service should you use?

A.Azure Bot Service
B.Azure AI Document Intelligence
C.Azure AI Search with built-in skills
D.Azure AI Foundry model catalog
AnswerB

Azure AI Document Intelligence provides prebuilt invoice models that extract invoice numbers, dates and totals from scanned documents, and its read model handles OCR. It supports scheduled, unattended runs via the API, satisfying the no-manual-intervention constraint.

Why this answer

Azure AI Document Intelligence (formerly Form Recognizer) provides prebuilt and custom models specifically designed to extract structured fields like invoice numbers, dates, and totals from scanned documents, including the prebuilt invoice model. It can be invoked programmatically on a schedule via Azure Functions, Logic Apps, or Data Factory, satisfying the no-manual-intervention requirement. This is the canonical Azure service for OCR-plus-field-extraction from forms and invoices.

Exam trap

AI-102 often tests the distinction between Document Intelligence (structured field extraction from forms/invoices) and Azure AI Search with skills (indexing/search enrichment) — candidates who see 'search through a collection' may incorrectly pick AI Search, missing that the requirement is field extraction, not retrieval.

How to eliminate wrong answers

Option A is wrong because Azure Bot Service is for building conversational AI interfaces (chatbots), not for document field extraction or scheduled batch processing of invoices. Option C is wrong because Azure AI Search with built-in skills is for indexing and searching content (including OCR enrichment via cognitive skills), but it does not natively extract structured invoice fields like invoice number, date, and total with the accuracy of a purpose-built document model — it is a search/indexing layer, not a document understanding service. Option D is wrong because Azure AI Foundry model catalog is a marketplace of foundation models (LLMs, embeddings, etc.) for generative and predictive workloads; it does not provide invoice-specific field extraction out of the box and would require significant custom prompt engineering without the structured accuracy of Document Intelligence.

321
Multi-Selectmedium

Which TWO actions should you take when designing an Azure AI solution that uses Microsoft Foundry to ensure responsible AI practices?

Select 2 answers
A.Implement a human-in-the-loop review for critical decisions
B.Optimize the model for maximum throughput
C.Run an AI fairness assessment on the model
D.Store all training data indefinitely for auditability
E.Remove all explainability metrics to simplify the model
AnswersA, C

Human-in-the-loop review places a person in the decision path for high-impact outcomes, catching errors and harmful outputs before they affect users. This directly satisfies the responsible AI requirement by ensuring critical decisions receive human oversight rather than fully automated action.

Why this answer

Option A is correct because implementing a human-in-the-loop review for critical decisions ensures that high-impact or sensitive outcomes are validated by a person before action is taken, which is a core responsible AI safeguard against harmful or erroneous automated decisions. Option C is correct because running an AI fairness assessment on the model systematically evaluates performance across demographic groups and helps detect and mitigate bias, directly supporting Microsoft's responsible AI principles of fairness and inclusiveness. Option B does not belong because optimizing for maximum throughput is a performance and cost concern, not a responsible AI practice, and can even conflict with safety if it bypasses safeguards.

Option D does not belong because retaining all training data indefinitely raises privacy, data minimization, and compliance risks rather than promoting responsible AI. Option E does not belong because removing explainability metrics reduces transparency and accountability, which is the opposite of responsible AI design.

Exam trap

The trap is selecting performance or data-retention options that sound operationally beneficial but violate responsible AI principles — candidates must distinguish responsible AI practices (fairness, human oversight, transparency) from general engineering optimizations.

322
MCQmedium

You are developing a solution that uses Azure Document Intelligence to extract data from invoices and then uses Azure OpenAI to summarize the extracted data. The solution occasionally produces summaries that omit key fields like the invoice total. What should you do to improve accuracy?

A.Set temperature to 0 to make the output more deterministic
B.Use a larger model like GPT-4 instead of GPT-3.5
C.Increase the max_tokens parameter
D.Define a structured prompt that explicitly requests each field and provide examples
AnswerD

Document Intelligence output can be summarised loosely by a free-form prompt, causing omissions. A structured prompt naming each required field, with few-shot examples showing the expected format, constrains the model to include the invoice total and other key values.

Why this answer

The issue is that the summarization prompt lacks explicit instructions for which fields to include. By defining a structured prompt that explicitly requests each key field (e.g., invoice total, date, vendor) and providing examples, you guide the Azure OpenAI model to consistently extract and include those fields in the summary, reducing omission errors. This approach leverages prompt engineering to improve output reliability without changing model parameters or size.

Exam trap

The trap here is that candidates often assume that model size or parameter tuning (temperature, max_tokens) is the primary fix for content omission, when in fact prompt engineering—specifically structured prompts with explicit field requests—is the correct solution for ensuring specific data is included in the output.

How to eliminate wrong answers

Option A is wrong because setting temperature to 0 makes the output more deterministic but does not force the model to include specific fields; it only reduces randomness in token selection, not the likelihood of omitting requested content. Option B is wrong because using a larger model like GPT-4 instead of GPT-3.5 improves general reasoning but does not guarantee that key fields are included unless the prompt explicitly requests them; the omission is a prompt design issue, not a model capability issue. Option C is wrong because increasing max_tokens only allows longer responses but does not influence which content the model chooses to include; the model may still omit fields even with a larger token budget.

323
Multi-Selecthard

A company uses Azure Content Moderator to moderate user-generated content. They need to ensure that content moderation workflows comply with regional regulations. Which TWO actions should they take?

Select 2 answers
A.Deploy Content Moderator resources in the required geographic regions to meet data residency requirements.
B.Use the free tier to reduce costs while meeting compliance needs.
C.Enable geo-tagging on the Content Moderator API to automatically apply region-specific moderation.
D.Configure the API to automatically reject any content that violates regional laws.
E.Set up human review teams to handle content that requires regional context for moderation decisions.
AnswersA, E

Azure allows choosing a region to store data in compliance with regional regulations.

Why this answer

Deploying Azure Content Moderator resources in the required geographic regions ensures that user-generated content is processed and stored within specific data boundaries, directly addressing data residency regulations. This is a fundamental compliance requirement because Azure resources are region-bound, and data does not leave the selected region unless explicitly configured otherwise.

Exam trap

The trap here is that candidates often assume the API can automatically enforce regional laws (Option D) or that a single global deployment with geo-tagging (Option C) is sufficient, when in fact compliance requires explicit regional resource deployment and human-in-the-loop review for context-sensitive decisions.

324
MCQmedium

A company uses Azure AI Speech for real-time captioning during live events. They notice a delay of 5 seconds between speech and caption display. Which action should they take to reduce latency?

A.Deploy a custom speech model
B.Use the Speech SDK with intermediate results enabled
C.Switch to batch transcription API
D.Increase the maxAlternatives parameter
AnswerB

Enabling intermediate results streams partial transcriptions as recognition progresses, rather than waiting for final utterance boundaries. This directly addresses the five-second delay constraint by surfacing captions before endpoint detection completes, cutting perceived latency for live captioning.

Why this answer

Enabling intermediate results in the Speech SDK allows the client to receive partial, real-time recognition hypotheses as the audio is being processed, rather than waiting for the final, fully processed result. This reduces the perceived latency from the full utterance duration (which can be several seconds) to near-instantaneous display of partial captions, directly addressing the 5-second delay.

Exam trap

The trap here is that candidates often confuse latency reduction with accuracy improvements, incorrectly assuming that a custom model or more alternatives will speed up processing, when in fact the solution lies in changing the result delivery mode from final-only to streaming partial results.

How to eliminate wrong answers

Option A is wrong because deploying a custom speech model improves recognition accuracy for domain-specific vocabulary or accents, but does not reduce the fundamental processing latency of the speech-to-text pipeline; it may even add overhead for model loading. Option C is wrong because the batch transcription API is designed for asynchronous, offline processing of pre-recorded audio, not for real-time captioning, and would introduce even greater delays (minutes to hours). Option D is wrong because increasing the maxAlternatives parameter only increases the number of alternative recognition hypotheses returned in the final result, which has no effect on how quickly the first hypothesis is delivered.

325
Multi-Selectmedium

You are designing a generative AI solution using Azure OpenAI Service with your own data indexed in Azure AI Search. Which THREE components are essential for the retrieval-augmented generation (RAG) pattern?

Select 3 answers
A.Data ingestion pipeline to Azure AI Search
B.Azure AI Search index
C.Azure Functions for orchestration
D.Azure API Management for rate limiting
E.Azure OpenAI model
AnswersA, B, E

Data must be ingested into the search index.

Why this answer

A data ingestion pipeline is essential to load and index your data into Azure AI Search, enabling the retrieval step in RAG. Without this pipeline, the search index would have no data to query, breaking the retrieval-augmented generation pattern.

Exam trap

The trap here is that candidates often confuse optional production components (like Azure Functions for orchestration or API Management for rate limiting) with the core, mandatory components of the RAG pattern, which are the data source, search index, and the LLM model.

326
MCQhard

You deploy the ARM template shown in the exhibit. After deployment, you need to allow access to the Language service from your on-premises application. What should you do?

A.Add an IP rule with your on-premises public IP address.
B.Remove the customSubDomainName property.
C.Set the defaultAction to Allow.
D.Change the SKU to F0 to allow public access.
AnswerA

The deployed Language resource uses network restrictions, so on-premises traffic must be explicitly permitted. Adding a network rule containing the on-premises public IP address allows that origin through the firewall while keeping other public access blocked.

Why this answer

The ARM template deploys an Azure Cognitive Services Language service with a network ACL that defaults to denying all traffic (defaultAction: Deny). To allow your on-premises application to access the service, you must add an IP rule that permits traffic from your on-premises public IP address. This is because the network ACL evaluates IP rules before the default action, and adding a rule with your public IP overrides the default deny for that specific source.

Exam trap

The trap here is that candidates often confuse the 'defaultAction' property with a simple on/off switch for public access, not realizing that IP rules are evaluated first and can selectively permit traffic even when defaultAction is Deny.

How to eliminate wrong answers

Option B is wrong because removing the customSubDomainName property would not affect network access; it only controls the endpoint subdomain naming and is unrelated to IP-based access control. Option C is wrong because setting defaultAction to Allow would open the service to all public internet traffic, which is a security risk and not a targeted solution for allowing only your on-premises application. Option D is wrong because changing the SKU to F0 (free tier) does not change network access policies; the F0 SKU still respects the same network ACL rules and does not automatically enable public access.

327
MCQmedium

A developer is building a chatbot using Azure Bot Service and Language Understanding (LUIS). The bot needs to handle multiple intents, including 'BookFlight', 'CancelFlight', and 'CheckWeather'. During testing, the bot frequently confuses 'BookFlight' and 'CancelFlight' intents. What is the most effective way to improve intent classification accuracy?

A.Reduce the number of intents by merging similar ones.
B.Increase the confidence threshold for intent predictions.
C.Add more entities to the utterances.
D.Add more varied training utterances for 'BookFlight' and 'CancelFlight' intents.
AnswerD

LUIS learns intent boundaries from labelled utterances, so adding varied, representative examples for BookFlight and CancelFlight sharpens the model's discrimination between them. This addresses the root cause: insufficient or overlapping training data for the confused intents.

Why this answer

Adding more varied training utterances for the 'BookFlight' and 'CancelFlight' intents directly addresses the root cause of confusion: insufficient or overlapping training data. LUIS relies on diverse utterance patterns to distinguish between semantically similar intents; increasing the quantity and variety of labeled examples improves the model's ability to learn discriminative features, thereby boosting classification accuracy.

Exam trap

The trap here is that candidates often confuse confidence thresholds with model improvement, thinking that raising the threshold will fix misclassifications, when in reality it only masks the problem by rejecting more utterances instead of improving the model's discriminative power.

How to eliminate wrong answers

Option A is wrong because merging similar intents would reduce the bot's functionality and is not a best practice for improving accuracy—it avoids the problem rather than fixing the model's discrimination. Option B is wrong because increasing the confidence threshold only filters out low-confidence predictions but does not improve the underlying model's ability to distinguish between intents; it may cause more utterances to be misclassified or rejected. Option C is wrong because entities are used to extract specific data from utterances, not to differentiate between intents; adding more entities does not help the model learn which intent an utterance belongs to.

328
Multi-Selectmedium

You are designing a solution that uses Azure AI Language's conversational language understanding (CLU) to interpret user requests in a banking app. The app must handle utterances like 'Transfer $500 from savings to checking' and extract the amount, source account, and destination account. Which two actions should you perform when creating the CLU project? (Choose two.)

Select 2 answers
A.Create entities for 'Amount', 'SourceAccount', and 'DestinationAccount'.
B.Train the model using only the default training set provided by Azure.
C.Add a prebuilt entity for 'Number' to automatically extract the amount.
D.Define intents such as 'TransferMoney' and 'CheckBalance'.
E.Configure the project to use multiple languages for utterance interpretation.
AnswersA, D

Entities are used to extract specific pieces of information from utterances. In this scenario, extracting the amount, source account, and destination account is crucial for executing the transfer. Defining these entities with appropriate labels enables the model to identify and return them in the response.

Why this answer

To correctly interpret the banking utterances, you must define intents to capture the user's goal and entities to extract the specific data fields. Intents like 'TransferMoney' and entities for 'Amount', 'SourceAccount', and 'DestinationAccount' are fundamental. Prebuilt entities alone lack specificity, and custom training is required.

Exam trap

The trap here is thinking that prebuilt entities can replace custom entity definitions for domain-specific extraction, when they lack the context to distinguish between similar numeric values.

329
Matchingmedium

Match each Azure AI tool to its purpose.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Drag-and-drop ML model building

Interactive code development

Command-line management of Azure resources

Programmatic access to Azure services

Run AI services on-premises

Why these pairings

Correct matches: Azure Cognitive Search is an AI search service; Azure Bot Service is for building bots; Azure Cognitive Services offers pre-built AI APIs. Common confusions include swapping Cognitive Search with Machine Learning, and Bot Service with Cognitive Services.

330
Multi-Selectmedium

You are designing an Azure AI Search solution that uses an AI enrichment pipeline to extract text and key phrases from scanned documents. You need to ensure the pipeline can process image-heavy PDFs and produce searchable text and key phrases. Which two actions should you include in the skillset? (Choose two.)

Select 2 answers
A.Add the built-in Key Phrase Extraction skill to identify important phrases from the OCR text.
B.Add the built-in Language Detection skill to determine the language of each document.
C.Add the built-in Text Merge skill to combine multiple text inputs into a single field.
D.Add the built-in Entity Recognition skill to extract people, organizations, and locations.
E.Add the built-in OCR skill to extract text from images embedded in the PDFs.
AnswersA, E

The Key Phrase Extraction skill analyzes text and returns a list of key phrases. Applied after OCR, it operates on the extracted text to surface salient terms, which can be mapped to a collection field in the index. This directly fulfills the requirement to produce key phrases from the scanned documents.

Why this answer

To process image-heavy PDFs, the OCR skill extracts text from embedded images. Once text is available, the Key Phrase Extraction skill identifies important phrases. Together, these skills enable the pipeline to produce searchable text and key phrases.

Other skills like Language Detection, Text Merge, or Entity Recognition serve different purposes and do not fulfill both requirements.

Exam trap

The trap here is choosing skills that seem related to text analysis but do not actually extract text from images or generate key phrases, such as Language Detection or Entity Recognition.

331
MCQmedium

You are developing a generative AI solution that uses Azure OpenAI Service. The solution must generate product descriptions in multiple languages. You need to ensure that the model consistently follows specific formatting rules, such as including a bullet list of features. Which strategy should you use?

A.Fine-tune the model with a dataset containing formatted examples.
B.Set a system message with explicit formatting instructions.
C.Increase the max_tokens parameter to allow longer outputs.
D.Adjust the temperature parameter to a lower value.
AnswerB

A system message sets persistent instructions that the model applies across every completion, so formatting rules such as the bullet list of features are followed consistently in each generated language. This satisfies the constraint of consistent formatting without repeating instructions per request.

Why this answer

System messages in Azure OpenAI Service allow you to set persistent instructions that guide the model's behavior across the entire conversation. By including explicit formatting rules—such as requiring a bullet list of features—in the system message, you enforce consistent output structure without retraining the model. This approach is efficient, cost-effective, and directly leverages the API's design for controlling response format.

Exam trap

Microsoft often tests the misconception that fine-tuning is the only way to enforce output structure, when in fact system messages provide a lightweight, zero-shot alternative for formatting control.

How to eliminate wrong answers

Option A is wrong because fine-tuning requires a large, curated dataset and significant compute resources; it is overkill for simple formatting rules and introduces risk of overfitting or losing generality, whereas a system message achieves the same goal with zero training overhead. Option C is wrong because increasing max_tokens only extends the maximum length of the response, not the structure or format; it does not enforce bullet lists or any specific formatting rules. Option D is wrong because lowering the temperature parameter reduces randomness and makes outputs more deterministic, but it does not impose explicit formatting constraints like bullet lists; it controls creativity, not structure.

332
MCQeasy

An e-commerce company wants to build an agent that helps users track orders, initiate returns, and answer FAQs. The agent should be available on the company's website and mobile app. Which Azure service should the team use to deploy the agent?

A.Azure Logic Apps
B.Azure API Management
C.Azure Bot Service
D.Azure Functions
AnswerC

Azure Bot Service provides channels for websites and mobile apps plus the Bot Framework SDK, letting one agent serve both surfaces. It satisfies the multi-channel deployment requirement directly, whereas Azure OpenAI alone supplies models without channel hosting or conversation routing.

Why this answer

Azure Bot Service is the correct choice because it provides a managed environment for building, deploying, and scaling conversational AI agents that can be integrated with multiple channels, including websites and mobile apps. It supports the Bot Framework SDK, which enables the agent to handle order tracking, returns, and FAQs through natural language understanding (NLU) with LUIS or the newer CLU service.

Exam trap

The trap here is that candidates often confuse Azure Bot Service with Azure Logic Apps or Azure Functions, mistakenly thinking that workflow automation or serverless compute alone can serve as a conversational agent, but they lack the essential dialog management, channel integration, and NLU capabilities that Azure Bot Service provides.

How to eliminate wrong answers

Option A is wrong because Azure Logic Apps is a workflow automation service for integrating apps and data, not a conversational agent platform; it lacks built-in support for dialog management, NLU, and multi-channel deployment. Option B is wrong because Azure API Management is used to publish, secure, and monitor APIs, not to host interactive conversational agents; it cannot manage user intents or multi-turn dialogues. Option D is wrong because Azure Functions is a serverless compute service for running event-driven code, but it does not provide the necessary framework for building conversational flows, channel adapters, or state management required for an agent.

333
MCQeasy

You are developing a generative AI feature with Azure OpenAI Service. The feature must generate a structured JSON object that conforms to a specific schema so it can be consumed by a downstream application without post-processing. What should you use to constrain the model output to the schema?

A.A higher frequency_penalty to discourage extra tokens.
B.Setting n to a value greater than 1 to generate multiple candidate responses.
C.Structured outputs with a JSON schema supplied in the request.
D.A system message that politely asks the model to return JSON.
AnswerC

Structured outputs let you supply a JSON schema so the model is constrained to produce valid JSON that matches it. This removes the need for downstream parsing or repair and guarantees schema conformance for the application. It is the feature designed specifically to enforce structured response formats in Azure OpenAI, matching the requirement.

Why this answer

Structured outputs in Azure OpenAI allow a JSON schema to be provided with the request so the model's response is constrained to conform to that schema. This guarantees valid, parseable JSON with the expected fields, eliminating brittle post-processing and making the output directly consumable by the downstream application.

Exam trap

The trap here is believing that a prompt instruction or a sampling parameter can guarantee JSON schema conformance, when only a formal schema constraint enforces it.

334
MCQhard

You are designing a solution that uses Azure AI Vision to analyze images for moderation. The solution must detect adult content and identify text in images. You need to minimize latency and cost. Which approach should you recommend?

A.Call the Analyze Image API twice: once for adult content and once for OCR
B.Use the Computer Vision 3.2 API with the 'adult' and 'OCR' parameters
C.Call the Analyze Image API with the 'adult' and 'read' visual features
D.Use the Read API for text and the Content Moderator API for adult content
AnswerC

Requesting the 'adult' and 'read' visual features in a single Analyze Image call returns both moderation and OCR results together, avoiding a second request. This satisfies the latency and cost constraints by consolidating processing into one API transaction.

Why this answer

The Analyze Image API in Azure AI Vision supports multiple visual features in a single call, including 'adult' for adult content detection and 'read' for OCR (text extraction). This minimizes latency by avoiding multiple API calls and reduces cost since you are billed per API call, not per feature.

Exam trap

The trap here is that candidates may think separate API calls or older API versions (like Computer Vision 3.2) are required for different tasks, but the Analyze Image API supports multiple visual features in a single call, which is the most efficient approach.

How to eliminate wrong answers

Option A is wrong because calling the Analyze Image API twice doubles both latency and cost, as each call incurs a separate charge and network round-trip. Option B is wrong because the Computer Vision 3.2 API does not support an 'OCR' parameter; OCR is handled via the 'read' visual feature in the Analyze Image API or the dedicated Read API. Option D is wrong because using separate APIs (Read API for text and Content Moderator API for adult content) increases latency and cost due to multiple calls, and the Content Moderator API is a separate service that is not optimized for the same single-call efficiency as the Analyze Image API.

335
MCQeasy

You need to generate a poem using Azure OpenAI. The poem should be about nature and have a cheerful tone. Which parameter should you adjust to influence the tone?

A.top_p
B.temperature
C.max_tokens
D.system message
AnswerD

The system message sets the model's behavioural instructions and persona before the user prompt, so specifying a cheerful tone there reliably steers the generated poem's style. Temperature, max tokens and top_p affect randomness or length, not the requested emotional tone.

Why this answer

The system message (D) is the correct parameter to influence the tone of a generated poem because it acts as a high-level instruction that sets the behavior, persona, and style of the model. By including a directive like 'You are a cheerful poet writing about nature,' you directly control the tone without altering randomness or output length.

Exam trap

The trap here is that candidates confuse parameters that control randomness (temperature, top_p) with those that control instruction-following and style (system message), leading them to incorrectly select temperature as the primary tone influencer.

How to eliminate wrong answers

Option A is wrong because top_p controls nucleus sampling—the cumulative probability threshold for token selection—and does not directly set tone; it affects diversity of output, not style. Option B is wrong because temperature adjusts the randomness of token probabilities (higher values increase creativity, lower values make output more deterministic), but it does not specify a cheerful tone; it only influences how likely the model is to choose less probable tokens. Option C is wrong because max_tokens limits the length of the generated response and has no impact on the emotional tone or style of the poem.

336
MCQmedium

You have an Azure AI Search indexer that enriches documents with a custom skill that calls an external API. The custom skill returns a JSON object containing a list of product codes. You need to store these product codes in a collection field named 'productCodes' in the index, and you want the field to be searchable and filterable. What should you do?

A.In the index definition, set the 'productCodes' field to type Edm.String and mark it as searchable and filterable. Then in the indexer, map the custom skill output to this field using an output field mapping.
B.In the index definition, set the 'productCodes' field to type Collection(Edm.String) and mark it as retrievable only. Then in the indexer, map the custom skill output using a field mapping.
C.In the index definition, set the 'productCodes' field to type Collection(Edm.String) and mark it as searchable and filterable. Then in the indexer, map the custom skill output to this field using an output field mapping.
D.In the index definition, set the 'productCodes' field to type Collection(Edm.String) and mark it as filterable and facetable. Then in the indexer, use a field mapping to map the custom skill output.
AnswerC

Collection(Edm.String) is the correct field type for storing multiple string values. Marking it searchable and filterable enables full-text search and filtering on individual codes. An output field mapping connects the custom skill's JSON array to the index field. This combination correctly stores and exposes the product codes for search and filter operations.

Why this answer

To store multiple product codes from a custom skill, the index field must be a collection of strings. Collection(Edm.String) supports multiple values and can be marked searchable and filterable to meet query requirements. The custom skill's output is part of the enriched document, so an output field mapping is the correct mechanism to project it into the index field.

Using a single string field or omitting searchable would not satisfy the scenario.

Exam trap

The trap here is using a field mapping instead of an output field mapping for enriched skill output, and forgetting that collection types are needed for multiple values.

337
MCQhard

You are troubleshooting an agent built with Microsoft Copilot Studio. The agent uses a custom topic to check inventory levels. The topic calls a Power Automate flow that returns JSON with 'inStock' boolean. The agent sometimes says 'Item is in stock' even when the flow returns false. What is the most likely cause?

A.The Power Automate flow has a timeout and returns default true.
B.The topic's condition is using a variable that is not being updated with the flow output.
C.The agent's response is based on a different variable that defaults to true.
D.The agent's topic is not parsing the JSON output correctly.
AnswerB

The topic evaluates a variable that never receives the flow's 'inStock' output, so the condition tests stale or default data rather than the returned boolean. Binding the flow response to that variable before the condition resolves the false-positive 'in stock' message.

Why this answer

The most likely cause is that the topic's condition is referencing a variable that does not get updated with the flow's output. In Microsoft Copilot Studio, when a Power Automate flow returns data, the output must be explicitly assigned to a topic variable. If the condition checks a different variable (e.g., a default or uninitialized one), it will not reflect the actual 'inStock' value from the flow, leading to incorrect responses like 'Item is in stock' even when the flow returns false.

Exam trap

The trap here is that candidates may assume the issue is with JSON parsing (Option D) or flow timeout (Option A), but the real problem is a variable assignment mismatch, which is a subtle but critical configuration detail in Copilot Studio topic design.

How to eliminate wrong answers

Option A is wrong because a Power Automate flow timeout would typically cause an error or trigger a timeout branch, not silently return a default 'true' value; flows do not have a built-in mechanism to return default true on timeout. Option C is wrong because while the agent's response could be based on a different variable that defaults to true, this is essentially a restatement of the correct cause but lacks the specific mechanism of the variable not being updated with the flow output; the core issue is the variable assignment, not just a default value. Option D is wrong because Copilot Studio automatically parses JSON output from Power Automate flows into structured variables; incorrect parsing would usually result in an error or null value, not a consistent false positive where the agent says 'in stock' when the flow returns false.

338
MCQmedium

You are using Azure AI Language to extract information from medical research papers. You need to identify terms like 'dosage', 'side effects', and 'contraindications' specific to the medical domain. Which capability should you use?

A.Prebuilt Named Entity Recognition (NER)
B.Custom Named Entity Recognition (NER)
C.PII detection
D.Entity linking
AnswerB

Custom NER trains on your labelled medical examples to extract domain-specific entities such as dosage, side effects and contraindications. The prebuilt healthcare model covers general entities, but custom NER is required for these bespoke categories.

Why this answer

Custom Named Entity Recognition allows you to train a model to recognize custom entities like medical terms. Option A is wrong because prebuilt NER only recognizes general entities like person, location, etc. Option C is wrong because PII detection is for personal information.

Option D is wrong because entity linking links to external knowledge bases.

339
MCQeasy

You are developing a generative AI application that uses Azure OpenAI Service. You want to ensure that the application does not generate offensive content. Which Azure service should you use?

A.Azure AI Bot Service
B.Azure AI Content Safety
C.Azure AI Language
D.Azure AI Search
AnswerB

Azure AI Content Safety provides dedicated moderation APIs that detect and filter offensive, violent, hateful, and self-harm content in prompts and completions. Integrating it with the Azure OpenAI application enforces the stem's requirement to prevent offensive output, unlike prompt engineering alone or built-in model filters.

Why this answer

Azure AI Content Safety is the correct service because it is specifically designed to detect and filter offensive, inappropriate, or harmful content in text and images. For a generative AI application using Azure OpenAI, this service can be integrated to review prompts and completions in real time, ensuring that generated outputs comply with content policies and do not contain hate speech, violence, or other offensive material.

Exam trap

The trap here is that candidates often confuse Azure AI Content Safety with Azure AI Language's moderation features, but Azure AI Language does not include a dedicated content safety API for offensive content detection, whereas Content Safety is purpose-built for this task.

How to eliminate wrong answers

Option A is wrong because Azure AI Bot Service is a platform for building conversational agents, not a content moderation or safety service; it lacks native capabilities to detect offensive content. Option C is wrong because Azure AI Language provides natural language processing features like sentiment analysis and entity recognition, but it does not include dedicated content safety filters for offensive or harmful content. Option D is wrong because Azure AI Search is a cognitive search service for indexing and querying data, not a content moderation tool; it cannot filter generated content for offensiveness.

340
MCQeasy

A company uses Azure Document Intelligence to analyze prebuilt invoices. They need to extract the invoice total and the due date from each invoice. They call the Analyze Invoice operation and receive a result. Which part of the JSON response contains the extracted fields?

A.The documents array, where each document has a fields object with named fields such as InvoiceTotal and DueDate.
B.The tables array, where each table has cells that contain the extracted values.
C.The pages array, where each page has a lines array containing text and bounding boxes.
D.The analyzeResult object, which contains a keyValuePairs array with keys and values.
AnswerA

The Analyze Invoice operation returns a result with a documents array. Each document contains a fields object where each field (e.g., InvoiceTotal, DueDate) includes its value, confidence, and bounding regions. This is the standard structure for prebuilt models, allowing you to access extracted fields by name.

Why this answer

The prebuilt invoice model returns a structured JSON with a documents array. Each document includes a fields object that contains named fields such as InvoiceTotal and DueDate, along with their values and confidence scores. This is the correct location to extract specific invoice data.

Exam trap

The trap here is assuming that all extracted data is in a generic key-value format, when the prebuilt invoice model uses a specialized fields object.

341
MCQmedium

A company uses Azure OpenAI Service to generate product descriptions. They notice that the descriptions sometimes contain factually incorrect information. Which strategy should they use to reduce hallucinations?

A.Increase the temperature parameter to 1.0.
B.Implement Retrieval-Augmented Generation (RAG) by grounding prompts with a knowledge base.
C.Reduce the max_tokens parameter to limit output length.
D.Add a system message instructing the model to be more careful.
AnswerB

RAG grounds the model's responses in retrieved, verifiable content from a knowledge base, so generated descriptions reference actual product data rather than relying solely on parametric memory. This directly reduces fabricated facts, satisfying the requirement to cut hallucinations.

Why this answer

Retrieval-Augmented Generation (RAG) grounds the model's output in a trusted, external knowledge base, providing factual context that directly reduces hallucinations. By retrieving relevant documents and injecting them into the prompt, the model generates responses based on verified information rather than relying solely on its parametric memory, which is the primary cause of factual inaccuracies in Azure OpenAI Service.

Exam trap

The trap here is that candidates often confuse hyperparameter tuning (temperature, max_tokens) or prompt engineering (system messages) as solutions for factual accuracy, when in fact only grounding with external data (RAG) directly addresses the hallucination problem by providing a verifiable source of truth.

How to eliminate wrong answers

Option A is wrong because increasing the temperature parameter to 1.0 increases randomness and creativity in the output, which actually exacerbates hallucinations by encouraging the model to generate less predictable and potentially more fabricated content. Option C is wrong because reducing max_tokens only truncates the output length; it does not address the root cause of factual inaccuracies and may even cut off critical context or reasoning. Option D is wrong because adding a system message to 'be more careful' is a vague instruction that the model cannot reliably interpret to correct factual errors; it lacks the concrete, grounded data source that RAG provides.

342
MCQeasy

A media company needs to automatically generate descriptive captions for thousands of archived photographs stored in Azure Blob Storage. The solution must be fully managed and require no model training. Which Azure AI Vision capability should they use?

A.Custom Vision classification model
B.Face API person identification
C.Azure AI Document Intelligence prebuilt receipt model
D.Image captioning in Azure AI Vision
AnswerD

Azure AI Vision's image captioning feature generates human-readable descriptions for images without any training. It is a prebuilt capability available through the Image Analysis API, ideal for captioning large archives. The media company can call this API on each blob and store the returned caption, meeting the no-training requirement.

Why this answer

Image captioning in Azure AI Vision is a prebuilt feature that generates natural language descriptions for images without any training. The media company can process each stored photograph and receive a caption, directly meeting the scenario's need for automated, managed captioning. Other options either require training, target documents, or focus only on faces, so they do not provide the required broad image description.

Exam trap

The trap here is assuming that any Azure AI service that processes images can generate captions, when only Azure AI Vision's image captioning feature provides that specific prebuilt capability.

343
Multi-Selectmedium

You are building a generative AI assistant on Azure OpenAI that must call internal REST APIs to look up order status. You decide to use function calling. Which TWO actions are required to make the assistant reliably invoke the correct API and return a coherent answer? (Choose two.)

Select 2 answers
A.Set the model temperature to zero so the function call arguments are always deterministic.
B.Execute the function in your application code and send the result back to the model as a tool message so it can generate the final response.
C.Define each API as a function with a name, a description, and a JSON schema for its parameters, and pass these definitions in the tools parameter of the chat completion request.
D.Enable the model's built-in web browsing tool so it can reach the internal APIs directly.
E.Increase the max_tokens value to ensure the function call arguments fit in the response.
AnswersB, C

The model does not execute functions; it only emits a request to call one with arguments. Your application must run the actual API, then append a message with role tool that includes the function result, keyed by the tool call ID. The model uses that result to produce the final natural-language answer. Skipping this round trip leaves the conversation incomplete and the user without an answer.

Why this answer

Function calling is a two-part contract. First, the application declares available functions with names, descriptions, and JSON schemas in the tools parameter so the model can choose one and emit structured arguments. Second, the application executes the chosen function and returns the result as a tool message, allowing the model to compose the final answer.

Temperature, browsing, and token limits do not enable this loop.

Exam trap

The trap here is assuming the model executes the function itself rather than only emitting a structured call request.

344
MCQmedium

You are developing an application that uses Azure AI Vision to analyze images of products on an assembly line. The application must identify the presence of specific objects, such as screws, bolts, and washers, and return their bounding boxes. You have a limited set of labeled images for each object type. Which Azure service should you use to train a model that meets these requirements?

A.Azure AI Vision Face API
B.Azure AI Vision Image Analysis with the 'objects' feature
C.Azure Video Indexer
D.Azure Custom Vision object detection
AnswerD

Azure Custom Vision object detection allows you to train a model on your own labeled images to detect specific objects and return bounding boxes. It supports custom object types like screws, bolts, and washers, and can work with a limited set of images. This service is designed exactly for this scenario.

Why this answer

Azure Custom Vision object detection is the correct service because it enables you to train a custom model using your labeled images to detect specific objects and return bounding boxes. It is designed for scenarios where you need to identify custom objects with a limited dataset.

Exam trap

The trap here is assuming that the pre-built 'objects' feature in Image Analysis can be customized or that it can detect specific industrial parts without training.

345
MCQeasy

Refer to the exhibit. You have this Azure AI Search indexer configuration. The indexer is failing after processing 6 documents that contain errors. What should you do to ensure the indexer continues processing even if some documents fail?

A.Decrease the batch size to 5
B.Increase batch size to 20
C.Increase maxFailedItems to a higher value, such as 100
D.Remove the schedule to run the indexer on demand
AnswerC

Raising maxFailedItems lets the indexer tolerate more per-document failures before halting, directly satisfying the stem's requirement to continue despite errors. The default of 0 stops execution after the first failure; setting 100 allows the remaining documents to be processed while failed ones are skipped.

Why this answer

The indexer is failing after processing 6 documents because the `maxFailedItems` threshold has been reached. By increasing `maxFailedItems` to a higher value like 100, the indexer will continue processing even if more documents fail, as long as the total number of failed items stays below the new threshold.

Exam trap

The trap here is that candidates confuse batch size with failure tolerance, thinking that reducing batch size will prevent the indexer from stopping, when in fact the `maxFailedItems` parameter is the direct control for how many document failures are tolerated before the indexer halts.

How to eliminate wrong answers

Option A is wrong because decreasing the batch size to 5 would reduce the number of documents processed per batch, but it does not affect the `maxFailedItems` threshold that causes the indexer to stop after 6 failures. Option B is wrong because increasing the batch size to 20 would process more documents per batch, but it does not change the `maxFailedItems` limit; the indexer would still stop after 10 failures (default). Option D is wrong because removing the schedule to run the indexer on demand does not alter the failure handling behavior; the indexer would still stop after exceeding `maxFailedItems` regardless of how it is triggered.

346
MCQmedium

A company uses Azure Computer Vision to moderate user-generated content. The solution must detect adult content and flag it. Which API should you call?

A.Read API
B.Analyze API with visualFeatures set to 'Adult'
C.Detect API
D.Describe API
AnswerB

The Analyze API accepts visualFeatures, and setting it to 'Adult' returns adult and racy classifications with confidence scores, directly satisfying the requirement to detect and flag adult content. Other features such as Tags or Description cannot return moderation ratings.

Why this answer

The Analyze API with the visualFeatures parameter set to 'Adult' is the correct choice because Azure Computer Vision's Analyze Image operation includes an 'Adult' category that specifically detects adult, racy, and gory content in images. This API returns a confidence score (0 to 1) for each category, allowing the solution to flag content based on a threshold. The other APIs do not provide adult content moderation capabilities.

Exam trap

The trap here is that candidates may confuse the Analyze API's 'Adult' feature with the 'Description' or 'Tags' features, assuming that general image analysis can detect adult content, but only the explicit 'Adult' visualFeature parameter provides the specialized moderation scores.

How to eliminate wrong answers

Option A is wrong because the Read API is designed for optical character recognition (OCR) to extract printed and handwritten text from images, not for detecting adult content. Option C is wrong because the Detect API is used for object detection (identifying and locating objects within an image), not for content moderation. Option D is wrong because the Describe API generates human-readable captions describing the content of an image, but it does not include adult content classification or scoring.

347
MCQeasy

A developer needs to build a mobile app that identifies dog breeds from photos. They have a small dataset of labeled images and want to train a custom model with minimal machine learning expertise. Which Azure service should they use?

A.Azure AI Vision Image Analysis
B.Azure AI Face API
C.Azure Machine Learning designer
D.Azure AI Custom Vision
AnswerD

Custom Vision is a no-code/low-code service that allows you to upload labeled images and train a classification model. It provides a simple interface and SDKs, making it ideal for developers with limited ML expertise. It supports multi-class classification, which is suitable for identifying dog breeds from photos. The service handles training and deployment, so the developer can focus on the app.

Why this answer

Custom Vision is designed for custom image classification and object detection with minimal ML expertise. It supports training on small datasets and provides a user-friendly interface. The other services either require more ML knowledge, offer only prebuilt models, or are for a different domain entirely.

Custom Vision directly meets the need to identify dog breeds from photos.

Exam trap

The trap here is assuming that Azure AI Vision prebuilt models can classify specific breeds, when they only provide generic tags and cannot be customized without Custom Vision.

348
MCQmedium

You are building a knowledge mining solution for a legal firm that needs to extract key clauses from thousands of scanned contract PDFs. The solution must identify parties, effective dates, and termination conditions. Which Azure AI service should you use as the primary component?

A.Azure AI Document Intelligence
B.Azure AI Vision
C.Azure AI Language
D.Azure AI Search
AnswerA

Azure AI Document Intelligence applies prebuilt and custom extraction models to scanned PDFs, returning structured fields such as parties, dates and clauses. Its OCR plus layout-aware contract model satisfies the requirement to mine thousands of scanned contracts, which generic vision or language services cannot parse reliably.

Why this answer

Azure AI Document Intelligence (formerly Form Recognizer) is purpose-built for extracting structured data — key-value pairs, entities, tables, and clauses — from scanned documents and PDFs. Its prebuilt and custom models (including the prebuilt contract model) can identify parties, dates, and clauses, making it the correct primary component for contract clause extraction.

Exam trap

AI-102 often tests the confusion between Document Intelligence (document extraction) and Azure AI Language (text analytics) — candidates pick Language because it sounds like it handles 'clauses,' but it cannot parse scanned document layout.

How to eliminate wrong answers

Option B is wrong because Azure AI Vision handles image analysis (OCR, object detection, facial recognition) but does not extract semantic contract clauses or structured fields from documents. Option C is wrong because Azure AI Language handles text analytics (sentiment, NER, key phrases) on already-extracted text — it lacks document layout understanding and OCR for scanned PDFs. Option D is wrong because Azure AI Search is the indexing/query layer that consumes enriched content; it is not the extraction engine itself, though it is often paired with Document Intelligence in a knowledge mining pipeline.

349
MCQmedium

A media company wants to automatically generate alt text for images on its news site using Azure AI Vision. The images are stored in Azure Blob Storage, and the solution must run serverless and respond within seconds. Which approach should you use?

A.Deploy an Azure Function that calls the Image Analysis caption feature with the image URL and returns the generated text.
B.Use the Face API to describe each image based on detected people.
C.Run a batch transcription job over the image files to extract descriptive text.
D.Create a Custom Vision classification project and train it on the site's images to produce captions.
AnswerA

Azure Functions provides a serverless compute model, and Image Analysis 4.0 can accept a publicly reachable image URL, so the function can request the caption feature and return alt text quickly. This combination meets the serverless and low-latency requirements without managing infrastructure or moving image bytes unnecessarily.

Why this answer

Image Analysis captioning produces a one-sentence description suitable for alt text, and it accepts either image bytes or a URL. Hosting the call in an Azure Function keeps the solution serverless and event-driven, so responses come back in seconds. Custom Vision, Face, and speech batch transcription do not generate general-purpose image descriptions and therefore cannot meet the requirement.

Exam trap

The trap here is confusing image classification or face analysis with captioning, which is the only Azure AI Vision feature that produces descriptive natural-language text.

350
Matchingmedium

Match each Azure AI scenario to the appropriate service.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Computer Vision

Speech Translation

Form Recognizer

Text Analytics

QnA Maker

Why these pairings

Correct matches: Chatbot -> Bot Service, Image moderation -> Computer Vision, Sentiment -> Text Analytics. Common confusions include associating Bot Service with image tasks or mistaking Cognitive Search for text analytics.

351
MCQmedium

You are designing a knowledge mining solution for a publishing company that needs to extract metadata from thousands of book manuscripts in various formats (PDF, Word, EPUB). The solution must identify authors, publication dates, and chapter titles. You are using Microsoft Foundry with Azure AI Search and Azure AI Document Intelligence. The manuscripts are stored in Azure Blob Storage. You need to ensure that the solution can handle all file formats. You have configured a skillset with a Document Intelligence skill for the PDFs and Word documents. However, the EPUB files are not being processed. What should you do to include EPUB files in the enrichment pipeline?

A.Use Azure AI Document Intelligence to extract text from EPUB files directly.
B.Develop a custom skill that converts EPUB files to plain text and add it to the skillset.
C.Modify the Document Intelligence skill to accept EPUB files.
D.Register a new data source type for EPUB in Azure AI Search.
AnswerB

Document Intelligence's built-in skill only supports its documented formats, so EPUB is skipped. A custom skill converts EPUB to plain text before enrichment, letting the remaining skillset extract authors, dates and chapter titles from every manuscript format stored in Blob Storage.

Why this answer

Azure AI Document Intelligence does not natively support EPUB files, so the built-in Document Intelligence skill cannot process them. To include EPUB files in the enrichment pipeline, you must create a custom skill that converts EPUB to plain text (or another supported format) and then add it to the skillset. This allows the pipeline to handle EPUB content alongside PDFs and Word documents.

Exam trap

AI-102 often tests the assumption that Document Intelligence supports all document formats, but it does not support EPUB, leading candidates to incorrectly choose option A or C.

How to eliminate wrong answers

Option A is wrong because Azure AI Document Intelligence does not support EPUB as an input format; it supports PDF, images, Office, and HTML, but not EPUB. Option C is wrong because you cannot modify the Document Intelligence skill to accept EPUB; the skill's capabilities are fixed by the service. Option D is wrong because Azure AI Search does not allow registering new data source types; data sources are limited to supported types like Azure Blob Storage, and the issue is not the data source but the file format processing.

352
MCQeasy

You are extracting text from scanned documents that are in French. Which capability of Azure AI Document Intelligence should you use?

A.Custom model
B.Read API
C.Layout model
D.Prebuilt invoice model
AnswerB

The Read API performs OCR and extracts printed and handwritten text, including French, from scanned documents without needing language-specific training. It satisfies the stem's requirement for extracting text from scanned French documents, unlike custom or prebuilt models that target structured fields.

Why this answer

The Read API is the correct choice because it is specifically designed for extracting printed and handwritten text from scanned documents, including support for multiple languages like French. It performs optical character recognition (OCR) to digitize text without requiring any additional training or customization, making it ideal for general text extraction from scanned documents.

Exam trap

The trap here is that candidates often confuse the Read API with the Layout model, assuming that structural analysis is required for text extraction, but the Read API is the dedicated OCR solution for plain text extraction from scanned documents.

How to eliminate wrong answers

Option A is wrong because a custom model requires labeled training data and is used for extracting specific fields from structured documents, not for general text extraction from arbitrary scanned documents. Option C is wrong because the Layout model extracts text along with structural information like tables and selection marks, which is more than what is needed for simple text extraction from scanned documents. Option D is wrong because the prebuilt invoice model is specialized for extracting fields from invoices (e.g., totals, dates) and is not designed for general text extraction from arbitrary scanned documents in French.

353
MCQhard

Refer to the exhibit. You are calling the Azure AI Language API for entity linking. What is the primary purpose of this request?

A.To identify entities in the text and link them to a knowledge base.
B.To extract named entities from the text without linking.
C.To extract key phrases from the text.
D.To analyze the sentiment of the text.
AnswerA

Entity linking detects mentions in the supplied text and resolves each to a corresponding entry in a knowledge base such as Wikipedia, disambiguating between candidates. It returns linked identifiers rather than merely classifying spans, which matches the exhibit's stated purpose.

Why this answer

The request is configured for entity linking, which is a specific capability of the Azure AI Language API that identifies named entities in the text and resolves them to a unique identifier in a knowledge base (such as Wikipedia or a custom knowledge graph). This goes beyond simple named entity recognition (NER) by providing a canonical link, enabling disambiguation of entities with the same name (e.g., 'Washington' as a state vs. a person). The response includes both the entity name and a URL to the knowledge base entry, confirming the primary purpose is linking to a knowledge base.

Exam trap

The trap here is that candidates confuse Named Entity Recognition (NER) with Entity Linking, assuming both simply 'find entities,' but the key differentiator is that entity linking explicitly resolves entities to a knowledge base with a unique identifier and URL, which is the core purpose of this request.

How to eliminate wrong answers

Option B is wrong because extracting named entities without linking is the function of Named Entity Recognition (NER), not entity linking; the request explicitly uses the 'entityLinking' task, not 'entities'. Option C is wrong because key phrase extraction is a separate API capability (KeyPhraseExtraction) that identifies important terms without entity resolution or linking. Option D is wrong because sentiment analysis is performed by the SentimentAnalysis task, which returns sentiment scores and opinions, not entity links or knowledge base references.

354
MCQeasy

You are planning a new Azure AI solution that will use Azure AI Language, Azure AI Vision, and Azure OpenAI. The security team requires that all service credentials be managed centrally, rotated automatically, and never stored in source code or application configuration files. You need to configure the application to retrieve the endpoint and key for each service at runtime. What should you use?

A.Store the keys in an Azure Storage account table and retrieve them by using a shared access signature.
B.Store the keys in environment variables on each Azure App Service instance and read them by using the configuration API.
C.Store the keys in an Azure App Configuration store and load them on application startup by using the App Configuration provider.
D.Store the keys in Azure Key Vault and retrieve them at runtime by using the Azure Key Vault SDK with a managed identity.
AnswerD

Azure Key Vault stores secrets centrally and supports automatic rotation through versioning. A managed identity assigned to the application authenticates to Key Vault without embedded credentials, and the Azure Key Vault SDK retrieves the current secret version at runtime. This satisfies central management, rotation, and no secrets in code or configuration files for all three Azure AI services.

Why this answer

Central secret management with automatic rotation and credential-free access is provided by Azure Key Vault combined with managed identities. Retrieving secrets at runtime through the Key Vault SDK means no key material is ever written into source code or configuration files. The other options either store secrets in non-secret stores or rely on credentials that themselves must be protected.

Exam trap

The trap here is assuming any configuration service that can store strings is an acceptable secret store, when only Azure Key Vault provides the managed rotation and access control required for credentials.

355
MCQhard

A team is building an agent using Azure AI Foundry Agent Service that must use the function calling tool to interact with a custom API. The agent sometimes fails to call the function with the correct parameters. Which action should the team take to improve the reliability of function calling?

A.Switch to using the code interpreter tool instead of function calling for API interactions.
B.Increase the temperature setting of the model to encourage more creative parameter generation.
C.Provide detailed descriptions and examples for each function parameter in the function definition.
D.Reduce the number of functions available to the agent to only one.
AnswerC

Providing detailed descriptions and examples for each parameter helps the model understand exactly what values are expected. This improves the accuracy of parameter extraction. The model uses these descriptions to map user input to the correct parameters. Including examples of valid values or formats can further reduce errors. This is a best practice for function calling in Azure AI Foundry Agent Service.

Why this answer

Providing detailed descriptions and examples for each function parameter is the correct action because it gives the model clear guidance on expected values, improving parameter accuracy. Other options either increase randomness, misuse tools, or reduce functionality without addressing the root cause of parameter errors.

Exam trap

The trap here is assuming that lowering temperature always fixes function calling, but the real issue is often insufficient parameter descriptions.

356
MCQhard

Your organization uses Azure OpenAI Service with a data source configured as 'Azure OpenAI on your data'. You notice that the responses include outdated information even though the underlying data source has been updated. What is the most likely cause?

A.The model is using a cached version of the prompt
B.The index in Azure Cognitive Search has not been refreshed
C.The data source is configured to sync only daily
D.The Azure CDN is caching the responses
AnswerB

Azure OpenAI on your data retrieves grounding content from the Azure Cognitive Search index, not the source directly. If that index is not refreshed after the source changes, stale documents are returned despite the underlying data being current.

Why this answer

When using Azure OpenAI Service with 'Azure OpenAI on your data', the responses are generated by querying an Azure Cognitive Search index that contains your data. If the underlying data source has been updated but the responses still include outdated information, the most likely cause is that the index in Azure Cognitive Search has not been refreshed to reflect those updates. The model itself does not store or cache the data; it relies on the index at query time, so an outdated index directly leads to outdated responses.

Exam trap

The trap here is that candidates may confuse the model's lack of awareness of data updates with caching mechanisms (like CDN or prompt caching), when the real issue is the decoupled indexing pipeline in Azure Cognitive Search that requires explicit refresh.

How to eliminate wrong answers

Option A is wrong because the model does not cache the prompt; each request is processed independently, and caching would not cause outdated information from the data source—it would only affect repeated identical prompts. Option C is wrong because while a sync schedule could cause delays, the question states the data source 'has been updated' and the responses are outdated, implying the index is not refreshed regardless of schedule; the default sync behavior is not the core issue. Option D is wrong because Azure CDN is used for static content delivery, not for caching Azure OpenAI responses, which are dynamic and not routed through CDN.

357
Multi-Selecthard

You are deploying a custom question answering solution in Azure AI Language. You need to ensure that the knowledge base can handle synonyms and alternative phrasings for questions. Which THREE strategies should you implement? (Select THREE.)

Select 3 answers
A.Add alternative question phrases to each QnA pair.
B.Use a custom question answering project type instead of the prebuilt one.
C.Increase the confidence threshold to 0.9 to reduce false positives.
D.Enable active learning to suggest new question variants from user queries.
E.Utilize the synonym feature to map equivalent terms.
AnswersA, D, E

Alternative phrases help the model match different phrasings.

Why this answer

Adding alternative question phrases to each QnA pair directly expands the surface area of possible user queries that will match a given answer. This is a core feature of custom question answering in Azure AI Language, allowing you to predefine synonyms and rephrasings for each QnA pair without relying on external logic.

Exam trap

The trap here is that candidates often confuse the confidence threshold (a post-ranking filter) with a mechanism for handling synonyms or alternative phrasings, when in fact it only controls the minimum score required to return an answer and does not expand the knowledge base's linguistic coverage.

358
MCQmedium

Your organization is migrating on-premises machine learning models to Azure. The models are used for real-time inference. You need to choose a service that provides managed endpoints with autoscaling and supports custom containers. Which service should you use?

A.Azure Machine Learning managed online endpoints
B.Azure Functions
C.Azure Kubernetes Service (AKS) with manual scaling
D.Azure AI Services custom vision
AnswerA

Azure Machine Learning managed online endpoints satisfy the real-time inference constraint by providing autoscaling managed endpoints that deploy custom containers. Unlike batch endpoints, which process asynchronous jobs, managed online endpoints expose a REST URI for low-latency scoring, and Microsoft Entra ID handles authentication, meeting the migration requirement without managing infrastructure.

Why this answer

Azure Machine Learning managed online endpoints are the correct choice because they provide fully managed, autoscaling endpoints specifically designed for real-time inference. They support custom container images, allowing you to deploy any model packaged as a Docker container, and handle traffic splitting, health checks, and scaling automatically without managing underlying infrastructure.

Exam trap

The trap here is that candidates often confuse Azure Kubernetes Service (AKS) as the only option for custom containers, overlooking that Azure Machine Learning managed endpoints natively support custom containers with autoscaling, eliminating the operational burden of managing a Kubernetes cluster.

How to eliminate wrong answers

Option B (Azure Functions) is wrong because Azure Functions is a serverless compute service for event-driven, short-lived tasks, not optimized for real-time ML inference with custom containers; it lacks native autoscaling for ML workloads and does not provide managed endpoints with traffic splitting or model versioning. Option C (Azure Kubernetes Service with manual scaling) is wrong because while AKS can host custom containers, the requirement specifies 'managed endpoints with autoscaling'—manual scaling contradicts autoscaling, and AKS requires significant cluster management overhead, unlike the fully managed endpoint service. Option D (Azure AI Services custom vision) is wrong because Custom Vision is a pre-built AI service for image classification and object detection, not a general-purpose platform for deploying custom ML models with custom containers; it does not support arbitrary custom containers or managed endpoints for real-time inference.

359
MCQhard

A company uses Azure Document Intelligence with a custom neural model to extract data from purchase orders. The model was trained on 50 labeled samples and performs well on similar documents. However, when processing new purchase orders from a different supplier, the model fails to extract the 'TotalAmount' field accurately. What should you do to improve the model's performance on the new supplier's documents?

A.Add labeled samples from the new supplier's purchase orders and retrain the model.
B.Increase the model's confidence threshold for the 'TotalAmount' field.
C.Use the model's composed model feature to combine it with a prebuilt model.
D.Switch to the prebuilt invoice model and map the 'TotalAmount' field to 'InvoiceTotal'.
AnswerA

Custom neural models learn from the training data. Adding labeled samples that represent the new supplier's document variations helps the model generalize to those layouts and field positions. Retraining incorporates this new data, improving accuracy for the 'TotalAmount' field on similar documents from that supplier.

Why this answer

To improve extraction for documents from a new supplier, the custom neural model needs exposure to that supplier's document variations. Adding labeled samples and retraining is the direct method to enhance the model's field extraction accuracy. Other options do not address the model's knowledge gap.

Exam trap

The trap here is thinking that adjusting confidence thresholds or switching to prebuilt models can fix extraction errors when the model lacks training data for the new layout.

360
MCQeasy

A company is using Azure AI Foundry to create an agent that must answer questions based on a set of internal documents. The agent should provide accurate answers and cite the source documents. Which feature should the team use to ground the agent's responses in the documents?

A.Fine-tuning the underlying language model with the internal documents.
B.Azure AI Search index connected as a knowledge tool in the agent.
C.Storing the documents in Azure Blob Storage and providing the agent with a SAS URL.
D.Embedding the documents in the agent's system prompt.
AnswerB

Azure AI Search index connected as a knowledge tool allows the agent to retrieve relevant document chunks and ground its responses. It supports citations by returning document references. This is the standard way to implement retrieval-augmented generation (RAG) in Azure AI Foundry Agent Service, ensuring answers are based on the internal documents and sources are cited.

Why this answer

Using an Azure AI Search index as a knowledge tool is the correct approach because it enables retrieval-augmented generation, allowing the agent to fetch relevant document chunks and cite sources. Fine-tuning, SAS URLs, and embedding documents in the prompt do not provide effective grounding or citation capabilities for a document library.

Exam trap

The trap here is thinking that fine-tuning is a quick way to add knowledge, but it does not support citations or dynamic updates.

361
Multi-Selecthard

You are building a solution that uses Azure AI Language's question answering (custom question answering) to create a bot that answers employee HR questions. You have created a project and added a knowledge base with 50 question-answer pairs. You need to ensure the bot provides accurate answers and can handle paraphrased questions. Which two actions should you perform? (Choose two.)

Select 2 answers
A.Configure the project to use a different language model for better semantic understanding.
B.Increase the confidence threshold for answer matching to ensure only high-confidence answers are returned.
C.Add a prebuilt entity for 'person' to the project to extract employee names from questions.
D.Add alternative questions for each question-answer pair to cover different ways employees might ask the same question.
E.Enable active learning and regularly review and accept or reject suggested question-answer pairs.
AnswersD, E

This is correct because alternative questions help the model understand paraphrases. Custom question answering uses these variations to match user queries to the correct answer. By providing multiple phrasings, you improve the likelihood that the bot recognizes a paraphrased question and returns the right answer.

Why this answer

To improve paraphrase handling in custom question answering, you should add alternative questions to cover different phrasings and enable active learning to continuously refine the knowledge base based on user queries. Increasing thresholds or adding entities does not help with matching paraphrased questions.

Exam trap

The trap here is thinking that increasing the confidence threshold improves accuracy, but it actually reduces the bot's ability to match paraphrased questions by making it more conservative.

362
MCQeasy

You are developing a generative AI solution that uses Azure OpenAI Service. You need to control the creativity of the generated responses. Which parameter should you adjust?

A.top_p
B.max_tokens
C.temperature
D.frequency_penalty
AnswerC

Temperature directly scales the randomness of token sampling in Azure OpenAI Service, so lowering it narrows probability distribution toward likely tokens and raising it broadens creativity. This satisfies the stem's requirement to control response creativity, unlike max_tokens or top_p, which govern length or nucleus sampling respectively.

Why this answer

The temperature parameter directly controls the randomness of token selection in the model's output. Lower values (e.g., 0.2) make the model more deterministic and focused, while higher values (e.g., 0.8) increase creativity and variability. This is the primary parameter for adjusting creativity in Azure OpenAI Service.

Exam trap

Azure often tests the distinction between temperature (creativity/randomness) and top_p (nucleus sampling diversity), leading candidates to confuse top_p as the creativity control when it actually controls the cumulative probability cutoff for token selection.

How to eliminate wrong answers

Option A is wrong because top_p (nucleus sampling) controls the cumulative probability threshold for token selection, not the overall creativity; it can be used alongside temperature but does not directly control creativity. Option B is wrong because max_tokens limits the length of the generated response, not its creativity or randomness. Option D is wrong because frequency_penalty reduces repetition by penalizing tokens that have already appeared, which affects diversity but not the core creativity or randomness of the output.

363
MCQeasy

You plan to use Azure AI Search to index a large number of text documents stored in Azure Blob Storage. The documents are in English. You want to automatically extract key phrases from the content during indexing. What should you add to the skillset?

A.Key Phrase Extraction skill
B.Sentiment skill
C.Language Detection skill
D.Entity Recognition skill
AnswerA

The Key Phrase Extraction skill invokes the Key Phrase Extraction cognitive service during skillset execution, returning a list of key phrases per document into the enrichment tree. This satisfies the stem's requirement to extract key phrases automatically at index time, without custom code or separate processing pipelines.

Why this answer

The Key Phrase Extraction skill is the correct choice because it is specifically designed to identify and extract important phrases from text content, which aligns with the requirement to automatically extract key phrases during indexing. This skill is part of Azure AI Search's cognitive skillset and operates on English text to produce a list of key phrases per document.

Exam trap

The trap here is that candidates may confuse Entity Recognition (which extracts specific named entities) with Key Phrase Extraction (which extracts general important phrases), leading them to select the wrong skill for the requirement.

How to eliminate wrong answers

Option B is wrong because the Sentiment skill is used to determine the emotional tone (positive, negative, neutral) of text, not to extract key phrases. Option C is wrong because the Language Detection skill identifies the language of the text (e.g., English, Spanish), but does not extract key phrases from the content. Option D is wrong because the Entity Recognition skill extracts named entities such as people, organizations, and locations, not general key phrases.

364
MCQeasy

A company needs to identify and tag products on store shelves using a custom model. They have a large dataset of labeled images with bounding boxes around each product. They want to train a model that can detect multiple products in new images and return their locations. Which Azure service should they use?

A.Azure AI Face, using the face detection feature
B.Azure AI Vision, using the prebuilt object detection model
C.Azure AI Custom Vision, using the Object Detection project type
D.Azure AI Custom Vision, using the Classification project type
AnswerC

Custom Vision supports two project types: Classification and Object Detection. Object Detection is designed to identify multiple objects within an image and return bounding box coordinates for each. Since the dataset includes bounding boxes and the goal is to detect and locate products, this project type is the correct choice.

Why this answer

Custom Vision Object Detection is designed for scenarios where you need to detect and locate multiple instances of objects within an image. It uses labeled bounding boxes to train a model that predicts both class labels and bounding box coordinates. Classification, prebuilt Vision models, and Face detection do not provide the required custom object detection with location.

Exam trap

The trap here is assuming that Custom Vision Classification can be used for object detection if you have bounding boxes, but classification ignores bounding box information.

365
MCQmedium

You are building a solution to extract key information from scanned invoices. The invoices are in PDF format and contain both printed and handwritten fields. Which Azure AI service should you use?

A.Language Service
B.Speech Service
C.Computer Vision
D.Azure AI Document Intelligence (formerly Form Recognizer)
AnswerD

Azure AI Document Intelligence combines OCR with prebuilt invoice models that extract structured fields such as vendor, total and due date, and its read model handles handwritten text, satisfying the mixed printed and handwritten PDF requirement in one service.

Why this answer

Azure AI Document Intelligence (formerly Form Recognizer) is purpose-built for extracting structured fields from documents like invoices, receipts, and IDs. Its prebuilt invoice model returns vendor, invoice number, line items, totals, and dates, and its custom/neural models handle both printed and handwritten text. It also natively ingests PDFs, making it the correct choice for scanned invoices with mixed print/handwriting.

Exam trap

AI-102 often tests whether candidates confuse Computer Vision's generic OCR with Document Intelligence's field-aware extraction — the trap is picking Computer Vision because it 'reads documents,' missing that invoices need structured field models.

How to eliminate wrong answers

Option A is wrong because the Language Service handles text analytics (sentiment, entities, key phrases, translation) on already-extracted text — it does not read PDFs or perform OCR/layout extraction. Option B is wrong because Speech Service is for audio transcription and text-to-speech, unrelated to document images. Option C is wrong because Computer Vision offers OCR (Read API) but does not provide invoice-specific field extraction, layout-aware key-value pairing, or prebuilt invoice models — it returns raw text, not structured invoice fields.

366
MCQeasy

Your organization has a large repository of technical manuals in PDF format. You need to build a chatbot that can answer questions about the content of these manuals. Which combination of Azure services should you use?

A.Azure AI Search and Azure OpenAI
B.Azure AI Speech and Azure OpenAI
C.Azure AI Language and Azure AI Document Intelligence
D.Azure AI Document Intelligence and Azure Bot Service
AnswerA

Azure AI Search indexes and retrieves relevant manual passages, while Azure OpenAI generates grounded natural-language answers from those retrieved chunks. This combination satisfies the requirement to answer questions about PDF manual content without training a custom model.

Why this answer

Azure AI Search provides the indexing and retrieval capabilities needed to search through the PDF content, while Azure OpenAI (specifically GPT models) can generate natural language answers based on the retrieved passages. This combination enables a RAG (Retrieval-Augmented Generation) pattern where the search engine finds relevant text chunks from the manuals and the language model formulates a coherent answer.

Exam trap

The trap here is that candidates often confuse Azure AI Language (which handles text analytics) with the search and generative AI capabilities needed for a question-answering system, or they incorrectly assume that Azure Bot Service alone can handle document-based Q&A without a search backend.

How to eliminate wrong answers

Option B is wrong because Azure AI Speech is used for speech-to-text and text-to-speech, not for searching or understanding document content; it does not index PDFs or retrieve relevant passages. Option C is wrong because Azure AI Language provides pre-built NLP capabilities like entity recognition or sentiment analysis, but it is not designed for full-text search over a large repository of PDFs; Azure AI Document Intelligence is for extracting text from documents, not for answering questions. Option D is wrong because Azure AI Document Intelligence extracts text from PDFs but does not index or search that text, and Azure Bot Service is a framework for building chatbots but lacks the search and generative AI components needed to answer questions from a document repository.

367
MCQhard

A company is using Azure Cognitive Service for Language to analyze customer support transcripts. They want to identify custom categories (e.g., 'billing', 'technical support') using a custom text classification model. After training and deploying the model, they receive many false positives for the 'billing' category. What is the best first step to improve model accuracy?

A.Add more training data to all categories to improve overall model performance.
B.Use a different Azure AI service, such as key phrase extraction, to identify billing-related content.
C.Review the training data for the 'billing' category and correct any mislabeled examples.
D.Increase the confidence threshold for the 'billing' category to reduce false positives.
AnswerC

False positives for 'billing' typically stem from mislabelled training examples teaching the model incorrect boundaries. Correcting those labels addresses the root cause before tuning thresholds or adding data, making it the most effective first step for improving classification accuracy.

Why this answer

False positives for a specific category like 'billing' most often stem from mislabeled or ambiguous training examples in that category. By reviewing and correcting the training data for 'billing', you directly address the root cause of the model's confusion, which is the most effective first step in custom text classification model improvement.

Exam trap

The trap here is that candidates often jump to a threshold adjustment (Option D) as a quick fix, but Azure's custom text classification models require data quality improvements first, as confidence thresholds only affect prediction output, not model accuracy.

How to eliminate wrong answers

Option A is wrong because adding more training data to all categories indiscriminately does not target the specific false-positive issue with 'billing' and could even introduce more noise or imbalance. Option B is wrong because key phrase extraction is an unrelated Azure AI service that extracts terms, not a classification model; it cannot replace or fix a custom text classification model's accuracy. Option D is wrong because increasing the confidence threshold only filters out low-confidence predictions but does not correct the underlying misclassification pattern; it may reduce false positives at the cost of increasing false negatives, without improving model understanding.

368
MCQhard

A manufacturing company uses Azure AI Custom Vision to detect defects on a production line. The model was trained with 500 images per class and achieves 95% accuracy. After deployment, the model's accuracy drops to 80% due to changes in lighting conditions. What is the most effective first step to improve the model's robustness?

A.Reduce the probability threshold to increase recall.
B.Capture additional images under the new lighting and retrain the model.
C.Use Azure AutoML to automatically find the best algorithm.
D.Add more images from the original lighting conditions to the training set.
AnswerB

Domain shift from changed lighting causes the accuracy drop, so capturing images under the new lighting conditions and retraining lets the model learn those visual features, directly addressing the distribution mismatch rather than tuning unrelated parameters.

Why this answer

The drop in accuracy is caused by a domain shift—specifically, new lighting conditions that were not represented in the original training set. The most effective first step is to capture additional images under the new lighting and retrain the model, as Custom Vision relies on diverse, representative training data to generalize to real-world variations. This directly addresses the root cause by expanding the training distribution to include the new lighting scenario, which is a fundamental principle of supervised learning in computer vision.

Exam trap

The trap here is that candidates may confuse a performance tuning action (like adjusting the probability threshold) with a data quality fix, or assume AutoML can magically fix any accuracy drop, when in fact the root cause is a classic domain shift that requires representative retraining data.

How to eliminate wrong answers

Option A is wrong because reducing the probability threshold increases recall but also increases false positives, which does not improve robustness to lighting changes—it only trades precision for recall without addressing the underlying distribution shift. Option C is wrong because Azure AutoML is designed for automated model selection and hyperparameter tuning, but the problem here is a data distribution mismatch, not a need for a different algorithm; AutoML cannot compensate for missing lighting variations in the training data. Option D is wrong because adding more images from the original lighting conditions does not help the model learn to handle the new lighting; it only reinforces the existing bias toward the old lighting, leaving the domain shift unaddressed.

369
MCQeasy

Your company uses Azure OpenAI Service to generate marketing content. You need to ensure that the generated content does not contain offensive language. Which feature should you enable?

A.Azure AI Content Safety filters.
B.Audit logging for all API calls.
C.Data encryption at rest.
D.Rate limiting on the endpoint.
AnswerA

Azure AI Content Safety filters run on both prompts and completions, scoring hate, violence, sexual and self-harm categories and blocking them. Enabling them enforces the requirement that generated marketing content must not contain offensive language, without altering the model itself.

Why this answer

Azure AI Content Safety filters are specifically designed to detect and block offensive, inappropriate, or harmful language in text and images. By enabling these filters on your Azure OpenAI Service deployment, you can configure severity thresholds for categories like hate, self-harm, sexual, and violence content, ensuring generated marketing content meets safety policies.

Exam trap

The trap here is that candidates confuse operational features like logging or rate limiting with content moderation, assuming any security-related setting can filter offensive language, when only Azure AI Content Safety provides the specific content filtering capability.

How to eliminate wrong answers

Option B is wrong because audit logging records API calls for monitoring and compliance but does not actively filter or block offensive content in responses. Option C is wrong because data encryption at rest protects stored data from unauthorized access but has no role in analyzing or moderating generated text for offensive language. Option D is wrong because rate limiting controls the number of requests per time period to prevent abuse or overload, not to inspect or filter the content of responses.

370
MCQmedium

Refer to the exhibit. A developer is testing the Text Analytics sentiment analysis API and receives a 401 error. What is the most likely cause?

A.The API version is not supported.
B.The endpoint URL is incorrect.
C.The resource group is misspelled.
D.The subscription key is invalid or expired.
AnswerD

A 401 response signals failed authentication, and the Text Analytics API authenticates requests solely via the Ocp-Apim-Subscription-Key header. An invalid, expired, or mistyped subscription key therefore causes the rejection, whereas malformed JSON or an unsupported language would return 400 errors instead.

Why this answer

HTTP 401 Unauthorized specifically means the request lacked valid authentication credentials — for Azure Cognitive Services Text Analytics, that means the Ocp-Apim-Subscription-Key header is missing, malformed, or the key has been regenerated/expired. The endpoint and API version are validated separately (404/400), and resource group naming is irrelevant to runtime API calls. Therefore the invalid or expired subscription key is the most likely cause.

Exam trap

AI-102 often tests HTTP status code semantics — candidates see 'endpoint URL is incorrect' and pick it because endpoint issues feel more common, but 401 is strictly an authentication failure, not a routing or versioning failure.

How to eliminate wrong answers

Option A is wrong because an unsupported API version returns HTTP 400 Bad Request (or 404 if the path is wrong), not 401 — the service rejects the version after authentication succeeds. Option B is wrong because an incorrect endpoint URL produces a DNS failure, connection error, or HTTP 404, not a 401, since authentication is never reached. Option C is wrong because the resource group is a deployment-time ARM concept; the Text Analytics runtime API does not receive or validate resource group names, so a misspelling there cannot cause a 401.

371
Multi-Selectmedium

You are preparing an Azure OpenAI deployment for a production generative AI application that must stream responses to a web front end and must limit the cost of overly long conversations. You need to configure parameters that control response length and streaming behavior. Which two parameters should you set? (Choose two.)

Select 2 answers
A.frequency_penalty
B.top_p
C.temperature
D.stream
E.max_tokens
AnswersD, E

Setting stream to true causes the service to return the completion incrementally as server-sent events rather than as one blocking payload. This is exactly what a web front end needs to display tokens as they are produced, improving perceived latency. It does not change token accounting or cost, so it pairs naturally with a length limit.

Why this answer

Two distinct needs are stated: bounding the cost of long conversations and streaming responses to a web front end. The max_tokens parameter limits how many tokens each completion may contain, providing the cost ceiling. The stream parameter switches the API to incremental server-sent delivery, satisfying the front-end streaming requirement.

Sampling parameters such as temperature, top_p, and frequency_penalty influence output content rather than length or delivery.

Exam trap

The trap here is treating sampling parameters like temperature or top_p as cost controls, when only the completion-length limit actually bounds how many tokens are billed.

372
MCQhard

Your organization is building a knowledge base from technical manuals stored in multiple formats (PDF, Word, HTML). You need to extract text and images from these documents and create a searchable index. The solution must handle tables and preserve their structure. Which approach should you use?

A.Upload documents directly to Azure AI Search
B.Use Azure AI Language custom entity extraction
C.Use Azure AI Document Intelligence layout model as a custom skill
D.Use Azure AI Vision OCR skill in the skillset
AnswerC

The layout model outputs structured Markdown and JSON that preserves table rows, columns and headings, unlike plain OCR which flattens them. Wrapping it as a custom skill lets the indexer enrich each PDF, Word or HTML document, satisfying the requirement to retain table structure in the searchable index.

Why this answer

The Azure AI Document Intelligence layout model is purpose-built to extract text, tables, and structure from documents in PDF, Word, and HTML formats, and it preserves table structure and reading order. When integrated as a custom skill in an Azure AI Search skillset, it enriches the pipeline with structured content that can be indexed and searched. This directly satisfies the requirement to handle tables while preserving their structure.

Exam trap

AI-102 often tests the distinction between OCR (text extraction from images) and document layout analysis (structure extraction), causing candidates to pick the Vision OCR skill when tables and structure are required.

How to eliminate wrong answers

Option A is wrong because uploading documents directly to Azure AI Search only performs basic text extraction and does not parse complex tables or preserve their structure. Option B is wrong because Azure AI Language custom entity extraction is for identifying entities in text, not for extracting text and images from documents. Option D is wrong because the Azure AI Vision OCR skill extracts text from images but does not handle document layout, tables, or multi-format documents natively.

373
MCQeasy

You are designing a solution that uses Azure AI Document Intelligence to extract data from invoices. The solution must classify invoices by vendor and extract line items. Which prebuilt model should you use?

A.Prebuilt invoice model
B.Custom extraction model
C.Prebuilt receipt model
D.Prebuilt layout model
AnswerA

The prebuilt invoice model is trained specifically to extract invoice fields such as vendor name, invoice number, line items, amounts and due dates from invoice documents, satisfying both the vendor classification and line-item extraction requirements without custom training.

Why this answer

The Prebuilt invoice model (Option A) is specifically designed to extract common fields from invoices, including vendor details and line items, without requiring custom training. This model is optimized for invoice documents and provides out-of-the-box extraction of structured data such as vendor name, invoice date, and line-item descriptions, quantities, and amounts.

Exam trap

The trap here is that candidates often confuse the Prebuilt layout model with the Prebuilt invoice model, assuming layout extraction is sufficient for invoice data, but layout only provides raw text and table positions without the semantic understanding needed for vendor classification and line-item extraction.

How to eliminate wrong answers

Option B is wrong because a custom extraction model requires labeled training data and is used when prebuilt models do not meet specific document needs, but here the prebuilt invoice model already covers vendor classification and line-item extraction. Option C is wrong because the Prebuilt receipt model is designed for receipts (e.g., from stores or restaurants), not invoices, and does not extract vendor classification or line-item details in the same structured format. Option D is wrong because the Prebuilt layout model extracts text, tables, and selection marks but does not perform semantic classification or vendor-specific field extraction; it lacks the prebuilt understanding of invoice-specific fields.

374
MCQhard

Refer to the exhibit. You are configuring an Azure OpenAI Service deployment for document summarization. The current parameters produce summaries that are often too verbose. You need to make the summaries more concise while maintaining factual accuracy. Which parameter change should you make?

A.Increase top_p to 1.0
B.Increase frequency_penalty to 0.5
C.Decrease max_tokens to 100
D.Increase temperature to 0.7
AnswerC

Lowering max_tokens caps the response length, directly curbing verbosity by truncating generation before padding accumulates. However, it constrains output size rather than steering style, so factual accuracy is preserved only if essential content fits within 100 tokens; summarisation quality may suffer if key facts are cut off.

Why this answer

Decreasing max_tokens to 100 directly limits the maximum length of the generated summary, forcing the model to produce shorter output. This addresses the verbosity issue without altering the model's factual accuracy, as max_tokens controls output length, not content selection or creativity.

Exam trap

Microsoft often tests the distinction between parameters that control output length (max_tokens) versus those that control creativity or diversity (temperature, top_p, frequency_penalty), leading candidates to mistakenly adjust the latter when the issue is simply excessive length.

How to eliminate wrong answers

Option A is wrong because increasing top_p to 1.0 makes the model consider a wider set of possible tokens, which can increase diversity and potentially lead to even more verbose or less focused summaries. Option B is wrong because increasing frequency_penalty to 0.5 penalizes tokens that have already appeared, reducing repetition but not directly controlling summary length; it may even cause the model to use more unique words, increasing verbosity. Option D is wrong because increasing temperature to 0.7 increases randomness in token selection, which can produce more creative but less consistent summaries, potentially harming factual accuracy and not reliably reducing length.

375
MCQmedium

You are deploying a chatbot using Azure OpenAI Service with a custom dataset indexed in Azure AI Search. Users report that the chatbot frequently responds with 'I don't know' for questions that the dataset should cover. What is the most likely cause?

A.The search scope is limited to a small number of documents.
B.The confidence threshold in the retrieval configuration is set too low, filtering out relevant chunks.
C.The temperature setting in the model deployment is set too high.
D.The chunk size in the index is too large, causing irrelevant chunks to be retrieved.
AnswerB

Low confidence threshold causes relevant chunks to be excluded, leading to 'I don't know' responses.

Why this answer

When the confidence threshold is set too low, Azure AI Search filters out retrieved chunks that don't meet the minimum confidence score, even if those chunks are relevant. This causes the chatbot to respond with 'I don't know' because no sufficiently confident context is passed to the Azure OpenAI model for answer generation. The issue is specifically in the retrieval configuration, not in the model's generation parameters.

Exam trap

The trap here is that candidates often confuse the confidence threshold in retrieval with the temperature parameter in generation, assuming a high temperature causes the model to refuse answers, when in fact temperature controls creativity, not retrieval filtering.

How to eliminate wrong answers

Option A is wrong because limiting the search scope to a small number of documents would reduce the pool of potential matches, but the chatbot would still return answers from those documents if they contain relevant information; the symptom of 'I don't know' for covered questions points to a filtering issue, not a scope limitation. Option C is wrong because a high temperature setting affects the randomness and creativity of the generated response, not the model's ability to retrieve or use context; it might cause verbose or off-topic answers, but not a refusal to answer. Option D is wrong because large chunk sizes can cause retrieval of irrelevant chunks due to lower precision, but this would lead to incorrect or hallucinated answers, not the model saying 'I don't know'; the model would still attempt to answer using the retrieved context.

Page 4

Page 5 of 11

Page 6

All pages