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

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.

Question 201

An evaluation result cannot be repeated because the model deployment changed silently. What is the most suitable next implementation decision?

  1. Freeze an indexed dataset snapshot for comparative evaluation
  2. Version prompts, tool schemas, and model settings independently
  3. Use supported determinism controls where available and test residual variability
  4. Record model deployment version and inference parameters with each run

Explanation

Correct Answer

D:

Version and configuration metadata allow comparisons on a known execution context instead of conflating model changes with data changes.

Incorrect Answers

A:

A stable evidence corpus makes retrieval and answer results comparable across candidate configurations; the scenario instead depends on recording model deployment version and inference parameters with each run.

B:

Granular change histories let the team isolate causes and roll back only the component responsible; the requested solution requires recording model deployment version and inference parameters with each run rather than this different mechanism.

C:

Lower sampling randomness can improve stability, but identical inputs are not an unconditional bit-for-bit guarantee across environments; it addresses a neighboring concern, while the task tests recording model deployment version and inference parameters with each run.

Question 202

A benchmark fails sporadically when retriever documents are updated mid-test. What solution would satisfy this constraint?

  1. Align vectorization configurations or document their incompatibility
  2. Freeze an indexed dataset snapshot for comparative evaluation
  3. Capture a policy version identifier on every authorized action
  4. Version prompts, tool schemas, and model settings independently

Explanation

Correct Answer

B:

A stable evidence corpus makes retrieval and answer results comparable across candidate configurations.

Incorrect Answers

A:

Embedding changes alter vector spaces and search scores; reproduction requires both query and stored vectors to be compatible; the needed design choice concerns freezing an indexed dataset snapshot for comparative evaluation instead.

C:

Versioned governance evidence links actions to current decision rules rather than only to a transcript; the requested solution requires freezing an indexed dataset snapshot for comparative evaluation rather than this different mechanism.

D:

Granular change histories let the team isolate causes and roll back only the component responsible; it addresses a neighboring concern, while the task tests freezing an indexed dataset snapshot for comparative evaluation.

Question 203

A team cannot determine whether a regression came from a prompt edit or a tool change. How should the developer address this requirement?

  1. Use supported determinism controls where available and test residual variability
  2. Run paired evaluations on the same representative examples
  3. Version prompts, tool schemas, and model settings independently
  4. Record model deployment version and inference parameters with each run
  5. Freeze an indexed dataset snapshot for comparative evaluation

Explanation

Correct Answer

C:

Granular change histories let the team isolate causes and roll back only the component responsible.

Incorrect Answers

A:

Lower sampling randomness can improve stability, but identical inputs are not an unconditional bit-for-bit guarantee across environments; that would not ensure versioning prompts, tool schemas, and model settings independently for this workload.

B:

Paired testing distinguishes genuine improvement from differences in evaluation data or scoring conditions; the needed design choice concerns versioning prompts, tool schemas, and model settings independently instead.

D:

Version and configuration metadata allow comparisons on a known execution context instead of conflating model changes with data changes; the requested solution requires versioning prompts, tool schemas, and model settings independently rather than this different mechanism.

E:

A stable evidence corpus makes retrieval and answer results comparable across candidate configurations; it addresses a neighboring concern, while the task tests versioning prompts, tool schemas, and model settings independently.

Question 204

An agent's test environment uses a different embedding model from production. What is the most suitable next implementation decision?

  1. Retain immutable release artifacts and a rollback plan
  2. Run paired evaluations on the same representative examples
  3. Align vectorization configurations or document their incompatibility
  4. Record model deployment version and inference parameters with each run

Explanation

Correct Answer

C:

Embedding changes alter vector spaces and search scores; reproduction requires both query and stored vectors to be compatible.

Incorrect Answers

A:

Rollback is only dependable when the exact earlier prompt, model reference, tools, and runtime configuration remain recoverable; the relevant decision is aligning vectorization configurations or document their incompatibility, not the separate action described here.

B:

Paired testing distinguishes genuine improvement from differences in evaluation data or scoring conditions; that would not ensure aligning vectorization configurations or document their incompatibility for this workload.

D:

Version and configuration metadata allow comparisons on a known execution context instead of conflating model changes with data changes; the scenario instead depends on aligning vectorization configurations or document their incompatibility.

Question 205

A workflow makes financial decisions and every execution must be traceable to the policy in force. What should the engineer implement?

  1. Version prompts, tool schemas, and model settings independently
  2. Freeze an indexed dataset snapshot for comparative evaluation
  3. Capture a policy version identifier on every authorized action
  4. Retain immutable release artifacts and a rollback plan

Explanation

Correct Answer

C:

Versioned governance evidence links actions to current decision rules rather than only to a transcript.

Incorrect Answers

A:

Granular change histories let the team isolate causes and roll back only the component responsible; that mechanism does not itself establish bing traceable to the policy in force.

B:

A stable evidence corpus makes retrieval and answer results comparable across candidate configurations; the relevant decision is bing traceable to the policy in force, not the separate action described here.

D:

Rollback is only dependable when the exact earlier prompt, model reference, tools, and runtime configuration remain recoverable; the needed design choice concerns bing traceable to the policy in force instead.

Question 206

A developer runs the same generation request twice and receives different wording. Which method is the best fit?

  1. Retain immutable release artifacts and a rollback plan
  2. Freeze an indexed dataset snapshot for comparative evaluation
  3. Use supported determinism controls where available and test residual variability
  4. Record model deployment version and inference parameters with each run

