AI-102 exam dumps

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

Select 3

You are designing an Azure AI solution that integrates with Azure OpenAI APIs to process customer support queries. The solution must send prompts to the GPT-4 model and retrieve responses. Which configuration steps are required to successfully authenticate and interact with the Azure OpenAI service?

  1. A

    Obtain an API key from the Azure OpenAI service and include it in the request headers.

  2. B

    Configure the Azure OpenAI endpoint URL specific to your Azure region.

  3. C

    Use Azure Active Directory (AAD) authentication instead of an API key to access the service.

  4. D

    Specify the model deployment name in the request body when submitting prompts.

  5. E

    Enable the Azure OpenAI service in the Azure portal without needing to configure any endpoints or keys.

Show answer and explanation

Correct answers: A, B, D

Explanation

To interact with Azure OpenAI APIs, proper authentication and configuration are mandatory. You need an API key for authentication, the correct endpoint URL for your Azure region, and the model deployment name to ensure you're communicating with the intended model. These steps ensure secure and precise interactions with the Azure OpenAI service.

  • A. Correct.

    This is required because Azure OpenAI APIs use an API key for authentication, which needs to be included in the request headers for successful interaction.

  • B. Correct.

    The Azure OpenAI endpoint URL is region-specific and must be correctly configured for your service instance to send requests to the right endpoint.

  • C. Incorrect.

    Azure OpenAI does not currently support Azure Active Directory (AAD) authentication. An API key is required for authentication.

  • D. Correct.

    The model deployment name is necessary as it identifies the specific model instance you want to interact with. This must be included in the request body or URL parameters.

  • E. Incorrect.

    This is incorrect because setting up the Azure OpenAI service requires both an endpoint and an API key for proper configuration and usage.

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