AI-102 Question 42
Single answerYou are deploying a natural language processing (NLP) model using Azure Cognitive Services Text Analytics. To set up the service, you need to determine the default endpoint that your application will use to send API requests. What should you do to identify the default endpoint for your Text Analytics service?
- A
Navigate to the Azure portal, select your Text Analytics resource, and copy the Endpoint URL from the Overview section.
- B
Use the Azure CLI command
az cognitive-services account showto retrieve the default endpoint. - C
Refer to the Microsoft documentation for the Text Analytics service to find the default endpoint.
- D
Determine the endpoint dynamically by sending a test API call to any region and using the response to identify the correct endpoint.
Show answer and explanation
Correct answer: A
Explanation
The Azure portal is the easiest and most reliable method to determine the default endpoint for your Azure Cognitive Services resource. By navigating to the Overview section of the resource, you can directly copy the Endpoint URL, which is necessary for configuring your application to interact with the service.
- A. Correct.
Correct. The Azure portal provides a direct way to find the default endpoint for any Cognitive Services resource, including Text Analytics. The Endpoint URL is listed in the Overview section of the resource.
- B. Incorrect.
Incorrect. While the Azure CLI can retrieve details about a Cognitive Services resource, it does not directly provide the default endpoint in a straightforward way.
- C. Incorrect.
Incorrect. The Microsoft documentation does provide general information about endpoints, but it does not specify the default endpoint for your particular resource instance.
- D. Incorrect.
Incorrect. Sending a test API call to determine the endpoint is not a recommended practice and is inefficient. The endpoint must be explicitly set when configuring the service.