exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 7 question 14 discussion

Actual exam question from Microsoft's AI-102
Question #: 14
Topic #: 7
[All AI-102 Questions]

HOTSPOT
-

You have an Azure subscription that is linked to a Microsoft Entra tenant. The subscription ID is x1xx11x1-x111-xxxx-xxxx-x1111xxx11x1 and the tenant ID is 1y1y1yyy-1y1y-y1y1-yy11-y1y1y11111y1.

The subscription contains an Azure OpenAI resource named OpenAI1 that has a primary API key of 1111a111a11a111aaa11a1a1a11a11aa. OpenAI1 has a deployment named embeddings1 that uses the text-embedding-ada-002 model.

You need to query OpenAI1 and retrieve embeddings for text input.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
bp_a_user
Highly Voted 8 months, 1 week ago
1 - API key 2 - deployment name see here: https://learn.microsoft.com/en-us/javascript/api/@azure/openai/openaiclient?view=azure-node-preview#@azure-openai-openaiclient-getembeddings
upvoted 6 times
...
syupwsh
Most Recent 2 months, 2 weeks ago
1111a111a11a111aaa11a1a1a11a11aa is CORRECT because this value represents the primary API key required to authenticate your request when querying the Azure OpenAI resource. In the provided code, the AzureKeyCredential is initialized with this API key, allowing the OpenAIClient to authenticate and send requests to the OpenAI1 resource embeddings1 is CORRECT because it refers to the deployment created within the Azure OpenAI resource that uses the text-embedding-ada-002 model. When making API requests to generate embeddings, the deployment name is required to specify which instance of the model is being used.
upvoted 1 times
...
jolimon
5 months, 3 weeks ago
1. 1111a111a11a111aaa11a1a1a11a11aa 2. embeddings1 no doubts
upvoted 3 times
...
9c652a0
7 months, 2 weeks ago
1-APi key 2-deploymentname The name of the model deployment (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.
upvoted 4 times
...
fqc
9 months, 2 weeks ago
1 - API key 2 - text-embeddings-ada-002
upvoted 2 times
anto69
8 months, 2 weeks ago
Agree, API key and the embedding model name
upvoted 2 times
mrg998
7 months, 2 weeks ago
wrong its 1 - API key 2 - deployment name
upvoted 2 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