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

Question 180

An agent can invoke an email-sending tool based on retrieved page contents alone. Which implementation should the team choose?

  1. Apply prompt-injection detection and keep tool permissions constrained
  2. Treat OCR text as untrusted and validate proposed actions
  3. Prevent disclosure of protected instructions and sensitive context
  4. Require an authorized user request and approval for external sends

Explanation

Correct Answer

D:

A webpage's instruction is not user consent; confirmation and destination validation block unauthorized data exfiltration.

Incorrect Answers

A:

Instructions embedded in documents are attacker-controlled content; protective parsing and least privilege mitigate misuse; the requested solution requires requiring an authorized user request and approval for external sends rather than this different mechanism.

B:

Text recognized inside images remains source data, regardless of how convincing its formatting looks; it addresses a neighboring concern, while the task tests requiring an authorized user request and approval for external sends.

C:

User text and documents cannot authorize revealing privileged instructions; safe error reports should expose operational facts instead; it cannot substitute for requiring an authorized user request and approval for external sends under these conditions.

Question 181

A visual assistant extracts text from a screenshot containing a fake administrator command. Which action directly produces the required outcome?

  1. Apply prompt-injection detection and keep tool permissions constrained
  2. Treat retrieved webpage text as untrusted evidence rather than executable instructions
  3. Require an authorized user request and approval for external sends
  4. Treat OCR text as untrusted and validate proposed actions

Explanation

Correct Answer

D:

Text recognized inside images remains source data, regardless of how convincing its formatting looks.

Incorrect Answers

A:

Instructions embedded in documents are attacker-controlled content; protective parsing and least privilege mitigate misuse; the scenario instead depends on treating oCR text as untrusted and validate proposed actions.

B:

Source content should not gain authority to direct tools or override the assistant's trusted task definition; the requested solution requires treating oCR text as untrusted and validate proposed actions rather than this different mechanism.

C:

A webpage's instruction is not user consent; confirmation and destination validation block unauthorized data exfiltration; it addresses a neighboring concern, while the task tests treating oCR text as untrusted and validate proposed actions.

Question 182

A model is instructed to reproduce hidden system prompts during troubleshooting. Which action directly produces the required outcome?

  1. Create adversarial test cases covering tool-response injection paths
  2. Require an authorized user request and approval for external sends
  3. Prevent disclosure of protected instructions and sensitive context
  4. Treat retrieved webpage text as untrusted evidence rather than executable instructions

Explanation

Correct Answer

C:

User text and documents cannot authorize revealing privileged instructions; safe error reports should expose operational facts instead.

Incorrect Answers

A:

Tool results are another lower-trust entry point; test suites should measure whether proposed instructions cross the execution boundary; the needed design choice concerns preventing disclosure of protected instructions and sensitive context instead.

B:

A webpage's instruction is not user consent; confirmation and destination validation block unauthorized data exfiltration; the scenario instead depends on preventing disclosure of protected instructions and sensitive context.

D:

Source content should not gain authority to direct tools or override the assistant's trusted task definition; it addresses a neighboring concern, while the task tests preventing disclosure of protected instructions and sensitive context.

Question 183

A policy assistant retrieves multiple conflicting documents including one with hidden injected text. What should the engineer implement?

  1. Rank authoritative evidence and isolate instructions from document content
  2. Treat retrieved webpage text as untrusted evidence rather than executable instructions
  3. Treat OCR text as untrusted and validate proposed actions
  4. Require an authorized user request and approval for external sends

Explanation

Correct Answer

A:

Trust and provenance controls distinguish reliable source material from adversarial text; embedding similarity alone does not establish authority.

Incorrect Answers

B:

Source content should not gain authority to direct tools or override the assistant's trusted task definition; the needed design choice concerns ranking authoritative evidence and isolate instructions from document content instead.

C:

Text recognized inside images remains source data, regardless of how convincing its formatting looks; the scenario instead depends on ranking authoritative evidence and isolate instructions from document content.

