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

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.

Question 191

An agent must ask for confirmation before publishing generated customer-facing text. What should the engineer implement?

  1. Require a human authorization checkpoint before executing the reset
  2. Apply explicit tool allowlists and destination restrictions
  3. Enforce scheduling and execution policy in trusted orchestration code
  4. Place an explicit publication gate between generation and release

Explanation

Correct Answer

D:

Human review separates proposed content from the irreversible public action and can reject unsafe or incorrect drafts.

Incorrect Answers

A:

High-impact account changes should be approved outside the language model's reasoning flow, with decision records retained; the scenario instead depends on asking for confirmation before publishing generated customer-facing text.

B:

Governance is most reliable when runtime tools are technically limited, not merely discouraged by prompt wording; the requested solution requires asking for confirmation before publishing generated customer-facing text rather than this different mechanism.

C:

Temporal policy is an application control; a model's promise to wait cannot guarantee that side effects occur only during the window; it addresses a neighboring concern, while the task tests asking for confirmation before publishing generated customer-facing text.

Question 192

An enterprise wants to revoke an agent's access quickly after an incident. Which design choice is most appropriate?

  1. Place an explicit publication gate between generation and release
  2. Separate draft creation from approval and commitment tools
  3. Use centrally manageable identities, roles, and tool credentials
  4. Persist approver identity, request details, and timestamps in a tamper-aware record

Explanation

Correct Answer

C:

Central access revocation limits future calls without needing to trust an updated language-model instruction to comply.

Incorrect Answers

A:

Human review separates proposed content from the irreversible public action and can reject unsafe or incorrect drafts; the needed design choice concerns revoking an agent's access quickly after an incident instead.

B:

A staged workflow allows AI assistance while preserving human control over binding or financial actions; the scenario instead depends on revoking an agent's access quickly after an incident.

D:

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 revoking an agent's access quickly after an incident.

Question 193

A team needs repeatable promotion of an agent from staging to production. Which approach best meets the requirement?

  1. Use federated pipeline identity with scoped permissions
  2. Version and deploy agent definitions through a controlled release pipeline
  3. Use health checks and a tested rollback route to the prior version
  4. Provide approved network connectivity for deployment-time integration tests
  5. Store resource declarations in infrastructure-as-code templates
  6. Track prompts and agent instructions in source control

Explanation

Correct Answer

B:

A reviewed artifact and release record make agent instructions and tool configuration reproducible rather than edited ad hoc in production.

Incorrect Answers

A:

OIDC federation authenticates the pipeline through trusted identity assertions and avoids static secret distribution; that would not ensure providing repeatable promotion of an agent from staging to production for this workload.

C:

Recovery requires retaining a known-good deployment and restoring traffic, not simply reverting a source file after failure; the scenario instead depends on providing repeatable promotion of an agent from staging to production.

D:

Credentials are insufficient when the runner has no route and DNS to a private service; secure test execution needs matching network access; the requested solution requires providing repeatable promotion of an agent from staging to production rather than this different mechanism.

E:

Declarative provisioning can rebuild approved infrastructure consistently and supports code review of configuration drift; it addresses a neighboring concern, while the task tests providing repeatable promotion of an agent from staging to production.

F:

Versioned prompt assets support diffing, rollback, and collaboration; runtime text changes should be deployed deliberately; it cannot substitute for providing repeatable promotion of an agent from staging to production under these conditions.

Question 194

A deployment introduces a new model version and unexpectedly changes output schemas. Which of the following would meet this need?

  1. Store resource declarations in infrastructure-as-code templates
  2. Use federated pipeline identity with scoped permissions
  3. Provide approved network connectivity for deployment-time integration tests
  4. Gate promotion on contract and regression evaluations

Explanation

Correct Answer

D:

Schema and behavior tests detect incompatible responses before production clients depend on the new deployment.

Incorrect Answers

A:

Declarative provisioning can rebuild approved infrastructure consistently and supports code review of configuration drift; the relevant decision is gating promotion on contract and regression evaluations, not the separate action described here.

B:

OIDC federation authenticates the pipeline through trusted identity assertions and avoids static secret distribution; that would not ensure gating promotion on contract and regression evaluations for this workload.

C:

Credentials are insufficient when the runner has no route and DNS to a private service; secure test execution needs matching network access; the needed design choice concerns gating promotion on contract and regression evaluations instead.

Question 195

A company wants to recreate AI resources after a regional incident. Which configuration or component should be selected?

  1. Gate promotion on contract and regression evaluations
  2. Use staged deployment or controlled traffic exposure where supported
  3. Store resource declarations in infrastructure-as-code templates
  4. Track prompts and agent instructions in source control
  5. Use federated pipeline identity with scoped permissions
  6. Use health checks and a tested rollback route to the prior version

Explanation

Correct Answer

C:

Declarative provisioning can rebuild approved infrastructure consistently and supports code review of configuration drift.

Incorrect Answers

A:

Schema and behavior tests detect incompatible responses before production clients depend on the new deployment; that mechanism does not itself establish recreating aI resources after a regional incident.

B:

Canary-style release reduces impact while metrics and evaluations confirm the new retrieval behavior; the relevant decision is recreating aI resources after a regional incident, not the separate action described here.

D:

Versioned prompt assets support diffing, rollback, and collaboration; runtime text changes should be deployed deliberately; the needed design choice concerns recreating aI resources after a regional incident instead.

E:

OIDC federation authenticates the pipeline through trusted identity assertions and avoids static secret distribution; the scenario instead depends on recreating aI resources after a regional incident.

F:

