Question 660
A model deployment capacity spreadsheet estimates only prompt input tokens. In production, some customers request lengthy generated reports, and the service throttles even though request count stays below the projected limit. What capacity model is missing?
- Estimate provisioned usage from peak requests per minute times the historical mean input-token count, without allocating any capacity for generated output tokens.
- Estimate generated output tokens from a single average report length observed during a short pilot, without accounting for customers who request unusually long reports at peak load.
- Budget both prompt and generated output tokens, peak request patterns, retries and documented quota accounting for the actual model/deployment type.
- Add a larger fixed token allowance per request using the model maximum context window, without measuring the distribution of output lengths or how quota is accounted for.
Explanation
Correct Answer
C:Collect representative prompt sizes, retrieval context and requested output lengths, including high-percentile and burst traffic, then calculate the deployment's applicable token/request rate usage using current Microsoft quota rules. Include bounded retry overhead and headroom for long completions, and test against the documented capacity and model's max context/output limits. Adjust supported quota or concurrency and monitor actual consumption after launch. The critical omission is completion-token demand, which makes an input-only forecast falsely reassuring even when requests per minute is within limit.
Incorrect Answers
A:Request counts and input-token averages are legitimate starting points for capacity planning, particularly when prompts are similar in size. They are incomplete for a report-generation workload with long responses. Output-token processing and burst concurrency can materially affect throughput and rate-limit accounting. Because the spreadsheet already omits generated tokens, repeating an input-only average would preserve the underestimation. Include observed input and output distributions, retries, and the deployment’s actual quota semantics.
B:An average report length can improve a naive capacity spreadsheet and is useful when workload variation is small. The production problem specifically involves a tail of long generated reports, so the mean may underestimate output-token demand during busy periods. Model throttling depends on the applicable rate-limit contract and burst pattern, not just a typical request. Include measured output distribution, input context and retries when sizing the deployment rather than treating one mean as the entire workload.
D:Model context limits are relevant when preventing oversized prompts and responses, so a fixed allowance might prevent some truncation errors. A maximum theoretical context is not the same as actual token consumption or sustained capacity. The observed throttling occurs during unusually long generated reports; budgeting from that ceiling alone can be wasteful or still inaccurate under concurrency. Model input/output demand and the deployed rate-limit contract must be measured, then load-tested against real peak patterns.
Question 661
A multi-agent project planner delegates a task from coordinator A to specialist B. When B encounters an unfamiliar topic, it routes the task back to A, and both repeatedly delegate it without producing a result. Token usage rises until a request times out. What orchestration safeguard is needed?
- Increase the agent delegation budget and set a larger per-agent token limit, while keeping the existing circular A-to-B and B-to-A handoffs unrestricted.
- Give each agent its own fixed five-turn counter but reset that counter whenever another agent takes control, with no shared workflow-level hop or cycle record.
- Track the delegation graph and visited states, apply bounded hop/turn budgets and cycle detection, and stop or escalate unresolved work.
- Raise the multi-agent handoff budget from five to fifty and restart each specialist when it loops, without recording visited delegation states or limiting repeated cycles.
Explanation
Correct Answer
C:Record the current task state, delegating agent and visited transition keys so the coordinator can detect a repeated A-to-B-to-A cycle without new evidence. Enforce maximum hops, time/tokens and a rule that a specialist must produce a meaningful new result or stop. On a cycle, return a controlled unresolved status or route to an authorized human instead of delegating again. Test cyclic and acyclic task graphs to avoid blocking legitimate multi-agent collaboration. This prevents recursive routing from consuming unbounded resources.
Incorrect Answers
A:Larger budgets might allow more useful work when an investigation is merely long, but this system is trapped in an actual delegation cycle. More turns and tokens let the two agents repeat the loop for longer before timing out, consuming capacity without completing the task. The coordinator needs visited-state tracking, hop/turn bounds and cycle detection so unresolved or repetitive delegation can stop or escalate intentionally.
B:Per-agent limits may control individual model calls, yet resetting them on every handoff leaves the combined A-to-B-to-A cycle unbounded. A loop can continue indefinitely while no single agent exceeds its local counter. The safeguard belongs to the overall orchestration graph and must track visited states and total delegation depth across agents. When the same unresolved task repeats, the workflow should terminate or escalate rather than restart isolated budgets.
D:A modest handoff budget can accommodate legitimate workflows where a specialist asks the coordinator for another expert, and restarting a failed agent may sometimes clear transient errors. Here the trace shows a deterministic A-to-B-to-A cycle. A larger budget merely consumes more tokens before the same failure recurs. Track previously visited handoff states, enforce bounded cycle detection and stop or escalate the unresolved task rather than try the loop many more times.
Question 662
A research agent receives user consent to upload a report to an external analysis tool, but the user revokes that permission while the agent is still preparing the upload. The write-capable tool call has not yet occurred. What must execution do?
- Proceed because the user approved a similar action earlier in the session.
- Stop the pending upload, invalidate the authorization token or approval state for that action, and require fresh consent before any later attempt.
- Delay the external upload until the next retry cycle but retain the revoked approval flag in the worker queue, allowing the same report to be sent automatically after the delay.
- Allow the prepared upload to finish under the earlier user-consent token and prevent only subsequent uploads, because the agent already assembled the request before revocation.
Explanation
Correct Answer
B:Represent consent as revocable, transaction-scoped state checked immediately before execution. On withdrawal, cancel the queued operation, invalidate outstanding approval credentials or tokens where supported, clear pending work safely and record a protected cancellation event. If the user later chooses to resume, obtain new authorization and validate the payload again. This prevents a race between long-running preparation and changed permission, while avoiding false claims that data can be recalled after an external transfer has already completed.
Incorrect Answers
A:A previous approval does not remain valid after the user explicitly withdraws it. Consent is a current authorization condition for the specific side effect, and the tool has not yet executed. Continuing would contradict the user's latest instruction and could disclose confidential research. Application state must reflect revocation before the write boundary, rather than trusting a stale model or workflow snapshot.
C:A delayed queue can help an agent avoid transient tool errors and is a normal operational pattern when external services are unavailable. The user explicitly revoked permission before the write occurred, so the earlier approval cannot remain a valid authorization token. Retrying later under the same flag would breach the stated consent boundary even if the file content has not changed. Cancel the pending side effect and require fresh user permission for any later upload.
D:It can be tempting to treat consent as a one-time grant captured when a workflow begins, particularly when input preparation is costly. But the external write has not yet occurred and the user has explicitly revoked the authorization. The action boundary must recheck current permission before transmitting the report. Completing the queued upload would use expired authority and disclose data contrary to the user’s latest decision. Canceling pending work and invalidating any scoped token or capability is therefore necessary.
Question 663
A RAG quality monitor reports a sudden drop in groundedness for answers referencing documents uploaded today. The language model and prompts did not change, and older documents still perform normally. What investigation best isolates the new-content failure?
- Increase retrieval result count and keep generating from recent documents without checking whether today's indexing pipeline extracted complete, usable passages.
- Inspect today's source ingestion status, chunk/index freshness, retrieval relevance and passage attribution for the failing cases before changing the model.
- Rebuild the Search index from its currently stored source manifest and compare total document counts, without checking why today’s newly uploaded documents might have failed text extraction or chunk projection.
- Compare only the dashboard’s whole-index average groundedness and ignore source-upload cohorts, then increase the answer model’s context window without checking ingestion or passage mappings for today’s documents.
Explanation
Correct Answer
B:Compare the failing questions with their actual retrieved passage IDs, version timestamps and ingestion logs for today's documents. Verify extraction completeness, index update completion, chunk boundaries and ranking, then confirm that cited source spans support the claims. Use older passing cases as controls to distinguish a new-data pipeline issue from a broad model regression. This is a diagnosis of freshness and attribution at the retrieval-to-answer boundary, not a blanket recommendation to retrain the model when some recent answers become ungrounded.
Incorrect Answers
A:A larger result set can improve recall when relevant passages exist but rank below the cutoff. The drop is concentrated in documents uploaded today, which suggests an ingestion, chunking or indexing problem rather than a changed model. Returning more incomplete or empty passages will not improve groundedness. Inspect document processing failures, source versions and query-time evidence for the affected upload cohort before tuning generation or ranking.
C:Rebuilding an index can solve some corruption or schema migration problems, and document counts are useful health indicators. They do not distinguish whether the newest files produced complete usable passages or whether yesterday’s sources were merely reprocessed. The performance drop is concentrated in documents uploaded today, so the investigation must examine those source IDs, enrichment failures, index freshness, and passage attribution. Rebuilding unchanged inputs may reproduce the same groundedness failure at additional cost.
D:An aggregate quality score and a larger context window can be useful in other investigations, but they obscure the concrete segmentation clue in this incident. Older indexed documents still work, while newly uploaded items fail grounding. A global average can hide that cohort and an expanded prompt cannot restore missing OCR text or incorrect source IDs. Investigate the recent ingestion and retrieval path with document-level evidence before modifying model context or score thresholds.
Question 664
A vision assistant reviews a blurry sports broadcast frame. It can see a player in a blue jersey near the goal but cannot read the number or see the person's face. A viewer asks 'Which player is this?' What response is appropriately evidence-grounded?
- Use the broadcast team roster and jersey color to assign the highest-probability player name, returning that name without disclosing that the face and jersey number are unreadable.
- Run jersey-color classification and map the blue color to the most likely team roster, then name its most frequent player despite the unreadable number and face.
- Describe the visible player and location, explain that identity cannot be established from the frame, and request a clearer view or authorized contextual record.
- Estimate the athlete’s identity from gait and body proportions in the single blurry frame, despite the lack of validated biometric matching evidence.
Explanation
Correct Answer
C:State the observable facts, such as a blue-jerseyed player standing near the goal, and clearly separate those from any uncertain inference about who the person is. If identity is necessary, request a sharper frame showing a number or use an appropriate verified play-by-play/roster context with explicit provenance, rather than claiming to recognize the person from obscured features. This preserves useful visual description while avoiding a specific unsupported identity claim, which is the central uncertainty in the scenario.
Incorrect Answers
A:A roster can narrow possible candidates, but the blurry image does not establish which teammate is near the goal. Jersey color and position are shared by several players, so a high-probability guess is not a verified identity. The assistant should describe only the visible scene and state that the individual cannot be established from available pixels, requesting clearer evidence or an authorized match record rather than presenting speculation as fact.
B:Color classification and team rosters can narrow hypotheses when a broadcast has clear context. They cannot identify a particular real athlete when the uniform number, face and other distinguishing features are unavailable. Guessing the most common player is not visual evidence. Describe the visible person and location without assigning an unsupported identity, and explicitly note image ambiguity rather than claim certainty from color alone.
D:A person’s identity cannot be reliably inferred from a single low-resolution posture, especially when face and jersey number are unavailable. Gait matching would require appropriate temporal evidence, validated methods and separate authorization and privacy safeguards. The scenario provides neither. Even if the assistant can describe body position, it must not turn a weak visual impression into a named identity without supporting data.
Question 665
A voice assistant listens to the customer, checks an order through a tool and speaks the result. End-to-end response time is eight seconds, although the speech recognizer alone averages one second. Engineers need to know whether the model, tool or voice synthesis is responsible. What should be instrumented?
- Measure microphone audio duration, recognizer time and total reply duration, but omit separate spans for order lookup, model inference and speech synthesis because those services already have independent health dashboards.
- Correlated latency spans for speech-to-text, model inference, tool execution and text-to-speech, including first-audio and final-audio timing.
- Increase the speech recognizer’s audio sampling quality and collect only microphone and final-audio timestamps, assuming improved input recognition eliminates delays from the order tool and text-to-speech stages.
- Add a single end-to-end response timer around the voice assistant but omit separate timings for speech recognition, order tool, model generation and text-to-speech.
Explanation
Correct Answer
B:Propagate one request correlation context through recognition, model/tool operations and speech generation, capturing start/end times, retries and relevant errors at each stage. Measure time to first audio as well as final playback completion, since user-perceived responsiveness can differ from total duration. Compare slow cases with normal cases and adjust the actual bottleneck, such as tool caching or synthesis buffering, without compromising accuracy. This is voice-specific end-to-end latency attribution across input audio, reasoning, external action and output audio.
Incorrect Answers
A:Microphone length and speech-recognition latency are useful measurements for a voice assistant, and monitoring each service’s average health can highlight outages. They do not connect the specific eight-second customer turn to the actual model, tool and synthesized-audio stages. A healthy service average can hide a slow order API invocation or an unusually long speech response in one trace. The engineering goal is attribution within an end-to-end request, so correlated spans must cover the complete speech-to-tool-to-speech pipeline.
C:Audio capture quality can affect speech recognition time and error rates, so it is reasonable to inspect when a voice application is slow. In this case the recognizer already averages one second out of an eight-second response. Improving the microphone path cannot show whether the order API, model generation or speech synthesis consumes the remaining time. The team needs correlated spans and first-audio timing across all stages rather than optimizing one already measured component.
D:End-to-end timing establishes what the customer experiences and is a necessary service metric. It cannot reveal why eight seconds are consumed when recognition itself is quick and the assistant also invokes tools and speech synthesis. Add correlated spans and per-stage durations, including retries or external calls, then use the critical path to target the actual bottleneck. A single total is insufficient for remediation.
Question 666
A government archive is contractually restricted to production-supported GA services. Engineers want the newest Content Understanding agentic document understanding mode because it can reason over complex files. Microsoft's documentation places that capability in `2026-06-01-preview`, while supported core document extraction exists in `2025-11-01` GA. What is the compliant choice?
- Use the preview agentic mode in production because the service family also has a GA API.
- Choose the GA analyzer capabilities for production and keep preview agentic mode in controlled evaluation until it satisfies the organization's approved service requirements.
- Rename the preview API version to `2025-11-01` in the app without changing the calls.
- Deploy the `2026-06-01-preview` agentic analyzer behind a private internal endpoint and treat network isolation as equivalent to generally available production support.
Explanation
Correct Answer
B:Use the stable `2025-11-01` Content Understanding API for the document extraction and layout features it supports, and design any additional reasoning using a separately approved production path. Evaluate the `2026-06-01-preview` agentic mode only in a permitted nonproduction environment, recording limitations and availability until a supported offering meets the government's policy. Check analyzer compatibility, regional support and current documentation before deployment. This respects the distinction between a generally available service and specific preview enhancements, without misrepresenting source capabilities.
Incorrect Answers
A:General availability of a service family does not imply that every capability in a newer preview version is also GA. Microsoft's feature matrix distinguishes core extraction under `2025-11-01` from preview agentic document behavior. A contract that requires production-supported services cannot be met by assuming the preview inherits the GA SLA. Feature-level status matters.
C:Changing an API version string does not make a preview-specific operation available through an older GA contract. Calls may fail validation or silently omit the desired feature. The application must use the capabilities documented for the actual version selected, rather than relabel a request to bypass compliance. Technical compatibility and release status are both substantive, not cosmetic fields.
D:A private endpoint can restrict who reaches an experimental service and is appropriate for controlled evaluation environments. It does not change a preview API’s lifecycle, service guarantees or eligibility under the archive’s GA-only contract. The issue is production support level, not solely network exposure. Use documented GA `2025-11-01` core analyzer capabilities for contractual production needs and keep preview agentic features segregated until explicitly approved.
Question 667
A red-team test finds a new retrieved-document prompt-injection pattern that can trigger unauthorized tool calls in the current production agent. The security team has a fixed candidate version that blocks the attack, but its deployment is still being evaluated. What release/incident sequence is appropriate?
- Keep the vulnerable production version active indefinitely because its general usefulness is high.
- Remove the successful prompt-injection attack from the release regression suite after manually confirming the candidate version blocks it once, so the dashboard reflects only currently passing examples.
- Contain or roll back the vulnerable route according to incident severity, add the attack to regression evaluation, and promote only a verified safe fix.
- Add a stronger system prompt telling the agent to ignore retrieved-document commands, but leave sensitive tool permissions unrestricted and omit the new attack from regression tests.
Explanation
Correct Answer
C:Assess severity and protect users immediately by disabling the affected tool path, containing vulnerable traffic or rolling back to a previously passing configuration when appropriate. Incorporate the red-team payload into a controlled evaluation suite that asserts the untrusted document cannot authorize tool actions. Verify the candidate fix on that case and representative allowed workflows, then promote through guarded release with monitoring. This links incident containment, regression testing and verified rollout; identifying an attack is not enough if a vulnerable production endpoint remains exposed.
Incorrect Answers
A:Known unauthorized tool execution can cause consequential side effects, so the benefit of ordinary functionality does not justify leaving a confirmed exploit unmitigated. The exact containment action depends on severity and available safer versions, but doing nothing is not a defensible default. Treat the finding as an operational security issue with a controlled release response rather than a cosmetic model-quality complaint.
B:A one-time manual success does not prove the exploit will remain blocked after future tool-schema, retrieval or model changes. Deleting the red-team case conceals the known failure mode and prevents regression detection. The security team should preserve the attack as a documented test, contain the vulnerable production path according to severity and promote the fix only after reproducible verification. The aim is durable risk control, not a green dashboard created by removing evidence.
D:A clear system instruction is useful for defining trust boundaries and can reduce susceptibility to some prompt injections. It is not a complete defense for a known retrieved-document pattern that has already triggered unauthorized tool calls. The agent should treat source content as untrusted, validate tool inputs and enforce authorization outside the model. Add the reproducible attack to release tests and roll back or block unsafe behavior before calling the updated system safe.
Question 668
A research index exceeds its storage budget because each PDF page is duplicated into overlapping chunks with large embeddings. Search results are still useful, but 70% of neighboring vectors refer to almost identical text. What optimization should be evaluated?
- Reduce every existing embedding to half its dimensions by dropping the trailing vector coordinates, then compare storage savings without retesting similarity search quality.
- Measure chunk duplication, overlap, vector dimensions/compression and retention, then reduce redundant storage while checking recall and citations on representative queries.
- Lower each search query's vector candidate count to reduce runtime compute while retaining all duplicated overlapping chunks and large embeddings in storage.
- Retain the current heavily overlapping chunks but reduce index storage by lowering the configured vector count per search response, without changing the number of vectors actually stored.
Explanation
Correct Answer
B:Analyze chunk overlap, passage uniqueness, projected metadata and vector storage against observed query relevance. Test less redundant chunking, supported vector compression or dimension options for compatible embeddings, and controlled retention of obsolete versions, preserving source/page references. Benchmark known queries before and after changes so cost reductions do not hide missing exceptions or lower recall. Distinguish savings from index size, ingestion throughput and query performance, and use actual Azure AI Search capacity settings rather than guessing. The goal is measurable storage efficiency under a maintained correctness floor.
Incorrect Answers
A:Dropping coordinates can reduce raw storage, but arbitrary truncation changes the representation produced by the model and may invalidate ranking behavior or index schema expectations. The scenario has strong evidence of redundant overlapping chunks, so optimization should start by measuring duplication, supported vector compression and chunk retention, then test recall and citation quality. Raw coordinate removal without a compatible embedding strategy is not a defensible equivalence-preserving technique.
C:Reducing vector candidates can improve query latency and some request-side costs, so it is a valid optimization for a different problem. The incident concerns persistent index storage bloat from duplicated overlapping PDF pages. Query k does not delete stored vectors or reduce their dimensions. Assess chunk overlap, redundancy, passage cardinality and supported compression or dimension strategies while maintaining retrieval quality and provenance.
D:Reducing a query’s returned candidate count can improve retrieval latency and downstream context consumption, so it is a reasonable tuning parameter in Azure AI Search. It does not remove redundant vectors from the index or reduce the cost of having embedded nearly identical neighboring passages. The storage problem exists at ingestion, with excessive chunk overlap and vector dimensions or retention. The team should benchmark changed chunking and compatible embedding/index configurations while preserving useful citations, not confuse query result count with stored volume.
Question 669
A customer-support agent can search policy and create shipping tickets. It calls search repeatedly for simple greetings and sometimes tries to create a ticket when asked only for information. The chosen model/API supports tool-choice constraints. What control should the application introduce?
- Set the API tool-choice mode to required for every conversation turn, ensuring that greetings always invoke the policy-search tool and that the ticket-creation tool remains selectable regardless of user intent.
- Set task-aware tool routing and supported `tool_choice` or equivalent restrictions, with write tools exposed only after verified intent and authorization.
- Add a natural-language instruction saying the agent should avoid ticket creation during greetings, but leave tool registration and routing unchanged without testing the greeting intent.
- Keep both status-search and ticket-write tools exposed to every request, but post-filter the final answer to remove any accidental ticket-creation confirmations.
Explanation
Correct Answer
B:Classify the supported task intent and use the model's documented tool-choice controls or application-side routing to permit only the relevant function set. For greetings, avoid unnecessary calls; for policy questions, allow authorized read tools; for ticket creation, validate the customer's request and require the relevant approval before exposing write execution. Audit chosen versus attempted tools and benchmark false triggers. This narrows agent behavior while preserving capabilities, and it avoids assuming every model exposes identical tool-choice parameter values.
Incorrect Answers
A:A required-tool mode can be useful for workflows where a lookup or function call is truly mandatory. Applied indiscriminately, it causes unnecessary Search requests for greetings and may expose a write-capable ticket tool during informational exchanges. The scenario needs task-aware routing, including no-tool replies and explicit authorization gates for consequential actions. A globally required tool choice is the opposite of a least-privilege, intent-sensitive agent policy.
C:Prompts can improve a model’s selection of tools, and an explicit example may reduce unnecessary calls in ordinary interactions. The system needs a reliable policy for which actions are available for greeting, lookup, or ticket creation. Leaving all tools equally callable does not guarantee the agent will stop creating tickets when no work is requested. Use supported tool-choice or intent routing controls and verify representative harmless greetings alongside consequential actions.
D:Editing the user-facing response after a tool call does not undo an unauthorized shipping ticket that may have been created. The issue is execution-time tool selection, not just visible phrasing. Greetings should not require a search call, and informational queries must not expose state-changing write capability absent validated intent and authorization. The runtime needs task-aware routing and supported tool-choice constraints before a tool executes.
Question 670
An approved customs-lookup tool recently moved from `api.old.example` to `api.new.example`. The Foundry agent's outbound firewall allowlist permits only the old FQDN. TLS and DNS resolution for the new host work, but HTTPS requests are explicitly denied by egress policy. What change is appropriate?
- Disable egress filtering entirely because the vendor has a valid TLS certificate.
- Update the approved destination allowlist and relevant proxy rules for the verified new host, then test the tool path without broadening unrelated access.
- Update the model’s tool description to use api.new.example, but leave the corporate egress allowlist and proxy policy restricted to the retired hostname.
- Update the agent's customs-tool URL to the approved new host but tunnel requests through an unrelated reachable mirror domain to avoid changing the firewall allowlist.
Explanation
Correct Answer
B:Confirm the vendor's documented hostname migration, required HTTPS port and any redirect behavior, then update the narrowly scoped firewall or proxy allowlist to permit the approved new FQDN. Retire the obsolete rule when safe, validate DNS/TLS and actual tool authorization, and retain logs of blocked destinations for review. This is a precise endpoint-drift repair: resolution already works, but the egress policy still references the former host. Avoid wildcard domains or broad unrestricted outbound access when a specific approved target is known.
Incorrect Answers
A:A valid TLS certificate supports authenticated encryption to a host but does not establish that the organization authorized outbound access to that destination. Removing all filtering could expose customer and customs data to arbitrary internet services. The policy needs an intentional change for a verified vendor endpoint, not a blanket network bypass. Preserve the existing egress boundary.
C:A correct hostname in application code is necessary but cannot override the firewall’s explicit destination policy. The scenario already confirms that DNS and TLS negotiation for the new host are functioning, yet outbound HTTPS is denied by the allowlist. Increasing prompt detail or renaming the tool does not grant network access. Engineers should verify the moved service and update only the approved FQDN and proxy rules, then test the authorized route.
D:A proxy can be part of an approved outbound architecture when its identity, routing and logging are governed. An unknown mirror introduces data disclosure and integrity risks and may violate vendor contracts. The tool now uses a documented new FQDN that the existing firewall blocks. Validate the vendor change and add a narrowly scoped authorized egress rule and DNS route, rather than bypass the policy through an unverified relay.
Developing AI Apps and Agents on Azure (AI-103) Practice Tests