exam questions

Exam AI-100 All Questions

View all questions & answers for the AI-100 exam

Exam AI-100 topic 2 question 33 discussion

Actual exam question from Microsoft's AI-100
Question #: 33
Topic #: 2
[All AI-100 Questions]

You are designing a solution that will integrate the Bing Web Search API and will return a JSON response. The development team at your company uses C# as its primary development language.
You provide developers with the Bing endpoint.
Which additional component do the developers need to prepare and to retrieve data by using an API call?

  • A. the subscription ID
  • B. the API key
  • C. a query
  • D. the resource group ID
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
The Bing Web Search SDK makes it easy to integrate Bing Web Search into your C# application. You instantiate a client, send a request, and receive a response.
References:
https://docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/web-search-sdk-quickstart

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
PulkitM
Highly Voted 5 years, 1 month ago
Shouldnt answer be API Key ?
upvoted 23 times
...
MiffyDad
Highly Voted 5 years ago
I can't believe that the answer is not an API key.
upvoted 11 times
...
rveney
Most Recent 1 year, 10 months ago
Based on the retrieved documents, you should use the API key to retrieve data by using an API call
upvoted 1 times
...
123aditya
3 years, 10 months ago
For the uriBase value, you can use the global endpoint in the following code, or use the custom subdomain endpoint displayed in the Azure portal for your resource. Confirm that uriBase is valid and replace the accessKey value with a subscription key from your Azure account. Optionally, customize the search query by replacing the value for searchTerm. https://docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/csharp
upvoted 1 times
YipingRuan
3 years, 9 months ago
Here only options are "Subscription ID" and "API Key"o_0
upvoted 1 times
...
...
NickRafe
3 years, 10 months ago
This should be API key. https://docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/csharp
upvoted 1 times
...
Adigun
4 years, 3 months ago
Subscription ID could be a better answer
upvoted 2 times
Cornholioz
4 years, 2 months ago
It's not the Azure Subscription ID. I'm sure of it because the Subscription ID will do nothing for the retrieval of anything in a Cognitive Svc. The Subscription Key on the other hand is required to get hold of the API. It allows to authenticate to the API using a basic API Key mechanism. However, the question says "prepare" and "retrieve" data by using an API call. So while 'query' comes close to preparing, I'm certain that the expected answer is the "API Key".
upvoted 3 times
...
...
Adigun
4 years, 3 months ago
Bing is a public search engine, no authentication needed. So, I think C is the correct answer.
upvoted 3 times
...
San_S
4 years, 4 months ago
I suppose need to understand the ask here "additional component developer need to prepare and to retrieve data by using an API call". Developer need to prepare the query to retrieve the data.
upvoted 1 times
...
krsasi
4 years, 10 months ago
Answer is "C" ,According to me its correct only. The developer is going to prepare only the query not a API key "Which additional component do the developers need to prepare and to retrieve data".
upvoted 6 times
allanm
3 years, 11 months ago
You didn't read the full question - it's asking for components that you are giving to the developers. In order to intiate anything on the web, you will need the endpoint URL and the key. Hence in this case, the answer is the API key.
upvoted 2 times
...
...
Egosyntonic
4 years, 10 months ago
According to MS Documentation it should be subscriptionKey to call the Bing Web Search API. "In this application, the main method includes code that instantiates the client, validates the subscriptionKey, and calls WebResults. Make sure that you enter a valid subscription key for your Azure account before continuing." Src: https://docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/client-libraries?pivots=programming-language-csharp
upvoted 2 times
hayate288
4 years, 10 months ago
i think there is no such thing as Sub key, only Sub ID. To all other cognitive services, they all use API key aka Ocp-Apim-Subscription-Key. You can give it a try at https://dev.cognitive.microsoft.com/
upvoted 1 times
sayak17
4 years, 6 months ago
the link provided by the person does talk about a subscription key. however there is no such option...only subscription id
upvoted 1 times
sayak17
4 years, 6 months ago
however the class to which the subscription key is passed is called ApiKeyServiceClientCredentials var client = new WebSearchClient(new ApiKeyServiceClientCredentials("YOUR_SUBSCRIPTION_KEY")); I will go with the option subscription_id for this question because of this line above the code "Make sure that you enter a valid subscription key for your Azure account before continuing." It seems like the subscription key is something users have at a account level..not specific to the api. The wording of the question is confusing. It says "prepare"
upvoted 1 times
...
...
...
...
Eddie888
5 years ago
answer has to be API Key, you have the URL endpoint and now you need credential to use it https://docs.microsoft.com/en-gb/azure/cognitive-services/bing-web-search/quickstarts/client-libraries?pivots=programming-language-csharp
upvoted 2 times
...
PeBr
5 years ago
static void Main(string[] args) { var client = new WebSearchClient(new ApiKeyServiceClientCredentials("YOUR_SUBSCRIPTION_KEY")); WebResults(client); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); }
upvoted 7 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago