Question 580
A multinational device maker maintains approved technical terminology in Spanish for Spain, Mexico and Argentina. A support assistant hardcodes one generic Spanish glossary and mislabels a safety component in Mexican instructions. What language-output design is needed?
- Use the same Spanish phrase everywhere because one language code guarantees identical specialist terminology.
- Use one approved generic Spanish glossary for all three countries and rely on end users to interpret terminology that differs by locale.
- Pass the correct market/locale and versioned approved glossary into the translation or generation workflow, validating safety-critical terms with local reviewers.
- Remove glossary constraints entirely and trust the model to improvise technical vocabulary.
Explanation
Correct Answer
C:Determine the target region from a trusted product or customer context, select the corresponding approved terminology list and its effective version, and pass those constraints to a supported translation/model workflow. Validate critical component names, warning verbs and units with representative local acceptance tests and reviewers. Retain the original source text and glossary reference for traceability, and flag unsupported terminology instead of silently choosing another market's wording. This addresses geographic terminology variance without requiring the assistant to memorize every jurisdiction's current glossary.
Incorrect Answers
A:A shared language does not guarantee that regulated product terms, colloquial parts or service instructions are identical across markets. A generic glossary can produce a phrase that is understandable but not approved for a particular local manual. Safety-critical wording should be tied to the distribution market and relevant product version. One language code alone is insufficient to identify the requested terminology standard.
B:A shared glossary can provide consistency for genuinely universal technical terms and may reduce maintenance effort. The scenario specifies distinct approved wording for Spain, Mexico, and Argentina, so one regional vocabulary can be misleading or disallowed in another market. Output variability from a general language model is not an approved localization policy. Select the correct locale-specific terminology source using request context and validate the translated terms against that controlled glossary.
D:Free-form generation can produce persuasive but incorrect terminology, particularly for a device part whose local approved name differs from ordinary speech. Removing the glossary would take away the very control designed to prevent hazardous misunderstanding. The goal is not merely fluent Spanish but correct market-specific maintenance language. Preserve approved lexicons and test their application, using model output as a draft only where source requirements are met.
Question 581
A bank uploads 40-page scanned disclosure PDFs to a vector index. The index has valid embedding vectors, but searches never find mandatory text printed at the bottom of each page. Inspecting the OCR output reveals that lower page regions were cropped out before embedding. What should be tested first?
- Re-run extraction on representative original pages, checking page geometry, OCR coverage and clipped regions before regenerating affected chunks and embeddings.
- Tune the hybrid search query to retrieve more candidates and apply semantic reranking, but keep indexing the original cropped OCR output that omitted disclosure lines at the bottom of each page.
- Increase layout-aware chunk overlap after the OCR stage while leaving the lower-page crop settings unchanged and never re-extracting the missing disclosure text.
- Regenerate embeddings from the incomplete OCR text at higher vector dimensions, leaving the original image crop unchanged and the missing page-bottom disclosures absent.
Explanation
Correct Answer
A:Compare sampled source-page images with their OCR text and layout coordinates to identify the cropping or page-dimension setting that excludes the lower region. Repair the extraction configuration, check page orientation and scan margins, then regenerate chunks and embeddings for affected documents with verified source completeness. Track page IDs and run retrieval tests for the formerly missing disclosure wording. The vectors are technically present, but they represent an incomplete input. Fixing OCR coverage is necessary before tuning search ranking or model prompts.
Incorrect Answers
B:Expanding a candidate set and reranking are legitimate ways to improve recall and relevance when the requested text already exists in the searchable index. Here engineers inspected extraction and found that the missing disclosures were excluded before embeddings were generated. No downstream ranking strategy can retrieve those absent words from otherwise valid vectors. The first correction is to repair or re-run OCR on uncropped original pages, verify coverage and source locations, and then regenerate affected chunks and vectors. Query tuning can follow after the missing source evidence exists.
C:Chunk overlap can help keep adjacent clauses together and reduce context loss when documents are split for embeddings. It cannot recover words that were absent from the OCR output because part of the original page image was cropped. The bank already has valid vectors, but they describe incomplete extracted text. First validate geometry and extraction coverage on original pages, correct the clipped regions, and only then regenerate affected chunks and vectors.
D:Changing embedding dimensions or model quality may improve semantic search over text that was actually extracted. It cannot supply mandatory disclosure words cropped out of the scanned page before OCR. The observed failure is an upstream image-geometry omission, not a weak vector representation. Check OCR coverage on original documents, fix page-region extraction, and then re-create affected chunks and vectors. A better vector for incomplete text remains incomplete evidence.
Question 582
An Azure AI Search index contains 1,536-dimensional vectors created with embedding model M1. The application now creates 1,536-dimensional query vectors using model M2, and relevance drops sharply even though dimensions match. What is the proper investigation?
- Apply L2 normalization to the M2 query vectors and reuse the existing M1 document vectors, assuming length normalization also aligns the models' embedding coordinate systems.
- Compare query and document vector dimensions only and keep serving queries, assuming equal vector length makes embeddings from M1 and M2 semantically compatible.
- Verify the embedding model/version used on both sides, then use a compatible query encoder or plan controlled re-embedding and index migration.
- Switch the index from cosine to dot-product similarity without changing the M2 query encoder or the M1 document vectors, assuming the metric compensates for different model training.
Explanation
Correct Answer
C:Inspect ingestion configuration, stored vector metadata and the application's query encoder. Use the same supported embedding model/version and preprocessing contract for comparable document and query vectors, or re-embed the corpus into a new compatible index under a versioned migration plan. Test known query-document pairs before switching production traffic and preserve a rollback path. Dimensions matching is necessary for index schema compatibility but insufficient for semantic comparability; this case tests the model identity mismatch within a superficially valid schema.
Incorrect Answers
A:Vector normalization can be important for cosine similarity and distance calculations, and it may improve consistency when the same compatible embedding model is used for indexing and querying. It cannot align unrelated models merely because both generate 1,536 numbers. Those models may represent concepts in different coordinate spaces and rank documents unpredictably even after unit normalization. Verify the actual embedding version used on both sides and re-embed or route queries through a compatible encoder when necessary.
B:Dimension matching is a necessary schema check and catches common failures when vector fields expect a particular length. It is not sufficient to make embeddings produced by different models share the same coordinate semantics. M1 document vectors and M2 query vectors can both contain 1,536 numbers yet produce unreliable similarity ranking. Reconcile model version and preprocessing on both indexing and query paths, then re-embed or restore a compatible query model before accepting results.
D:Choice of a vector similarity metric can affect scoring and relevance, and different embedding models may recommend specific metric conventions. Changing from cosine to dot product does not translate M2 vector coordinates into M1's learned embedding space. The index can return valid numeric scores yet rank semantically unrelated passages. The core fix is model/version alignment, with a controlled re-embedding and search-quality regression if the team adopts M2, not an unsupported metric substitution.
Question 583
A risk-analysis agent calls independent weather and exchange-rate APIs, then combines them with a policy check. Its workflow executes all three reads sequentially and violates a six-second p95 target. The policy decision depends on both external readings, but neither external read depends on the other. What optimization is safe?
- Parallelize the independent authorized read-only calls, then join validated results before the dependent policy decision; measure tail latency and failures.
- Parallelize the final irreversible business write with the external reads so it finishes before validation.
- Start the weather and currency requests concurrently but begin the dependent policy decision as soon as either request returns, using the other value from the most recent cached run if it is still pending.
- Add a second sequential attempt to each independent weather and exchange-rate lookup, but retain serial execution of both read-only calls and the final policy check.
Explanation
Correct Answer
A:Issue the weather and exchange-rate requests concurrently using bounded timeouts and per-tool authorization, since they have no data dependency. After both results arrive, validate their timestamps and values and execute the policy check using the complete trusted state. Instrument fan-out and join spans to confirm p95 improvement, and define explicit fallback behavior when one source fails. This shortens the critical path without breaking the dependency of the final decision on both inputs. Parallelism should be based on the workflow graph, not applied indiscriminately.
Incorrect Answers
B:A business write that depends on policy validation cannot safely run alongside its prerequisites. Doing so could create a side effect before the weather, rate or eligibility facts are known. Parallel execution is appropriate only for independent operations. Retain the required decision ordering and any human approval before external changes. Optimizing latency by violating business constraints would make the workflow faster but incorrect and potentially irreversible.
C:Concurrent read-only calls can reduce critical-path latency, which is why parallelization is appropriate here. The proposed early policy execution defeats the dependency: the final decision requires both current weather and exchange-rate readings. A stale cached value can change the risk category or financial calculation even when the first API responds quickly. The workflow should join and validate both current results before the dependent policy evaluation, with defined timeout and fallback handling.
D:Retries can improve reliability when an external API occasionally fails, which is a reasonable resilience concern for a multi-tool agent. They do not reduce the normal critical-path latency of successful independent lookups if every call still waits for the prior one to finish. In this workflow the read-only weather and exchange-rate stages can potentially run in parallel, while policy evaluation must wait for both validated results. Optimize dependency scheduling rather than lengthening the serial chain.
Question 584
An operations team performs a blue/green rollout inside the SAME production Foundry project. The project endpoint works and lists deployment `invoice-green-v4`; the previous `invoice-blue-v3` has been deleted. The Python inference worker authenticates and can list the new deployment, but some long-lived replicas still call `invoice-blue-v3` and receive deployment-not-found. What specific release fault should be corrected?
- Recreate `invoice-blue-v3` as a temporary alias to the current model so old replicas stop receiving 404s, but leave the deployment-name cache pinned to that retired identifier indefinitely.
- Update the deployment-name mapping used by every replica, invalidate stale configuration/cache after the cutover, and smoke-test inference against the current `invoice-green-v4` identifier.
- Increase the model's provisioned throughput and retry the identical `invoice-blue-v3` identifier under the known-good project endpoint, treating deployment-not-found as a transient overload symptom.
- Create a new deployment named invoice-green-v4 but leave older client replicas hard-coded to invoice-blue-v3 and assume the server will alias the names automatically.
Explanation
Correct Answer
B:Distinguish the project endpoint, which is already valid, from the deployment identifier passed to each inference request. Blue/green releases must atomically promote the newly available deployment alias or target, refresh environment/configuration caches in long-lived replicas, and remove references to the retired blue version. Compare the model name in failed request traces with the project's actual deployed names, then run a canary inference test using `invoice-green-v4`. Only switch full traffic after all workers use the approved identifier and failure handling is verified. This addresses stale release configuration rather than starting another project migration.
Incorrect Answers
A:A compatibility alias or temporary deployment can be a legitimate migration technique during blue/green rollout when the service explicitly supports it. This scenario says the former deployment was deleted and the target is the already-present `invoice-green-v4` in the same project. Recreating a legacy name without correcting long-lived replicas leaves the stale configuration defect unresolved and may create two divergent runtime targets. The release process should refresh every replica's deployment mapping and verify inference using the current identifier before retiring compatibility measures.
C:Capacity upgrades can address throttling and latency when a deployment exists but is saturated. The service has already shown the current green deployment in its project inventory and explicitly reports that the old blue identifier is not found. Requests for a nonexistent deployment will not be repaired by adding processing capacity or repeating the same route. The engineer must update stale application configuration and caches after cutover, propagate the new name to all replicas, and smoke-test the supported route. Overload and resource lookup are distinct failure classes.
D:Provisioning the green deployment can be part of a sound blue/green release. The failure occurs because some clients still request a removed blue alias even though the project endpoint is correct. Creating or scaling green does not rewrite those caller parameters or guarantee a backward-compatible alias. Update configuration routing for all replicas, verify actual model identifiers and use a controlled fallback or rollback during cutover.
Question 585
A shopping assistant checks live inventory through a tool and writes 'store has six units' into long-term customer memory. The next day, inventory is zero, but the agent continues trusting the stored statement. What memory rule should be imposed?
- Treat every tool result as a permanent user fact until the customer explicitly contradicts it.
- Use cached inventory counts for all later customer answers until the next daily batch import, without checking whether the real-time inventory API has already changed.
- Classify stock counts as ephemeral, time-stamped tool evidence with short freshness limits; refresh authoritative inventory before answering or acting.
- Preserve the most recent observed inventory count in long-term agent memory and check it only when the customer explicitly asks for a fresh stock check.
Explanation
Correct Answer
C:Attach provenance, retrieval time and expiration to live stock results, and do not promote them into durable personal memory as though they were stable preferences. Refresh inventory before a purchase recommendation or order action, and invalidate cached state on relevant stock-change events when supported. The agent may mention a previously observed count only with its timestamp and uncertainty. This defines a memory-write policy based on fact durability, preventing old tool evidence from overriding a current API response.
Incorrect Answers
A:A stock count is a changing operational value, not an enduring customer preference. Writing it permanently makes the assistant vulnerable to stale facts even when a fresh tool could report zero. The customer may not know the value changed and cannot be expected to correct the agent. Long-term memory should distinguish persistent user-approved preferences from externally derived transient state.
B:Caching can reduce expensive repeated tool calls, and a short bounded cache may be justified for low-risk browsing. But the stock count in this scenario changed from six to zero between days, and the agent is answering as if the old value remains authoritative. A daily refresh alone is too weak for availability-dependent actions. Treat stock as time-stamped ephemeral evidence and recheck the live inventory source before consequential answers or purchases.
D:Conversation memory can speed up follow-up answers and avoid duplicate tool calls for stable facts. Inventory changes quickly, and yesterday's six units are explicitly stale now that the live API says zero. A customer asking about availability needs current authoritative tool data, not an old memory unless labeled as historical. Apply a freshness or TTL rule and prefer the latest verified inventory result over prior chat state.
Question 586
A generative image service rejects a request under the organization's configured prohibited-content rule. A developer suggests silently retrying with filters disabled so the user still receives artwork. What should the application do?
- Honor the block, provide a clear policy-aligned failure or safe alternative, and log only permitted moderation metadata for review.
- Turn off filtering for this request because an image endpoint should always return pixels.
- Return a previously cached approved image for the same general prompt category and claim that the specific rejected request passed its moderation checks.
- Retry the same blocked image request against a second image deployment with a different filter configuration but no policy approval or review of the original violation.
Explanation
Correct Answer
A:Treat the moderation outcome as a real gate, return a truthful response explaining that the request cannot be fulfilled as submitted, and offer an allowed reformulation where appropriate. Preserve the relevant category, model/version and decision metadata under privacy safeguards so operators can investigate false positives without copying prohibited imagery broadly. Do not bypass configured controls in the retry path. This lets the application fail safely when a generative capability is intentionally restricted, rather than treating any nonimage result as a system defect.
Incorrect Answers
B:Disabling a known policy filter to obtain output would defeat the organization's approved safety boundary. Generative services may reject requests for legitimate reasons, and handling those rejections is part of the product contract. A retry that silently weakens safeguards can expose harmful content and creates inconsistent treatment of users. Correct false positives through documented review and calibration, not individual bypasses.
C:Cached artwork can reduce cost and latency for repeated permitted creative tasks, making reuse a plausible fallback when generation is unavailable. It cannot be represented as the reviewed output for a request that the policy explicitly rejected. A broad category match does not establish that the new scene complies with requirements or user intent. Record a real block decision and offer permitted alternatives without bypassing safety gates.
D:Service deployments can have different moderation settings, yet switching endpoints merely to evade a deliberate organizational block violates the release rule. The generator should not treat a refusal as a request-routing failure. The correct response is to honor the current policy, explain a safe refusal or alternative, and send genuinely disputed classifications through the approved review channel instead of silently seeking a more permissive model.
Question 587
A live captioning application uses a streaming Speech connection. When the user's mobile network drops, provisional words remain onscreen and the app reconnects by appending an entire new transcript, duplicating earlier speech. What recovery design is appropriate?
- Keep all interim caption text in a replay buffer and restore it after reconnecting, without distinguishing provisional hypotheses from finalized utterances already committed to the transcript.
- Start an authenticated replacement stream, maintain utterance/final-result boundaries, and reconcile already committed captions without replaying text as new speech.
- Replay all buffered audio after reconnect and append every returned interim hypothesis as a new finalized transcript segment without tracking which utterance was already committed.
- Reconnect to a new Speech stream and append every buffered interim result to the permanent caption archive, without tracking which utterances were already finalized before the connection broke.
Explanation
Correct Answer
B:Handle disconnect as an explicit streaming state transition: preserve confirmed utterance identifiers or timestamps, mark provisional hypotheses as interrupted, and reestablish a supported authenticated speech stream. Resume from buffered audio only if the service and application design permit safe replay, deduplicating finalized segments and retaining timing context. Tell the user where continuity cannot be guaranteed. Test interruptions at word boundaries and during final events. The objective is accurate caption state reconciliation across sessions, not merely reconnecting a socket and concatenating output.
Incorrect Answers
A:Replaying a buffered caption can improve visual continuity during a brief mobile-network outage. Interim Speech hypotheses are provisional and may be corrected as the recognizer finalizes a phrase. If the app restores them as committed records, then appends a new stream’s transcription, it duplicates or contradicts prior speech. Recovery needs stable utterance identifiers and final-result boundaries so the client replaces provisional text and reconciles already committed segments instead of replaying the buffer as new content.
C:Replaying buffered audio can recover speech lost during a network interruption, making this a plausible resilience technique. The application must distinguish finalized utterances from temporary hypotheses and deduplicate replayed segments using stable sequence or offset information. Appending all provisional text will reproduce the reported duplicate captions and potentially publish words that the recognizer later corrects. Recovery should reconcile committed transcripts before adding new final events.
D:Restablishing a stream and replaying buffered audio can improve continuity after a mobile network interruption, so the idea addresses a real reliability problem. Interim hypotheses are replaceable, and replay may regenerate words that the previous session already committed. Blindly appending them duplicates captions and can alter spoken meaning. Track finalized utterance boundaries, sequence IDs and reconciliation state while resuming an authenticated stream.
Question 588
A regulatory research assistant searches the approved case-law index for an unusual jurisdictional exception. Retrieval returns no relevant authoritative passages, but the model offers a plausible rule and invented source numbers. What output contract should the application enforce?
- Provide a qualified answer using the closest semantically related archived decision and label it preliminary, without confirming that the cited case addresses the requested jurisdictional exception.
- Expand the query to loosely related cases from an approved archive but treat the closest semantic match as a direct authority without checking jurisdiction or whether it addresses the requested exception.
- Return a clear evidence-unavailable or abstention status, record the unsuccessful retrieval and request additional approved sources or expert review.
- Broaden retrieval to an external unapproved case-law collection and cite its closest semantic match as authoritative for the specified jurisdiction without checking applicability.
Explanation
Correct Answer
C:Define a structured failure state when retrieval lacks sufficiently relevant, authorized evidence for the requested proposition. The assistant should abstain from stating the exception as fact, identify the missing source scope or version where safe, and propose a targeted re-search or qualified legal review. Log the search result IDs and confidence thresholds so operators can diagnose corpus gaps. This makes a missing-evidence result an expected application outcome rather than forcing a generated answer for every question.
Incorrect Answers
A:Qualifying uncertainty and exploring related decisions can be reasonable parts of legal research when a direct source is unavailable. The assistant is asked for an authoritative exception, and retrieval found no applicable passage. A loosely related case may concern another jurisdiction or a materially different rule, so presenting its interpretation as an answer can still mislead despite a preliminary label. The safer output contract explicitly reports missing evidence, preserves the unsuccessful search details, and routes the point for additional approved sources or expert review.
B:Query expansion can improve legal research recall and may reveal cases that a narrow search missed. It does not prove that a similar document establishes the requested jurisdictional rule. The assistant must check legal authority, relevance and exact source support before citing a case. If the approved corpus still lacks evidence, report that limitation and seek additional reviewed sources rather than convert a low-confidence near neighbor into a fabricated governing citation.
D:Expanding a search corpus can improve recall when an approved index is incomplete, and a similar case may provide useful background research. It does not establish that an external document is authoritative or relevant to the requested jurisdictional exception. The assistant is explicitly bound to an approved case-law source and has no verified support for the claim. It should disclose the missing evidence and escalate rather than present a merely related case as governing law.
Question 589
An internal assistant retrieves two approved policy passages with stable IDs `P18` and `P22`. Its generated answer cites `P18` correctly but also invents `P99`, which was never retrieved. The UI currently renders any citation string supplied by the model. What should change?
- Accept any syntactically well-formed policy citation ID from the model as long as it matches the standard P-number pattern, even when that ID was not present in retrieval results.
- Suppress every citation from the answer whenever any one citation ID fails validation, even if the remaining P18 citation is supported by retrieved evidence.
- Require citations to resolve against the actual retrieved passage-ID set and their supported text spans before rendering; reject or repair unsupported IDs.
- Create a new citation record P99 by copying text from the nearest retrieved policy passage, so the generated answer's invented citation identifier resolves to some source.
Explanation
Correct Answer
C:Keep the retrieved passage IDs and source spans as a trusted registry for the response. After generation, parse each citation, verify membership in that registry and check that the corresponding passage supports the associated material claim where feasible. Reject P99 or request a bounded correction rather than inventing a new document to match the model's string. Store document/version metadata for audit. This closes a citation-rendering trust boundary: only retrieval-generated evidence can become a displayed source, while the model's proposed labels remain untrusted output.
Incorrect Answers
A:A citation pattern check establishes formatting but cannot prove that the source was retrieved or supports a claim. The invented P99 has the same apparent shape as legitimate passage IDs, making it especially likely to pass a superficial validator. The UI must resolve identifiers to the authorized evidence set P18 and P22 and verify claim support, rather than equating a credible-looking source code with actual provenance.
B:Failing closed on unsupported claims is appropriate, but deleting all valid provenance throws away useful traceability and does not repair the ungrounded statement associated with P99. The application should reject or correct that unsupported citation and its claim while retaining verified references such as P18 where their spans support the response. A blanket citation removal makes later editorial review harder and may hide the underlying answer error.
D:Repairing broken citation links is a legitimate data-quality task when the source exists but its identifier was lost. Here P99 never appeared among the authorized retrieved passages, so manufacturing a record from nearby text would falsely imply that the exact answer claim was supported. Validate each citation against the actual retrieval set and either replace it with genuine evidence or remove the unsupported claim.
Question 590
A company wants a Foundry agent that runs its own Python risk engine, uses a custom event protocol and maintains a controlled execution loop. The portal offers a configuration-only prompt agent, while Foundry also supports hosted code-based agents. Which architecture should the team evaluate?
- Use a configuration-only prompt agent with extensive tool descriptions and assume its prompt can substitute for deploying the custom Python risk engine and proprietary event handler.
- A hosted code-based agent with a compatible framework/runtime and documented deployment contract, alongside the required model and tool connections.
- Store the Python risk engine's expected outputs as vectors in Azure AI Search and call nearest-neighbor retrieval whenever an event arrives, without executing the custom risk calculation.
- Use a configuration-only prompt agent with a large tool description and assume it can execute the proprietary Python event loop without a deployed code-based runtime.
Explanation
Correct Answer
B:Foundry hosted agents are code-based deployments intended for custom frameworks or business logic, subject to their documented packaging, identity, endpoint and runtime contracts. Evaluate whether the current deployment supports the required Python version, custom protocol, health/readiness behavior and networking, then instrument and secure the workload. The company can maintain its own risk engine while Foundry manages supported hosting aspects. This is a capability-choice question: code ownership and protocol needs justify hosted execution, whereas a simple configured assistant might appropriately use prompt agents.
Incorrect Answers
A:A prompt agent can orchestrate many supported tools through declarative instructions, and well-described tools often eliminate the need for custom code in routine workflows. This company explicitly needs its own Python execution loop and a nonstandard event protocol. Describing that behavior in a prompt does not deploy a runtime capable of executing it. Use a supported hosted code-based agent/runtime with the necessary framework and secure tool integrations.
C:Similarity retrieval can help an agent locate past events and examples, making a search index a useful dependency for a risk workflow. It does not execute the organization's custom Python algorithm, maintain the required event loop or implement a proprietary input/output protocol. The scenario requests runtime behavior, not just finding related records. Deploy a compatible hosted code-based agent or secure application service and connect Search only as a supporting knowledge source where relevant.
D:Prompt agents can orchestrate supported tools and declarative instructions and may work well for standard workflows. They do not automatically host arbitrary user-owned Python processes, custom event protocols or a persistent controlled loop merely because those capabilities are described in text. The requirement is for executable custom logic. Evaluate the supported hosted code-based agent runtime, including deployment and isolation constraints, rather than treating a prompt definition as a general-purpose application host.
Developing AI Apps and Agents on Azure (AI-103) Practice Tests