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

Question 330

A background agent accesses a noninteractive enterprise resource with no signed-in employee. Which design choice is most appropriate?

  1. Remove the tool assignment or revoke its backend authorization centrally
  2. Run the connector with approved network access and internal DNS
  3. Use delegated user-scoped authorization where the connector supports it
  4. Use an appropriately scoped application or managed identity
  5. Complete the supported OAuth authorization and store tokens outside prompts

Explanation

Correct Answer

D:

Service-to-service access needs a workload principal and permitted roles; a user token is unnecessary when no user is present.

Incorrect Answers

A:

Technical tool access is separable from the model's instructions and can be withdrawn as a security control; the requested solution requires using an appropriately scoped application or managed identity rather than this different mechanism.

B:

Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service; it addresses a neighboring concern, while the task tests using an appropriately scoped application or managed identity.

C:

The downstream API should evaluate the actual user's permissions rather than an unrestricted shared service principal; it cannot substitute for using an appropriately scoped application or managed identity under these conditions.

E:

Consent and token custody belong to the integration layer; the language model should never receive refresh-token secrets; meeting the stated constraint still involves using an appropriately scoped application or managed identity.

Question 331

A tool connection requires a third-party OAuth consent flow. What is the most suitable next implementation decision?

  1. Use a governed toolbox or equivalent reusable tool registry
  2. Keep the key in a managed secret connection and rotate it
  3. Use delegated user-scoped authorization where the connector supports it
  4. Complete the supported OAuth authorization and store tokens outside prompts
  5. Run the connector with approved network access and internal DNS

Explanation

Correct Answer

D:

Consent and token custody belong to the integration layer; the language model should never receive refresh-token secrets.

Incorrect Answers

A:

Central tool registration lets administrators manage connection authentication and access consistently across agents; the scenario instead depends on providing a third-party OAuth consent flow.

B:

Credential isolation and lifecycle controls reduce exposure compared with inserting the key into tool descriptions or user messages; the requested solution requires providing a third-party OAuth consent flow rather than this different mechanism.

C:

The downstream API should evaluate the actual user's permissions rather than an unrestricted shared service principal; it addresses a neighboring concern, while the task tests providing a third-party OAuth consent flow.

E:

Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service; on its own this leaves providing a third-party OAuth consent flow unaddressed.

Question 332

An agent must call an API using an organization-issued key that cannot be removed yet. Which action directly produces the required outcome?

  1. Use delegated user-scoped authorization where the connector supports it
  2. Keep the key in a managed secret connection and rotate it
  3. Use an appropriately scoped application or managed identity
  4. Run the connector with approved network access and internal DNS
  5. Use a governed toolbox or equivalent reusable tool registry

Explanation

Correct Answer

B:

Credential isolation and lifecycle controls reduce exposure compared with inserting the key into tool descriptions or user messages.

Incorrect Answers

A:

The downstream API should evaluate the actual user's permissions rather than an unrestricted shared service principal; the needed design choice concerns calling an API using an organization-issued key that cannot be removed yet instead.

C:

Service-to-service access needs a workload principal and permitted roles; a user token is unnecessary when no user is present; the requested solution requires calling an API using an organization-issued key that cannot be removed yet rather than this different mechanism.

D:

Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service; it addresses a neighboring concern, while the task tests calling an API using an organization-issued key that cannot be removed yet.

E:

Central tool registration lets administrators manage connection authentication and access consistently across agents; it cannot substitute for calling an API using an organization-issued key that cannot be removed yet under these conditions.

Question 333

A team wants to share a set of approved tools across multiple managed agents. Which method is the best fit?

  1. Use a governed toolbox or equivalent reusable tool registry
  2. Complete the supported OAuth authorization and store tokens outside prompts
  3. Allowlist only the approved server tools and scopes
  4. Use delegated user-scoped authorization where the connector supports it
  5. Run the connector with approved network access and internal DNS

Explanation

Correct Answer

A:

Central tool registration lets administrators manage connection authentication and access consistently across agents.

Incorrect Answers

B:

