AI-102 Question 43
Single answerYou are configuring a Cognitive Services resource in Azure to provide text analysis functionality. You need to determine the default endpoint URL for this service to include it in your application. How can you identify the default endpoint for the Cognitive Services resource in the Azure portal?
- A
Navigate to the 'Keys and Endpoint' section of the Cognitive Services resource in the Azure portal.
- B
Use the Azure CLI command
az cognitive-services endpoint show. - C
Check the 'Overview' section of the Cognitive Services resource in the Azure portal.
- D
The default endpoint is always the same for all Cognitive Services resources and does not depend on the resource region.
Show answer and explanation
Correct answer: A
Explanation
To determine the default endpoint for a Cognitive Services resource, you should navigate to the 'Keys and Endpoint' section in the Azure portal. This section contains both the access keys and the endpoint URL, which are required to configure and use the service in your application. The endpoint is specific to the resource's region and is not universally the same for all Cognitive Services resources, making it necessary to check the actual configuration for your resource.
- A. Correct.
This is correct. The 'Keys and Endpoint' section in the Azure portal provides the default endpoint URL along with the resource access keys.
- B. Incorrect.
This is incorrect. While the Azure CLI can be used to retrieve information about a Cognitive Services resource, there is no specific
az cognitive-services endpoint showcommand to directly list the endpoint. - C. Incorrect.
This is incorrect. The 'Overview' section in the Azure portal provides some basic details about the resource but does not explicitly list the endpoint URL.
- D. Incorrect.
This is incorrect. The default endpoint for a Cognitive Services resource is specific to the region where the resource is deployed, and it is not the same for all resources.