Question 180
A multilingual virtual receptionist receives live calls in several languages. The caller’s language is not specified at session start, and the team wants to choose appropriate recognition and translation settings rather than assume every conversation is English. What should it implement?
- Initialize every call with an English-only speech recognizer and switch locales only if the generated English transcript looks incoherent to a downstream language model, without using the service's supported language-ID process.
- Infer the caller’s language from the country code in the incoming telephone number, then choose that locale for recognition and translation without listening to the speech.
- Use the supported speech-language identification capability with its valid candidate locale set or other documented constraints, then route recognition/translation based on the detected language and confidence.
- Run a single multilingual speech recognizer with a fixed English locale for all calls and rely on subsequent text translation to repair words it misrecognized in other languages.
Explanation
Correct Answer
C:Use a supported language-identification mode for live speech with an appropriate set of possible locales and its documented continuous or at-start detection behavior. Apply the detected language and a confidence or clarification policy when configuring downstream speech recognition or translation, while avoiding unsupported assumptions about arbitrary unlimited locale discovery. Test bilingual switchers, short greetings and noisy calls separately, because very short audio can be ambiguous. This establishes an evidence-based routing decision instead of treating outgoing voice selection or language guesses as reliable recognition.
Incorrect Answers
A:An English recognizer can be an appropriate default for a known English-speaking customer segment, and transcript-quality monitoring can detect some misrecognition. Here the caller's language is unspecified across several supported languages. Recognizing non-English speech as English may produce confident but meaningless text, so a downstream model cannot reliably infer the original language from the corrupted transcript. Supported automatic language identification with a valid candidate set is the direct early control; it chooses recognition and translation handling before treating a potentially distorted English transcript as evidence.
B:Telephone country codes can be useful routing hints, and a call-center system might use them to prioritize likely language choices. They are not reliable proof of the language spoken by a traveler, expatriate, multilingual household, or customer using a forwarded number. The stated requirement is to identify language from the actual live audio. Use supported speech-language identification with an appropriate candidate locale set and confidence handling before selecting downstream recognition and translation paths.
D:A centralized recognizer and translation step could simplify the receptionist's implementation if all callers used one source language. This service receives unknown spoken languages, however, and incorrect initial recognition may discard or distort words before translation sees them. A translator cannot reconstruct source audio that the recognizer incorrectly decoded. The application needs supported speech-language identification or documented multilingual recognition constraints, followed by language-appropriate recognition and translation routing.
Question 181
A health-policy assistant can summarize a document and return plausible section numbers, but reviewers need to open the precise paragraph and verify each benefit condition. Its document analyzer returns pageNumber, sectionHeading and sourceSpan for every extracted passage. How should these fields be used?
- Include page and section labels in the answer prompt and ask the model to reproduce matching citation text, without binding those labels to a validated sourceSpan identifier in the UI link.
- Store only a human-readable page number beside each generated benefit summary and omit passage offsets and document version identifiers to save index storage.
- Store only source-document URLs and section headings for citation display, without retaining the analyzer’s page and span offsets that identify the exact paragraph.
- Carry validated page, heading and span references into the answer’s citation mapping, and render only source links that resolve to authorized original evidence.
Explanation
Correct Answer
D:Store analyzer pageNumber, sectionHeading, sourceSpan and document/version identifiers alongside each retrievable passage. When generating an answer, associate material claims with the actual retrieved passage IDs and render a citation only if it resolves to an authorized location in the preserved original document. Include a check that a source link opens the right page and paragraph rather than merely containing plausible numbers. This is passage-level provenance from extraction through response, independently useful even when a natural-language summary sounds correct.
Incorrect Answers
A:Page numbers and headings help users navigate a long source document, and prompting a model to mention them can improve a summary's apparent usefulness. The requirement is an opening link to the exact paragraph that supports each benefit condition. Citation text written from a prompt can be fabricated or confused with another section. Carry analyzer-provided document, page and span identifiers into a validated citation mapper, checking user authorization before displaying the link.
B:Page numbers are a legitimate part of source attribution and can be compact enough for many document-search interfaces. They do not uniquely identify a precise paragraph when several similarly numbered pages or document revisions exist. The health-policy reviewer needs the actual source span and section context to verify a condition. Retain the validated analyzer metadata through indexing and result rendering instead of storing only a summary and an ambiguous page label.
C:Document-level URLs and headings are valuable navigation metadata and can make generated answers appear traceable. The reviewer needs to verify the precise condition in a particular paragraph, which requires the source span and page position the analyzer already returns. An article-level link may land on the wrong clause or outdated version. Carry page, heading and source-offset metadata into a validated citation mapping, and render only references that resolve to authorized original evidence.
Question 182
An internal knowledge assistant receives questions such as “How do I undo access to a departed contractor?” but the manuals use formal headings such as “Revoke external identity privileges.” A keyword-only index has high precision for exact titles but misses these paraphrases. What should the search architect add?
- Add a compatible semantic vector retrieval branch with a suitable embedding model, evaluate paraphrase recall and combine it with lexical search where exact identifiers remain important.
- Maintain a manually curated synonym list for a few known withdrawal phrases, then force every query through exact keyword matching and reject paraphrases not present in that list.
- Add an exact keyword analyzer and require the question to match the manual heading's literal wording, without any semantic or synonym expansion.
- Enable semantic reranking only after the current keyword query has retrieved its top documents, without adding candidate generation that can find policies whose titles share no query tokens.
Explanation
Correct Answer
A:Encode approved manual passages and queries using compatible embedding models and retrieve semantic neighbors so wording such as “undo access” can match “revoke privileges” even without shared keywords. Keep document authorization and currency filters, and use hybrid lexical-plus-vector retrieval if product IDs or policy codes still require exact matching. Validate retrieval recall on labeled paraphrase pairs and check for false matches between similar identity operations. This targets the lexical mismatch that caused the miss, rather than relying on generation to compensate for absent evidence.
Incorrect Answers
B:A synonym map can improve retrieval for a bounded vocabulary, and some search systems support synonym expansion for lexical queries. The user's examples illustrate open-ended paraphrases that are not simply one-to-one dictionary substitutions, so a small maintained list remains brittle and fails unseen language. The catalog already achieves precise title matching and needs conceptual recall for varied wording. A compatible vector branch, assessed against paraphrased evaluation queries and blended with lexical search where needed, addresses that broader mismatch.
C:Keyword matching is appropriate for exact identifiers and can perform well when the user's terminology matches indexed text. Here users paraphrase formal headings, such as 'undo access' versus 'revoke privileges', so an exact literal match can miss an otherwise relevant procedure. Retain lexical precision where useful but introduce semantic/hybrid retrieval or curated synonym handling and validate results against the authorized manuals.
D:A semantic reranker is relevant to the quality of a search result list and can improve ordering when a relevant document reaches the candidate set. It cannot reliably recover a policy absent from that set because the lexical first stage matched none of the user's wording. Here the problem is recall across paraphrases with formal headings, before reranking. Adding an embedding-based candidate path provides semantic matches that lexical search may never return; reranking can be evaluated afterward as a complementary step.
Question 183
A new agent guardrail blocks ordinary requests to book accessible hotel rooms because its policy classifier labels the word “accessible” as a restricted data-access command. Genuine malicious requests are still being rejected. How should the team adjust the protection without turning it off?
- Lower the guardrail’s sensitivity globally until accessible-room requests are accepted, and release that rule without testing whether previously rejected malicious prompts can now pass.
- Add a special-case policy exemption for every request containing the word accessible, so those hotel bookings pass without evaluating the other prompt content for malicious instructions.
- Review the misclassified examples, adjust the applicable rule or threshold within supported controls, and rerun both benign and attack regression tests before deployment.
- Add an application-layer allowlist for common hotel phrases without measuring legitimate accessibility requests or testing whether its new pattern rules still trigger false refusals.
Explanation
Correct Answer
C:Label representative legitimate accessibility requests and comparable malicious data-access prompts, identify the filter rule or classifier boundary producing the confusion, and adjust its supported policy configuration without weakening unrelated controls. Re-run a regression suite measuring false positives on authorized bookings and attack success on genuinely disallowed requests. Escalate ambiguous cases for review and preserve safe decision traces. This makes guardrail tuning evidence-driven and maintains both usability and security, rather than assuming one blocked word is always malicious.
Incorrect Answers
A:Threshold calibration is a legitimate way to reduce false positives when a safety classifier is overly sensitive. The proposed global untested reduction is inadequate because the same rule also blocks real attack attempts, and widening it might admit those requests. The scenario gives a specific misclassification involving an ordinary travel word. Correction should be supported by labeled benign and adversarial examples and followed by regression testing, not a blanket sensitivity decrease with no measured safety boundary.
B:An allowlist for well-understood benign phrases may be part of a carefully scoped safety calibration, and it directly targets the observed false positive. The proposal is too broad because a malicious request could include the same word and bypass an otherwise effective protection. The team must evaluate the full intent and surrounding evidence, not make one token a universal exemption. Labeled benign accessibility requests and adversarial variants should guide a narrowly controlled rule change with regression testing before deployment.
D:An allowlist may suppress certain known false positives and can be a practical mitigation in a tightly scoped classifier. It may also miss natural paraphrases of accessible-room requests and introduce gaps in disallowed intent detection. The agent has a measurable over-refusal problem after a guardrail change. Evaluate representative allowed and harmful cases, inspect the relevant policy categories, and tune thresholds or routing based on errors rather than rely on a few hardcoded phrases alone.
Question 184
A document-answering agent has a broad system prompt saying it may “use any available context to be maximally helpful.” Its retrieval tool returns authorized public manuals plus unrelated confidential employee data in a shared cache. The agent sometimes includes private names in answers even when customers ask only about products. What must change?
- Add the phrase “please avoid private information” to the broad prompt but continue providing the full shared cache to all users.
- Enforce requester-scoped data retrieval and cache partitioning outside the model, and define an explicit agent data-use policy that excludes unrelated private records.
- Remove confidential employee names from the displayed citations while leaving the shared cache unfiltered and available to the model during answer generation.
- Use a stronger language model and an instruction to anonymize employee names after retrieving the entire shared cache, without enforcing authorization before the private passages enter context.
Explanation
Correct Answer
B:Partition retrieval and response caches by authenticated identity, access scope and relevant document version, and filter every candidate before it reaches generation. Define the agent’s task-specific data policy so product answers cannot draw on unrelated employee records, then validate cross-account negative tests and review cached-result handling. Keep identities and tooling permissions least privileged, and record safe source references for investigation. This combines an enforceable application data boundary with a clear instruction hierarchy instead of trusting the model to suppress unauthorized context voluntarily.
Incorrect Answers
A:A politeness reminder cannot remove information already placed in a model context or guarantee it will never be summarized, inferred or leaked. The broad cache is the actual authorization defect. Prompt instructions may complement privacy controls, but they cannot turn unauthorized data into safe input after exposure. The business needs server-enforced separation of public product evidence from confidential employee records, not a stronger promise that the model will ignore what it has seen.
C:Redacting displayed citations can reduce some accidental exposure in the interface, and proper output filtering is useful as defense in depth. The confidential text would already have reached the model from the shared cache, where it could be summarized or retained elsewhere. The system needs per-request authorization and cache partitioning before retrieval results enter the prompt. Presentation-only redaction does not prevent cross-user data access or satisfy the agent’s data-use boundary.
D:Anonymizing names in the final response can reduce a narrow disclosure risk, but the model may still leak employment details, facts and identifiers from restricted passages that it was never authorized to read. Larger models do not provide a deterministic access-control boundary. The search/tool layer must filter by the authenticated requester before returning documents, with suitable permissions and cache partitioning. Postgeneration paraphrasing is not a substitute for retrieval-time authorization.
Question 185
Three specialized incident-response agents—triage, remediation and notification—must share a case’s priority and approved remediation state, but each has its own tool permissions. Currently agents rely on fragments of chat history, and the notification agent sometimes announces remediation before it completes. What state design should be used?
- Persist a shared plain-text conversation summary between specialists, but omit typed task states, case IDs and the evidence establishing completion.
- Keep a central shared conversational transcript for all specialist agents and ask each to infer the current priority and approval status from unstructured chat text, without typed case-state or per-agent authorization.
- Create a structured, versioned case-state record with permitted fields and explicit completed/approved transition rules that the coordinator validates before handoff.
- Delete the case ID between agents so an old completion record cannot be reused.
Explanation
Correct Answer
C:Maintain a case record with identity, priority, current stage, verified remediation outcome, approval and version or concurrency token. Each specialist updates only permitted fields through validated transitions, and the coordinator releases a notification task only after the remediation tool reports success and any required approval exists. Track failures and retries so a stale case version cannot silently overwrite a later state. This supplies a durable source of truth for cross-agent handoffs without granting every specialist access to all tools or relying on chat text as an execution log.
Incorrect Answers
A:A summary can transfer useful context between specialists and reduce repeated tool calls. However, it cannot reliably distinguish planned actions from completed, approved or failed actions when those are merely described in prose. The scenario requires coordination among triage, remediation and notification agents with different permissions. Maintain explicit case-linked state and guarded handoff outcomes so each specialist can trust and audit the prior stage.
B:A shared transcript gives collaborating agents visibility into earlier discussion and may improve context continuity during an incident. It is not a reliable source of transactional state when different specialists have different permissions and only approved changes should propagate. A model can misread which remediation was approved or act on an obsolete comment. The workflow needs explicit, scoped case-state fields and controlled handoffs; conversational history can supplement that record but should not replace it.
D:Discarding case identifiers would make it difficult to associate a notification with the incident and to prevent duplicate or stale actions. It does not enforce an execution order and may cause status for one incident to be attached to another. Privacy can be protected through scoped identifiers and access checks while retaining correlation. The application needs more precise state identity and valid transition rules, not an absence of records.
Question 186
An infographic shows a four-stage manufacturing process with arrows, a red exception branch and a small note linking the exception to the final stage. A sight-impaired reader needs an extended description that communicates sequence and causal relationships, not merely object labels. What output should a vision-assisted accessibility workflow produce?
- Generate a thorough paragraph identifying every labeled process stage but present the stages in visual reading order rather than preserving the direction of the arrows and exception branches.
- An extended, evidence-grounded description that follows the reading/order flow, names each stage and clearly relates the red exception branch and note, with uncertainty for unreadable text.
- Describe the process as a numbered sequence using the positions of the diagram's boxes, but omit the explicit exception arrow because it does not follow the main clockwise path.
- Use a generic image-captioning model to list objects and colors from the infographic, without preserving the direction of arrows or which stage the exception branch affects.
Explanation
Correct Answer
B:Inspect the diagram’s visual hierarchy, arrows and labels, then generate an extended description in the intended reading order: the starting stage, subsequent operations, branching condition and how the red exception reconnects or alters the final step. Include the explanatory note only to the extent its text is legible, distinguish color cues with descriptive words and preserve directional relationships. Validate with users or reviewers familiar with accessibility guidance, and mark ambiguous small text rather than inventing it. The output should communicate the process, not just name visual objects.
Incorrect Answers
A:Enumerating the labels makes an infographic more accessible than a generic object caption and may work for a simple list. Here the important meaning comes from process sequence and the exception branch. Visual reading order is not guaranteed to match the arrows' causal or procedural flow, particularly when a diagram loops backward. Accessible extended text should explain which stage leads to which next action and when the exception applies. A descriptive paragraph that merely lists all nodes still withholds the crucial workflow relationships.
C:A numbered sequence often improves a screen-reader user's ability to navigate a visual process diagram. However, this infographic includes an exception branch that changes what happens under particular conditions. Excluding that branch can provide materially incorrect instructions even if the main flow is presented clearly. The long description needs to retain both ordinary transitions and alternative paths with their triggers, rather than reconstruct an incomplete linear sequence solely from box placement. Layout coordinates are not sufficient evidence of logical dependencies.
D:Image captioning can identify visible elements and may provide a useful starting point for accessibility descriptions. The reader requires the process order and causal relationship represented by the arrows and red exception branch, not an inventory of shapes. A generic short caption can omit the decisive structure while sounding fluent. Produce an extended description grounded in layout and relationships, and flag unreadable labels rather than substituting an object list for the diagram’s meaning.
Question 187
A claims API requires a model-produced JSON object with claimId, status and nextAction. A supported structured-output mode is already configured, but intermittent model responses still omit a required field after an upstream tool error. The application retries indefinitely, eventually exhausting its request quota. What should the consumer do when validation fails?
- Use a bounded retry or repair path with explicit schema validation and tool-error handling; if required fields remain unavailable, fail safely rather than sending partial objects.
- Change the claims response schema so status is optional, and treat any successfully parsed claimId and nextAction as an acceptable record when an upstream tool fails.
- Fill the missing status from the most recent successful claim in the same conversation and submit the combined object, without checking that the prior result belongs to this claimId.
- Treat successful schema-mode generation as sufficient and deserialize claimId and nextAction while silently filling a missing status from the previous request.
Explanation
Correct Answer
A:Keep the required field contract and validate the parsed response before any downstream action. When a missing status results from a tool failure, first diagnose or retry that trusted dependency under a small bounded policy, then request a corrected schema-compliant answer only if authoritative values are available. On repeated failure, return an explicit incomplete/error state and route the case for review rather than fabricating values or looping forever. This is error recovery AFTER structured output has already been configured, not merely the initial selection of a schema mode.
Incorrect Answers
B:Making an essential field optional may suppress validation errors, but it also permits downstream systems to act without knowing whether the claim is approved, pending or rejected. The missing value arose after an upstream tool failure, so the correct behavior is a bounded retry, explicit safe failure or controlled clarification of the missing state. Schema weakening hides the operational defect rather than restoring the required contract.
C:A previous claim response can contain a legitimate status, which makes this fallback superficially attractive, but status is case-specific and can become stale. Applying an earlier approval to the current claim may cause unauthorized downstream processing. The application must validate the required fields against the current claim and its actual tool result, then retry or fail safely when data is missing. Conversation proximity is not evidence of record identity.
D:Structured-output mode can improve JSON validity and reduce invalid generations, so relying on it is tempting. It is not a replacement for validating required fields and their relationship to the current claim. Reusing a previous status can produce a dangerously plausible but incorrect result for another customer. Reject incomplete payloads, safely retry or obtain authoritative data, and enforce the API's per-request contract.
Question 188
A retail catalog is reindexed from Blob Storage every hour. Some products are updated, while discontinued product files are deleted. The search index sometimes returns removed products because the pipeline appends changed documents but never processes source deletions. What design corrects the synchronization problem?
- Shorten the indexer's schedule to every five minutes and rely on ordinary modified-blob change detection to remove products whose Blob files were deleted.
- Mark discontinued products as inactive in the source database but leave the Azure AI Search indexer and its searchable documents unaware of that state change.
- Use incremental change detection to update new and modified blobs, but never process deletion markers or explicitly remove orphaned index records for discontinued products.
- Configure an incremental indexing/change-detection process with a supported deletion-detection or tombstone strategy, and verify updates and removals in regression checks.
Explanation
Correct Answer
D:Use a supported source change-detection mechanism for modified Blob files and a documented deletion policy such as soft-delete metadata, tombstones or an explicit removal feed that the indexer or maintenance job can process. Preserve stable document keys, monitor synchronization runs and test that a modified product updates and a deleted product disappears from current retrieval within the expected interval. Handle index alias promotion safely if rebuilding a new index. This closes the lifecycle gap without repeated full-model retraining or silently retaining obsolete inventory.
Incorrect Answers
A:Frequent indexer runs and incremental change detection can reduce delay for newly uploaded or modified product records, so the proposed scheduling change could improve catalog freshness in general. It does not automatically provide deletion semantics when removed Blob files are absent from the source enumeration. Orphaned index entries can remain searchable indefinitely. Configure and verify a supported deletion marker, soft-delete policy or explicit deletion process in addition to ordinary content updates.
B:An inactive flag is a legitimate business rule for discontinued inventory and can be used for filtering when the index contains an up-to-date status field. Merely changing a different database does not update the Search index or ensure current queries exclude old product documents. The scenario's pipeline never applies deletions, so the stale results persist. The solution needs a coordinated change/tombstone or deletion-detection strategy that is reflected and tested in the index.
C:Change detection is an important part of keeping a search index current and can efficiently pick up new and modified source files. It does not necessarily remove indexed records when a blob disappears unless a supported deletion-detection or tombstone mechanism is configured. The reported stale products result specifically from missing removal propagation. A correct synchronization strategy must verify both updates and deletes, including cleanup of projected child chunks when applicable.
Question 189
An expense agent drafts a reimbursement total from three receipts and then asks a second language model to “check the math.” Both models repeat the same incorrect sum while all source line amounts are available. How should verification be redesigned?
- Increase the number of self-review model turns until two consecutive responses are identical.
- Use a typed arithmetic or trusted calculation tool over the validated receipt amounts, compare the result with the draft and flag discrepancies for review.
- Have a second model recompute the total from the first model's proposed sum rather than from the three receipt line amounts.
- Round each receipt amount to a whole currency unit before totaling the three receipts, then ask the second model to confirm the rounded figure without retaining the original cents and tax lines.
Explanation
Correct Answer
B:Extract and validate the amounts, taxes and currencies from each receipt, normalize units, and pass the numeric values to a deterministic calculation function with explicit rounding rules. Compare the function’s result with the agent’s draft; if they differ, stop reimbursement approval and inspect source extraction or item inclusion. Record a trace of the inputs and calculation rather than relying on natural-language self-critique. This provides a verifiable arithmetic check while keeping the model focused on interpretation and explanation, which are different tasks from exact summation.
Incorrect Answers
A:Two model responses can share the same arithmetic mistake, especially when the second model is influenced by the first answer. Repeating until agreement does not create an independent deterministic check. An unbounded self-review loop can consume substantial tokens without providing more reliable evidence. The system should perform exact addition with a trusted numeric operation, then compare against source fields and the originally proposed amount. Agreement is meaningful only if based on the correct computation and inputs.
C:An independent model call may appear to supply a review, and asking for a numeric check is closer to the task than a stylistic rewrite. If the reviewer sees only the first model's asserted total, however, it lacks the underlying numbers needed to catch an arithmetic error. Use a deterministic calculator or validated code on the actual receipt amounts, then check the generated reimbursement against that result.
D:Rounding may be appropriate for presentation after an exact calculation, but applying it to each input line can change the reimbursement total, especially when taxes or fractional amounts matter. A second model reviewing only the rounded figure cannot independently verify the true source arithmetic. The tool has all original receipt amounts available, so it should use validated numeric inputs and deterministic calculation before applying any permitted final display rounding.
Question 190
A company uses the same Foundry model family in development and production, but production policy prohibits engineers from modifying live agent tools or viewing confidential production conversations. Both teams currently share a single project with broad permissions. What governance design best satisfies isolation?
- Keep development and production in a single shared Foundry project, separate their resource names by prefix, and rely on documented team conventions rather than scoped data-plane permissions.
- Place development and production deployments into separate deployment slots under one project but grant all engineers the same project-wide tool-management and conversation-log permissions.
- Create separately governed development and production projects or resources with scoped identities, approved configuration promotion and data-access separation.
- Give development engineers read-only access to the production project and store production customer conversation traces in the same shared development monitoring workspace.
Explanation
Correct Answer
C:Use independently governed project boundaries for development and production, granting development engineers only the roles needed for testing while restricting production changes to approved deployment identities or operators. Promote versioned agent instructions, tool schemas and model settings through reviewed CI/CD instead of changing them manually in the live project. Isolate knowledge stores and traces by environment and use production-specific access controls. The same underlying model family can be used in both environments without sharing confidential conversations or administrative authority. This gives the security team an auditable permission and change boundary.
Incorrect Answers
A:Naming conventions help engineers distinguish environments and can reduce accidental configuration edits, so this option has some operational merit. They are not access-control boundaries. With the shared broad project permissions in the case, development engineers could still modify production tools or read confidential production traces despite prefixes. The requirement calls for isolating sensitive data and privileged configuration changes through distinct projects or equivalent enforced resource boundaries and scoped identities. Informal naming rules alone do not remove the rights that caused the risk.
B:Separate deployment slots can support release promotion and reduce configuration collisions when one model family is reused. However, the harmful condition here is shared authority over production agent tools and sensitive conversation data. A project-wide role can still let development staff access or mutate both slots. Keeping the same broad rights fails the explicit governance policy even if deployment artifacts have different names. The organization must scope identities and data access so production changes and logs remain restricted to authorized operators.
D:Read-only project access may appear safe because engineers cannot modify live agent tools. Yet production conversation traces can contain confidential user data, and sharing a monitoring workspace could expose them to developers contrary to policy. Separate production and development identity permissions and telemetry boundaries; authorize only specific non-sensitive diagnostics where needed. Reusing a model family does not justify sharing confidential runtime state.
Developing AI Apps and Agents on Azure (AI-103) Practice Tests