Consent and token custody belong to the integration layer; the language model should never receive refresh-token secrets; the needed design choice concerns sharing a set of approved tools across multiple managed agents instead.

C:

A broad server catalog increases attack surface; exposing only needed functions enforces least privilege; the scenario instead depends on sharing a set of approved tools across multiple managed agents.

D:

The downstream API should evaluate the actual user's permissions rather than an unrestricted shared service principal; the requested solution requires sharing a set of approved tools across multiple managed agents rather than this different mechanism.

E:

Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service; it addresses a neighboring concern, while the task tests sharing a set of approved tools across multiple managed agents.

Question 334

An external API uses a private hostname reachable only inside the enterprise network. How should the developer address this requirement?

  1. Remove the tool assignment or revoke its backend authorization centrally
  2. Use delegated user-scoped authorization where the connector supports it
  3. Run the connector with approved network access and internal DNS
  4. Use an appropriately scoped application or managed identity

Explanation

Correct Answer

C:

Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service.

Incorrect Answers

A:

Technical tool access is separable from the model's instructions and can be withdrawn as a security control; the relevant decision is running the connector with approved network access and internal DNS, not the separate action described here.

B:

The downstream API should evaluate the actual user's permissions rather than an unrestricted shared service principal; that would not ensure running the connector with approved network access and internal DNS for this workload.

D:

Service-to-service access needs a workload principal and permitted roles; a user token is unnecessary when no user is present; the scenario instead depends on running the connector with approved network access and internal DNS.

Question 335

A connector obtains a delegated token from a signed-in user, but its search queries return records belonging to a different team. Which layer must apply the user's effective authorization?

  1. Use a governed toolbox or equivalent reusable tool registry
  2. Run the connector with approved network access and internal DNS
  3. Remove the tool assignment or revoke its backend authorization centrally
  4. Keep the key in a managed secret connection and rotate it
  5. Use delegated user-scoped authorization where the connector supports it
  6. Complete the supported OAuth authorization and store tokens outside prompts

Explanation

Correct Answer

C:

Technical tool access is separable from the model's instructions and can be withdrawn as a security control.

Incorrect Answers

A:

Central tool registration lets administrators manage connection authentication and access consistently across agents; that mechanism does not itself establish removing the tool assignment or revoke its backend authorization centrally.

B:

Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service; the relevant decision is removing the tool assignment or revoke its backend authorization centrally, not the separate action described here.

D:

Credential isolation and lifecycle controls reduce exposure compared with inserting the key into tool descriptions or user messages; the needed design choice concerns removing the tool assignment or revoke its backend authorization centrally instead.

E:

The downstream API should evaluate the actual user's permissions rather than an unrestricted shared service principal; the scenario instead depends on removing the tool assignment or revoke its backend authorization centrally.

F:

Consent and token custody belong to the integration layer; the language model should never receive refresh-token secrets; the requested solution requires removing the tool assignment or revoke its backend authorization centrally rather than this different mechanism.

Question 336

An MCP server offers more operations than the agent's task requires. Which method is the best fit?

  1. Allowlist only the approved server tools and scopes
  2. Run the connector with approved network access and internal DNS
  3. Use an appropriately scoped application or managed identity
  4. Keep the key in a managed secret connection and rotate it

Explanation

Correct Answer

A:

A broad server catalog increases attack surface; exposing only needed functions enforces least privilege.

Incorrect Answers

B:

Valid OAuth tokens do not create connectivity; the tool executor still needs a route to the private service; that mechanism does not itself establish allowlisting only the approved server tools and scopes.

C:

Service-to-service access needs a workload principal and permitted roles; a user token is unnecessary when no user is present; the relevant decision is allowlisting only the approved server tools and scopes, not the separate action described here.

D:

Credential isolation and lifecycle controls reduce exposure compared with inserting the key into tool descriptions or user messages; that would not ensure allowlisting only the approved server tools and scopes for this workload.

Question 337

A reimbursement agent should interpret employee requests but never decide payment eligibility itself. Which configuration or component should be selected?

  1. Add explicit preconditions and clarification behavior to its role
  2. Consolidate instructions into a governed precedence and configuration system
  3. Define a role that gathers facts and delegates eligibility to policy code
  4. Define completion and evidence-sufficiency conditions

