AI-102 Question 460
Select 3You 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?
- A
Obtain an API key from the Azure OpenAI service and include it in the request headers.
- B
Configure the Azure OpenAI endpoint URL specific to your Azure region.
- C
Use Azure Active Directory (AAD) authentication instead of an API key to access the service.
- D
Specify the model deployment name in the request body when submitting prompts.
- 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.