Recovery requires retaining a known-good deployment and restoring traffic, not simply reverting a source file after failure; the requested solution requires recreating aI resources after a regional incident rather than this different mechanism.

Question 196

A CI/CD pipeline already authenticates to Azure without a stored secret. It still has subscription-wide Owner permissions and can promote an agent directly from staging to production without review. Which change establishes a safer release boundary?

  1. Limit the deployment identity to environment-scoped roles and require approval for production promotion
  2. Place a subscription Owner credential in the pipeline secret store instead
  3. Disable build automation and manually copy prompt files to production
  4. Send every successful staging build automatically to production without approval

Explanation

Correct Answer

A:

Environment-scoped deployment roles reduce what a compromised pipeline can change; a production approval gate separates a successful build from authorization to release.

Incorrect Answers

B:

Moving an overly privileged Owner credential to a secret store does not narrow its effective authorization and adds a secret-management burden.

C:

Manual copying loses reproducibility and reviewable release artifacts; it does not replace scoped role assignments and an enforceable promotion policy.

D:

Unconditional promotion bypasses the required production authorization, so a faulty or malicious staging build could immediately affect users.

Question 197

A project has prompts edited directly in production with no audit history. Which implementation should the team choose?

  1. Use staged deployment or controlled traffic exposure where supported
  2. Track prompts and agent instructions in source control
  3. Gate promotion on contract and regression evaluations
  4. Use health checks and a tested rollback route to the prior version

Explanation

Correct Answer

B:

Versioned prompt assets support diffing, rollback, and collaboration; runtime text changes should be deployed deliberately.

Incorrect Answers

A:

Canary-style release reduces impact while metrics and evaluations confirm the new retrieval behavior; on its own this leaves tracking prompts and agent instructions in source control unaddressed.

C:

Schema and behavior tests detect incompatible responses before production clients depend on the new deployment; that mechanism does not itself establish tracking prompts and agent instructions in source control.

D:

Recovery requires retaining a known-good deployment and restoring traffic, not simply reverting a source file after failure; the relevant decision is tracking prompts and agent instructions in source control, not the separate action described here.

Question 198

A production rollout must limit the blast radius of a new retrieval strategy. What should be included in the design?

  1. Store resource declarations in infrastructure-as-code templates
  2. Version and deploy agent definitions through a controlled release pipeline
  3. Use staged deployment or controlled traffic exposure where supported
  4. Provide approved network connectivity for deployment-time integration tests

Explanation

Correct Answer

C:

Canary-style release reduces impact while metrics and evaluations confirm the new retrieval behavior.

Incorrect Answers

A:

Declarative provisioning can rebuild approved infrastructure consistently and supports code review of configuration drift; it cannot substitute for limiting the blast radius of a new retrieval strategy under these conditions.

B:

A reviewed artifact and release record make agent instructions and tool configuration reproducible rather than edited ad hoc in production; on its own this leaves limiting the blast radius of a new retrieval strategy unaddressed.

D:

Credentials are insufficient when the runner has no route and DNS to a private service; secure test execution needs matching network access; that mechanism does not itself establish limiting the blast radius of a new retrieval strategy.

Question 199

A team wants to keep deployed endpoints healthy after a failed rollout. Which configuration or component should be selected?

  1. Gate promotion on contract and regression evaluations
  2. Use health checks and a tested rollback route to the prior version
  3. Use staged deployment or controlled traffic exposure where supported
  4. Store resource declarations in infrastructure-as-code templates
  5. Use federated pipeline identity with scoped permissions

Explanation

Correct Answer

B:

Recovery requires retaining a known-good deployment and restoring traffic, not simply reverting a source file after failure.

Incorrect Answers

A:

Schema and behavior tests detect incompatible responses before production clients depend on the new deployment; it addresses a neighboring concern, while the task tests keeping deployed endpoints healthy after a failed rollout.

C:

Canary-style release reduces impact while metrics and evaluations confirm the new retrieval behavior; on its own this leaves keeping deployed endpoints healthy after a failed rollout unaddressed.

D:

Declarative provisioning can rebuild approved infrastructure consistently and supports code review of configuration drift; meeting the stated constraint still involves keeping deployed endpoints healthy after a failed rollout.

E:

OIDC federation authenticates the pipeline through trusted identity assertions and avoids static secret distribution; that mechanism does not itself establish keeping deployed endpoints healthy after a failed rollout.

Question 200

A pipeline passes unit tests but cannot reach a private inference endpoint from its runner. What should be included in the design?

  1. Provide approved network connectivity for deployment-time integration tests
  2. Gate promotion on contract and regression evaluations
  3. Use federated pipeline identity with scoped permissions
  4. Use health checks and a tested rollback route to the prior version
  5. Track prompts and agent instructions in source control

Explanation

Correct Answer

A:

Credentials are insufficient when the runner has no route and DNS to a private service; secure test execution needs matching network access.

Incorrect Answers

B:

Schema and behavior tests detect incompatible responses before production clients depend on the new deployment; it addresses a neighboring concern, while the task tests providing approved network connectivity for deployment-time integration tests.

C:

OIDC federation authenticates the pipeline through trusted identity assertions and avoids static secret distribution; it cannot substitute for providing approved network connectivity for deployment-time integration tests under these conditions.

D:

Recovery requires retaining a known-good deployment and restoring traffic, not simply reverting a source file after failure; on its own this leaves providing approved network connectivity for deployment-time integration tests unaddressed.

E:

Versioned prompt assets support diffing, rollback, and collaboration; runtime text changes should be deployed deliberately; meeting the stated constraint still involves providing approved network connectivity for deployment-time integration tests.

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