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

Question 90

A CI pipeline outside the VM environment must authenticate without a long-lived client secret. Which configuration or component should be selected?

  1. Replace broad privileges with scoped data access roles
  2. Use a credential chain supporting local developer and deployed workload identities
  3. Move token acquisition to the trusted tool-execution layer
  4. Use workload identity federation with a trusted identity provider

Explanation

Correct Answer

D:

Federated credentials exchange a trusted workload assertion for an Entra token, removing the need to maintain a static application secret.

Incorrect Answers

A:

Least-privilege role assignments should match the resource and operation, avoiding tenant-wide administration for a narrow data query; the requested solution requires authenticating without a long-lived client secret rather than this different mechanism.

B:

The same authentication abstraction can select local developer credentials and managed identity in Azure while enforcing RBAC in both cases; it addresses a neighboring concern, while the task tests authenticating without a long-lived client secret.

C:

The model should choose a permitted tool call, not receive bearer secrets; the backend attaches credentials after policy checks; it cannot substitute for authenticating without a long-lived client secret under these conditions.

Question 91

An operator needs to understand why a successful sign-in still produces HTTP 403. Which design choice is most appropriate?

  1. Inspect authorization assignments for the calling principal
  2. Use a managed identity granted suitable storage data permissions
  3. Replace broad privileges with scoped data access roles
  4. Move token acquisition to the trusted tool-execution layer
  5. Attach a user-assigned managed identity to supported workloads

Explanation

Correct Answer

A:

Authentication proves identity; a 403 commonly indicates the identity lacks the requested operation at the required scope.

Incorrect Answers

B:

Managed identity obtains Entra tokens for the workload; storage data-plane authorization still requires the corresponding role; the requested solution requires understanding why a successful sign-in still produces HTTP 403 rather than this different mechanism.

C:

Least-privilege role assignments should match the resource and operation, avoiding tenant-wide administration for a narrow data query; it addresses a neighboring concern, while the task tests understanding why a successful sign-in still produces HTTP 403.

D:

The model should choose a permitted tool call, not receive bearer secrets; the backend attaches credentials after policy checks; it cannot substitute for understanding why a successful sign-in still produces HTTP 403 under these conditions.

E:

A user-assigned identity is a separate Azure resource that can be associated with multiple eligible services and governed independently; on its own this leaves understanding why a successful sign-in still produces HTTP 403 unaddressed.

Question 92

An Azure resource receives a new system-assigned identity and a recreated resource needs access again. Which of the following would meet this need?

  1. Reassign permissions to the new system-assigned principal
  2. Use a credential chain supporting local developer and deployed workload identities
  3. Use workload identity federation with a trusted identity provider
  4. Move token acquisition to the trusted tool-execution layer

Explanation

Correct Answer

A:

A system-assigned identity belongs to the resource lifecycle; recreating the resource generally changes the principal ID.

Incorrect Answers

B:

The same authentication abstraction can select local developer credentials and managed identity in Azure while enforcing RBAC in both cases; the scenario instead depends on reassigning permissions to the new system-assigned principal.

C:

Federated credentials exchange a trusted workload assertion for an Entra token, removing the need to maintain a static application secret; the requested solution requires reassigning permissions to the new system-assigned principal rather than this different mechanism.

D:

The model should choose a permitted tool call, not receive bearer secrets; the backend attaches credentials after policy checks; it addresses a neighboring concern, while the task tests reassigning permissions to the new system-assigned principal.

Question 93

Several Azure-hosted workers call the same enterprise search API. Administrators want one reusable workload identity, while the API currently grants that identity unnecessary tenant-wide privileges. Which TWO changes meet the shared-identity and least-privilege goals? Choose TWO.

  1. Reduce the shared workload principal to the API’s required data permissions
  2. Inspect authorization assignments for the calling principal
  3. Reassign permissions to the new system-assigned principal
  4. Use a credential chain supporting local developer and deployed workload identities
  5. Assign a reusable user-assigned managed identity to each supported worker

Explanation

Correct Answers

A:

Least-privilege role assignments should match the resource and operation, avoiding tenant-wide administration for a narrow data query; sharing one identity is not a reason to retain tenant-wide administration rights.

E:

