Question 130
A reimbursement agent invoked an approved finance workflow. Its API response timed out, the payment system shows a pending transaction with the same idempotency key, and the agent cannot determine whether a refund was committed. The user wants a definitive 'completed' message immediately. What is the safest next action?
- Retry the transfer with a new idempotency key until the API responds success, regardless of possible duplicates.
- Say the refund is completed because the model intended to make the transfer and earlier steps were approved.
- Pause further side effects, reconcile transaction status with the payment system by the original identifier, and escalate unresolved completion uncertainty.
- Wait until the pending payment record no longer appears in the local cache, then submit a new reimbursement with a fresh idempotency key without checking the finance provider's authoritative status.
Explanation
Correct Answer
C:Suspend additional payment writes and use the existing transaction or idempotency key to inspect the payment processor's durable status. Correlate workflow traces, ledger records and settlement events, and apply bounded resolution rules for pending, completed or failed states. If the evidence remains contradictory, escalate to supervised financial reconciliation rather than guess, and inform the user accurately that completion is not yet verified. Preserve audit identifiers and approval context. This is an operational finality problem, not a prompt or response-style issue, and avoiding duplicate side effects takes priority over producing immediate certainty.
Incorrect Answers
A:Repeating a payment with a new idempotency identifier can create a second financial side effect while the original request is still pending or already committed. A timeout is not proof of failure. The application must preserve the original transaction identity and query authoritative status before deciding whether a retry is safe. Unbounded new-key retries would make the ambiguity worse and could debit the organization twice.
B:Tool intent and employee approval are prerequisites, not evidence that an external payment actually settled. The observed timeout and pending transaction mean the outcome is unknown. Saying 'completed' would mislead the customer and might trigger dependent actions that assume money was returned. The agent must report a pending/reconciliation state until authoritative completion is confirmed.
D:A disappearing cache entry can reflect expiration or synchronization delay rather than transaction failure. The financial workflow already shows a pending operation linked to the existing idempotency key, so the payment may still complete at the provider. Creating a fresh key risks duplicate disbursement. Reconcile the authoritative transfer state with the original transaction identifier before declaring success, failure or any safe retry.
Question 131
An AI assistant architecture contains a Foundry model deployment and a separate Azure AI Search index. Developers provision the model but forget the identity, network and index configuration, then assume that a working chat completion proves retrieval-augmented responses are ready. Which dependency plan is appropriate?
- Deploy the Foundry chat model and an Azure AI Search index using default identities, but omit the data-source/indexer connection and assume the model project will populate it.
- Provision and authorize distinct model-inference and search components, connect retrieval through supported tools and verify both paths together.
- Use a single broad Azure subscription management role to authorize the model and Search resources, without configuring the data-plane roles required for indexing and querying.
- Embed a limited set of approved policy passages into the model's system prompt and omit the Search retrieval-tool connection, assuming a working model call proves fresh RAG integration.
Explanation
Correct Answer
B:Define the Foundry model deployment, project/application identity, Azure AI Search service/index, data ingestion and query-time permissions as separate resources with appropriate network and DNS dependencies. Provision each in a supported region and connect retrieval through the application's tool or knowledge integration, then test an authenticated question that requires a known indexed document and a valid citation. Verify that neither a working model call nor a working Search query alone proves the full end-to-end answer path. Preserve tenant and document authorization and current model/API compatibility. This validates a complete grounded solution, rather than a partial deployment whose model succeeds in isolation.
Incorrect Answers
A:Provisioning both named services resembles the intended RAG architecture more closely than a model-only design. Yet an empty search index supplies no newly ingested PDF passages, and default credentials do not necessarily authorize each data-plane operation. The team needs explicit data ingestion, source/index configuration, identity permissions and network paths. A model deployment and an unused index existing in the same subscription do not create a working knowledge pipeline.
C:A management-plane role can provision resources and therefore looks convenient for deployment automation. It does not necessarily grant the specific data-plane operations that Search indexing, document reads and model inference require. The missing configuration involves service endpoints, credentials and ingest connections. Assign appropriate scoped data-plane rights and establish the actual indexer/query path instead of treating subscription resource administration as the entire application authorization design.
D:Static policy context can support a prototype that answers a fixed handful of questions, and adding approved passages to a prompt may look similar to retrieval grounding. It does not connect the live Search index, enforce document authorization at query time or track changes as policies are indexed. The architecture explicitly requires model and search paths as separate deployed dependencies. Provision both, configure identities/networking and test actual retrieved evidence in an end-to-end question.
Question 132
A support agent's trace shows that it answered customer B using a warranty serial number previously mentioned only by customer A. The two conversations have different authenticated principals, but a shared 'memory' tool is queried without an owner filter. What should investigators inspect and correct?
- Attach a tenant identifier to each memory record but perform a broad semantic retrieval across tenants, filtering the visible answer only after the model has already received the retrieved passages.
- Redact customer names from stored memory summaries but leave serial numbers and historical conversation passages shared across customer sessions for retrieval relevance.
- Add the authenticated customer ID to the coordinator prompt while keeping the shared-memory tool query unfiltered, relying on the model to disregard unrelated user records.
- Trace which principal owns each memory record and enforce caller/session ownership at memory read and write time.
Explanation
Correct Answer
D:Use correlated trace and memory-read records to identify the authenticated principal, session ID, memory object owner and filter applied when the wrong serial number was retrieved. Enforce trusted caller ownership or an approved delegated access policy at both memory writes and reads, so B can never fetch A's private support state. Test negative cross-principal cases and revocation, retaining privacy-safe audit IDs for diagnosis. A prompt telling the agent to respect privacy is not sufficient if the tool returns unauthorized data. This focuses on incident root cause and memory ownership rather than the general choice to persist state.
Incorrect Answers
A:Tenant-tagged memory records are a useful prerequisite for secure retrieval, so the idea sounds close to a complete solution. But filtering only the displayed response occurs too late: the model context and tool traces have already crossed the authorization boundary, which explains how customer B could receive customer A's serial number. Enforce authenticated ownership before the memory store returns records and verify both reads and writes remain correctly partitioned.
B:Removing direct names can reduce one class of exposure, and anonymized shared retrieval may be appropriate for carefully curated public examples. Here serial numbers themselves can identify sensitive customer equipment, and the source sessions belong to different authenticated principals. Simply hiding names does not isolate the records or prevent cross-customer retrieval. The secure repair is to enforce principal and session ownership in the underlying memory read/write path, with appropriate retention and deletion controls.
C:Passing authenticated identity into context can help an agent personalize a response and is a useful piece of session state. It is not a secure filter on a memory tool that still returns both customers’ records. Once customer A’s warranty details have entered customer B’s context, the disclosure boundary is already crossed. Enforce principal- and session-scoped read/write authorization in the memory store, and trace records using their actual ownership metadata.
Question 133
A training publisher generates an audio narration and a short instructional video as separate assets. Reviewers report that the voice describes step three while the video still shows step one. Both media files play successfully, but their timelines were never aligned. What post-production design is required?
- Add explicit time alignment between narration segments and visual scenes, then verify synchronization at key transitions before export.
- Align the start timestamps of the narration and video, but assume their later scene changes remain synchronized without inspecting speech duration or timecodes.
- Freeze the video at a common transition point while the narration plays and then resume playback at the next scene change, assuming occasional still frames eliminate the need to align speech segments with visual action timings.
- Generate an audio transcript with word timestamps, then export the original video unchanged without mapping spoken steps to visual segment boundaries.
Explanation
Correct Answer
A:Map each narrated instruction to the corresponding visual scene or timestamp range, adjust timing or edit boundaries, and verify the combined media after rendering rather than separately testing two successful files. Use time codes, captions or an edit decision list to find where step-three narration begins relative to step-three footage. Check transitions and variable speech durations, preserving an accessible caption track where applicable. This is an audiovisual synchronization problem; generation of correct independent content does not establish temporal coherence. The final training video must be reviewed as a combined time-based artifact.
Incorrect Answers
B:Synchronizing the first frame and the audio start is a real part of audiovisual assembly. It cannot guarantee that the voice describes the correct step several minutes later when speech pacing or clip durations differ. The review specifically found step three narration over step one footage. Compare segment-level timing and visual events, adjust the timeline or narration timing, and validate the combined export.
C:Pausing footage can sometimes be a legitimate instructional technique, particularly when the narrator explains a complex diagram. It cannot by itself synchronize every subsequent narration cue with the intended scene. Freezing one frame may make a segment appear aligned while later spoken steps still reference the wrong visuals. The publisher needs explicit segment-level timestamps or cue points and a review of audiovisual alignment at important transitions before exporting the finished course.
D:Time-aligned transcripts can help an editor locate spoken instructions, so this is a credible diagnostic input. But timestamps alone do not repair a mismatch between the step named in the audio and the step shown in the footage. The assembly process must use those annotations to align the actual scene sequence, followed by audiovisual review. Leaving the video unchanged preserves the known timing error.
Question 134
An internal clinical-note analyzer extracts patient complaints and classifies follow-up topics. The notes include names, phone numbers and full addresses, but the analysis vendor should receive only deidentified text where clinically feasible. What processing control should be added before sending the text downstream?
- Pseudonymize only patient names but leave full addresses and phone numbers in the clinical note forwarded to the external analyzer.
- Use HTTPS to encrypt the clinical notes in transit, then send all raw identifiers to the external analyzer and rely on its confidential-data agreement instead of reducing the fields provided.
- Detect and redact or pseudonymize appropriate personal identifiers before analysis, preserving a controlled mapping only where authorized.
- Mask names and addresses only in the final classified report after the vendor has already processed the original raw clinical note and its contact fields.
Explanation
Correct Answer
C:Apply suitable PII/PHI identification and redaction or pseudonymization to the relevant fields in clinical notes before passing content to a service that should not receive direct identifiers. Keep any reversible mapping behind a separate authorized security boundary, validate that clinically necessary meaning remains intact, and inspect false negatives on names, addresses and account numbers. Deidentification is not guaranteed by one model score, so combine deterministic rules, service-supported entity detection and controlled review. Document any legal or clinical exceptions requiring identifiable processing, with approved consent, region and retention rules. This reduces unnecessary data exposure while preserving useful follow-up classification.
Incorrect Answers
A:Replacing direct patient names is a useful deidentification step and can reduce some immediate disclosure risks. The notes also include phone numbers and full addresses that can identify a person or combine with other attributes to reidentify them. The vendor should receive only clinically necessary data under the approved policy. Detect and remove or consistently pseudonymize relevant identifiers before transfer, preserving any authorized mapping in a separate controlled store rather than treating name masking as complete privacy protection.
B:Encryption and supplier privacy agreements are important safeguards, especially when clinical data crosses organizational boundaries. They do not change what personal information the receiving analyzer actually obtains. The stated rule is to deliver deidentified text wherever clinically possible, so names, phone numbers and full addresses need review before the transfer. Data minimization, controlled pseudonym mapping and context-appropriate redaction are separate from transport confidentiality. TLS cannot be used to claim identifiers have been removed.
D:Output redaction can reduce downstream exposure in reports or dashboards and may be an appropriate second layer of protection. It occurs too late to meet the stated limitation on what the analysis vendor receives. If the external service ingests raw addresses and phone numbers, those identifiers have already crossed the boundary regardless of what the final report displays. The workflow must identify and remove or pseudonymize sensitive values before sending input, with any authorized reidentification mapping retained under separate controls.
Question 135
A retail search assistant returns several semantically relevant help articles about refund rules. The business wants its currently effective, approved policy document ranked above informal discussion notes even when the notes use more query-matching phrases. The search service already supports semantic relevance and structured fields identifying approved policy status. What ranking rule is appropriate?
- Boost recently uploaded help notes in the ranker and use their greater freshness as a substitute for filtering by official policy approval and effective dates.
- Apply a trusted approved-policy filter or authority preference and then rank the eligible evidence semantically, retaining effective-date checks.
- Index every refund-rule discussion as a full policy candidate and rely on semantic reranking to distinguish approved documents from informal notes after removing approval metadata.
- Apply semantic reranking across all indexed notes and policies, using the highest semantic score as the sole authority signal without filtering by approval or effective date.
Explanation
Correct Answer
B:Use trusted structured metadata to require currently effective approved policies for authoritative answers, or explicitly boost validated policy records within a governed ranking strategy when multiple eligible source types are permitted. Then use semantic reranking to select the passages most relevant to the specific refund question, while preserving document IDs, dates and citations. An approved source is not necessarily relevant to every query, and a relevant source is not automatically authoritative; combine both constraints. Test that a chat note cannot outrank a binding policy when the policy answers the question. This makes business authority and semantic relevance complementary rather than interchangeable.
Incorrect Answers
A:Upload time is a useful document ranking feature, especially when the business wants new guidance to replace stale content. Informal discussions may be uploaded after an approved refund policy and still lack authority. Recency alone can therefore promote an inaccurate or superseded note above the valid rule. Use trusted approval status and effective-date fields to select eligible evidence first, then rank that evidence for semantic relevance and responsiveness.
C:Semantic ranking is designed to prioritize passages that appear relevant to a query, so it can surface the most topically useful answer snippets. It does not inherently encode which document went through the company's formal approval process or whether a specific policy version is effective. Removing approval metadata destroys the required authority signal. Keep and enforce trusted status and dates, then rank the authorized current documents for relevance rather than collapsing authority into similarity.
D:Semantic rerankers can improve query relevance and often surface passages with stronger linguistic support than raw keyword counts. They do not determine whether a document has been formally approved or remains effective under company policy. An informal note might match the query better while contradicting the current authorized refund rule. Constrain the eligible corpus by approval, access and validity first, then use semantic ranking among the permitted evidence.
Question 136
A European client contract requires all inference content processing to remain within an approved EU geography. An engineer proposes a globally routed model deployment to improve availability, arguing that the resource was created in a European subscription. Which deployment selection principle should control the choice?
- Choose a deployment whose documented processing geography and supported model features meet the EU-only requirement, rather than infer locality from subscription or resource name.
- Use global routing because its region labels automatically mean all processing stays where the customer's browser is located.
- Use an EU-hosted Azure Storage account for saved prompts and responses while sending inference requests to a globally routed model deployment.
- Put the inference gateway in an EU virtual network but leave its downstream model deployment on Global Standard, assuming the gateway determines every processing region.
Explanation
Correct Answer
A:The contract constrains where inference content is processed, so choose a deployment type and region or data-zone arrangement whose current Microsoft documentation and contractual terms satisfy the EU geography requirement for the selected model. Verify processing/data-handling semantics, fallback routes and feature availability; do not infer them solely from the subscription name or where the resource's management metadata lives. Confirm any logging, storage and linked retrieval services have compatible residency as well. Global and regional deployment types can differ materially in routing guarantees. The design must be driven by documented processing location, not optimistic interpretation of a portal label.
Incorrect Answers
B:Global routing can use capacity outside the customer's preferred region, depending on the service's current deployment contract. A browser in Europe does not force every model processing operation to stay there. The strict EU-only requirement must be checked against the chosen deployment type and its documented geographic behavior. Global availability is not a substitute for contractual locality.
C:Regional storage is a legitimate control for data at rest, which makes this option deceptively close to the insurer's compliance goal. The contract specifically restricts inference processing, and a globally routed model may process the prompt outside the approved geography even though saved records remain in EU storage. Check the model deployment type and documented processing route separately from storage location.
D:An EU gateway can control where the client's network traffic first enters Azure and may improve private connectivity. It does not by itself constrain where a global deployment executes model inference after the request is accepted. The user's policy concerns processing location, not only the ingress address. Select a supported geography-based deployment and verify the complete applicable processing boundary, rather than infer residency from gateway placement.
Question 137
A policy-answering agent is configured with a very small maximum completion budget. Its responses stop mid-citation after explaining the correct rule, and the remaining required exception is omitted. The team wants concise answers but not incomplete evidence. What tuning decision should it make?
- Keep the completion cap fixed and add a stricter instruction to always mention citations and exceptions, assuming prompt priority overrides the available token budget.
- Remove all source citations and reduce response formatting overhead, leaving the same too-small completion-token budget for the missing policy exception sentence.
- Adjust the answer budget and output structure to reserve room for required exceptions and citations, verifying completeness on representative cases.
- Increase the input context window so the exception clause is included in the prompt, while retaining the same small maximum completion limit that truncates the answer.
Explanation
Correct Answer
C:Analyze truncation events and completion-token usage, then set a supported maximum output allowance sufficient for the expected answer, exception language and citation references. Use a structured response that prioritizes required fields, avoids gratuitous verbosity, and explicitly signals incomplete results rather than silently stopping at a token cap. Run regression cases where a decisive policy exception appears near the end. A larger budget is not automatically better for every request, so measure cost and latency against a completeness rubric. This specifically fixes missing mandatory answer components rather than simply maximizing generation length.
Incorrect Answers
A:Prompt instructions can guide format, but they cannot create output capacity beyond the endpoint’s enforced completion limit. The answer already truncates halfway through a citation and omits a mandatory exception, so adding stronger wording may simply move the cutoff. The team should adjust the budget and response structure, then test that the legal exception and evidence actually fit. A concise answer is acceptable only when it remains complete for the policy question.
B:Shorter citations may save a few output tokens, but the scenario describes a missing substantive exception because the answer is truncated by a response budget. Removing provenance undermines the policy application's auditability and may not free enough tokens for the relevant condition. Adjust the supported output-token cap and answer structure while preserving the required exception and its citation. Input context length and visible formatting do not substitute for a sufficient completion budget.
D:Adding relevant context is useful when the assistant omits an exception because retrieval failed. Here the answer already starts with the correct rule and stops mid-citation due to a completion budget, making the bottleneck output-side rather than missing source text. A larger input may even increase token consumption without creating more allowed output. Set a sufficient bounded response budget and preserve full citation completion.
Question 138
A Foundry project stores agent configuration but a developer's selected model appears only in another resource and is not available as a deployment to the project's runtime. Authentication succeeds and tool permissions are correct. What must be provisioned or associated before this project can invoke that chosen model?
- Update the agent’s model reference to the catalog model-family name and retry through the current Foundry project, assuming any catalog entry is callable without an accessible deployment association.
- Attach or create a supported model deployment accessible to the intended project and refer to its actual deployment identifier.
- Create a project-specific model alias in application configuration without deploying or connecting the corresponding model to the project’s accessible runtime.
- Update the client’s default model value to the public catalog family name and keep its existing project endpoint, without verifying that a callable deployment of that family exists in the project.
Explanation
Correct Answer
B:Confirm that the chosen model/version is supported in the project or associated resource and region, create or expose an appropriate deployment under the supported Foundry model catalog process, and capture its exact deployment identifier for the agent runtime. Verify quota and allowed access after provisioning, but do not treat existing tool permissions as proof a model has been deployed. Test one inference against the intended project and inspect routing. This addresses missing model availability at the resource layer; it is different from a deployment that exists but is hidden by wrong credentials or endpoint configuration.
Incorrect Answers
A:Model catalog names are valuable when selecting compatible capabilities, and copying the correct family label can fix a spelling mismatch in some configuration screens. The scenario explicitly says the model is deployed under another resource and is not available to the current project runtime. A catalog entry alone does not create an authorized callable deployment. The engineer must provision or link a supported model deployment in the appropriate project context and use its actual identifier.
C:Aliases are convenient for promoting model versions without changing every caller and may simplify environment configuration. An alias does not provision capacity or grant access to a deployment that exists only in a different resource. Authentication to the Foundry project can succeed while model resolution fails. Verify the model’s availability and deployment association for the intended project, then configure the actual deployed identifier and role grants rather than rely on a local label.
D:The model catalog identifies available families, but a Foundry project normally invokes a configured deployment or compatible model route. Changing a client string to a marketing family name does not create that deployment or ensure an agent is bound to it. The project must have an available supported model, the agent must reference the right deployed identifier, and its caller must be authorized. A catalog label alone does not repair a missing project-level binding.
Question 139
A team asks the same language-model family to generate troubleshooting answers and to judge those answers. The evaluation reports perfect scores on the prompt examples, but human reviewers still find omitted safety steps. What evaluation caveat and correction best addresses the misleading result?
- Reuse the same model to generate expected answers and judge candidate answers, then label unanimous agreement as independent verification without an external rubric or deterministic source tests.
- Let the model judge answers using a free-form helpfulness prompt and compare its scores across runs, without defining expected factual claims or keeping a stable grading rubric.
- Randomize evaluation prompts and generation sampling, but continue relying exclusively on the same model family to grade its own safety-critical omissions.
- Recognize correlated same-model bias and include deterministic checks, source-grounded rubrics and independently reviewed difficult cases.
Explanation
Correct Answer
D:Document that the generator and judge are from the same model family and therefore may have correlated blind spots. Add deterministic assertions for mandatory safety steps, authoritative source-grounded evaluation criteria, and a held-out set containing difficult omissions and misleading plausible answers. Have qualified reviewers inspect consequential disagreements or a representative sample, and compare model scores with those independent labels rather than reporting model self-agreement as certification. Record model and rubric versions for reproducibility. This corrects the inflated confidence while retaining useful automated evaluation for lower-risk cases.
Incorrect Answers
A:Same-model evaluation can be useful for triage and consistency checks, especially when a large test set needs approximate scoring. Shared training patterns and reasoning errors make its agreement correlated rather than independent evidence. A confident model may accept a plausible but wrong answer that it would also generate itself. The team needs source-grounded expected criteria, deterministic checks where possible and carefully scoped human or independently derived evaluation cases for material risks, rather than claim independent assurance from identical model behavior.
B:Free-form model judging can capture readability and subjective helpfulness, and repeated scores may show some broad trends. It does not guarantee that a technical or policy answer matches an authoritative source. Without stable grading criteria and expected claims, the evaluator can reward confident prose even when the answer invents a key fact. The question specifically addresses correlated evaluation and validation risk, so deterministic source-based assertions and a consistent rubric are necessary alongside any model-based judgment.
C:Prompt perturbations can be useful for testing how stable an evaluator is, and a variety of sampled answers may reveal errors missed by fixed examples. This does not remove correlated blind spots when the generator and judge share model behavior and evaluation criteria. The known problem is omitted safety steps even as self-judging scores remain perfect. Independent source-grounded rubrics, deterministic checks, and reviewed difficult cases are needed to challenge those scores rather than merely vary prompts.
Question 140
An image-editing application uses an inpainting API. A customer wants to replace only the gray wall behind a product while preserving the product itself. After the developer supplies a mask, the service changes the product and leaves the wall unchanged. The mask was created with opposite alpha semantics from those expected by the selected API. What should be checked?
- Invert the entire mask because its preview looks visually reversed, then submit it without checking the editing endpoint’s alpha convention or confirming which pixels the service will modify.
- Trace the wall boundary with a segmentation model but submit its raw product-foreground mask unchanged to the inpainting endpoint without checking the endpoint alpha convention.
- Inspect the documented mask transparency/opaque-region semantics and verify the target pixel region, inverting the mask if required.
- Increase the inpainting prompt emphasis on preserving the product and reducing background changes, but reuse the same mask with unverified alpha semantics for every request.
Explanation
Correct Answer
C:Inspect how the exact image-editing endpoint interprets transparent and opaque mask pixels, including alpha format, orientation, resizing and coordinate alignment. Visualize the final mask over the product and wall to confirm that only the gray background is selected, then invert or regenerate it if its semantics are reversed. Test a small predictable edit before allowing full output, and preserve the original product image for comparison. Different models/APIs may use different conventions, so do not assume one alpha rule universally. This fixes the actual region-selection failure rather than attempting to compensate with prose.
Incorrect Answers
A:Inverting a mask is sometimes exactly what a model-specific editing contract requires, which makes this a credible troubleshooting step. But a visual preview alone does not establish how transparent versus opaque pixels are interpreted by the selected API. The wrong inversion could remove the product again or target the whole frame. This case specifies an alpha-semantics mismatch, so the engineer should consult the actual mask contract and verify the wall region before deciding whether inversion is appropriate.
B:Segmentation is a sensible way to create a precise edit mask around a product and its background. The defect is not the ability to locate the wall; it is that the service interprets the submitted alpha values in the opposite way. Reusing a foreground mask unchanged could request edits to the product itself, reproducing the current failure. The developer must inspect transparent-versus-opaque editing semantics, visualize the effective edit region, and invert or regenerate the mask appropriately.
D:Prompt instructions about preserving the product can influence a capable image-editing model and are useful alongside masking. The observed problem comes from which pixels the API interprets as selected for editing: the product changes while the wall stays the same. Stronger textual instructions do not correct an inverted or misinterpreted mask. The developer must check the endpoint-specific transparency convention, inspect the pixel region, and invert or rebuild the mask when warranted before optimizing prompt wording.
Developing AI Apps and Agents on Azure (AI-103) Practice Tests