AI-102 exam dumps

AI-102 practice question 459 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 459

Select 3

You are developing an AI-powered chatbot using Azure OpenAI APIs to provide customer support. The chatbot needs to process user prompts and return contextually relevant responses. Which of the following steps are required for successful integration and usage of Azure OpenAI APIs?

  1. A

    Obtain an API key and endpoint URL from the Azure OpenAI resource.

  2. B

    Use Azure Cognitive Search to preprocess the prompts before sending them to the Azure OpenAI API.

  3. C

    Set up authentication with the API key in your application to securely access the Azure OpenAI API.

  4. D

    Submit prompts to the Azure OpenAI API using HTTP POST requests with the required payload format.

  5. E

    Train the Azure OpenAI model from scratch to handle customer support scenarios before using the API.

Show answer and explanation

Correct answers: A, C, D

Explanation

To successfully integrate Azure OpenAI APIs, you need to provision the Azure OpenAI resource, obtain the API key and endpoint URL, authenticate using the API key, and submit prompts via HTTP POST requests. Preprocessing prompts using Azure Cognitive Search and training models from scratch are not required for basic usage of the Azure OpenAI service.

  • A. Correct.

    Correct. To use Azure OpenAI APIs, you must first provision an Azure OpenAI resource in your Azure subscription and retrieve the API key and endpoint URL.

  • B. Incorrect.

    Incorrect. While Azure Cognitive Search can complement OpenAI APIs in some solutions, preprocessing prompts with it is not a mandatory step for using Azure OpenAI APIs.

  • C. Correct.

    Correct. Authentication is mandatory for secure access to the Azure OpenAI API, and this is typically done using the API key provided by the Azure OpenAI resource.

  • D. Correct.

    Correct. Interaction with the Azure OpenAI API is done via HTTP POST requests, where the request body includes the prompt and other parameters in the required format.

  • E. Incorrect.

    Incorrect. Training a model from scratch is not required because Azure OpenAI APIs provide access to pre-trained models like GPT. You can use these models directly with your prompts.

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