Courseiva
Implement generative AI solutionsmediumMultiple SelectObjective-mapped

AI-102 Implement generative AI solutions Practice Question

Which THREE are valid parameters when calling the Azure OpenAI Service chat completions API?

⚠ Common exam trap

Microsoft often tests the distinction between parameters for different Azure OpenAI API endpoints (chat completions vs. embeddings vs. search), so candidates may confuse `index_name` or `embedding_model` as valid chat completions parameters due to their familiarity with other Azure AI services.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

messages

The `messages` parameter is required in the Azure OpenAI Service chat completions API call. It defines the conversation history and user input as an array of message objects, each with a `role` (system, user, assistant) and `content`. Without this parameter, the API cannot determine the context or prompt for generating a response.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • messages

    Why this is correct

    Required input.

  • index_name

    Why it's wrong here

    Not a chat completions parameter.

  • temperature

    Why this is correct

    Controls randomness.

  • max_tokens

    Why this is correct

    Controls response length.

  • embedding_model

    Why it's wrong here

    Not a chat completions parameter.

About these practice questions

One of 945 original AI-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.