Exam AI-102 All QuestionsBrowse all questions from this exam
Question 60

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.

    Correct Answer:

Discussion
cacaflycloud

I think the answer should be An API key A deployment endpoint

Harry300

API key Deployment name (Different deployments can be configured on oai.azure.com)

varinder82

Final Answer: API Key Deployment Name:

Jimmy1017

An API key A deployment endpoint

chandiochan

API Key Deployment Name: curl $AZURE_OPENAI_ENDPOINT/openai/deployments/gpt-35-turbo-instruct/completions?api-version=2023-05-15 \ -H "Content-Type: application/json" \ -H "api-key: $AZURE_OPENAI_API_KEY" \ -d "{\"prompt\": \"Once upon a time\"}" The format of your first line of the command with an example endpoint would appear as follows curl https://docs-test-001.openai.azure.com/openai/deployments/{YOUR-DEPLOYMENT_NAME_HERE}/completions?api-version=2023-05-15 \. If you encounter an error double check to make sure that you don't have a doubling of the / at the separation between your endpoint and /openai/deployments.

Mehe323

But the deployment name is wrapped in an URL to make it unique, so endpoint would make more sense. You connect to an endpoint not to a name.

vovap0vovap

Yes. That ort of controversial. But if you working with API - you will do one URL and 3 different deployment names from code standpoint. And that likely what they mean.

fuck_india

1. An API key 2. A deployment endpoint

funny_penguin

on exam today, I selected Api key and deployment endpoint

NullVoider_0

To provide each app with access to the Azure OpenAI resource AI1 and ensure that only the apps can access it, you should use the following: Provide access to AI1 by using: An API key Connect to the deployment by using: A deployment endpoint The API key is used for authentication, allowing the apps to access the Azure OpenAI resource. The deployment endpoint is a unique URL that each app will use to connect to its appropriate deployment, ensuring that the app uses the deployment optimized for its intended workload.

chandiochan

Provide access to AI1 by using: An API key: API keys are used to authenticate applications to cloud services securely. They ensure that only authorized applications can access your AI1 resource. Connect to the deployment by using: A deployment endpoint: Each deployment will have a unique endpoint that the app can use to connect to it. This endpoint is specific to a deployment within the Azure OpenAI resource, which allows each app to use the deployment optimized for its intended workload.

wheebe

chatgpt's answer was the bearer token and deployment name

Murtuza

In summary: Provide Access: Use an API key. Connect to Deployment: Use the deployment endpoint along with the API key. This approach ensures secure and controlled access to AI1 while allowing each app to connect to the appropriate deployment.

krzkrzkra

An API key A deployment endpoint

yfontana

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

gary_cooper

An API key A deployment endpoint

PeteColag

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.

Jimmy1017

Provide access to All by using: An API key Connect to the deployment by using: A deployment name

Mehe323

ChatGPT says a bearer token (hence why someone likely chose this as an answer) but it is incorrect. It should be an API key of course, very commonly used in Azure. With regard to the second one, I think it should be endpoint. Deployment endpoint is usually referred to with an URL that you use to connect to it. Each deployment has its own endpoint URL, which contains the deployment name to make it unique. When you choose the name, the answer is only partially correct.