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

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.

Question 131

A sudden traffic spike causes unbounded pending requests and memory exhaustion. Which method is the best fit?

  1. Introduce idempotency keys before retrying write actions
  2. Retry safe, transient operations with a finite attempt limit
  3. Control requested output length and concurrent token demand
  4. Introduce a bounded queue and admission control

Explanation

Correct Answer

D:

Backpressure rejects or defers excess work before the queue consumes all memory; increasing HTTP timeouts alone worsens accumulation.

Incorrect Answers

A:

A timeout does not prove the earlier payment failed; a stable operation identifier prevents duplicate side effects; the scenario instead depends on introducing a bounded queue and admission control.

B:

A bounded transient-failure policy improves resilience without creating infinite retry loops or masking sustained outages; the requested solution requires introducing a bounded queue and admission control rather than this different mechanism.

C:

Throughput planning must consider completion size and concurrent generation, not just the number of open HTTP connections; it addresses a neighboring concern, while the task tests introducing a bounded queue and admission control.

Question 132

A support assistant repeatedly receives HTTP 403 from its knowledge store and continues retrying until calls exceed a strict response deadline. Which TWO changes should the engineering team implement to prevent this failure pattern? Choose TWO.

  1. Introduce idempotency keys before retrying write actions
  2. Introduce a bounded queue and admission control
  3. Correct the search-store role grants responsible for persistent authorization failures
  4. Honor throttling signals and use exponential backoff with jitter
  5. Enforce the request deadline with cancellation propagation across dependencies

Explanation

Correct Answers

C:

Authorization denials are not solved by delay; repeated requests add load without changing the principal's effective rights; a permission denial requires authorization repair rather than an endless retry loop.

E:

Timeout budgets constrain end-to-end latency and avoid continued token spend after an abandoned user workflow; the caller must stop waiting when the business response limit has passed.

Incorrect Answers

A:

A timeout does not prove the earlier payment failed; a stable operation identifier prevents duplicate side effects; the needed design choice concerns repairing denied authorization while imposing a business deadline instead.

B:

Backpressure rejects or defers excess work before the queue consumes all memory; increasing HTTP timeouts alone worsens accumulation; the scenario instead depends on repairing denied authorization while imposing a business deadline.

D:

Rate limits indicate temporary request pressure; spreading retries prevents synchronized clients from amplifying the overload; it addresses a neighboring concern, while the task tests repairing denied authorization while imposing a business deadline.

Question 133

A service experiences occasional gateway timeouts but usually succeeds on a second attempt. Which action directly produces the required outcome?

  1. Prioritize interactive traffic and throttle background tasks
  2. Set request deadlines and cancellation propagation
  3. Introduce a bounded queue and admission control
  4. Retry safe, transient operations with a finite attempt limit

Explanation

Correct Answer

D:

A bounded transient-failure policy improves resilience without creating infinite retry loops or masking sustained outages.

Incorrect Answers

A:

Workload-aware scheduling protects user-facing requests when a shared token budget becomes scarce; that would not ensure retrying safe, transient operations with a finite attempt limit for this workload.

B:

Timeout budgets constrain end-to-end latency and avoid continued token spend after an abandoned user workflow; the needed design choice concerns retrying safe, transient operations with a finite attempt limit instead.

C:

Backpressure rejects or defers excess work before the queue consumes all memory; increasing HTTP timeouts alone worsens accumulation; the scenario instead depends on retrying safe, transient operations with a finite attempt limit.

Question 134

A team must continue serving low-priority summarization during a quota-constrained peak period. Which implementation should the team choose?

  1. Prioritize interactive traffic and throttle background tasks
  2. Fix RBAC rather than treating persistent HTTP 403 responses as transient
  3. Retry safe, transient operations with a finite attempt limit
  4. Honor throttling signals and use exponential backoff with jitter
  5. Set request deadlines and cancellation propagation

Explanation

Correct Answer