Explanation

Correct Answer

C:

Separating conversational assistance from policy enforcement prevents model judgment from becoming an authorization decision.

Incorrect Answers

A:

Required information must be collected before side effects; inventing missing identifiers would make an invalid transaction; on its own this leaves interpreting employee requests but never decide payment eligibility itself unaddressed.

B:

An explicit hierarchy and versioned policy set reduce ambiguity and make behavior changes reviewable; meeting the stated constraint still involves interpreting employee requests but never decide payment eligibility itself.

D:

A clear stop criterion limits unnecessary tool use, latency, and the chance that later steps disturb a satisfactory result; the relevant decision is interpreting employee requests but never decide payment eligibility itself, not the separate action described here.

Question 338

A travel agent needs a goal-oriented set of steps and a clear stopping condition. What solution would satisfy this constraint?

  1. Define task goal, completion criteria, and maximum execution steps
  2. Specify a grounded answer policy requiring citations or abstention
  3. Define a role that gathers facts and delegates eligibility to policy code
  4. Add explicit preconditions and clarification behavior to its role

Explanation

Correct Answer

A:

Bounded autonomy makes success testable and prevents endless recursive planning when the request cannot be satisfied.

Incorrect Answers

B:

Evidence-bounded behavior focuses output on retrieved facts rather than confident extrapolation beyond approved material; on its own this leaves providing a goal-oriented set of steps and a clear stopping condition unaddressed.

C:

Separating conversational assistance from policy enforcement prevents model judgment from becoming an authorization decision; meeting the stated constraint still involves providing a goal-oriented set of steps and a clear stopping condition.

D:

Required information must be collected before side effects; inventing missing identifiers would make an invalid transaction; that mechanism does not itself establish providing a goal-oriented set of steps and a clear stopping condition.

Question 339

A knowledge assistant keeps drifting into unsupported general advice. Which action directly produces the required outcome?

  1. Keep role instructions trusted and document content informational only
  2. Define completion and evidence-sufficiency conditions
  3. Define escalation triggers and a human handoff path
  4. Specify a grounded answer policy requiring citations or abstention

Explanation

Correct Answer

D:

Evidence-bounded behavior focuses output on retrieved facts rather than confident extrapolation beyond approved material.

Incorrect Answers

A:

A declared role has higher authority than retrieved text, so source documents cannot redefine what tools the agent may use; it addresses a neighboring concern, while the task tests specifying a grounded answer policy requiring citations or abstention.

B:

A clear stop criterion limits unnecessary tool use, latency, and the chance that later steps disturb a satisfactory result; it cannot substitute for specifying a grounded answer policy requiring citations or abstention under these conditions.

C:

Human escalation handles tasks outside safe model authority; conversational fluency must not suppress urgent handoff criteria; on its own this leaves specifying a grounded answer policy requiring citations or abstention unaddressed.

Question 340

A planner agent should ask for missing purchase-order fields before calling a tool. What solution would satisfy this constraint?

  1. Define escalation triggers and a human handoff path
  2. Define task goal, completion criteria, and maximum execution steps
  3. Define completion and evidence-sufficiency conditions
  4. Add explicit preconditions and clarification behavior to its role

Explanation

Correct Answer

D:

Required information must be collected before side effects; inventing missing identifiers would make an invalid transaction.

Incorrect Answers

A:

Human escalation handles tasks outside safe model authority; conversational fluency must not suppress urgent handoff criteria; the requested solution requires asking for missing purchase-order fields before calling a tool rather than this different mechanism.

B:

Bounded autonomy makes success testable and prevents endless recursive planning when the request cannot be satisfied; it addresses a neighboring concern, while the task tests asking for missing purchase-order fields before calling a tool.

C:

A clear stop criterion limits unnecessary tool use, latency, and the chance that later steps disturb a satisfactory result; it cannot substitute for asking for missing purchase-order fields before calling a tool under these conditions.

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