Microsoft Azure AI Engineer Associate AI-102 Practice Question
You are developing a .NET 8 web API that needs to interact with resources in your Azure AI project by using the Azure AI SDK. You need to create the primary client instance that will allow your application to access connections and other services within the project. Which action should you perform first in your application code?
Call AIProjectClientBuilder to configure the endpoint and credential, then build an AIProjectClient instance.
Instantiate DefaultAzureCredential and pass it directly to an API method without creating a client.
Create an OpenAIClient that points to the project endpoint to access all project resources.
Instantiate an AIProjectClient, passing the project endpoint URI and a TokenCredential to its constructor.
The Azure AI SDK for .NET uses the AIProjectClient class from the Azure.AI.Projects package to interact with an Azure AI project. This client is created by calling its constructor directly and passing the project's endpoint URI and a credential object, such as DefaultAzureCredential from the Azure.Identity library. While many other Azure SDK clients use a builder pattern, AIProjectClient does not. Instantiating a credential alone is insufficient as a client object is required to make API calls. The OpenAIClient is used for interacting specifically with OpenAI model endpoints, not for general project resource management.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the `AIProjectClient` class used for in the Azure AI SDK?
Open an interactive chat with Bash
What is a `TokenCredential`, and why is it required?
Open an interactive chat with Bash
Why can’t you use an `OpenAIClient` for Azure AI project management?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement generative AI solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .