Azure OpenAI SDK Connection Configuration
Short answer
C Provide the deployment name, endpoint, and key to configure the Azure OpenAI SDK connection.
Question
Key Takeaways
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.
Common mistake: Selecting option A (endpoint, key, and model name) because users confuse the generic model identifier with the specific deployment instance required for API calls.
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
This link opens the official vendor documentation in a new tab.
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?
What does the endpoint URL contain?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 10 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 10
-
GHill1982 👍 4 Answered CTo 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.
-
p2006 👍 2 Answered 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.
-
michaelmorar 👍 2 Answered CCorrect, remember that Model Name and Type aren't relevant, we only need the deployment details and key.
-
anntv252 👍 2C. the deployment name, endpoint, and key . Endpoint should include model name
-
syupwsh 👍 1 Answered CDeployment 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
Show 5 more comments
-
Mehe323 👍 1 Answered CCorrect. 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 Answered Cyes Azure OpenAI has Endpoint (URL) , KEY , DEPLOYMENT NAME
-
moonlightc 👍 1This was in the exam on 15/08/2024
-
NullVoider_0 👍 2 Answered CCorrect answer.
-
Razvan_C 👍 1 Answered CAnswer seems to be correct
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.