Microsoft AI-103 (Developing AI Apps and Agents on Azure) Practice Test 13

Question 120

An incident team wants to connect errors seen in a mobile app to an agent execution trace. Which action directly produces the required outcome?

  1. Inspect indexer execution history, warnings, and document counts
  2. Collect and alert on token usage per workload
  3. Propagate correlation context across application, model, and tool calls
  4. Measure grounding and retrieval relevance on annotated test queries

Explanation

Correct Answer

C:

Shared trace identifiers let investigators join otherwise separate telemetry streams without relying on copied customer messages.

Incorrect Answers

A:

Pipeline-stage errors and missing records can explain ingestion gaps even when the search service endpoint itself is reachable; the requested solution requires connecting errors seen in a mobile app to an agent execution trace rather than this different mechanism.

B:

Per-request input and output token metrics identify consumption changes and can connect them to cost without exposing prompt bodies; it addresses a neighboring concern, while the task tests connecting errors seen in a mobile app to an agent execution trace.

D:

Groundedness and relevance diagnostics reveal mismatches between evidence and final claims that ordinary availability monitoring cannot show; on its own this leaves connecting errors seen in a mobile app to an agent execution trace unaddressed.

Question 121

An AI team must estimate monthly expense for a chat app with large input prompts. Which method is the best fit?

  1. Model input and output token volumes separately
  2. Cache approved, non-sensitive tool results with explicit freshness limits
  3. Route narrow classification to an evaluated lower-cost model or rule
  4. Restrict context to relevant retrieved passages

Explanation

Correct Answer

A:

Billing and capacity can depend on both prompt and generated tokens; a simple count of API calls hides large differences in request size.

Incorrect Answers

B:

Controlled caching avoids duplicate tool charges but must respect per-user access and the period when source data remains valid; the requested solution requires estimating monthly expense for a chat app with large input prompts rather than this different mechanism.

C:

A simple decision often does not need a highest-capability generative model; quality verification guards against false economy; it addresses a neighboring concern, while the task tests estimating monthly expense for a chat app with large input prompts.

D:

Reducing irrelevant context decreases prompt-token consumption and can improve answer focus while preserving useful evidence; it cannot substitute for estimating monthly expense for a chat app with large input prompts under these conditions.

Question 122

A retrieval application includes entire manuals in every model request. Which implementation should the team choose?

  1. Restrict context to relevant retrieved passages
  2. Measure context utilization and task success while trimming prompt components
  3. Model input and output token volumes separately
  4. Combine resource cost records with tagged deployment and application usage

Explanation

Correct Answer

A:

Reducing irrelevant context decreases prompt-token consumption and can improve answer focus while preserving useful evidence.

Incorrect Answers

B:

Cost optimization should preserve evidence and instructions needed for correct answers; token reduction alone is not the objective; the scenario instead depends on restricting context to relevant retrieved passages.

C:

Billing and capacity can depend on both prompt and generated tokens; a simple count of API calls hides large differences in request size; the requested solution requires restricting context to relevant retrieved passages rather than this different mechanism.

D:

Billing metadata associates infrastructure charges with owners while application telemetry apportions shared model consumption; it addresses a neighboring concern, while the task tests restricting context to relevant retrieved passages.

Question 123

An assistant repeatedly sends a long unchanging policy preamble to the same model. What solution would satisfy this constraint?

  1. Route narrow classification to an evaluated lower-cost model or rule
  2. Restrict context to relevant retrieved passages
  3. Limit tool iterations, tokens, and per-run budgets
  4. Assess supported prompt caching for reusable prefixes

Explanation

Correct Answer

D:

Where the deployment supports caching, stable repeated input can reduce repeated processing cost; not every request or model qualifies.

Incorrect Answers

A:

A simple decision often does not need a highest-capability generative model; quality verification guards against false economy; that would not ensure assessing supported prompt caching for reusable prefixes for this workload.

B:

