Question 10
A creative agency's storyboard requests a generated 12-second video with a reference first frame. The agency can use a supported Sora 2 preview deployment but production policy prohibits preview-dependent customer deliverables. Which recommendation best fits both the creative need and the explicit release restriction?
- Generate a series of high-resolution still frames with a generally available image model and assemble them into twelve seconds of video, treating frame interpolation as equivalent to a supported video generation deployment.
- Use the preview model directly in production because a 12-second request is below its documented duration limit.
- Use the preview video capability in a restricted prototype to validate duration/reference controls, and choose an approved production-ready path before public release.
- Choose a currently GA image-generation model with reference-image input and use it to produce a storyboard contact sheet, then assume the contact sheet alone satisfies the request for a synchronized 12-second moving video.
Explanation
Correct Answer
C:A restricted proof of concept may use an available preview deployment to assess storyboard adherence, reference-frame handling, permitted duration and output review while keeping it out of the public production path. Before releasing a deliverable, the team needs a production-approved generation or editing alternative with confirmed capabilities, commercial terms and safety controls. This recommendation respects both the agency's experimentation objective and the explicit prohibition on preview-dependent public output. Do not promise GA behavior or identical video-editing controls across models without current documentation.
Incorrect Answers
A:Still-image generation and interpolation can be part of a manually managed animation workflow, so this is more credible than replacing video with audio. However, it does not establish consistent motion or that the approved production stack can honor the supplied first-frame reference. More importantly, the case asks for a release decision given the prohibited preview dependency. Assembling generated images does not certify feature equivalence, safety review, or an approved production video path.
B:A supported 12-second duration shows the request may fit one preview model's technical limits; it does not turn a preview service into a generally available production feature. The organization's policy explicitly disallows preview-dependent customer deliverables. Sending it live would breach that release boundary even if the generated video looked good. Duration, reference-image support, supported resolutions and service availability must be checked, but technical compatibility alone cannot override the stated production requirement.
D:A reference-aware image model may help artists establish consistent characters and plan shots, and a contact sheet is a real production artifact. It does not render timed motion, transitions or the specified video segment as requested. The agency also cannot use preview-only generation as an unrestricted public deliverable. A restricted preview experiment followed by an approved supported production workflow is necessary; a static storyboard is only an intermediate asset, not an equivalent finished video.
Question 11
A service desk asks a text-analysis assistant to categorize customer remarks. One complaint reads, 'Wonderful, another three-hour outage—exactly what we needed.' A keyword counter marks it positive because of 'wonderful'. What change would most improve this decision?
- Calibrate the existing lexical sentiment scorer with an expanded positive-adjective lexicon, then accept its final polarity without testing ironic expressions of dissatisfaction.
- Evaluate sentiment and tone in the sentence's full context, using labeled sarcastic complaints to test the classifier.
- Use a sentence-level classifier trained on ordinary positive and negative reviews, but exclude sarcastic and ironic complaints from its acceptance test because the presence of “wonderful” is positive.
- Translate every remark into English and apply the old English keyword polarity rules, without validating whether translation preserves sarcasm, negation, or the reference sentiment labels.
Explanation
Correct Answer
B:A contextual classifier or suitable language model can consider the contradiction between the apparent compliment and the adverse service event. Validate the behavior using labeled examples of sarcasm, irony, negation and genuine positive feedback, then monitor confidence and escalations for ambiguous messages. The intended result here is negative or dissatisfied sentiment, with evidence explaining why the positive adjective is sarcastic. A test set focused only on straightforward reviews would miss the observed failure mode, so representative sarcastic complaints must inform acceptance.
Incorrect Answers
A:Adding positive vocabulary can improve a basic keyword classifier when reviews use unfamiliar praise terms, so this sounds like a practical low-effort improvement. It cannot address the failure demonstrated here: the apparent praise is sarcastic because the utterance reports another extended outage. An expanded lexicon continues to reward the misleading word rather than interpreting the customer’s intent in context. Test labeled ironic complaints and evaluate whole-sentence tone before declaring the classification reliable.
C:A sentence-level classifier is a reasonable improvement over isolated keyword counting, and ordinary labeled reviews are a useful training baseline. The exact reported failure depends on sarcasm: a positive adjective is used to describe a three-hour outage negatively. A classifier evaluated only on straightforward remarks may preserve the same systematic error. Include labeled sarcasm, irony and negation cases and assess the full utterance’s contextual tone before trusting the sentiment label.
D:Translation can normalize multilingual feedback for a centralized sentiment model and is therefore a plausible engineering approach. But this complaint is already in English, and the actual fault is treating an ironic positive adjective as genuine praise. Repeating the same word-level decision after translation still lacks the semantic context needed to recognize dissatisfaction. Translated irony can even become less explicit, so labeled contextual evaluation is necessary instead of trusting a translation hop.
Question 12
A parts distributor searches an Azure AI Search catalog. Buyers often type an exact SKU such as 'AX-73B' while also asking for 'a low-noise replacement fan'. Pure vector retrieval finds semantically similar fans but occasionally omits the exact SKU. What retrieval design best meets both requirements?
- Execute a hybrid query with lexical BM25 and compatible vector retrieval, keeping the SKU searchable and evaluating the merged ranking.
- Use a vector query and increase its similarity threshold until the top candidate resembles the requested replacement fan, without testing whether the exact alphanumeric SKU matches.
- Use the semantic ranker over product descriptions and prioritize inventory records marked current, but omit the lexical branch for the exact SKU in the customer query.
- Use vector search over the descriptive product name and apply a high similarity threshold, but do not add a filterable or analyzer-safe exact SKU field to the catalog.
Explanation
Correct Answer
A:Hybrid retrieval runs a text query over the searchable SKU and description fields alongside a compatible vector query. Azure AI Search combines ranked text and vector results, allowing exact part identifiers and conceptual replacement descriptions to contribute to the final shortlist. Tune weights, filters, candidate counts and optional semantic reranking against catalog evaluation cases, including exact-SKU lookups that must not be displaced by merely similar items. The key mechanism is complementary lexical and semantic evidence; a single vector-only query lacks one of those required retrieval signals.
Incorrect Answers
B:Increasing a vector similarity threshold may reduce irrelevant product recommendations, but semantic similarity is not a character-for-character identity constraint. Adjacent SKUs can share almost identical descriptions and produce high vector similarity even when one suffix differs. The buyer explicitly supplied AX-73B, so the search workflow needs a lexical or exact-field signal alongside semantic description retrieval. A higher cosine threshold cannot guarantee that the precise SKU survives ranking.
C:Semantic reranking and a current-inventory flag can both improve the usefulness of a catalog shortlist, yet neither proves that a retrieved record has the specific requested part number. A similarly described low-noise fan with a different suffix can rank higher than the exact identifier. The correct design combines text matching of AX-73B with a semantic retrieval path for the descriptive portion and validates the merged ranking.
D:Vector similarity is well suited to descriptive queries such as a low-noise replacement fan, and tuning the threshold may improve precision for common product concepts. It does not reliably preserve an exact alphanumeric SKU like AX-73B, especially when neighboring parts share descriptions. A strict threshold can even exclude the specified product. Hybrid retrieval with an exact lexical path or SKU field provides the distinct identifier evidence the scenario requires.
Question 13
A Foundry-powered policy assistant answers a question with a persuasive paragraph, but its cited handbook excerpt explicitly says the opposite. The application team currently rates the answer as good because its language is fluent. Which evaluation most directly identifies the defect?
- Run answer-relevance and fluency evaluations on the generated paragraph, but omit any comparison of its factual claims with the cited handbook passage.
- Run an answer-relevance evaluator against the user question and accept the policy answer when it is on topic, without checking its claims against the cited handbook passage.
- Use a second language model to judge whether the answer sounds authoritative and consistent with the handbook’s general topic, but do not compare each claim against the actual cited policy passage.
- Compare the generated claims with the retrieved evidence using a groundedness/factual-consistency evaluation and record unsupported spans.
Explanation
Correct Answer
D:A groundedness evaluator checks the generated claims against the retrieved handbook passages and flags content that is unsupported or contradicted. For this case, it should identify the specific statement where the answer reverses the policy, preserve the offending source span and surface the failure for correction or refusal. Use representative labeled examples and validate the evaluator's reliability rather than assuming any automatic metric is infallible. This measures the required relationship between answer and evidence, which a grammar score or sampling change cannot assess.
Incorrect Answers
A:Relevance and fluency are useful measures of whether a response addresses the question and reads naturally. They can both be high when the actual answer reverses an explicit policy restriction. Here the cited passage gives a direct falsifiable reference, so an evaluation without evidence comparison cannot identify the reported contradiction. A groundedness or factual-consistency check must examine claim-to-source support; improving surface quality would not resolve the documented accuracy failure.
B:Relevance measures whether an answer addresses the question; a fluent answer that directly contradicts the handbook may still be highly relevant. Here the specific failure is that the generated claim reverses an explicit policy statement. A relevance evaluator cannot establish factual consistency with evidence on its own. The application must compare the material answer claims against the actually retrieved source spans and flag unsupported or contradictory statements.
C:A second-model review can catch awkward language or broad topical mismatch, and it may look like a stronger evaluation than grammar alone. The defect here is a specific assertion that directly contradicts the retrieved handbook text. A fluent evaluator using only its general sense of policy could still rate that assertion as plausible. The required test is evidence-grounded factual consistency: identify each material claim, inspect its cited passage and flag unsupported or inverted meaning rather than relying on subjective confidence.
Question 14
A help-desk copilot must remember details during a customer's current support session, but the organization forbids an employee from seeing details from another session. The application mistakenly stores all customers' chat turns in one shared history collection. How should conversation state be designed?
- Retrieve recent turns by an approximate semantic match to the new customer's message, without including the authenticated session identifier in the retrieval filter.
- Store every customer's conversation in one shared encrypted history and retrieve recent turns by time window, without restricting records to the authenticated user and active session.
- Use identity- and session-scoped conversation state, retrieve only authorized turns, and enforce retention and deletion boundaries.
- Partition history only by the public support-case category, assuming all conversations about the same product are safe to include together.
Explanation
Correct Answer
C:Associate each conversation with an authenticated user and a unique session identifier; retrieve only turns authorized for that identity and active session. Apply explicit retention, expiration and deletion policies, with controlled access to any stored summaries or tool results. The model can then maintain continuity for the present conversation without inheriting unrelated user history. Authorization must be enforced in storage and retrieval code rather than delegated to model etiquette. This design directly resolves both the needed within-session memory and cross-session isolation requirements.
Incorrect Answers
A:Semantic retrieval is a valid way to find relevant conversation details, so this option resembles a helpful memory strategy. However, similar issues across customers can produce highly ranked but unauthorized turns from another session. The organization explicitly forbids cross-session disclosure. The application must first restrict the candidate history to the authenticated identity and active session, then rank relevant turns inside that permitted boundary.
B:Encryption at rest protects stored chat records against some storage-level threats but does not implement the required per-user authorization when the application retrieves them. A time-window query can return another customer’s recent troubleshooting turns, which the model may then mention in an answer. The solution must bind each history record and retrieval query to authenticated identity and session scope, with retention boundaries. A shared encrypted collection without filtering still leaks context.
D:A case-category partition can make retrieval faster and improve relevance, but it is not an authorization boundary. Several customers can ask about the same printer or outage while exposing different private account numbers, documents and service histories. Scoping stored turns only to a broad category still mixes customer sessions. The retrieval key must include verified identity and session rights, with suitable expiration and deletion controls.
Question 15
A Python team has a newly created Microsoft Foundry project that exposes models and agent-related project APIs. Its worker application must use Microsoft Entra credentials rather than embedding an API key. Which configuration is most appropriate for the stable Foundry SDK project-client pattern?
- Create the Foundry project client with the parent Foundry resource endpoint but omit the selected project path, assuming tenant credentials choose the project automatically.
- Construct the Foundry SDK client with the exact project endpoint and an approved Azure credential, then use its supported project APIs.
- Hard-code a long-lived administrative API key in the container image because a project endpoint cannot use identity authentication.
- Authenticate with DefaultAzureCredential but supply the Azure Resource Manager resource ID in place of the Foundry project's data-plane endpoint.
Explanation
Correct Answer
B:The Foundry SDK project client is initialized with the project endpoint, which includes the resource and project path, together with an approved Azure credential such as a managed workload identity. The calling principal also needs the project permissions required for the operation. Use the currently documented SDK package/API version and keep the endpoint in environment or managed configuration rather than a source-code secret. This enables access to model and agent project operations through the intended API while supporting keyless authentication and environment isolation.
Incorrect Answers
A:The parent resource endpoint is close to the appropriate service and is therefore a realistic configuration mistake. However, the documented project-client pattern needs the actual project-specific route, not an ambiguous resource host. A valid Microsoft Entra token identifies the caller; it does not silently determine which project's models and agents should receive calls. Specify the exact project endpoint and validate permissions.
C:Long-lived API keys embedded in images are a disclosure risk because images and deployment manifests may be copied, cached or inspected. Microsoft's project-client pattern supports Azure identity credentials, so it is incorrect to state that keyless auth is impossible. Even if a legacy operation permits key authentication, that would not fulfill the team's explicit no-secret requirement. A scoped managed identity is more appropriate when the environment supports it, and the app must be authorized for the needed project operations rather than granted a broad permanent administrative secret.
D:DefaultAzureCredential is an appropriate part of the keyless implementation, so this choice is attractive. The accompanying endpoint is the problem: an ARM resource identifier is intended for management and resource discovery rather than the project data-plane APIs used by the SDK. Correct credentials sent to the wrong host or path still fail. Use the project's documented service endpoint together with the approved identity.
Question 16
An insurer must keep inference processing within an approved Azure geography. Its architects are considering Global Standard, a Microsoft-defined data-zone deployment, and a geography-based Standard deployment for a supported model. Which deployment decision best addresses the stated geography-only inference requirement?
- Choose a geography-based Standard deployment supported in the target Azure geography and verify its processing boundary, rather than relying on resource location alone.
- Choose Global Standard because the Azure resource itself is created in the approved geography.
- Deploy the same generative model in a Global Standard model deployment, and apply a network rule limiting client connections to the insurer’s approved geography.
- Select a data-zone deployment whose permitted region list overlaps the insurer’s geography, without proving that every possible processing region is inside the one approved geography.
Explanation
Correct Answer
A:A geography-based Standard deployment processes prompts and responses within the selected Azure geography where the supported model and deployment type are available. Confirm actual regional support, quota and any features whose processing location differs from the inference path, and preserve the approved data classification and logging requirements. Unlike Global Standard or a broader data-zone option, the geography-based route targets the policy's requested Azure geography rather than an arbitrary global location. This is the most directly aligned choice under the facts provided.
Incorrect Answers
B:Global Standard can distribute inference processing to different Azure regions to serve throughput and capacity, even when the associated resource metadata is created in a selected geography. A location field alone does not guarantee that each prompt and output is processed there. If the insurer's policy restricts inference processing to its Azure geography, a global deployment can violate that requirement. The organization must choose a deployment type whose documented routing semantics match the compliance boundary rather than infer residency from a resource-group or portal setting.
C:Restricting which customer networks can reach an endpoint is a legitimate access-control technique, but it does not constrain where Microsoft processes inference after the request reaches a Global Standard deployment. The insurer’s requirement concerns server-side inference geography, not the location of callers or its VNet boundary. A supported geography-bound deployment with verified processing semantics is necessary; client network restrictions cannot turn global processing into geographic processing.
D:A data-zone deployment genuinely constrains eligible processing locations more than an unrestricted global choice, so it can appear compliant when the zone includes the insurer’s desired geography. Overlap is weaker than containment, however: other eligible locations in the zone can fall outside the policy's one allowed geography. Resource placement and data-zone labels must be mapped to the explicit processing boundary. A supported geography-based deployment is the more direct answer to the requirement as stated.
Question 17
A Foundry Python app receives an HTTP 404 for a model operation. The tenant's Foundry resource exists and the application has credentials, but its configured URL omits the project path and points at a general management endpoint. What should the operator check first?
- Retry the Foundry model request with a refreshed Microsoft Entra token and wider project Reader permissions while keeping the same management-plane URL that lacks the project path.
- Refresh the current Microsoft Entra access token and increase its project role grants before checking whether the URL contains the required Foundry project path.
- Retry the same Azure Resource Manager management URL with alternate Foundry SDK API versions until the client no longer reports 404, without inspecting the project-specific service endpoint or model deployment identifier.
- Verify the intended Foundry project endpoint, including its project name/path, and the exact deployed model identifier used by the request.
Explanation
Correct Answer
D:Compare the application's configured endpoint with the exact project endpoint shown for the intended Foundry project, including resource and project name. Then verify that the model deployment identifier passed in the operation belongs to that project or supported model path, with a compatible SDK version. A general ARM management URL or a route lacking the project cannot provide the same project APIs. This sequence directly checks the two concrete resource-resolution causes of a 404 without changing unrelated credentials or quota settings.
Incorrect Answers
A:Authentication failures and resource routing failures require different fixes. A new valid token or broader read permission might help a genuine 401 or 403, but the case describes an HTTP 404 against a management URL missing the required project route. Even a fully authorized identity cannot resolve a deployed model from the wrong data-plane path. Verify the intended Foundry project endpoint and actual deployment identifier before escalating permissions or changing quota settings.
B:Token renewal and role assignment are sensible investigations when a request fails with authentication or authorization errors. They do not repair a 404 caused by calling a management endpoint without the expected project route. The scenario already identifies an incomplete URL, and the application can authenticate. Granting broader privileges first would unnecessarily expand access while leaving the bad destination unchanged. Verify the actual project endpoint and model identifier before changing identity policy.
C:API-version compatibility can matter when upgrading an SDK, so an engineer might try an alternate version after a route error. Here, however, the configured URL is explicitly an administrative endpoint missing the project path. No supported model-data-plane operation can be discovered merely by cycling version strings against the wrong host. The proper first diagnostic is to check the Foundry project endpoint and deployment identity, then verify SDK compatibility on that correct route.
Question 18
A clothing retailer uploads an approved product photograph and requests removal of a small distracting object while keeping the garment, model pose, background, and overall style unchanged. Which image-editing method is best suited to that localized request?
- Submit the original photograph for full-frame image-to-image editing with a general removal prompt, but supply no mask or region constraint for the distracting object.
- Use a whole-image variation workflow seeded by the approved photograph and a low transformation strength, then accept the result if the unwanted object disappears without checking preservation outside that region.
- Use a model that supports masked image editing/inpainting, marking the object region and constraining surrounding content to remain consistent.
- Detect the distracting object with a bounding box and fill that box with a solid background-colored rectangle instead of reconstructing the occluded photograph.
Explanation
Correct Answer
C:With a model that actually supports masked editing, the application passes the original photograph and a mask covering the object to remove, together with instructions to reconstruct the masked area consistently with its surroundings. The team should inspect boundary artifacts and confirm that garment details, pose and background are preserved outside the edit region. The mask provides a controlled locality constraint rather than requesting a brand-new scene. Confirm mask semantics, file inputs and output dimensions in the supported model version before depending on that editing path.
Incorrect Answers
A:Full-frame image-to-image editing can produce a modified photograph and may sometimes remove an unwanted element. Without a local mask, however, the model is free to reinterpret the garment, pose, background, and lighting while fulfilling the prompt. Those details are explicitly approved and must remain consistent. A supported masked inpainting edit confines generation to the affected area and allows the team to inspect surrounding continuity, making it a more controlled answer to the retailer’s requirement.
B:Low-strength image-to-image variation can sometimes retain much of an original product photograph and remove distracting elements. It does not provide the same explicit spatial control as masking the object area, and small variations can still alter garment color, pose, labels or background details that the retailer must preserve. The requirement is a localized modification under a strict preservation constraint. A supported inpainting mask and inspection of the unchanged regions is therefore better aligned than relying on generally low variation strength.
D:Object detection can identify a useful region for editing, and a box overlay would hide the item at a very low implementation cost. It does not recover the actual background texture, shadows, clothing edges, or other scene details covered by the object. A visible rectangular patch could invalidate the approved product photograph and its consistent commercial appearance. A mask-guided inpainting model reconstructs the targeted pixels in visual context rather than simply concealing them.
Question 19
An e-commerce service receives 80,000 short product descriptions every night. The task is to translate the text directly into four target languages, preserve SKU tokens, and return results without asking a language model to invent product information. Which Azure service is the best primary choice?
- Use a general chat-model translation prompt with four output fields but omit protected terminology settings, then rely on the JSON schema to preserve every exact product SKU.
- Use Azure Translator Text Translation with the required source/target language settings and protected SKU handling.
- Use an LLM translation prompt for each target language with no terminology constraints or post-translation checks, relying on the model to preserve every SKU exactly.
- Use a custom bilingual dictionary to substitute individual terms in every description, without sentence-level translation or agreement handling for the four target languages.
Explanation
Correct Answer
B:Azure Translator provides text translation to supported target languages and is designed for multilingual text conversion without requiring unconstrained generative rewording. Configure source-language handling, target languages and batching appropriately, and protect identifiers such as SKUs through placeholders or supported markup handling so they are not altered in translated copy. Validate translations of brand terms and numeric specifications with representative samples before bulk production. This directly matches the nightly short-text translation task while keeping the application's structured product identifiers intact.
Incorrect Answers
A:A multilingual generative model can often produce readable translations and a structured schema can make the response easy for an inventory service to parse. A schema validates the shape of fields, not whether each identifier and technical term survives translation unchanged. At this volume, the business explicitly wants direct translation with SKU protection and repeatable target-language handling. Azure Translator with appropriate preservation controls is the primary fit; unconstrained chat translation is a riskier approximation.
C:LLM translation can be a valid approach when nuanced adaptation is required, so it is a plausible service choice. The business instead needs large-scale straightforward translations and strict preservation of alphanumeric catalog identifiers. An unconstrained generative prompt may paraphrase descriptions and alter a SKU unless identifiers are protected and tested. Azure Translator with suitable target-language settings and explicit protected-token handling more directly satisfies the fidelity and throughput requirements given here.
D:Terminology dictionaries help keep product names and specialized words consistent, and they can complement a translation service. They do not ordinarily translate complete product descriptions with grammar, number, and language-specific word order across four targets. Word substitutions alone can yield text that looks multilingual but is not usable catalog copy. The requested bulk translation path needs full supported text translation plus careful SKU protection, not only glossary replacement.
Question 20
A search indexer receives lengthy policy documents. Each file is too large for the selected embedding model's input limit, and the indexer currently sends one entire document to the embedding step. Which enrichment change most directly addresses the failure while retaining useful passage retrieval?
- Insert an Azure AI Search Text Split or supported layout-aware chunking skill before embedding, and map per-chunk output to the index.
- Enable truncation on the existing embedding requests so each oversized policy document is silently cut to the model’s maximum input length, leaving the indexer’s whole-document projection unchanged.
- Increase the embedding deployment’s tokens-per-minute quota and indexer batch size so the same whole-document requests are submitted faster, without splitting documents that exceed the per-input model token limit.
- Reduce the embedding vector output dimensions while continuing to send the entire oversized document to the embedding model in a single request.
Explanation
Correct Answer
A:A Text Split skill or other supported chunker divides oversized documents into manageable passages before the embedding skill receives them. Configure splitting by an appropriate token or length bound, map chunks to their parent document and retain identifiers and locations so answers can be grounded later. This fixes the model input-size violation without discarding document content. Tune overlap and semantic boundaries where supported to avoid cutting conditions from their exceptions. The indexer then creates embedding vectors per passage rather than attempting one too-large request for the entire file.
Incorrect Answers
B:Input truncation can prevent some model-length failures, so it is a realistic workaround that may make a job appear healthy. It discards the remainder of every long policy document and creates only one incomplete embedding for that file. Employees then cannot retrieve omitted clauses, exceptions, or later sections. The requirement explicitly preserves useful passage retrieval. Split content into retrievable chunks before embedding, with parent and passage identifiers, rather than silently discarding text.
C:Throughput quota and indexer batch size are important when many valid embedding requests are throttled, but this failure concerns the maximum size of each individual document sent to the model. More quota does not permit a request beyond the model input contract. The requirement also calls for meaningful passage-level retrieval, which requires independently addressable chunks and source metadata. Split the long policies before embedding instead of treating an input-size violation as a throughput shortage.
D:Some embedding integrations support configurable output vector dimensions, which can reduce index storage and search cost. That is different from the maximum amount of input text the model accepts in one call. The reported failure occurs before a vector is created because the document exceeds an input limit. Keeping the same oversized passage will therefore keep the failure. A Text Split or supported layout-aware chunking stage must reduce the input units before embedding.
Developing AI Apps and Agents on Azure (AI-103) Practice Tests