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

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.

Question 441

A new agent version works on happy-path demos but fails when a tool is unavailable. Which design choice is most appropriate?

  1. Block promotion until defined task-success thresholds are met
  2. Compare retrieval relevance and answer grounding on a fixed test set
  3. Add dependency-failure cases to preproduction tests
  4. Include brand and safety checks in the image-generation acceptance suite

Explanation

Correct Answer

C:

Release readiness includes degradation and recovery behavior, not only successful calls with all services healthy.

Incorrect Answers

A:

Economic improvement does not justify an unsafe or nonfunctional workflow; release policy needs explicit quality gates; the scenario instead depends on adding dependency-failure cases to preproduction tests.

B:

Chunk boundaries affect evidence candidates and citation quality; end-to-end metrics reveal the impact of the change; the requested solution requires adding dependency-failure cases to preproduction tests rather than this different mechanism.

D:

Visual policy validation belongs in release testing rather than being assumed from textual instructions; it cannot substitute for adding dependency-failure cases to preproduction tests under these conditions.

Question 442

An extraction model update changes field naming and silently breaks a downstream report. Which action directly produces the required outcome?

  1. Add idempotency and recovery integration tests for write-capable tools
  2. Block promotion until defined task-success thresholds are met
  3. Run schema-compatibility tests against consumer contracts
  4. Add dependency-failure cases to preproduction tests

Explanation

Correct Answer

C:

Contract tests identify interface changes before they spread into business records.

Incorrect Answers

A:

Mocked isolated calls can miss real retry behavior; side-effect safety requires end-to-end execution tests; the needed design choice concerns running schema-compatibility tests against consumer contracts instead.

B:

Economic improvement does not justify an unsafe or nonfunctional workflow; release policy needs explicit quality gates; the scenario instead depends on running schema-compatibility tests against consumer contracts.

D:

Release readiness includes degradation and recovery behavior, not only successful calls with all services healthy; it addresses a neighboring concern, while the task tests running schema-compatibility tests against consumer contracts.

Question 443

A retrieval pipeline is updated with a new chunking algorithm. How should the developer address this requirement?

  1. Run schema-compatibility tests against consumer contracts
  2. Add dependency-failure cases to preproduction tests
  3. Compare retrieval relevance and answer grounding on a fixed test set
  4. Include brand and safety checks in the image-generation acceptance suite

Explanation

Correct Answer

C:

Chunk boundaries affect evidence candidates and citation quality; end-to-end metrics reveal the impact of the change.

Incorrect Answers

A:

Contract tests identify interface changes before they spread into business records; that would not ensure comparing retrieval relevance and answer grounding on a fixed test set for this workload.

B:

Release readiness includes degradation and recovery behavior, not only successful calls with all services healthy; the needed design choice concerns comparing retrieval relevance and answer grounding on a fixed test set instead.

D:

Visual policy validation belongs in release testing rather than being assumed from textual instructions; the requested solution requires comparing retrieval relevance and answer grounding on a fixed test set rather than this different mechanism.

Question 444

A newer language model reduces the price per generated token but produces invalid tool arguments more often than the existing model. Before promoting it, how should the team decide whether the cheaper option is acceptable?

  1. Compare retrieval relevance and answer grounding on a fixed test set
  2. Exercise least-privilege tool tests under the production identity
  3. Block promotion until defined task-success thresholds are met
  4. Run schema-compatibility tests against consumer contracts

Explanation

Correct Answer

C:

Economic improvement does not justify an unsafe or nonfunctional workflow; release policy needs explicit quality gates.

Incorrect Answers

A:

Chunk boundaries affect evidence candidates and citation quality; end-to-end metrics reveal the impact of the change; the relevant decision is blocking promotion until defined task-success thresholds are met, not the separate action described here.

B:

Configuration review alone may miss accidental grants; negative permission tests confirm protected operations are denied; that would not ensure blocking promotion until defined task-success thresholds are met for this workload.

D:

Contract tests identify interface changes before they spread into business records; the scenario instead depends on blocking promotion until defined task-success thresholds are met.

Question 445

A production image tool sometimes generates unapproved branding. How should the developer address this requirement?

  1. Include brand and safety checks in the image-generation acceptance suite
  2. Compare retrieval relevance and answer grounding on a fixed test set
  3. Block promotion until defined task-success thresholds are met
  4. Add idempotency and recovery integration tests for write-capable tools

Explanation

Correct Answer

A:

Visual policy validation belongs in release testing rather than being assumed from textual instructions.

Incorrect Answers

B:

Chunk boundaries affect evidence candidates and citation quality; end-to-end metrics reveal the impact of the change; the relevant decision is including brand and safety checks in the image-generation acceptance suite, not the separate action described here.

C:

Economic improvement does not justify an unsafe or nonfunctional workflow; release policy needs explicit quality gates; that would not ensure including brand and safety checks in the image-generation acceptance suite for this workload.

D:

Mocked isolated calls can miss real retry behavior; side-effect safety requires end-to-end execution tests; the needed design choice concerns including brand and safety checks in the image-generation acceptance suite instead.

Question 446

A speech assistant performs well in a quiet office but poorly in noisy public spaces. What should be included in the design?

  1. Test with representative acoustic conditions and speaker variability
  2. Add dependency-failure cases to preproduction tests
  3. Include brand and safety checks in the image-generation acceptance suite
  4. Add idempotency and recovery integration tests for write-capable tools
  5. Compare retrieval relevance and answer grounding on a fixed test set