A:

Workload-aware scheduling protects user-facing requests when a shared token budget becomes scarce.

Incorrect Answers

B:

Authorization denials are not solved by delay; repeated requests add load without changing the principal's effective rights; that would not ensure continuing serving low-priority summarization during a quota-constrained peak period for this workload.

C:

A bounded transient-failure policy improves resilience without creating infinite retry loops or masking sustained outages; the needed design choice concerns continuing serving low-priority summarization during a quota-constrained peak period instead.

D:

Rate limits indicate temporary request pressure; spreading retries prevents synchronized clients from amplifying the overload; the scenario instead depends on continuing serving low-priority summarization during a quota-constrained peak period.

E:

Timeout budgets constrain end-to-end latency and avoid continued token spend after an abandoned user workflow; the requested solution requires continuing serving low-priority summarization during a quota-constrained peak period rather than this different mechanism.

Question 135

A caller needs predictable completion time and should abandon responses that exceed a business deadline. What is the most suitable next implementation decision?

  1. Control requested output length and concurrent token demand
  2. Honor throttling signals and use exponential backoff with jitter
  3. Set request deadlines and cancellation propagation
  4. Prioritize interactive traffic and throttle background tasks

Explanation

Correct Answer

C:

Timeout budgets constrain end-to-end latency and avoid continued token spend after an abandoned user workflow.

Incorrect Answers

A:

Throughput planning must consider completion size and concurrent generation, not just the number of open HTTP connections; that mechanism does not itself establish abandoning responses that exceed a business deadline.

B:

Rate limits indicate temporary request pressure; spreading retries prevents synchronized clients from amplifying the overload; the relevant decision is abandoning responses that exceed a business deadline, not the separate action described here.

D:

Workload-aware scheduling protects user-facing requests when a shared token budget becomes scarce; the needed design choice concerns abandoning responses that exceed a business deadline instead.

Question 136

A model endpoint has capacity for many short requests but long responses block subsequent traffic. Which of the following would meet this need?

  1. Retry safe, transient operations with a finite attempt limit
  2. Fix RBAC rather than treating persistent HTTP 403 responses as transient
  3. Control requested output length and concurrent token demand
  4. Honor throttling signals and use exponential backoff with jitter

Explanation

Correct Answer

C:

Throughput planning must consider completion size and concurrent generation, not just the number of open HTTP connections.

Incorrect Answers

A:

A bounded transient-failure policy improves resilience without creating infinite retry loops or masking sustained outages; meeting the stated constraint still involves controling requested output length and concurrent token demand.

B:

Authorization denials are not solved by delay; repeated requests add load without changing the principal's effective rights; that mechanism does not itself establish controling requested output length and concurrent token demand.

D:

Rate limits indicate temporary request pressure; spreading retries prevents synchronized clients from amplifying the overload; that would not ensure controling requested output length and concurrent token demand for this workload.

Question 137

A retrieval-based assistant has acceptable model latency but slow total response time. Which implementation should the team choose?

  1. Investigate saturation and provision capacity or limit concurrency
  2. Resize or encode images to supported task-appropriate fidelity before submission
  3. Instrument retrieval, reranking, tool, and generation stages separately
  4. Run safe independent tool calls concurrently where the framework permits
  5. Use streaming output in a supported client integration

Explanation

Correct Answer

C:

Stage-level timings identify the true bottleneck; optimizing model inference will not fix slow indexing or search calls.

Incorrect Answers

A:

Tail latency spikes often indicate overloaded queues; averages can hide the poor experience of high-percentile requests; on its own this leaves instrumenting retrieval, reranking, tool, and generation stages separately unaddressed.

B:

Input optimization can reduce transport and processing cost but must retain the detail needed for accurate visual reasoning; meeting the stated constraint still involves instrumenting retrieval, reranking, tool, and generation stages separately.

D:

