AI-300 Practice Question: Which Azure feature is used to define infrastructure as code for your Azure ML workspace?
Which Azure feature is used to define infrastructure as code for your Azure ML workspace?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Azure Bicep
Azure Bicep is the recommended tool for defining and deploying Azure resources as code.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Azure Portal
Why it's wrong here
The Azure Portal is a graphical interface for manual resource creation; it produces no version-controlled template defining the workspace. It is tempting because the portal is the standard starting point for exploring and provisioning services, and would be correct for one-off interactive setup rather than repeatable infrastructure as code.
- ✓
Azure Bicep
Why this is correct
Azure Bicep is a declarative domain-specific language that compiles to ARM templates, letting you define the Azure ML workspace and its dependent resources — storage account, Key Vault, Application Insights, container registry — as versioned infrastructure as code, satisfying the stem's requirement for reproducible, template-based workspace provisioning.
- ✗
PowerShell
Why it's wrong here
PowerShell likewise executes imperative cmdlets and stores no declarative template describing the workspace configuration. It is tempting because PowerShell is a legitimate automation and administration tool for Azure resources, and would be correct for scripted operational tasks rather than defining infrastructure as code.
- ✗
Azure CLI
Why it's wrong here
Azure CLI issues imperative commands against existing resources; it does not declare a workspace's desired state as a template file. It is tempting because CLI scripting is genuinely useful for automating deployments, and would be correct for ad-hoc or pipeline-driven provisioning rather than infrastructure as code.
About these practice questions
One of 181 original AI-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
You might also like
Similar AI-300 questions
- You are setting up an Azure Machine Learning workspace that must support reproducible training jobs. You need to ensure…
- Your team uses a custom Docker image for training. You need to update the image in the Azure Container Registry (ACR). W…
- Which TWO of the following can be used to manage Azure ML assets like environments and models?
- In Azure ML, what is a 'Component'?
- Which TWO of the following are benefits of using Azure ML Environments?
Written and reviewed by Johnson Ajibi, MSc IT Security
Security Systems Architect · founder of Courseiva
Last reviewed August 2026 · checked against the official Microsoft exam blueprint
This AI-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-300 exam.