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

Question 400

A team wants to cancel a scheduled agent workflow that has not yet performed its side effects. Which action directly produces the required outcome?

  1. Restore progress from durable task state and receipts
  2. Define a compensating action for previously committed steps
  3. Implement cancellation checks at safe transition points
  4. Model the approval as an explicit paused state with resumable input

Explanation

Correct Answer

C:

A cancellation flag in trusted orchestration code can stop future actions; a prompt telling an unavailable model to stop cannot.

Incorrect Answers

A:

Operational continuity must not depend solely on ephemeral model tokens or one process's memory; the requested solution requires canceling a scheduled agent workflow that has not yet performed its side effects rather than this different mechanism.

B:

Distributed workflows often cannot use a single global transaction, so explicit compensation restores business consistency; it addresses a neighboring concern, while the task tests canceling a scheduled agent workflow that has not yet performed its side effects.

D:

A state machine can stop before publication and resume only after valid authorized approval arrives; on its own this leaves canceling a scheduled agent workflow that has not yet performed its side effects unaddressed.

Question 401

A summarization tool returns a temporary 503 error during peak usage. Which configuration or component should be selected?

  1. Correct the argument schema or ask for the missing value
  2. Check an idempotency token or existing ticket receipt before resubmitting
  3. Perform response-schema validation independently of HTTP success
  4. Retry the read operation with bounded exponential backoff

Explanation

Correct Answer

D:

Transient service failures may recover, but retry limits prevent endless traffic against an unhealthy dependency.

Incorrect Answers

A:

Client-side validation errors normally require a changed request; waiting and retrying unchanged data cannot fix it; the scenario instead depends on retrying the read operation with bounded exponential backoff.

B:

The first attempt may have completed despite the timeout; deduplication protects the system of record; the requested solution requires retrying the read operation with bounded exponential backoff rather than this different mechanism.

C:

Transport success does not establish payload usability; malformed content should be treated as an integration failure; it addresses a neighboring concern, while the task tests retrying the read operation with bounded exponential backoff.

Question 402

A function call returns HTTP 400 because its required field is absent. Which configuration or component should be selected?

  1. Separate item-level failures from the batch and persist successful checkpoints
  2. Retry the read operation with bounded exponential backoff
  3. Correct the argument schema or ask for the missing value
  4. Report completed, pending, and failed actions from durable receipts

Explanation

Correct Answer

C:

Client-side validation errors normally require a changed request; waiting and retrying unchanged data cannot fix it.

Incorrect Answers

A:

Partial-progress handling isolates corrupt inputs while enabling deterministic retry of only failed records; the needed design choice concerns correcting the argument schema or ask for the missing value instead.

B:

Transient service failures may recover, but retry limits prevent endless traffic against an unhealthy dependency; the scenario instead depends on correcting the argument schema or ask for the missing value.

D:

An execution-state summary should derive from actual tool results rather than the model's assumed plan; it addresses a neighboring concern, while the task tests correcting the argument schema or ask for the missing value.

Question 403

A system receives a valid HTTP 200 but the returned JSON is missing a contract field. Which action directly produces the required outcome?

  1. Report completed, pending, and failed actions from durable receipts
  2. Perform response-schema validation independently of HTTP success
  3. Use a circuit breaker and an explicit fallback or escalation state
  4. Check an idempotency token or existing ticket receipt before resubmitting
  5. Separate item-level failures from the batch and persist successful checkpoints

Explanation

Correct Answer

B:

Transport success does not establish payload usability; malformed content should be treated as an integration failure.

Incorrect Answers

A:

An execution-state summary should derive from actual tool results rather than the model's assumed plan; that would not ensure performing response-schema validation independently of HTTP success for this workload.

C:

Repeated attempts to a failing dependency consume resources without progress; a controlled alternative is safer; the scenario instead depends on performing response-schema validation independently of HTTP success.

D:

The first attempt may have completed despite the timeout; deduplication protects the system of record; the requested solution requires performing response-schema validation independently of HTTP success rather than this different mechanism.

E:

Partial-progress handling isolates corrupt inputs while enabling deterministic retry of only failed records; it addresses a neighboring concern, while the task tests performing response-schema validation independently of HTTP success.

