Microsoft Azure AI Engineer Associate AI-102 Practice Question
You manage an Azure OpenAI resource that must be provisioned and updated automatically from an Azure DevOps multi-stage YAML pipeline. The solution must satisfy these requirements:
Resource and model deployment definitions must be stored in the repository as code.
Every pull request must trigger a syntax validation step for the definitions.
The same code files must be reused to deploy the resource to the test and production stages.
Which approach should you implement?
Export the existing Azure OpenAI resource to a JSON template from the portal and upload the file manually as a pipeline artifact before each release.
Add inline Azure CLI tasks in every stage that call az cognitiveservices account create and az cognitiveservices account deployment create with the required parameters.
Store the resource and deployment configuration in a Bicep file and add Azure Resource Manager Template Deployment tasks: one task set to Validate in the PR stage and additional tasks set to Create or Update in the test and production stages.
Place the resource properties in pipeline variable groups and invoke the Cognitive Services REST API from Bash tasks in each stage.
Bicep is the recommended IaC language for Azure resources and compiles natively to ARM JSON. A Bicep (or ARM) file kept in the repo can be validated in a pipeline by running an ARM Template Deployment task in Validate mode during a pull-request build. The very same file can then be passed to additional ARM Template Deployment tasks set to Create or update in the test and production stages, guaranteeing that identical, version-controlled code is used for all environments. Manually exporting a template, or running ad-hoc CLI/REST calls breaks the IaC principle, adds manual effort, and provides no automatic syntax validation in pull-request workflows.
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 a Bicep file and why is it recommended for Azure resource management?
Open an interactive chat with Bash
What is the Azure Resource Manager (ARM) Template Deployment Task, and how does it work?
Open an interactive chat with Bash
Why is it better to use IaC with Azure DevOps pipelines instead of manual resource creation?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Plan and manage an Azure AI solution
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 .