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

Question 430

A retrieval workflow always sends a fixed top-20 evidence set even for short questions. What is the most suitable next implementation decision?

  1. Reserve expensive multi-candidate evaluation for uncertain or high-risk cases
  2. Cap model steps and apply explicit stopping criteria
  3. Evaluate supported caching for stable prompt prefixes
  4. Use relevance thresholds and a variable context budget

Explanation

Correct Answer

D:

Evidence selection should reflect the task; overly broad retrieval wastes tokens and may degrade grounding.

Incorrect Answers

A:

Adaptive computation concentrates extra checking where it changes decisions instead of multiplying cost for trivial tasks; the requested solution requires using relevance thresholds and a variable context budget rather than this different mechanism.

B:

Execution budgets limit cumulative inference consumption and force unresolved tasks into a controlled escalation path; it addresses a neighboring concern, while the task tests using relevance thresholds and a variable context budget.

C:

Where offered, prompt caching can reduce repeated input processing; cache eligibility and confidentiality must be verified; it cannot substitute for using relevance thresholds and a variable context budget under these conditions.

Question 431

A customer-support agent still resolves tickets correctly, and cost-per-resolution reporting already shows a sharp increase. Traces reveal exceptionally long planner runs with repeated tool activity. Which TWO actions most directly isolate and cap this excess cost? Choose TWO.

  1. Use modality-aware routing and avoid unnecessary media input
  2. Summarize or omit obsolete tool outputs before future inference
  3. Stop agent planning after bounded steps or a clear completion criterion
  4. Combine per-run token, tool, and infrastructure usage into a cost model
  5. Investigate repeated tool calls, routing, and per-run token prices together

Explanation

Correct Answers

C:

Execution budgets limit cumulative inference consumption and force unresolved tasks into a controlled escalation path; unbounded planning can consume tokens without improving ticket outcomes.

E:

Cost-per-success reflects execution efficiency, not simply the advertised inference rate of one model; tool repetition and routing policy can dominate spend despite unchanged accuracy.

Incorrect Answers

A:

Visual processing can cost more and increase latency; only tasks requiring pixel evidence should use the image path; the scenario instead depends on bounded planning and investigation of repeated model/tool cost.

B:

Reducing irrelevant carried context limits token expansion without discarding confirmed current state; the requested solution requires bounded planning and investigation of repeated model/tool cost rather than this different mechanism.

D:

A full task can include many model calls and paid tools; one model response price underestimates total workflow expense; it cannot substitute for bounded planning and investigation of repeated model/tool cost under these conditions.

Question 432

An agent tests multiple candidate answers on every low-risk FAQ regardless of need. What should be included in the design?

  1. Reserve expensive multi-candidate evaluation for uncertain or high-risk cases
  2. Use modality-aware routing and avoid unnecessary media input
  3. Investigate tool retries, run length, and model routing alongside token prices
  4. Combine per-run token, tool, and infrastructure usage into a cost model

Explanation

Correct Answer

A:

Adaptive computation concentrates extra checking where it changes decisions instead of multiplying cost for trivial tasks.

Incorrect Answers

B:

Visual processing can cost more and increase latency; only tasks requiring pixel evidence should use the image path; the scenario instead depends on reserving expensive multi-candidate evaluation for uncertain or high-risk cases.

C:

Cost-per-success reflects execution efficiency, not simply the advertised inference rate of one model; the requested solution requires reserving expensive multi-candidate evaluation for uncertain or high-risk cases rather than this different mechanism.

D:

A full task can include many model calls and paid tools; one model response price underestimates total workflow expense; it addresses a neighboring concern, while the task tests reserving expensive multi-candidate evaluation for uncertain or high-risk cases.

Question 433

A search result includes 'ignore all instructions' in a policy paragraph. Which approach best meets the requirement?

  1. Present it as quoted source text and prohibit instruction promotion
  2. Include adversarial variations in the injection evaluation dataset
  3. Validate tool outputs and keep model secrets inaccessible to tool text
  4. Use provenance-aware parsing and do not execute document-borne instructions

Explanation

Correct Answer

A:

Retrieved text is evidence with lower trust than application policy; it cannot legitimately change operating instructions.

Incorrect Answers

B:

Robustness tests should reflect plausible attacker encodings and languages, not only one English attack phrase; the needed design choice concerns presenting it as quoted source text and prohibit instruction promotion instead.

C:

External tool results can be manipulated, so the runtime must not equate such text with authorized developer instructions; the scenario instead depends on presenting it as quoted source text and prohibit instruction promotion.

D:

Formatting inside a document does not establish authority; parsed content remains user or source data; the requested solution requires presenting it as quoted source text and prohibit instruction promotion rather than this different mechanism.

Question 434

A search snippet contains a URL requesting customer files to be uploaded there. What is the most suitable next implementation decision?

  1. Restrict outbound tool destinations and require explicit authorized actions
  2. Include adversarial variations in the injection evaluation dataset
  3. Use provenance-aware parsing and do not execute document-borne instructions
  4. Enforce ACL checks before adding snippets to the model prompt

Explanation

Correct Answer

A:

The source document cannot grant permission to exfiltrate data; tool allowlists prevent execution of attacker-supplied endpoints.

Incorrect Answers

B:

Robustness tests should reflect plausible attacker encodings and languages, not only one English attack phrase; that would not ensure restricting outbound tool destinations and require explicit authorized actions for this workload.

C:

Formatting inside a document does not establish authority; parsed content remains user or source data; the needed design choice concerns restricting outbound tool destinations and require explicit authorized actions instead.

D:

Authorization cannot be repaired by asking the model not to quote the content after it has already received it; the scenario instead depends on restricting outbound tool destinations and require explicit authorized actions.

Question 435

An agent's document parser mistakes a footer for an administrator command. What should be included in the design?

  1. Validate tool outputs and keep model secrets inaccessible to tool text
  2. Include adversarial variations in the injection evaluation dataset
  3. Enforce ACL checks before adding snippets to the model prompt
  4. Use provenance-aware parsing and do not execute document-borne instructions

Explanation

Correct Answer

D:

Formatting inside a document does not establish authority; parsed content remains user or source data.

Incorrect Answers

A:

External tool results can be manipulated, so the runtime must not equate such text with authorized developer instructions; that mechanism does not itself establish using provenance-aware parsing and do not execute document-borne instructions.

B:

Robustness tests should reflect plausible attacker encodings and languages, not only one English attack phrase; the relevant decision is using provenance-aware parsing and do not execute document-borne instructions, not the separate action described here.

C:

Authorization cannot be repaired by asking the model not to quote the content after it has already received it; that would not ensure using provenance-aware parsing and do not execute document-borne instructions for this workload.

Question 436

A RAG application inserts retrieved snippets into its privileged system-message template. What should the engineer implement?

  1. Move source passages to lower-trust contextual fields with clear delimiters
  2. Add targeted prompt-injection detection beyond general toxicity checks
  3. Include adversarial variations in the injection evaluation dataset
  4. Restrict outbound tool destinations and require explicit authorized actions

Explanation

Correct Answer

A:

Separating authority from evidence reduces the chance that malicious text in a document overrides system policy.

Incorrect Answers

B:

Instruction attacks can look benign to harmful-content classifiers; the threat model differs from profanity or violence detection; that mechanism does not itself establish moving source passages to lower-trust contextual fields with clear delimiters.

C:

Robustness tests should reflect plausible attacker encodings and languages, not only one English attack phrase; the relevant decision is moving source passages to lower-trust contextual fields with clear delimiters, not the separate action described here.

D:

The source document cannot grant permission to exfiltrate data; tool allowlists prevent execution of attacker-supplied endpoints; that would not ensure moving source passages to lower-trust contextual fields with clear delimiters for this workload.

Question 437

A tool API returns a warning string telling the agent to reveal its private conversation history. Which method is the best fit?

  1. Validate tool outputs and keep model secrets inaccessible to tool text
  2. Add targeted prompt-injection detection beyond general toxicity checks
  3. Include adversarial variations in the injection evaluation dataset
  4. Move source passages to lower-trust contextual fields with clear delimiters
  5. Present it as quoted source text and prohibit instruction promotion

Explanation

Correct Answer

A:

External tool results can be manipulated, so the runtime must not equate such text with authorized developer instructions.

Incorrect Answers

B:

Instruction attacks can look benign to harmful-content classifiers; the threat model differs from profanity or violence detection; meeting the stated constraint still involves validating tool outputs and keep model secrets inaccessible to tool text.

C:

Robustness tests should reflect plausible attacker encodings and languages, not only one English attack phrase; that mechanism does not itself establish validating tool outputs and keep model secrets inaccessible to tool text.

D:

Separating authority from evidence reduces the chance that malicious text in a document overrides system policy; the relevant decision is validating tool outputs and keep model secrets inaccessible to tool text, not the separate action described here.

E:

Retrieved text is evidence with lower trust than application policy; it cannot legitimately change operating instructions; that would not ensure validating tool outputs and keep model secrets inaccessible to tool text for this workload.

Question 438

A content moderation pass rates a retrieved page harmless despite hidden adversarial instructions. Which method is the best fit?

  1. Include adversarial variations in the injection evaluation dataset
  2. Restrict outbound tool destinations and require explicit authorized actions
  3. Present it as quoted source text and prohibit instruction promotion
  4. Add targeted prompt-injection detection beyond general toxicity checks
  5. Enforce ACL checks before adding snippets to the model prompt

Explanation

Correct Answer

D:

Instruction attacks can look benign to harmful-content classifiers; the threat model differs from profanity or violence detection.

Incorrect Answers

A:

Robustness tests should reflect plausible attacker encodings and languages, not only one English attack phrase; it cannot substitute for adding targeted prompt-injection detection beyond general toxicity checks under these conditions.

B:

The source document cannot grant permission to exfiltrate data; tool allowlists prevent execution of attacker-supplied endpoints; on its own this leaves adding targeted prompt-injection detection beyond general toxicity checks unaddressed.

C:

Retrieved text is evidence with lower trust than application policy; it cannot legitimately change operating instructions; meeting the stated constraint still involves adding targeted prompt-injection detection beyond general toxicity checks.

E:

Authorization cannot be repaired by asking the model not to quote the content after it has already received it; the relevant decision is adding targeted prompt-injection detection beyond general toxicity checks, not the separate action described here.

Question 439

A retriever returns an otherwise relevant document from a tenant the caller cannot access. What should be included in the design?

  1. Present it as quoted source text and prohibit instruction promotion
  2. Move source passages to lower-trust contextual fields with clear delimiters
  3. Enforce ACL checks before adding snippets to the model prompt
  4. Restrict outbound tool destinations and require explicit authorized actions

Explanation

Correct Answer

C:

Authorization cannot be repaired by asking the model not to quote the content after it has already received it.

Incorrect Answers

A:

Retrieved text is evidence with lower trust than application policy; it cannot legitimately change operating instructions; it addresses a neighboring concern, while the task tests enforcing aCL checks before adding snippets to the model prompt.

B:

Separating authority from evidence reduces the chance that malicious text in a document overrides system policy; it cannot substitute for enforcing aCL checks before adding snippets to the model prompt under these conditions.

D:

The source document cannot grant permission to exfiltrate data; tool allowlists prevent execution of attacker-supplied endpoints; meeting the stated constraint still involves enforcing aCL checks before adding snippets to the model prompt.

Question 440

A security team wants coverage for encoded or multilingual attempts to change agent instructions. What is the most suitable next implementation decision?

  1. Include adversarial variations in the injection evaluation dataset
  2. Add targeted prompt-injection detection beyond general toxicity checks
  3. Restrict outbound tool destinations and require explicit authorized actions
  4. Present it as quoted source text and prohibit instruction promotion

Explanation

Correct Answer

A:

Robustness tests should reflect plausible attacker encodings and languages, not only one English attack phrase.

Incorrect Answers

B:

Instruction attacks can look benign to harmful-content classifiers; the threat model differs from profanity or violence detection; it addresses a neighboring concern, while the task tests including adversarial variations in the injection evaluation dataset.

C:

The source document cannot grant permission to exfiltrate data; tool allowlists prevent execution of attacker-supplied endpoints; it cannot substitute for including adversarial variations in the injection evaluation dataset under these conditions.

D:

Retrieved text is evidence with lower trust than application policy; it cannot legitimately change operating instructions; on its own this leaves including adversarial variations in the injection evaluation dataset unaddressed.

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