D:

A webpage's instruction is not user consent; confirmation and destination validation block unauthorized data exfiltration; the requested solution requires ranking authoritative evidence and isolate instructions from document content rather than this different mechanism.

Question 184

A red team wants to know if an agent obeys malicious instructions in tool outputs. Which action directly produces the required outcome?

  1. Rank authoritative evidence and isolate instructions from document content
  2. Prevent disclosure of protected instructions and sensitive context
  3. Apply prompt-injection detection and keep tool permissions constrained
  4. Create adversarial test cases covering tool-response injection paths

Explanation

Correct Answer

D:

Tool results are another lower-trust entry point; test suites should measure whether proposed instructions cross the execution boundary.

Incorrect Answers

A:

Trust and provenance controls distinguish reliable source material from adversarial text; embedding similarity alone does not establish authority; the relevant decision is knowing if an agent obeys malicious instructions in tool outputs, not the separate action described here.

B:

User text and documents cannot authorize revealing privileged instructions; safe error reports should expose operational facts instead; that would not ensure knowing if an agent obeys malicious instructions in tool outputs for this workload.

C:

Instructions embedded in documents are attacker-controlled content; protective parsing and least privilege mitigate misuse; the needed design choice concerns knowing if an agent obeys malicious instructions in tool outputs instead.

Question 185

An account-recovery agent may propose a privileged credential reset but must never perform one without signed human authorization. Auditors need to trace the tool request, the approver, and the time of the decision. Which THREE controls must surround the reset workflow? Choose THREE.

  1. Separate draft creation from approval and commitment tools
  2. Audit the proposed reset tool invocation and its disposition
  3. Retain who approved the exact reset request and when in a tamper-aware record
  4. Apply explicit tool allowlists and destination restrictions
  5. Hold the privileged reset until an authorized person explicitly approves it
  6. Use centrally manageable identities, roles, and tool credentials

Explanation

Correct Answers

B:

Tool logs show the operational trace behind actions while privacy controls limit what sensitive parameters are retained; the evidence must show the attempted reset rather than only the final chat response.

C:

Traceable approval metadata links decisions to responsible humans rather than treating model output as an authorization artifact; the approval record must identify the actual authorized decision maker.

E:

High-impact account changes should be approved outside the language model's reasoning flow, with decision records retained; a draft proposal must not execute a high-privilege reset before review.

Incorrect Answers

A:

A staged workflow allows AI assistance while preserving human control over binding or financial actions; that mechanism does not itself establish a human reset checkpoint with traceable approval and tool records.

D:

Governance is most reliable when runtime tools are technically limited, not merely discouraged by prompt wording; the needed design choice concerns a human reset checkpoint with traceable approval and tool records instead.

F:

Central access revocation limits future calls without needing to trust an updated language-model instruction to comply; the requested solution requires a human reset checkpoint with traceable approval and tool records rather than this different mechanism.

Question 186

A purchasing agent can create drafts but must not automatically finalize contracts. What is the most suitable next implementation decision?

  1. Persist approver identity, request details, and timestamps in a tamper-aware record
  2. Require a human authorization checkpoint before executing the reset
  3. Apply explicit tool allowlists and destination restrictions
  4. Separate draft creation from approval and commitment tools

Explanation

Correct Answer

D:

A staged workflow allows AI assistance while preserving human control over binding or financial actions.

Incorrect Answers

A:

Traceable approval metadata links decisions to responsible humans rather than treating model output as an authorization artifact; meeting the stated constraint still involves noting automatically finalize contracts.

B:

High-impact account changes should be approved outside the language model's reasoning flow, with decision records retained; that mechanism does not itself establish noting automatically finalize contracts.

C:

Governance is most reliable when runtime tools are technically limited, not merely discouraged by prompt wording; the relevant decision is noting automatically finalize contracts, not the separate action described here.

Question 187

