AI-200 practice question · Connect to and Consume Azure Services
An application calls an Azure OpenAI chat completions deployment with n set to 3 to get several candidate answers for…
An application calls an Azure OpenAI chat completions deployment with n set to 3 to get several candidate answers for each user question. Only one answer should be shown to the user, and it should be the best of the three. How should the developers implement this?
- ALoop through the choices array in the response and use app-side scoring logic, such as a grader model, to pick one
- BAdd best_of set to 3 to the chat completions request so the service returns only the top-ranked choice
- CSet a fixed seed value so the service picks the same best choice consistently across requests
- DSet stream to true so the service sends only the first choice to finish, which is the best one
Show the answer and explanation
Correct answer: A) Loop through the choices array in the response and use app-side scoring logic, such as a grader model, to pick one
The n parameter returns every generated choice, and tokens are billed across all of them. Picking the single best answer is the application's job, for example by scoring the choices array with a heuristic or grader model.
Why each option is right or wrong
- A) Correct. n sets how many chat completion choices are generated, and every choice comes back in the response's choices array. The service doesn't rank them, so the application has to score them and pick which one to display.
- B) Incorrect. best_of isn't one of the chat completions request options. The chat API generates n choices and returns all of them, without ranking.
- C) Incorrect. seed asks the service to make a best effort at repeatable sampling for repeated requests. It doesn't judge quality or reduce the n choices to one.
- D) Incorrect. Streaming sends tokens incrementally for every requested choice. It doesn't drop any choices, and finishing first doesn't mean an answer is better.
- Exam domain
- Connect to and Consume Azure Services · 25% of AI-200
- Question type
- Multiple choice (one answer)
Related AI-200 questions
- A company's subscription has 240,000 TPM of Standard quota for gpt-4o in East US, and current deployments there use…Connect to and Consume Azure Services
- A .NET application calls the Azure OpenAI SDK client types directly from dozens of business classes.Connect to and Consume Azure Services
- A team deploys an Azure OpenAI model as a Standard deployment and validates its application against the current model…Connect to and Consume Azure Services
- A team has finished a fine-tuning job in Azure OpenAI and now has a custom model ID such as…Connect to and Consume Azure Services
All 60 free AI-200 questions by domain · 15 sample questions on one page
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.