Reducing irrelevant context decreases prompt-token consumption and can improve answer focus while preserving useful evidence; the needed design choice concerns assessing supported prompt caching for reusable prefixes instead.

C:

Execution bounds prevent a loop from endlessly consuming model tokens or paid tools; logging after the fact cannot enforce a cap; the scenario instead depends on assessing supported prompt caching for reusable prefixes.

Question 124

A bot uses a premium model to determine which predefined support queue receives a ticket. What should the engineer implement?

  1. Limit tool iterations, tokens, and per-run budgets
  2. Measure context utilization and task success while trimming prompt components
  3. Restrict context to relevant retrieved passages
  4. Model input and output token volumes separately
  5. Route narrow classification to an evaluated lower-cost model or rule

Explanation

Correct Answer

E:

A simple decision often does not need a highest-capability generative model; quality verification guards against false economy.

Incorrect Answers

A:

Execution bounds prevent a loop from endlessly consuming model tokens or paid tools; logging after the fact cannot enforce a cap; the relevant decision is routing narrow classification to an evaluated lower-cost model or rule, not the separate action described here.

B:

Cost optimization should preserve evidence and instructions needed for correct answers; token reduction alone is not the objective; that would not ensure routing narrow classification to an evaluated lower-cost model or rule for this workload.

C:

Reducing irrelevant context decreases prompt-token consumption and can improve answer focus while preserving useful evidence; the needed design choice concerns routing narrow classification to an evaluated lower-cost model or rule instead.

D:

Billing and capacity can depend on both prompt and generated tokens; a simple count of API calls hides large differences in request size; the scenario instead depends on routing narrow classification to an evaluated lower-cost model or rule.

Question 125

An agent calls a paid external API multiple times for an identical unchanged request. Which method is the best fit?

  1. Restrict context to relevant retrieved passages
  2. Cache approved, non-sensitive tool results with explicit freshness limits
  3. Measure context utilization and task success while trimming prompt components
  4. Limit tool iterations, tokens, and per-run budgets

Explanation

Correct Answer

B:

Controlled caching avoids duplicate tool charges but must respect per-user access and the period when source data remains valid.

Incorrect Answers

A:

Reducing irrelevant context decreases prompt-token consumption and can improve answer focus while preserving useful evidence; that mechanism does not itself establish caching approved, non-sensitive tool results with explicit freshness limits.

C:

Cost optimization should preserve evidence and instructions needed for correct answers; token reduction alone is not the objective; that would not ensure caching approved, non-sensitive tool results with explicit freshness limits for this workload.

D:

Execution bounds prevent a loop from endlessly consuming model tokens or paid tools; logging after the fact cannot enforce a cap; the needed design choice concerns caching approved, non-sensitive tool results with explicit freshness limits instead.

Question 126

A product owner needs to cap unpredictable multi-step agent expenses. How should the developer address this requirement?

  1. Model input and output token volumes separately
  2. Restrict context to relevant retrieved passages
  3. Assess supported prompt caching for reusable prefixes
  4. Limit tool iterations, tokens, and per-run budgets

Explanation

Correct Answer

D:

Execution bounds prevent a loop from endlessly consuming model tokens or paid tools; logging after the fact cannot enforce a cap.

Incorrect Answers

A:

Billing and capacity can depend on both prompt and generated tokens; a simple count of API calls hides large differences in request size; meeting the stated constraint still involves caping unpredictable multi-step agent expenses.

B:

Reducing irrelevant context decreases prompt-token consumption and can improve answer focus while preserving useful evidence; that mechanism does not itself establish caping unpredictable multi-step agent expenses.

C:

Where the deployment supports caching, stable repeated input can reduce repeated processing cost; not every request or model qualifies; the relevant decision is caping unpredictable multi-step agent expenses, not the separate action described here.

Question 127

A finance dashboard must explain model spending across several regions and teams. Which design choice is most appropriate?

  1. Route narrow classification to an evaluated lower-cost model or rule
  2. Combine resource cost records with tagged deployment and application usage
  3. Model input and output token volumes separately
  4. Restrict context to relevant retrieved passages