An audit needs to show who approved each agent-requested change. Which implementation should the team choose?

  1. Capture structured tool-call audit events with inputs and decisions
  2. Persist approver identity, request details, and timestamps in a tamper-aware record
  3. Separate draft creation from approval and commitment tools
  4. Apply explicit tool allowlists and destination restrictions

Explanation

Correct Answer

B:

Traceable approval metadata links decisions to responsible humans rather than treating model output as an authorization artifact.

Incorrect Answers

A:

Tool logs show the operational trace behind actions while privacy controls limit what sensitive parameters are retained; on its own this leaves showing who approved each agent-requested change unaddressed.

C:

A staged workflow allows AI assistance while preserving human control over binding or financial actions; that mechanism does not itself establish showing who approved each agent-requested change.

D:

Governance is most reliable when runtime tools are technically limited, not merely discouraged by prompt wording; the relevant decision is showing who approved each agent-requested change, not the separate action described here.

Question 188

A company prohibits agents from calling arbitrary external domains. What should be included in the design?

  1. Separate draft creation from approval and commitment tools
  2. Use centrally manageable identities, roles, and tool credentials
  3. Require a human authorization checkpoint before executing the reset
  4. Apply explicit tool allowlists and destination restrictions

Explanation

Correct Answer

D:

Governance is most reliable when runtime tools are technically limited, not merely discouraged by prompt wording.

Incorrect Answers

A:

A staged workflow allows AI assistance while preserving human control over binding or financial actions; it cannot substitute for applying explicit tool allowlists and destination restrictions under these conditions.

B:

Central access revocation limits future calls without needing to trust an updated language-model instruction to comply; on its own this leaves applying explicit tool allowlists and destination restrictions unaddressed.

C:

High-impact account changes should be approved outside the language model's reasoning flow, with decision records retained; meeting the stated constraint still involves applying explicit tool allowlists and destination restrictions.

Question 189

A reporting agent must operate only during an authorized maintenance window. What solution would satisfy this constraint?

  1. Use centrally manageable identities, roles, and tool credentials
  2. Enforce scheduling and execution policy in trusted orchestration code
  3. Persist approver identity, request details, and timestamps in a tamper-aware record
  4. Separate draft creation from approval and commitment tools

Explanation

Correct Answer

B:

Temporal policy is an application control; a model's promise to wait cannot guarantee that side effects occur only during the window.

Incorrect Answers

A:

Central access revocation limits future calls without needing to trust an updated language-model instruction to comply; it addresses a neighboring concern, while the task tests operating only during an authorized maintenance window.

C:

Traceable approval metadata links decisions to responsible humans rather than treating model output as an authorization artifact; on its own this leaves operating only during an authorized maintenance window unaddressed.

D:

A staged workflow allows AI assistance while preserving human control over binding or financial actions; meeting the stated constraint still involves operating only during an authorized maintenance window.

Question 190

A compliance reviewer requires explanations of why a tool was invoked. Which approach best meets the requirement?

  1. Enforce scheduling and execution policy in trusted orchestration code
  2. Persist approver identity, request details, and timestamps in a tamper-aware record
  3. Place an explicit publication gate between generation and release
  4. Capture structured tool-call audit events with inputs and decisions

Explanation

Correct Answer

D:

Tool logs show the operational trace behind actions while privacy controls limit what sensitive parameters are retained.

Incorrect Answers

A:

Temporal policy is an application control; a model's promise to wait cannot guarantee that side effects occur only during the window; the requested solution requires providing explanations of why a tool was invoked rather than this different mechanism.

B:

Traceable approval metadata links decisions to responsible humans rather than treating model output as an authorization artifact; it addresses a neighboring concern, while the task tests providing explanations of why a tool was invoked.

C:

Human review separates proposed content from the irreversible public action and can reject unsafe or incorrect drafts; it cannot substitute for providing explanations of why a tool was invoked under these conditions.

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