Azure OpenAI SDK Connection Configuration
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?
Community Votes
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)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
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.