Azure OpenAI SDK Connection Configuration

Answer Correct answer: C — Provide the deployment name, endpoint, and key to configure the Azure OpenAI SDK connection.

You have an Azure OpenAI model named AI1. You are building a web app named App1 by using the Azure OpenAI SDK. You need to configure App1 to connect to AI1. What information must you provide?

  1. the endpoint, key, and model name
  2. the deployment name, key, and model name
  3. the deployment name, endpoint, and key Correct Answer
  4. the endpoint, key, and model type

Community Votes

C
100%

100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

Tests the distinction between underlying model names and deployment names in Azure OpenAI; the common trap is selecting 'model name' instead of 'deployment name'.

Configure the Azure OpenAI SDK by providing the deployment name, endpoint URL, and API key to connect App1 to model AI1.

Selecting option A (endpoint, key, and model name) because users confuse the generic model identifier with the specific deployment instance required for API calls.

Community Discussion (10 comments)

syupwsh 👍 1 Selected: C
Deployment name: This specifies which deployment of the model you want to use. In Azure OpenAI, you might have multiple deployments of the same model optimized for different tasks. Endpoint: This is the URL where your AI1 model is hosted. It directs the API requests to the correct Azure service instance. Key: This is the authentication key that allows your web app to access the Azure OpenAI service securely. It ensures that only authorized applications can use the service. C is the answer
moonlightc 👍 1
This was in the exam on 15/08/2024
p2006 👍 2 Selected: C
"AI1" is deployment name. https://learn.microsoft.com/en-us/azure/ai-services/openai/quickstart?tabs=command-line%2Cpython-new&pivots=rest-api#retrieve-key-and-endpoint DEPLOYMENT-NAME This value will correspond to the custom name you chose for your deployment when you deployed a model.
anntv252 👍 2
C. the deployment name, endpoint, and key . Endpoint should include model name
michaelmorar 👍 2 Selected: C
Correct, remember that Model Name and Type aren't relevant, we only need the deployment details and key.
NullVoider_0 👍 2 Selected: C
Correct answer.
Mehe323 👍 1 Selected: C
Correct. When you access the model via the API you will need to refer to the deployment name rather than the underlying model name in API calls. https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource?pivots=web-portal
Akber81 👍 1 Selected: C
yes Azure OpenAI has Endpoint (URL) , KEY , DEPLOYMENT NAME
GHill1982 👍 4 Selected: C
To connect to an Azure OpenAI model using the Azure OpenAI SDK, you need to provide: The deployment name of the model that you want to use. This is the name that you assigned to the model when you deployed it. The endpoint of your Azure OpenAI resource. This is the URL that you can find in the Overview section of your resource in the Azure portal or by using the Azure CLI. The key of your Azure OpenAI resource. This is the API key that you can find in the Keys and Endpoint section of your resource in the Azure portal or by using the Azure CLI.
Razvan_C 👍 1 Selected: C
Answer seems to be correct

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

To establish a connection using the Azure OpenAI SDK, you must provide three specific credentials: the Endpoint (the HTTPS URL of your resource), the Key (the authentication secret), and the Deployment Name. In Azure OpenAI, models are deployed as instances with unique names; the SDK uses this deployment name to route requests to the correct model version or fine-tuned variant. The question states the model is named 'AI1', which functions as the deployment identifier in this context.

Why the Other Options Are Wrong

Options A and D include 'model name' or 'model type'. While these describe the underlying architecture (e.g., GPT-4), they are not used as the primary routing identifier in the SDK client configuration; the deployment name is required. Option B includes 'model name' alongside deployment name, which is redundant and incorrect for the standard connection string parameters.

Community Comment Notes

The community unanimously agrees on C. As user GHill1982 noted, the deployment name corresponds to the custom name assigned during deployment. User p2006 confirmed that 'AI1' acts as the deployment name and referenced the official Microsoft quickstart documentation. Multiple commenters emphasized that the underlying model name is irrelevant for the API call routing compared to the deployment name.

Official Reference

Exam Strategy

Always distinguish between the 'Model Name' (the base AI like GPT-3.5) and the 'Deployment Name' (your specific instance label). When configuring Azure services via SDKs, look for the specific instance identifier rather than the generic product name.

Frequently Asked Questions

Why isn't the model name required for the SDK connection?

The SDK routes traffic based on the Deployment Name, which points to a specific instance/version. The underlying model name is metadata, not the routing key.

What does the endpoint URL contain?

The endpoint contains the Azure region and resource name (e.g., https://<resource>.openai.azure.com). It identifies the specific Azure OpenAI resource instance.

Related Analysis

← Back to AI-102 Study Guide