Explanation

Correct Answer

B:

Billing metadata associates infrastructure charges with owners while application telemetry apportions shared model consumption.

Incorrect Answers

A:

A simple decision often does not need a highest-capability generative model; quality verification guards against false economy; on its own this leaves explaining model spending across several regions and teams unaddressed.

C:

Billing and capacity can depend on both prompt and generated tokens; a simple count of API calls hides large differences in request size; that mechanism does not itself establish explaining model spending across several regions and teams.

D:

Reducing irrelevant context decreases prompt-token consumption and can improve answer focus while preserving useful evidence; the relevant decision is explaining model spending across several regions and teams, not the separate action described here.

Question 128

An engineer wants to reduce cost but fears that smaller prompts will omit critical grounding passages. Which of the following would meet this need?

  1. Combine resource cost records with tagged deployment and application usage
  2. Limit tool iterations, tokens, and per-run budgets
  3. Assess supported prompt caching for reusable prefixes
  4. Measure context utilization and task success while trimming prompt components

Explanation

Correct Answer

D:

Cost optimization should preserve evidence and instructions needed for correct answers; token reduction alone is not the objective.

Incorrect Answers

A:

Billing metadata associates infrastructure charges with owners while application telemetry apportions shared model consumption; it cannot substitute for reducing cost but fears that smaller prompts will omit critical grounding passages under these conditions.

B:

Execution bounds prevent a loop from endlessly consuming model tokens or paid tools; logging after the fact cannot enforce a cap; on its own this leaves reducing cost but fears that smaller prompts will omit critical grounding passages unaddressed.

C:

Where the deployment supports caching, stable repeated input can reduce repeated processing cost; not every request or model qualifies; meeting the stated constraint still involves reducing cost but fears that smaller prompts will omit critical grounding passages.

Question 129

Inference requests return HTTP 429 with retry guidance. Which of the following would meet this need?

  1. Honor throttling signals and use exponential backoff with jitter
  2. Fix RBAC rather than treating persistent HTTP 403 responses as transient
  3. Set request deadlines and cancellation propagation
  4. Control requested output length and concurrent token demand

Explanation

Correct Answer

A:

Rate limits indicate temporary request pressure; spreading retries prevents synchronized clients from amplifying the overload.

Incorrect Answers

B:

Authorization denials are not solved by delay; repeated requests add load without changing the principal's effective rights; it cannot substitute for honoring throttling signals and use exponential backoff with jitter under these conditions.

C:

Timeout budgets constrain end-to-end latency and avoid continued token spend after an abandoned user workflow; on its own this leaves honoring throttling signals and use exponential backoff with jitter unaddressed.

D:

Throughput planning must consider completion size and concurrent generation, not just the number of open HTTP connections; meeting the stated constraint still involves honoring throttling signals and use exponential backoff with jitter.

Question 130

A tool worker retries every failed payment request after a timeout. Which implementation should the team choose?

  1. Control requested output length and concurrent token demand
  2. Prioritize interactive traffic and throttle background tasks
  3. Introduce a bounded queue and admission control
  4. Introduce idempotency keys before retrying write actions

Explanation

Correct Answer

D:

A timeout does not prove the earlier payment failed; a stable operation identifier prevents duplicate side effects.

Incorrect Answers

A:

Throughput planning must consider completion size and concurrent generation, not just the number of open HTTP connections; the requested solution requires introducing idempotency keys before retrying write actions rather than this different mechanism.

B:

Workload-aware scheduling protects user-facing requests when a shared token budget becomes scarce; it addresses a neighboring concern, while the task tests introducing idempotency keys before retrying write actions.

C:

Backpressure rejects or defers excess work before the queue consumes all memory; increasing HTTP timeouts alone worsens accumulation; it cannot substitute for introducing idempotency keys before retrying write actions under these conditions.

Developing AI Apps and Agents on Azure (AI-103) Practice Tests