AI-102 exam dumps

AI-102 practice question 445 of 493

Designing and Implementing a Microsoft Azure AI Solution. Professional level, Microsoft. Free question with the correct answer and a full explanation.

AI-102 Question 445

Single answer

You are designing a conversational AI system using Azure OpenAI Service to generate natural language responses. You need to submit a prompt to the Azure OpenAI model via the REST API to simulate a conversation with the model. Which key parameter must you include in your request payload to ensure the model understands the context of the conversation?

  1. A

    temperature

  2. B

    max_tokens

  3. C

    prompt

  4. D

    frequency_penalty

Show answer and explanation

Correct answer: C

Explanation

The 'prompt' parameter is critical when submitting a request to the Azure OpenAI Service because it provides the input text or context that the AI model uses to generate its response. Without a properly defined prompt, the model would not know what context or direction to follow in the conversation, making it an essential element of any API request for generating natural language.

  • A. Incorrect.

    The 'temperature' parameter controls the randomness or creativity of the response, but it does not define the actual input for generating text.

  • B. Incorrect.

    The 'max_tokens' parameter determines the maximum length of the response but does not define the input prompt itself.

  • C. Correct.

    The 'prompt' parameter is the actual input text or conversation context provided to the model. It is essential for the model to understand the conversation context and generate a relevant response.

  • D. Incorrect.

    The 'frequency_penalty' parameter adjusts the likelihood of the model repeating phrases but does not define the input for generating text.

Timed practice exam

Take a AI-102 practice test under exam conditions

40 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam