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

Question 30

A deployment is healthy but returns throttling after a sudden tenfold launch-day spike. Which implementation should the team choose?

  1. Reassess provisioned capacity and compare it with consumption alternatives
  2. Implement bounded queues, jittered retries, and scaling/quota review
  3. Account for tokens per request as well as request rate
  4. Tag resources and emit application-level usage telemetry
  5. Replace characters with tokenizer-informed input/output token estimates

Explanation

Correct Answer

B:

Backpressure stops clients from multiplying overload; capacity planning addresses sustained demand whereas immediate infinite retries worsen it.

Incorrect Answers

A:

Cost efficiency depends on measured sustained utilization; reserved inference capacity need not be optimal for low or intermittent load; the requested solution requires implementing bounded queues, jittered retries, and scaling/quota review rather than this different mechanism.

C:

Token consumption can exhaust a deployment's token-per-minute allowance even when requests-per-minute appears modest; it cannot substitute for implementing bounded queues, jittered retries, and scaling/quota review under these conditions.

D:

Resource charges alone may not identify individual callers; request metadata and token measurements support workload-level allocation; on its own this leaves implementing bounded queues, jittered retries, and scaling/quota review unaddressed.

E:

Different text shapes tokenize differently, and both prompt and generated output count toward capacity and cost; meeting the stated constraint still involves implementing bounded queues, jittered retries, and scaling/quota review.

Question 31

A forecast uses character counts as the only measure of language-model capacity. What should the engineer implement?

  1. Reassess provisioned capacity and compare it with consumption alternatives
  2. Account for tokens per request as well as request rate
  3. Check deployment quotas and application request/token throughput
  4. Replace characters with tokenizer-informed input/output token estimates

Explanation

Correct Answer

D:

Different text shapes tokenize differently, and both prompt and generated output count toward capacity and cost.

Incorrect Answers

A:

Cost efficiency depends on measured sustained utilization; reserved inference capacity need not be optimal for low or intermittent load; the scenario instead depends on replacing characters with tokenizer-informed input/output token estimates.

B:

Token consumption can exhaust a deployment's token-per-minute allowance even when requests-per-minute appears modest; the requested solution requires replacing characters with tokenizer-informed input/output token estimates rather than this different mechanism.

C:

Rate limiting is often a capacity or quota issue; retry strategy and authorized quota changes are more relevant than rebuilding healthy resources; it addresses a neighboring concern, while the task tests replacing characters with tokenizer-informed input/output token estimates.

Question 32

A platform owner must attribute usage to several applications sharing a deployment. How should the developer address this requirement?

  1. Implement bounded queues, jittered retries, and scaling/quota review
  2. Check deployment quotas and application request/token throughput
  3. Replace characters with tokenizer-informed input/output token estimates
  4. Tag resources and emit application-level usage telemetry
  5. Verify model and capacity availability separately per region

Explanation

Correct Answer

D:

Resource charges alone may not identify individual callers; request metadata and token measurements support workload-level allocation.

Incorrect Answers

A:

Backpressure stops clients from multiplying overload; capacity planning addresses sustained demand whereas immediate infinite retries worsen it; the needed design choice concerns attributing usage to several applications sharing a deployment instead.

B:

Rate limiting is often a capacity or quota issue; retry strategy and authorized quota changes are more relevant than rebuilding healthy resources; the scenario instead depends on attributing usage to several applications sharing a deployment.

C:

Different text shapes tokenize differently, and both prompt and generated output count toward capacity and cost; the requested solution requires attributing usage to several applications sharing a deployment rather than this different mechanism.

E:

Supported deployment options and quota are not automatically identical across regions, so each target region needs its own validation; it cannot substitute for attributing usage to several applications sharing a deployment under these conditions.

Question 33

A Python service needs credentials without embedding a secret string in its source repository. What should the engineer implement?

  1. Configure the correct Foundry project or model endpoint URI
  2. Use an SDK credential provider that refreshes tokens
  3. Use Microsoft Entra authentication with an appropriate credential chain
  4. Retry eligible inference operations cautiously and make downstream actions idempotent
  5. Select the SDK client and API version compatible with the chosen service endpoint

Explanation

Correct Answer

C:

Token-based application credentials avoid checked-in API keys and can use workload identity in production; access still requires the necessary role.

Incorrect Answers

A:

Routing depends on endpoint configuration independently of authentication; a valid token cannot compensate for an incorrect service target; that would not ensure providing credentials without embedding a secret string in its source repository for this workload.

B:

A managed token credential handles expiration and refresh; static bearer-token literals eventually fail even if initial requests succeed; the needed design choice concerns providing credentials without embedding a secret string in its source repository instead.

D:

Network retries can repeat a model response or tool plan; durable action identifiers prevent duplicate writes when a workflow resumes; the requested solution requires providing credentials without embedding a secret string in its source repository rather than this different mechanism.

E:

Azure AI endpoints and client contracts are not universally interchangeable; align request shapes and versions with the deployed service; it addresses a neighboring concern, while the task tests providing credentials without embedding a secret string in its source repository.

Question 34

A developer has a valid token but requests fail because the client addresses an old environment. Which design choice is most appropriate?

  1. Use Microsoft Entra authentication with an appropriate credential chain
  2. Configure the correct Foundry project or model endpoint URI
  3. Attach correlation identifiers to application telemetry around model requests
  4. Externalize project endpoints, deployment names, and identity selection
  5. Select the SDK client and API version compatible with the chosen service endpoint

Explanation

Correct Answer

B:

Routing depends on endpoint configuration independently of authentication; a valid token cannot compensate for an incorrect service target.

Incorrect Answers

A:

Token-based application credentials avoid checked-in API keys and can use workload identity in production; access still requires the necessary role; the relevant decision is configuring the correct Foundry project or model endpoint URI, not the separate action described here.

C:

Trace and request IDs make a failure attributable across client, gateway, and inference layers without logging raw private prompts; the needed design choice concerns configuring the correct Foundry project or model endpoint URI instead.

D:

Environment-specific settings allow the same source artifact to target each project without hardcoding infrastructure assumptions; the scenario instead depends on configuring the correct Foundry project or model endpoint URI.

E:

Azure AI endpoints and client contracts are not universally interchangeable; align request shapes and versions with the deployed service; the requested solution requires configuring the correct Foundry project or model endpoint URI rather than this different mechanism.

Question 35

A service calls a deployment name that has not been created in its target resource. Which approach best meets the requirement?

  1. Deploy the model and reference that actual deployment identifier
  2. Attach correlation identifiers to application telemetry around model requests
  3. Use an SDK credential provider that refreshes tokens
  4. Use Microsoft Entra authentication with an appropriate credential chain

Explanation

Correct Answer

A:

Inference calls are directed to an existing deployment, not just the catalog model family name; the application and environment must agree.

Incorrect Answers

B:

Trace and request IDs make a failure attributable across client, gateway, and inference layers without logging raw private prompts; the relevant decision is deploying the model and reference that actual deployment identifier, not the separate action described here.

C:

A managed token credential handles expiration and refresh; static bearer-token literals eventually fail even if initial requests succeed; that would not ensure deploying the model and reference that actual deployment identifier for this workload.

D:

Token-based application credentials avoid checked-in API keys and can use workload identity in production; access still requires the necessary role; the needed design choice concerns deploying the model and reference that actual deployment identifier instead.

Question 36

An app must automatically renew its identity tokens when a long-lived worker continues running. What should be included in the design?

  1. Deploy the model and reference that actual deployment identifier
  2. Use an SDK credential provider that refreshes tokens
  3. Configure the correct Foundry project or model endpoint URI
  4. Use Microsoft Entra authentication with an appropriate credential chain

Explanation

Correct Answer

B:

A managed token credential handles expiration and refresh; static bearer-token literals eventually fail even if initial requests succeed.

Incorrect Answers

A:

Inference calls are directed to an existing deployment, not just the catalog model family name; the application and environment must agree; meeting the stated constraint still involves automaticallying renew its identity tokens when a long-lived worker continues running.

C:

Routing depends on endpoint configuration independently of authentication; a valid token cannot compensate for an incorrect service target; the relevant decision is automaticallying renew its identity tokens when a long-lived worker continues running, not the separate action described here.

D:

Token-based application credentials avoid checked-in API keys and can use workload identity in production; access still requires the necessary role; that would not ensure automaticallying renew its identity tokens when a long-lived worker continues running for this workload.

Question 37

A distributed client must preserve request correlation when a model call fails downstream. What is the most suitable next implementation decision?

  1. Attach correlation identifiers to application telemetry around model requests
  2. Configure the correct Foundry project or model endpoint URI
  3. Use an SDK credential provider that refreshes tokens
  4. Externalize project endpoints, deployment names, and identity selection

Explanation

Correct Answer

A:

Trace and request IDs make a failure attributable across client, gateway, and inference layers without logging raw private prompts.