Question 404

A write tool times out after submitting a new ticket and retries may create duplicates. What solution would satisfy this constraint?

  1. Retry the read operation with bounded exponential backoff
  2. Correct the argument schema or ask for the missing value
  3. Separate item-level failures from the batch and persist successful checkpoints
  4. Check an idempotency token or existing ticket receipt before resubmitting

Explanation

Correct Answer

D:

The first attempt may have completed despite the timeout; deduplication protects the system of record.

Incorrect Answers

A:

Transient service failures may recover, but retry limits prevent endless traffic against an unhealthy dependency; the relevant decision is checking an idempotency token or existing ticket receipt before resubmitting, not the separate action described here.

B:

Client-side validation errors normally require a changed request; waiting and retrying unchanged data cannot fix it; that would not ensure checking an idempotency token or existing ticket receipt before resubmitting for this workload.

C:

Partial-progress handling isolates corrupt inputs while enabling deterministic retry of only failed records; the needed design choice concerns checking an idempotency token or existing ticket receipt before resubmitting instead.

Question 405

A model calls an unavailable specialist agent repeatedly until its budget is exhausted. Which action directly produces the required outcome?

  1. Perform response-schema validation independently of HTTP success
  2. Use a circuit breaker and an explicit fallback or escalation state
  3. Retry the read operation with bounded exponential backoff
  4. Correct the argument schema or ask for the missing value

Explanation

Correct Answer

B:

Repeated attempts to a failing dependency consume resources without progress; a controlled alternative is safer.

Incorrect Answers

A:

Transport success does not establish payload usability; malformed content should be treated as an integration failure; that mechanism does not itself establish using a circuit breaker and an explicit fallback or escalation state.

C:

Transient service failures may recover, but retry limits prevent endless traffic against an unhealthy dependency; that would not ensure using a circuit breaker and an explicit fallback or escalation state for this workload.

D:

Client-side validation errors normally require a changed request; waiting and retrying unchanged data cannot fix it; the needed design choice concerns using a circuit breaker and an explicit fallback or escalation state instead.

Question 406

An API rejects an agent action as unauthorized. What should the engineer implement?

  1. Retry the read operation with bounded exponential backoff
  2. Report completed, pending, and failed actions from durable receipts
  3. Check an idempotency token or existing ticket receipt before resubmitting
  4. Surface the permission denial and request appropriate access review
  5. Use a circuit breaker and an explicit fallback or escalation state

Explanation

Correct Answer

D:

Changing the prompt cannot grant identity privileges; authorization errors require policy or role remediation.

Incorrect Answers

A:

Transient service failures may recover, but retry limits prevent endless traffic against an unhealthy dependency; meeting the stated constraint still involves surfacing the permission denial and request appropriate access review.

B:

An execution-state summary should derive from actual tool results rather than the model's assumed plan; that mechanism does not itself establish surfacing the permission denial and request appropriate access review.

C:

The first attempt may have completed despite the timeout; deduplication protects the system of record; the relevant decision is surfacing the permission denial and request appropriate access review, not the separate action described here.

E:

Repeated attempts to a failing dependency consume resources without progress; a controlled alternative is safer; the needed design choice concerns surfacing the permission denial and request appropriate access review instead.

Question 407

An extraction worker produces partially valid records and must not lose accepted work after one bad file. Which of the following would meet this need?

  1. Report completed, pending, and failed actions from durable receipts
  2. Separate item-level failures from the batch and persist successful checkpoints
  3. Surface the permission denial and request appropriate access review
  4. Retry the read operation with bounded exponential backoff

Explanation

Correct Answer

B:

Partial-progress handling isolates corrupt inputs while enabling deterministic retry of only failed records.

Incorrect Answers

A:

An execution-state summary should derive from actual tool results rather than the model's assumed plan; on its own this leaves noting lose accepted work after one bad file unaddressed.

C:

Changing the prompt cannot grant identity privileges; authorization errors require policy or role remediation; that mechanism does not itself establish noting lose accepted work after one bad file.

D:

Transient service failures may recover, but retry limits prevent endless traffic against an unhealthy dependency; the relevant decision is noting lose accepted work after one bad file, not the separate action described here.

Question 408

A multi-step agent fails after some external effects and needs to explain its status to the user. What should the engineer implement?

  1. Correct the argument schema or ask for the missing value
  2. Report completed, pending, and failed actions from durable receipts
  3. Check an idempotency token or existing ticket receipt before resubmitting
  4. Separate item-level failures from the batch and persist successful checkpoints
  5. Surface the permission denial and request appropriate access review

Explanation

Correct Answer

B:

An execution-state summary should derive from actual tool results rather than the model's assumed plan.

Incorrect Answers

A:

Client-side validation errors normally require a changed request; waiting and retrying unchanged data cannot fix it; it cannot substitute for explaining its status to the user under these conditions.

C:

The first attempt may have completed despite the timeout; deduplication protects the system of record; meeting the stated constraint still involves explaining its status to the user.

D:

Partial-progress handling isolates corrupt inputs while enabling deterministic retry of only failed records; that mechanism does not itself establish explaining its status to the user.

E:

Changing the prompt cannot grant identity privileges; authorization errors require policy or role remediation; the relevant decision is explaining its status to the user, not the separate action described here.

Question 409

An orchestrated agent occasionally invokes the wrong tool, sends invalid arguments, and loops between two specialists. The team needs diagnostic evidence for each failure mode, not just a record of the final answer. Which THREE investigations or controls should they prioritize? Choose THREE.

  1. Review recorded tool-selection decisions and their submitted parameters
  2. Inspect specialist handoffs and stop cyclical delegation after a defined limit
  3. Propagate a consistent trace or correlation identifier end to end
  4. Use redacted traces with operation names, timings, and safe identifiers
  5. Break down latency by search, tool, model, and orchestration spans
  6. Tie invalid tool-argument events to model and prompt versions

Explanation

Correct Answers

A:

Tool-level spans reveal operational decisions that cannot be inferred from the final natural-language answer; wrong-function incidents need actual selected names and submitted arguments.

B:

Call topology reveals circular orchestration, while a run cap prevents the same failure from running indefinitely; a handoff graph makes repeated back-and-forth delegation diagnosable.

F:

Deployment metadata on traces supports regression isolation rather than treating all malformed calls as the same incident; deployment-version correlation helps isolate changes that introduced malformed calls.

Incorrect Answers

C:

Shared request context joins gateway, app, model, and connector records into a single incident timeline; on its own this leaves tool argument traces, delegation-loop limits, and regression correlation unaddressed.

D:

Observability can preserve execution structure and performance evidence without storing private payload contents; meeting the stated constraint still involves tool argument traces, delegation-loop limits, and regression correlation.

E:

Stage-level timing identifies the true critical path, avoiding guesswork based on a single overall duration; that mechanism does not itself establish tool argument traces, delegation-loop limits, and regression correlation.

Question 410

A response takes 20 seconds and engineers suspect slow retrieval rather than generation. Which design choice is most appropriate?

  1. Record tool version and connection identifiers with each invocation
  2. Break down latency by search, tool, model, and orchestration spans
  3. Inspect handoff spans and set delegation-iteration limits
  4. Correlate schema-validation errors with model and prompt versions
  5. Use redacted traces with operation names, timings, and safe identifiers

Explanation

Correct Answer

B:

Stage-level timing identifies the true critical path, avoiding guesswork based on a single overall duration.

Incorrect Answers

A:

Version-aware telemetry links failures to the deployed integration artifact and helps locate affected agents; the requested solution requires breaking down latency by search, tool, model, and orchestration spans rather than this different mechanism.

C:

Call topology reveals circular orchestration, while a run cap prevents the same failure from running indefinitely; it cannot substitute for breaking down latency by search, tool, model, and orchestration spans under these conditions.

D:

Deployment metadata on traces supports regression isolation rather than treating all malformed calls as the same incident; on its own this leaves breaking down latency by search, tool, model, and orchestration spans unaddressed.

E:

Observability can preserve execution structure and performance evidence without storing private payload contents; meeting the stated constraint still involves breaking down latency by search, tool, model, and orchestration spans.

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