A user-assigned identity is a separate Azure resource that can be associated with multiple eligible services and governed independently; the approved workers can share an identity lifecycle without storing its credentials.

Incorrect Answers

B:

Authentication proves identity; a 403 commonly indicates the identity lacks the requested operation at the required scope; the needed design choice concerns a reusable managed identity with narrow data-plane privileges instead.

C:

A system-assigned identity belongs to the resource lifecycle; recreating the resource generally changes the principal ID; the scenario instead depends on a reusable managed identity with narrow data-plane privileges.

D:

The same authentication abstraction can select local developer credentials and managed identity in Azure while enforcing RBAC in both cases; the requested solution requires a reusable managed identity with narrow data-plane privileges rather than this different mechanism.

Question 94

A developer uses local Python tooling and wants a production-friendly sign-in approach without code-embedded keys. Which method is the best fit?

  1. Use workload identity federation with a trusted identity provider
  2. Attach a user-assigned managed identity to supported workloads
  3. Use a credential chain supporting local developer and deployed workload identities
  4. Reassign permissions to the new system-assigned principal

Explanation

Correct Answer

C:

The same authentication abstraction can select local developer credentials and managed identity in Azure while enforcing RBAC in both cases.

Incorrect Answers

A:

Federated credentials exchange a trusted workload assertion for an Entra token, removing the need to maintain a static application secret; the relevant decision is using a credential chain supporting local developer and deployed workload identities, not the separate action described here.

B:

A user-assigned identity is a separate Azure resource that can be associated with multiple eligible services and governed independently; that would not ensure using a credential chain supporting local developer and deployed workload identities for this workload.

D:

A system-assigned identity belongs to the resource lifecycle; recreating the resource generally changes the principal ID; the scenario instead depends on using a credential chain supporting local developer and deployed workload identities.

Question 95

An app exposes a client secret to the language model while attempting to call a protected API. What should be included in the design?

  1. Reassign permissions to the new system-assigned principal
  2. Use a credential chain supporting local developer and deployed workload identities
  3. Move token acquisition to the trusted tool-execution layer
  4. Attach a user-assigned managed identity to supported workloads

Explanation

Correct Answer

C:

The model should choose a permitted tool call, not receive bearer secrets; the backend attaches credentials after policy checks.

Incorrect Answers

A:

A system-assigned identity belongs to the resource lifecycle; recreating the resource generally changes the principal ID; that mechanism does not itself establish moving token acquisition to the trusted tool-execution layer.

B:

The same authentication abstraction can select local developer credentials and managed identity in Azure while enforcing RBAC in both cases; the relevant decision is moving token acquisition to the trusted tool-execution layer, not the separate action described here.

D:

A user-assigned identity is a separate Azure resource that can be associated with multiple eligible services and governed independently; the needed design choice concerns moving token acquisition to the trusted tool-execution layer instead.

Question 96

An agent is granted a broad tenant administrator role only to read one search index. Which approach best meets the requirement?

  1. Inspect authorization assignments for the calling principal
  2. Use workload identity federation with a trusted identity provider
  3. Move token acquisition to the trusted tool-execution layer
  4. Use a credential chain supporting local developer and deployed workload identities
  5. Replace broad privileges with scoped data access roles

Explanation

Correct Answer

E:

Least-privilege role assignments should match the resource and operation, avoiding tenant-wide administration for a narrow data query.

Incorrect Answers

A:

Authentication proves identity; a 403 commonly indicates the identity lacks the requested operation at the required scope; meeting the stated constraint still involves replacing broad privileges with scoped data access roles.

B:

Federated credentials exchange a trusted workload assertion for an Entra token, removing the need to maintain a static application secret; that mechanism does not itself establish replacing broad privileges with scoped data access roles.

C:

The model should choose a permitted tool call, not receive bearer secrets; the backend attaches credentials after policy checks; the relevant decision is replacing broad privileges with scoped data access roles, not the separate action described here.

D:

The same authentication abstraction can select local developer credentials and managed identity in Azure while enforcing RBAC in both cases; that would not ensure replacing broad privileges with scoped data access roles for this workload.

Question 97

