AI-102 Question 41
Single answerYou are tasked with deploying an Azure Cognitive Services resource for Language Understanding (LUIS) in your organization's subscription. After creating the resource, you need to configure the default endpoint to allow your application to interact with the service. Which step should you take to determine the default endpoint for the service?
- A
Check the Keys and Endpoint section of the resource in the Azure Portal.
- B
Use the Azure CLI command 'az cognitiveservices list' and inspect the output.
- C
Navigate to the 'Networking' tab of the resource in the Azure Portal.
- D
Refer to the JSON configuration file generated during the resource deployment.
Show answer and explanation
Correct answer: A
Explanation
To determine the default endpoint for a Cognitive Services resource like LUIS, you need to access the Keys and Endpoint section of the resource in the Azure Portal. This section explicitly lists the endpoint URL that applications can use to connect to the service. This is a critical step when integrating Azure Cognitive Services into your applications.
- A. Correct.
This is the correct answer. The Keys and Endpoint section in the Azure Portal provides the default endpoint URL, as well as the keys required to authenticate with the service.
- B. Incorrect.
This command lists Cognitive Services resources but does not directly display the default endpoint for a specific service.
- C. Incorrect.
The Networking tab is used to configure access restrictions, such as virtual networks and firewalls, but it does not display the default endpoint for the resource.
- D. Incorrect.
The JSON configuration file during resource deployment does not include information about the default endpoint. Endpoints are defined within the resource settings in Azure.