Explanation

Correct Answer

A:

Realistic noise and accent coverage make recognition evaluation predictive of deployed use.

Incorrect Answers

B:

Release readiness includes degradation and recovery behavior, not only successful calls with all services healthy; that mechanism does not itself establish testing with representative acoustic conditions and speaker variability.

C:

Visual policy validation belongs in release testing rather than being assumed from textual instructions; the relevant decision is testing with representative acoustic conditions and speaker variability, not the separate action described here.

D:

Mocked isolated calls can miss real retry behavior; side-effect safety requires end-to-end execution tests; that would not ensure testing with representative acoustic conditions and speaker variability for this workload.

E:

Chunk boundaries affect evidence candidates and citation quality; end-to-end metrics reveal the impact of the change; the needed design choice concerns testing with representative acoustic conditions and speaker variability instead.

Question 447

A financial agent passes unit tests but repeats a transfer after a timeout. Which approach best meets the requirement?

  1. Test with representative acoustic conditions and speaker variability
  2. Add idempotency and recovery integration tests for write-capable tools
  3. Block promotion until defined task-success thresholds are met
  4. Exercise least-privilege tool tests under the production identity
  5. Compare retrieval relevance and answer grounding on a fixed test set

Explanation

Correct Answer

B:

Mocked isolated calls can miss real retry behavior; side-effect safety requires end-to-end execution tests.

Incorrect Answers

A:

Realistic noise and accent coverage make recognition evaluation predictive of deployed use; on its own this leaves adding idempotency and recovery integration tests for write-capable tools unaddressed.

C:

Economic improvement does not justify an unsafe or nonfunctional workflow; release policy needs explicit quality gates; that mechanism does not itself establish adding idempotency and recovery integration tests for write-capable tools.

D:

Configuration review alone may miss accidental grants; negative permission tests confirm protected operations are denied; the relevant decision is adding idempotency and recovery integration tests for write-capable tools, not the separate action described here.

E:

Chunk boundaries affect evidence candidates and citation quality; end-to-end metrics reveal the impact of the change; that would not ensure adding idempotency and recovery integration tests for write-capable tools for this workload.

Question 448

A team needs a final gate to ensure no unauthorized API is reachable by a deployed agent. What should the engineer implement?

  1. Exercise least-privilege tool tests under the production identity
  2. Test with representative acoustic conditions and speaker variability
  3. Compare retrieval relevance and answer grounding on a fixed test set
  4. Add idempotency and recovery integration tests for write-capable tools

Explanation

Correct Answer

A:

Configuration review alone may miss accidental grants; negative permission tests confirm protected operations are denied.

Incorrect Answers

B:

Realistic noise and accent coverage make recognition evaluation predictive of deployed use; on its own this leaves providing a final gate to ensure no unauthorized API is reachable by a deployed agent unaddressed.

C:

Chunk boundaries affect evidence candidates and citation quality; end-to-end metrics reveal the impact of the change; meeting the stated constraint still involves providing a final gate to ensure no unauthorized API is reachable by a deployed agent.

D:

Mocked isolated calls can miss real retry behavior; side-effect safety requires end-to-end execution tests; that mechanism does not itself establish providing a final gate to ensure no unauthorized API is reachable by a deployed agent.

Question 449

A Python chatbot is ready to serve production traffic but needs health checking and secure runtime configuration. Which approach best meets the requirement?

  1. Check host-network integration and private DNS before blaming model inference
  2. Choose a prompt agent in Foundry Agent Service
  3. Place an application-facing facade in front of model and agent calls
  4. Deploy the application on a managed compute service with health probes and identity
  5. Use the supported agent publishing and versioning workflow

Explanation

Correct Answer

D:

The host runs application code while the Foundry model endpoint performs inference; both layers need independent operations.

Incorrect Answers

A:

Connectivity from the actual application runtime determines whether retrieval can work; CI deployment success is not proof of network reachability; it addresses a neighboring concern, while the task tests providing health checking and secure runtime configuration.

B:

The managed agent runtime handles conversational orchestration and built-in integrations for supported prompt-agent use cases; it cannot substitute for providing health checking and secure runtime configuration under these conditions.

C:

A facade decouples external clients from backend deployment changes and can enforce common authentication and response contracts; on its own this leaves providing health checking and secure runtime configuration unaddressed.

E:

Stable published references let consumers rely on an approved artifact instead of an untracked development draft; that mechanism does not itself establish providing health checking and secure runtime configuration.

Question 450

A tool-based agent includes custom orchestration code and needs Foundry-managed hosting. Which of the following would meet this need?

  1. Place an application-facing facade in front of model and agent calls
  2. Deploy the application on a managed compute service with health probes and identity
  3. Use a supported hosted-agent deployment pattern
  4. Use the supported agent publishing and versioning workflow

Explanation

Correct Answer

C:

Hosted agents run developer-supplied code under a managed runtime, unlike declarative prompt agents without custom runtime logic.

Incorrect Answers

A:

A facade decouples external clients from backend deployment changes and can enforce common authentication and response contracts; the requested solution requires providing Foundry-managed hosting rather than this different mechanism.

B:

The host runs application code while the Foundry model endpoint performs inference; both layers need independent operations; it addresses a neighboring concern, while the task tests providing Foundry-managed hosting.

D:

Stable published references let consumers rely on an approved artifact instead of an untracked development draft; on its own this leaves providing Foundry-managed hosting unaddressed.

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