A developer can view an Azure resource but cannot modify model deployment settings. Which of the following would meet this need?

  1. Scope role assignments to that resource group or narrower where feasible
  2. Grant an appropriate resource-level management role with deployment permissions
  3. Grant the applicable blob data role for its storage operation
  4. Grant an appropriate index data-contributor role at the permitted scope

Explanation

Correct Answer

B:

Read access allows inspection but not deployment changes; use narrowly scoped management operations rather than a tenant-wide role.

Incorrect Answers

A:

Assignment inheritance flows downward from the chosen scope; subscription-wide grants would expose unrelated resources; on its own this leaves granting an appropriate resource-level management role with deployment permissions unaddressed.

C:

Azure management Reader does not automatically authorize reading data-plane objects; storage permissions must be evaluated separately; that mechanism does not itself establish granting an appropriate resource-level management role with deployment permissions.

D:

Document ingestion needs data-plane write rights, not necessarily service-level resource administration; the relevant decision is granting an appropriate resource-level management role with deployment permissions, not the separate action described here.

Question 98

A service must query documents in one Azure AI Search index but not change its schema. Which approach best meets the requirement?

  1. Scope role assignments to that resource group or narrower where feasible
  2. Assign an eligible search index data-reader permission
  3. Grant an appropriate index data-contributor role at the permitted scope
  4. Separate agent invocation privileges from administrative roles
  5. Use a role with Microsoft.Authorization role-assignment privileges at the intended scope

Explanation

Correct Answer

B:

Query authorization is distinct from index administration; data reading need not include write or service management rights.

Incorrect Answers

A:

Assignment inheritance flows downward from the chosen scope; subscription-wide grants would expose unrelated resources; it cannot substitute for querying documents in one Azure AI Search index but not change its schema under these conditions.

C:

Document ingestion needs data-plane write rights, not necessarily service-level resource administration; meeting the stated constraint still involves querying documents in one Azure AI Search index but not change its schema.

D:

Different principals should receive action-specific permissions so runtime access does not become resource-management access; that mechanism does not itself establish querying documents in one Azure AI Search index but not change its schema.

E:

Creating assignments is an authorization-management operation; ordinary resource Contributor access alone does not confer it; the relevant decision is querying documents in one Azure AI Search index but not change its schema, not the separate action described here.

Question 99

A search ingestion worker must write index documents but must not manage the entire search service. Which approach best meets the requirement?

  1. Assign an eligible search index data-reader permission
  2. Use a role with Microsoft.Authorization role-assignment privileges at the intended scope
  3. Grant an appropriate index data-contributor role at the permitted scope
  4. Evaluate inherited roles, deny assignments, and relevant access conditions

Explanation

Correct Answer

C:

Document ingestion needs data-plane write rights, not necessarily service-level resource administration.

Incorrect Answers

A:

Query authorization is distinct from index administration; data reading need not include write or service management rights; it addresses a neighboring concern, while the task tests writing index documents but must not manage the entire search service.

B:

Creating assignments is an authorization-management operation; ordinary resource Contributor access alone does not confer it; it cannot substitute for writing index documents but must not manage the entire search service under these conditions.

D:

Effective authorization can reflect inherited scope and restrictions, not only the role shown on the resource itself; meeting the stated constraint still involves writing index documents but must not manage the entire search service.

Question 100

A platform engineer must assign Azure RBAC roles to another principal for project access. What should the engineer implement?

  1. Separate agent invocation privileges from administrative roles
  2. Evaluate inherited roles, deny assignments, and relevant access conditions
  3. Use a role with Microsoft.Authorization role-assignment privileges at the intended scope
  4. Grant the applicable blob data role for its storage operation

Explanation

Correct Answer

C:

Creating assignments is an authorization-management operation; ordinary resource Contributor access alone does not confer it.

Incorrect Answers

A:

Different principals should receive action-specific permissions so runtime access does not become resource-management access; the requested solution requires assigning azure RBAC roles to another principal for project access rather than this different mechanism.

B:

Effective authorization can reflect inherited scope and restrictions, not only the role shown on the resource itself; it addresses a neighboring concern, while the task tests assigning azure RBAC roles to another principal for project access.

D:

Azure management Reader does not automatically authorize reading data-plane objects; storage permissions must be evaluated separately; on its own this leaves assigning azure RBAC roles to another principal for project access unaddressed.

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