Skip to main content

AI-200 practice question · Connect to and Consume Azure Services

A team calls an Azure OpenAI chat model with structured outputs (response_format set to json_schema with strict: true)…

A team calls an Azure OpenAI chat model with structured outputs (response_format set to json_schema with strict: true) to pull fields out of customer emails. Every response matches the schema. However, when the same email is sent several times with temperature 0.7, some field values differ slightly between responses. What should the team do to make the values more consistent?

  • ALower the temperature and send the same seed value on each call. Strict mode controls the response's structure, not the values the model generates
  • BSwitch from structured outputs to JSON mode, which returns valid JSON and also gives the same field values for the same input
  • CSet additionalProperties to false on each object in the schema so that the model returns the same field values every time
  • DAdd every field to the schema's required list so that the model has to return the same value in each field
Show the answer and explanation

Correct answer: A) Lower the temperature and send the same seed value on each call. Strict mode controls the response's structure, not the values the model generates

Strict structured outputs guarantees the response follows the schema, but field values are still sampled. Lowering temperature and setting a fixed seed reduces the variation, though Microsoft doesn't guarantee fully identical output.

Why each option is right or wrong

  • A) Correct. Structured outputs makes the model follow the supplied JSON Schema, but the content inside each field is still sampled. Chat completions are nondeterministic by default. Lowering temperature and sending the same seed (with other parameters unchanged) makes outputs more consistent, though Microsoft notes determinism isn't guaranteed.
  • B) Incorrect. JSON mode is the older feature. It guarantees valid JSON but can't enforce the schema, so it gives weaker structural guarantees and does nothing to keep field values the same.
  • C) Incorrect. additionalProperties: false only stops keys that aren't defined in the schema. Structured outputs already requires it, and it has no effect on the values the model generates.
  • D) Incorrect. Structured outputs already requires every field to be listed as required. That guarantees each field is present, not that its value is identical between calls.
Exam domain
Connect to and Consume Azure Services · 25% of AI-200
Question type
Multiple choice (one answer)

Practise the full AI-200 exam

This question is one of a small free sample from the CertRidge AI-200 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.