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

Question 250

A creative marketing task produces repetitive slogans with little variation. Which action directly produces the required outcome?

  1. Experiment with higher supported sampling diversity within policy limits
  2. Instruct it to abstain without supporting evidence and verify groundedness
  3. Put task-critical instructions and high-value evidence in deliberate prompt positions
  4. Use only generation parameters supported by the target model and API
  5. Evaluate candidate prompts across a diverse held-out dataset

Explanation

Correct Answer

A:

Increasing diversity can surface alternatives, but quality and safety must be reviewed rather than treating novelty as correctness.

Incorrect Answers

B:

Abstention rules reduce unsupported certainty, but retrieval and evaluation must confirm the model follows them; it addresses a neighboring concern, while the task tests experimenting with higher supported sampling diversity within policy limits.

C:

Context order and selection influence attention; rearranging the prompt can improve performance without changing the model; it cannot substitute for experimenting with higher supported sampling diversity within policy limits under these conditions.

D:

Sampling controls differ by model family and endpoint; unsupported knobs should not be assumed to transfer unchanged; on its own this leaves experimenting with higher supported sampling diversity within policy limits unaddressed.

E:

Single-example optimization overfits the example; representative tests measure whether improvements generalize across tasks; meeting the stated constraint still involves experimenting with higher supported sampling diversity within policy limits.

Question 251

A legal-answering system is verbose and often exceeds the application's response-size limit. Which implementation should the team choose?

  1. Set an appropriate maximum output-token budget and concise response instructions
  2. Reduce sampling randomness and constrain output to a category enum
  3. Put task-critical instructions and high-value evidence in deliberate prompt positions
  4. Instruct it to abstain without supporting evidence and verify groundedness

Explanation

Correct Answer

A:

Output limits bound generation length, while explicit completion requirements guard against truncating essential legal qualifications.

Incorrect Answers

B:

Low-variance generation and restricted labels improve repeatability, though downstream correctness testing is still essential; the requested solution requires setting an appropriate maximum output-token budget and concise response instructions rather than this different mechanism.

C:

Context order and selection influence attention; rearranging the prompt can improve performance without changing the model; it addresses a neighboring concern, while the task tests setting an appropriate maximum output-token budget and concise response instructions.

D:

Abstention rules reduce unsupported certainty, but retrieval and evaluation must confirm the model follows them; it cannot substitute for setting an appropriate maximum output-token budget and concise response instructions under these conditions.

Question 252

A model invents facts when the prompt asks it to answer even without source material. What should the engineer implement?

  1. Use only generation parameters supported by the target model and API
  2. Instruct it to abstain without supporting evidence and verify groundedness
  3. Set an appropriate maximum output-token budget and concise response instructions
  4. Put task-critical instructions and high-value evidence in deliberate prompt positions

Explanation

Correct Answer

B:

Abstention rules reduce unsupported certainty, but retrieval and evaluation must confirm the model follows them.

Incorrect Answers

A:

Sampling controls differ by model family and endpoint; unsupported knobs should not be assumed to transfer unchanged; the needed design choice concerns instructing it to abstain without supporting evidence and verify groundedness instead.

C:

Output limits bound generation length, while explicit completion requirements guard against truncating essential legal qualifications; the requested solution requires instructing it to abstain without supporting evidence and verify groundedness rather than this different mechanism.

D:

Context order and selection influence attention; rearranging the prompt can improve performance without changing the model; it addresses a neighboring concern, while the task tests instructing it to abstain without supporting evidence and verify groundedness.

Question 253

An application uses a model to classify inbound campaign requests into fixed labels and draft varied, short campaign copy. Long retrieval context sometimes buries the label instructions, and the generated copy has become repetitive. Which THREE prompt or generation controls address the instruction placement, controlled labels, and creative variation? Choose THREE.

  1. Place the classification instructions and relevant request evidence prominently
  2. Instruct it to abstain without supporting evidence and verify groundedness
  3. Set an appropriate maximum output-token budget and concise response instructions
  4. Increase output-token limits so category labels may be accompanied by long free-form justifications
  5. Enforce the fixed campaign-category vocabulary at the application boundary
  6. Vary permitted generation sampling to improve slogan diversity

Explanation

Correct Answers

A:

Context order and selection influence attention; rearranging the prompt can improve performance without changing the model; critical label instructions must remain salient beside the relevant input.

E:

Constrained choices address the interface directly, rather than relying solely on a low temperature to force exact wording; an exact category enum protects routing code from explanatory prose.

F:

Increasing diversity can surface alternatives, but quality and safety must be reviewed rather than treating novelty as correctness; variation should rise only within the acceptable quality and brand constraints.

Incorrect Answers

B:

Abstention rules reduce unsupported certainty, but retrieval and evaluation must confirm the model follows them; the needed design choice concerns salient prompt instructions, controlled labels, and permitted creative diversity instead.

C:

Output limits bound generation length, while explicit completion requirements guard against truncating essential legal qualifications; the scenario instead depends on salient prompt instructions, controlled labels, and permitted creative diversity.

D:

Permitting extended free-form labels breaks the controlled label contract and adds output the routing service cannot safely parse; the requested solution requires salient prompt instructions, controlled labels, and permitted creative diversity rather than this different mechanism.

Question 254

An inference deployment rejects a parameter that was valid for a different model. What solution would satisfy this constraint?

  1. Use only generation parameters supported by the target model and API
  2. Instruct it to abstain without supporting evidence and verify groundedness
  3. Reduce sampling randomness and constrain output to a category enum
  4. Require a small output vocabulary and validate the returned label

Explanation

Correct Answer

A:

Sampling controls differ by model family and endpoint; unsupported knobs should not be assumed to transfer unchanged.

Incorrect Answers

B:

Abstention rules reduce unsupported certainty, but retrieval and evaluation must confirm the model follows them; that would not ensure using only generation parameters supported by the target model and API for this workload.

C:

Low-variance generation and restricted labels improve repeatability, though downstream correctness testing is still essential; the needed design choice concerns using only generation parameters supported by the target model and API instead.

D:

Constrained choices address the interface directly, rather than relying solely on a low temperature to force exact wording; the scenario instead depends on using only generation parameters supported by the target model and API.

Question 255

A chatbot is asked for one-word sentiment labels but often returns explanations. What is the most suitable next implementation decision?

  1. Require a small output vocabulary and validate the returned label
  2. Set an appropriate maximum output-token budget and concise response instructions
  3. Instruct it to abstain without supporting evidence and verify groundedness
  4. Experiment with higher supported sampling diversity within policy limits

Explanation

Correct Answer

A:

Constrained choices address the interface directly, rather than relying solely on a low temperature to force exact wording.

Incorrect Answers

B:

Output limits bound generation length, while explicit completion requirements guard against truncating essential legal qualifications; the relevant decision is requiring a small output vocabulary and validate the returned label, not the separate action described here.

C:

Abstention rules reduce unsupported certainty, but retrieval and evaluation must confirm the model follows them; that would not ensure requiring a small output vocabulary and validate the returned label for this workload.

D:

Increasing diversity can surface alternatives, but quality and safety must be reviewed rather than treating novelty as correctness; the needed design choice concerns requiring a small output vocabulary and validate the returned label instead.

Question 256

A team tunes prompts using one convenient example and reports a dramatic improvement. Which implementation should the team choose?

  1. Experiment with higher supported sampling diversity within policy limits
  2. Instruct it to abstain without supporting evidence and verify groundedness
  3. Put task-critical instructions and high-value evidence in deliberate prompt positions
  4. Evaluate candidate prompts across a diverse held-out dataset

Explanation

Correct Answer

D:

Single-example optimization overfits the example; representative tests measure whether improvements generalize across tasks.

Incorrect Answers

A:

Increasing diversity can surface alternatives, but quality and safety must be reviewed rather than treating novelty as correctness; meeting the stated constraint still involves evaluating candidate prompts across a diverse held-out dataset.

B:

Abstention rules reduce unsupported certainty, but retrieval and evaluation must confirm the model follows them; that mechanism does not itself establish evaluating candidate prompts across a diverse held-out dataset.

C:

Context order and selection influence attention; rearranging the prompt can improve performance without changing the model; the relevant decision is evaluating candidate prompts across a diverse held-out dataset, not the separate action described here.

Question 257

A unit test expects identical creative text for the same prompt on every run. Which approach best meets the requirement?

  1. Pin or record the model and inference configuration during evaluation
  2. Tune supported repetition and length controls and revise the prompt
  3. Hold the evaluation prompt set constant while varying one parameter
  4. Test semantic and schema invariants rather than exact prose matching

Explanation

Correct Answer

D:

Generative outputs can vary even with reduced randomness; robust tests focus on requirements the application actually depends on.