Explanation

Correct Answer

C:

Lower sampling randomness can improve stability, but identical inputs are not an unconditional bit-for-bit guarantee across environments.

Incorrect Answers

A:

Rollback is only dependable when the exact earlier prompt, model reference, tools, and runtime configuration remain recoverable; meeting the stated constraint still involves using supported determinism controls where available and test residual variability.

B:

A stable evidence corpus makes retrieval and answer results comparable across candidate configurations; that mechanism does not itself establish using supported determinism controls where available and test residual variability.

D:

Version and configuration metadata allow comparisons on a known execution context instead of conflating model changes with data changes; that would not ensure using supported determinism controls where available and test residual variability for this workload.

Question 207

A team is replacing the model behind a grounded helpdesk assistant. Its retrieval index changes each night, so a credible before-and-after comparison must separate model regressions from changing source documents. Which TWO evaluation practices achieve this? Choose TWO.

  1. Record model deployment version and inference parameters with each run
  2. Retain immutable release artifacts and a rollback plan
  3. Fix the indexed evidence snapshot throughout both model evaluations
  4. Capture a policy version identifier on every authorized action
  5. Score old and new models on the same representative inputs and acceptance rubric

Explanation

Correct Answers

C:

A stable evidence corpus makes retrieval and answer results comparable across candidate configurations; otherwise overnight source changes would confound the model comparison.

E:

Paired testing distinguishes genuine improvement from differences in evaluation data or scoring conditions; paired cases expose regressions that unrelated benchmark datasets could hide.

Incorrect Answers

A:

Version and configuration metadata allow comparisons on a known execution context instead of conflating model changes with data changes; on its own this leaves paired model evaluation using a frozen evidence snapshot unaddressed.

B:

Rollback is only dependable when the exact earlier prompt, model reference, tools, and runtime configuration remain recoverable; meeting the stated constraint still involves paired model evaluation using a frozen evidence snapshot.

D:

Versioned governance evidence links actions to current decision rules rather than only to a transcript; the relevant decision is paired model evaluation using a frozen evidence snapshot, not the separate action described here.

Question 208

An application cannot recover its prior behavior after a faulty agent rollout. Which design choice is most appropriate?

  1. Record model deployment version and inference parameters with each run
  2. Use supported determinism controls where available and test residual variability
  3. Retain immutable release artifacts and a rollback plan
  4. Capture a policy version identifier on every authorized action

Explanation

Correct Answer

C:

Rollback is only dependable when the exact earlier prompt, model reference, tools, and runtime configuration remain recoverable.

Incorrect Answers

A:

Version and configuration metadata allow comparisons on a known execution context instead of conflating model changes with data changes; it cannot substitute for retaining immutable release artifacts and a rollback plan under these conditions.

B:

Lower sampling randomness can improve stability, but identical inputs are not an unconditional bit-for-bit guarantee across environments; on its own this leaves retaining immutable release artifacts and a rollback plan unaddressed.

D:

Versioned governance evidence links actions to current decision rules rather than only to a transcript; that mechanism does not itself establish retaining immutable release artifacts and a rollback plan.

Question 209

An essential chat service must remain useful when its primary model endpoint is unavailable. How should the developer address this requirement?

  1. Implement an evaluated fallback to a compatible deployment
  2. Store durable job state and allow restart from a verified checkpoint
  3. Retry retryable failures with exponential backoff and an upper limit
  4. Use deduplication or idempotent ingestion identifiers

Explanation

Correct Answer

A:

A fallback requires compatible capabilities, security policy, and output contract; simply retrying an unavailable endpoint does not provide continuity.

Incorrect Answers

B:

Checkpointing limits repeated work and enables progress recovery without relying on ephemeral in-memory conversation state; it cannot substitute for remaining useful when its primary model endpoint is unavailable under these conditions.

C:

Controlled retries recover from transient faults while ensuring persistent failures surface for intervention; on its own this leaves remaining useful when its primary model endpoint is unavailable unaddressed.

D:

A retryable pipeline should not create duplicate index entries or side effects when the same source item is replayed; meeting the stated constraint still involves remaining useful when its primary model endpoint is unavailable.

Question 210

A tool API is slow and stalls every workflow thread indefinitely. What should be included in the design?

  1. Use deduplication or idempotent ingestion identifiers
  2. Apply timeouts and circuit-breaker behavior to external tool calls
  3. Fail closed or defer the answer instead of inventing unsupported facts
  4. Implement an evaluated fallback to a compatible deployment

Explanation

Correct Answer

B:

Bounded dependency waiting stops one failing tool from exhausting the entire agent runtime and can trigger controlled failure handling.

Incorrect Answers

A:

A retryable pipeline should not create duplicate index entries or side effects when the same source item is replayed; the requested solution requires applying timeouts and circuit-breaker behavior to external tool calls rather than this different mechanism.

C:

When grounding is mandatory, inability to retrieve approved evidence should block unsupported claims and initiate a safe fallback; it cannot substitute for applying timeouts and circuit-breaker behavior to external tool calls under these conditions.

D:

A fallback requires compatible capabilities, security policy, and output contract; simply retrying an unavailable endpoint does not provide continuity; on its own this leaves applying timeouts and circuit-breaker behavior to external tool calls unaddressed.

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