Parallelism reduces critical-path duration for unrelated reads, while dependent or mutating operations still need ordering; the relevant decision is instrumenting retrieval, reranking, tool, and generation stages separately, not the separate action described here.

E:

Streaming improves perceived responsiveness by delivering partial tokens while generation continues, without necessarily reducing total compute; that would not ensure instrumenting retrieval, reranking, tool, and generation stages separately for this workload.

Question 138

A web chat must show the start of an answer before the entire response finishes. Which design choice is most appropriate?

  1. Use streaming output in a supported client integration
  2. Investigate saturation and provision capacity or limit concurrency
  3. Summarize or trim low-value history while preserving critical state
  4. Instrument retrieval, reranking, tool, and generation stages separately
  5. Run safe independent tool calls concurrently where the framework permits
  6. Precompute and persist document vectors during ingestion

Explanation

Correct Answer

A:

Streaming improves perceived responsiveness by delivering partial tokens while generation continues, without necessarily reducing total compute.

Incorrect Answers

B:

Tail latency spikes often indicate overloaded queues; averages can hide the poor experience of high-percentile requests; on its own this leaves showing the start of an answer before the entire response finishes unaddressed.

C:

Context management limits tokens and latency while keeping decisions, constraints, and references needed by later turns; meeting the stated constraint still involves showing the start of an answer before the entire response finishes.

D:

Stage-level timings identify the true bottleneck; optimizing model inference will not fix slow indexing or search calls; that mechanism does not itself establish showing the start of an answer before the entire response finishes.

E:

Parallelism reduces critical-path duration for unrelated reads, while dependent or mutating operations still need ordering; the relevant decision is showing the start of an answer before the entire response finishes, not the separate action described here.

F:

Index-time embeddings avoid repeated work for static document content; only query-side encoding needs to run per question; that would not ensure showing the start of an answer before the entire response finishes for this workload.

Question 139

A globally used app must maintain acceptable latency for geographically distant users. What solution would satisfy this constraint?

  1. Measure end-to-end latency and deploy eligible services near supported users
  2. Precompute and persist document vectors during ingestion
  3. Summarize or trim low-value history while preserving critical state
  4. Instrument retrieval, reranking, tool, and generation stages separately

Explanation

Correct Answer

A:

Regional placement can reduce network delay, but must be balanced against availability, quota, and data residency obligations.

Incorrect Answers

B:

Index-time embeddings avoid repeated work for static document content; only query-side encoding needs to run per question; it cannot substitute for maintaining acceptable latency for geographically distant users under these conditions.

C:

Context management limits tokens and latency while keeping decisions, constraints, and references needed by later turns; on its own this leaves maintaining acceptable latency for geographically distant users unaddressed.

D:

Stage-level timings identify the true bottleneck; optimizing model inference will not fix slow indexing or search calls; meeting the stated constraint still involves maintaining acceptable latency for geographically distant users.

Question 140

A model deployment has low average latency but severe queueing at the 99th percentile. Which action directly produces the required outcome?

  1. Summarize or trim low-value history while preserving critical state
  2. Run safe independent tool calls concurrently where the framework permits
  3. Precompute and persist document vectors during ingestion
  4. Investigate saturation and provision capacity or limit concurrency

Explanation

Correct Answer

D:

Tail latency spikes often indicate overloaded queues; averages can hide the poor experience of high-percentile requests.

Incorrect Answers

A:

Context management limits tokens and latency while keeping decisions, constraints, and references needed by later turns; the requested solution requires investigating saturation and provision capacity or limit concurrency rather than this different mechanism.

B:

Parallelism reduces critical-path duration for unrelated reads, while dependent or mutating operations still need ordering; it addresses a neighboring concern, while the task tests investigating saturation and provision capacity or limit concurrency.

C:

Index-time embeddings avoid repeated work for static document content; only query-side encoding needs to run per question; it cannot substitute for investigating saturation and provision capacity or limit concurrency under these conditions.

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