Incorrect Answers

A:

Without controlling model version and parameters, observed differences cannot be attributed to prompt edits alone; on its own this leaves testing semantic and schema invariants rather than exact prose matching unaddressed.

B:

Repetition can reflect sampling settings and context design; parameter support must be verified for the chosen deployment; meeting the stated constraint still involves testing semantic and schema invariants rather than exact prose matching.

C:

Controlled experiments isolate the parameter's effect instead of confounding it with different input difficulty; that mechanism does not itself establish testing semantic and schema invariants rather than exact prose matching.

Question 258

A workflow requires stable ranking of three options under a fixed rubric. What solution would satisfy this constraint?

  1. Tune supported repetition and length controls and revise the prompt
  2. Inspect finish reasons and raise an appropriate output allowance
  3. Test semantic and schema invariants rather than exact prose matching
  4. Set iteration bounds and compare revisions against original evidence
  5. Use a structured scoring rubric with constrained numeric or categorical outputs
  6. Combine controlled generation with explicit brand and safety validation

Explanation

Correct Answer

E:

Explicit criteria and output constraints reduce subjective drift, though calibration against reference judgments remains necessary.

Incorrect Answers

A:

Repetition can reflect sampling settings and context design; parameter support must be verified for the chosen deployment; it cannot substitute for providing stable ranking of three options under a fixed rubric under these conditions.

B:

Truncation diagnostics help distinguish output-budget exhaustion from a generation design error; on its own this leaves providing stable ranking of three options under a fixed rubric unaddressed.

C:

Generative outputs can vary even with reduced randomness; robust tests focus on requirements the application actually depends on; meeting the stated constraint still involves providing stable ranking of three options under a fixed rubric.

D:

Repeated self-revision can amplify unsupported claims; a stopping rule and grounded evaluation limit that risk; that mechanism does not itself establish providing stable ranking of three options under a fixed rubric.

F:

Sampling settings influence diversity but cannot guarantee policy compliance or eliminate every disallowed term; that would not ensure providing stable ranking of three options under a fixed rubric for this workload.

Question 259

A team wants repeatable comparisons between two prompts while the backend model changes daily. How should the developer address this requirement?

  1. Hold the evaluation prompt set constant while varying one parameter
  2. Inspect finish reasons and raise an appropriate output allowance
  3. Set iteration bounds and compare revisions against original evidence
  4. Pin or record the model and inference configuration during evaluation

Explanation

Correct Answer

D:

Without controlling model version and parameters, observed differences cannot be attributed to prompt edits alone.

Incorrect Answers

A:

Controlled experiments isolate the parameter's effect instead of confounding it with different input difficulty; it addresses a neighboring concern, while the task tests pinning or record the model and inference configuration during evaluation.

B:

Truncation diagnostics help distinguish output-budget exhaustion from a generation design error; it cannot substitute for pinning or record the model and inference configuration during evaluation under these conditions.

C:

Repeated self-revision can amplify unsupported claims; a stopping rule and grounded evaluation limit that risk; on its own this leaves pinning or record the model and inference configuration during evaluation unaddressed.

Question 260

An assistant emits repeated phrases in long completions. Which approach best meets the requirement?

  1. Combine controlled generation with explicit brand and safety validation
  2. Hold the evaluation prompt set constant while varying one parameter
  3. Tune supported repetition and length controls and revise the prompt
  4. Test semantic and schema invariants rather than exact prose matching
  5. Use a structured scoring rubric with constrained numeric or categorical outputs

Explanation

Correct Answer

C:

Repetition can reflect sampling settings and context design; parameter support must be verified for the chosen deployment.

Incorrect Answers

A:

Sampling settings influence diversity but cannot guarantee policy compliance or eliminate every disallowed term; the requested solution requires tuning supported repetition and length controls and revise the prompt rather than this different mechanism.

B:

Controlled experiments isolate the parameter's effect instead of confounding it with different input difficulty; it addresses a neighboring concern, while the task tests tuning supported repetition and length controls and revise the prompt.

D:

Generative outputs can vary even with reduced randomness; robust tests focus on requirements the application actually depends on; on its own this leaves tuning supported repetition and length controls and revise the prompt unaddressed.

E:

Explicit criteria and output constraints reduce subjective drift, though calibration against reference judgments remains necessary; meeting the stated constraint still involves tuning supported repetition and length controls and revise the prompt.

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