Incorrect Answers

B:

Routing depends on endpoint configuration independently of authentication; a valid token cannot compensate for an incorrect service target; meeting the stated constraint still involves preserving request correlation when a model call fails downstream.

C:

A managed token credential handles expiration and refresh; static bearer-token literals eventually fail even if initial requests succeed; that mechanism does not itself establish preserving request correlation when a model call fails downstream.

D:

Environment-specific settings allow the same source artifact to target each project without hardcoding infrastructure assumptions; the relevant decision is preserving request correlation when a model call fails downstream, not the separate action described here.

Question 38

A team is migrating a Python app between development and production projects. How should the developer address this requirement?

  1. Externalize project endpoints, deployment names, and identity selection
  2. Use an SDK credential provider that refreshes tokens
  3. Deploy the model and reference that actual deployment identifier
  4. Select the SDK client and API version compatible with the chosen service endpoint

Explanation

Correct Answer

A:

Environment-specific settings allow the same source artifact to target each project without hardcoding infrastructure assumptions.

Incorrect Answers

B:

A managed token credential handles expiration and refresh; static bearer-token literals eventually fail even if initial requests succeed; on its own this leaves externalizing project endpoints, deployment names, and identity selection unaddressed.

C:

Inference calls are directed to an existing deployment, not just the catalog model family name; the application and environment must agree; meeting the stated constraint still involves externalizing project endpoints, deployment names, and identity selection.

D:

Azure AI endpoints and client contracts are not universally interchangeable; align request shapes and versions with the deployed service; that mechanism does not itself establish externalizing project endpoints, deployment names, and identity selection.

Question 39

An app uses an SDK client created for a different endpoint/API contract and receives incompatible responses. Which implementation should the team choose?

  1. Configure the correct Foundry project or model endpoint URI
  2. Select the SDK client and API version compatible with the chosen service endpoint
  3. Retry eligible inference operations cautiously and make downstream actions idempotent
  4. Attach correlation identifiers to application telemetry around model requests
  5. Externalize project endpoints, deployment names, and identity selection

Explanation

Correct Answer

B:

Azure AI endpoints and client contracts are not universally interchangeable; align request shapes and versions with the deployed service.

Incorrect Answers

A:

Routing depends on endpoint configuration independently of authentication; a valid token cannot compensate for an incorrect service target; it addresses a neighboring concern, while the task tests selecting the SDK client and API version compatible with the chosen service endpoint.

C:

Network retries can repeat a model response or tool plan; durable action identifiers prevent duplicate writes when a workflow resumes; on its own this leaves selecting the SDK client and API version compatible with the chosen service endpoint unaddressed.

D:

Trace and request IDs make a failure attributable across client, gateway, and inference layers without logging raw private prompts; meeting the stated constraint still involves selecting the SDK client and API version compatible with the chosen service endpoint.

E:

Environment-specific settings allow the same source artifact to target each project without hardcoding infrastructure assumptions; that mechanism does not itself establish selecting the SDK client and API version compatible with the chosen service endpoint.

Question 40

During rollout of an order-assistance application, requests target a model deployment that does not exist in the intended resource. Once routing is repaired, occasional network timeouts can cause a downstream order tool to execute twice. Which TWO changes address both rollout safety and the failure path? Choose TWO.

  1. Retry transient inference failures with replay protection on the order tool
  2. Use an SDK credential provider that refreshes tokens
  3. Deploy the intended model and send requests to its real deployment name
  4. Configure the correct Foundry project or model endpoint URI
  5. Select the SDK client and API version compatible with the chosen service endpoint

Explanation

Correct Answers

A:

Network retries can repeat a model response or tool plan; durable action identifiers prevent duplicate writes when a workflow resumes; a recovered timeout must not create a second customer order.

C:

Inference calls are directed to an existing deployment, not just the catalog model family name; the application and environment must agree; inference cannot succeed against a family name that has not been deployed.

Incorrect Answers

B:

A managed token credential handles expiration and refresh; static bearer-token literals eventually fail even if initial requests succeed; it addresses a neighboring concern, while the task tests an existing deployment target and replay-safe order execution.

D:

Routing depends on endpoint configuration independently of authentication; a valid token cannot compensate for an incorrect service target; on its own this leaves an existing deployment target and replay-safe order execution unaddressed.

E:

Azure AI endpoints and client contracts are not universally interchangeable; align request shapes and versions with the deployed service; meeting the stated constraint still involves an existing deployment target and replay-safe order execution.

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