exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 1 question 60 discussion

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

HOTSPOT
-

You have an Azure OpenAI resource named AI1 that hosts three deployments of the GPT 3.5 model. Each deployment is optimized for a unique workload.

You plan to deploy three apps. Each app will access AI1 by using the REST API and will use the deployment that was optimized for the app's intended workload.

You need to provide each app with access to AI1 and the appropriate deployment. The solution must ensure that only the apps can access AI1.

What should you use to provide access to AI1, and what should each app use to connect to its appropriate deployment? 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
[Removed]
Highly Voted 11 months, 2 weeks ago
I think the answer should be An API key A deployment endpoint
upvoted 37 times
...
Harry300
Highly Voted 11 months, 2 weeks ago
API key Deployment name (Different deployments can be configured on oai.azure.com)
upvoted 26 times
mrg998
4 months, 3 weeks ago
this is correct, a endpoint itself can have multiple deployments. You need to specify the deployment you require out of the three so it has to be deployment name.
upvoted 2 times
mrg998
4 months, 3 weeks ago
code example here shows deployment name and API key - https://learn.microsoft.com/en-us/azure/ai-services/openai/quickstart?tabs=command-line%2Ctypescript%2Cpython-new&pivots=programming-language-python
upvoted 2 times
nkorczynski
2 months, 1 week ago
REST API reference: With Azure OpenAI the model parameter requires model deployment name. If your model deployment name is different than the underlying model name then you would adjust your code to "model": "{your-custom-model-deployment-name}". https://learn.microsoft.com/en-us/azure/ai-services/openai/assistants-quickstart?tabs=command-line%2Cjavascript-keyless%2Ctypescript-keyless&pivots=rest-api
upvoted 1 times
...
...
...
...
syupwsh
Most Recent 20 hours, 51 minutes ago
An API key is CORRECT because it is a common method for authenticating applications when accessing APIs, including Azure OpenAI services. API keys are straightforward to use and provide the necessary authentication to ensure that only authorized applications can access the specific deployments optimized for their intended workloads. A deployment endpoint is CORRECT because each deployment of the GPT-3.5 model in Azure OpenAI provides a unique endpoint URL that applications can use to access the specific deployment. By using the deployment endpoint, each app can connect to the specific deployment optimized for its intended workload. This ensures that the apps access the correct model deployment.
upvoted 1 times
...
Sujeeth
3 months, 4 weeks ago
API Key: Each app should use an API Key for secure access to the Azure OpenAI resource. API keys are commonly used to authenticate requests to Azure OpenAI resources. Deployment name: Each app should specify the deployment name to connect to the appropriate GPT 3.5 deployment optimized for its unique workload. The deployment name ensures the app uses the correct model version or configuration hosted in AI1
upvoted 2 times
...
famco
5 months, 2 weeks ago
Answer is api-key (no confusion) and deployment_name. The issue with deployment name is that it is meant to confuse. There are three deployments of the model. The endpoint of all three of them remain the same. I worked with this and multiple deployments all the time, but still I forgot that the endpoint for azure-openai is same for all deployments. Of course to call you need the endpoint and the deployment name both, but looks like Microsoft wants to confuse you with mentioning REST. Just sad this company does this Answer is very clearly now: api-key and deployment_name (what microsoft wants to answer)
upvoted 3 times
famco
5 months, 2 weeks ago
But looking at the answer options it looks more confusing. They did not say just "endpoint" but said deployment-endpoint. In the azure openai studio the deployments mention "endpoint" as the target URL that includes the deployment name. So it is technically deployment endpoint. We have to check with a lawyer. What will I answer? Probably deployment endpoint (just random guess) but maybe they want you to know just that it is same endpoint for all the deployments. Still not clear
upvoted 2 times
famco
5 months, 2 weeks ago
OR maybe this microsoft employee, with his inexperience, might have thought that for the SDK use you need to give deployment name (in addition to key and resource endpoint), but for the REST API you need deployment-endpoint (endpoint + deployment-name) and can be copied from the azure-openai studio. So, did he think the right answer is deployment_endpoint ??
upvoted 1 times
famco
5 months, 2 weeks ago
Hoping it is the documentation that he read, and the documentation did not change from the time that guy looked at it while creating the question and now, I will still go for deployment_name (but that is NOT enough to make a rest call).
upvoted 1 times
...
...
...
...
famco
5 months, 2 weeks ago
I have years of experience using this, but I can't even understand the intent of the question. The build up is fine, but the question and the options make me really wonder. We use RBAC to connect in an enterprise environment. Looks like the org that Microsoft outsourced this to (and getting money from them instead of paying) is asking the question on some image from REST api documentation. Guessing the low paid employee, I guess the answer he expects is : api-key and end_point. REST api uses api-key as the header and also uses end-point to connect. The scenario describing separate deployments does not make sense. An attempt at confusing the developer with experience from the real world. Nice work, vendor.
upvoted 1 times
...
moonlightc
6 months ago
This was in the exam on 15/08/2024
upvoted 2 times
...
shanakrs
6 months ago
Answer is An API Key A Deployment Endpoint https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints Note: There are key requirements in the questions ("Each app will access AI1 by using the REST API"). With this, apps will connect AI1 with REST API calls and to connect azure open ai with rest api, it is recommended to use API KEY and ENDPOINT as mentioned in above article.
upvoted 1 times
...
Sylviaaaaaaa
6 months ago
API key and deployment name. https://learn.microsoft.com/en-us/azure/ai-services/openai/quickstart?tabs=command-line%2Cpython-new&pivots=programming-language-python
upvoted 3 times
...
krzkrzkra
7 months ago
An API key A deployment endpoint
upvoted 1 times
...
yfontana
7 months, 3 weeks ago
The Azure portal and documentation consistently talk about each Azure Open AI resource having a single endpoint, and each deployment having a name. So the correct answer is most likely: An API key A deployment name
upvoted 3 times
...
gary_cooper
8 months ago
An API key A deployment endpoint
upvoted 1 times
...
PeteColag
8 months, 2 weeks ago
While bearer tokens are commonly used for authentication, they are not specifically mentioned in the context of Azure OpenAI resource access. API keys are the recommended way to authenticate applications. So, the answer should be API key and deployment endpoint.
upvoted 1 times
...
fuck_india
8 months, 2 weeks ago
1. An API key 2. A deployment endpoint
upvoted 3 times
...
funny_penguin
8 months, 3 weeks ago
on exam today, I selected Api key and deployment endpoint
upvoted 3 times
...
Jimmy1017
9 months, 3 weeks ago
An API key A deployment endpoint
upvoted 4 times
...
wheebe
9 months, 3 weeks ago
chatgpt's answer was the bearer token and 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