Microsoft Machine Learning Operations Engineer Associate (AI-300) · 19% practice allocation

Microsoft AI-300: Design and implement an MLOps infrastructure Practice Questions

5 free sample questions from the Design and implement an MLOps infrastructure domain, with answers and explanations. The full AI-300 bank has 251 questions across 5 domains. Questions are scenario-based and written from the official Microsoft exam guide.

1.

An MLOps team wants to use a GitHub Actions workflow to retrain and register an Azure ML model whenever code is merged to the 'main' branch. They have already configured OIDC authentication. Which TWO workflow steps are essential to interact with Azure Machine Learning resources after authentication? (Select TWO)

  • A. Use 'az ml job create' to submit the training job referencing a job YAML definition file.
  • B. Configure a self-hosted runner deployed inside the Azure ML workspace's managed VNet.
  • C. Install the Azure ML CLI extension using 'az extension add --name ml'.✓ Correct
  • D. Use the 'azure/login' action to obtain an Azure access token using the OIDC federated credential.✓ Correct
  • E. Run 'pip install azureml-sdk' to install the Azure ML Python SDK on the runner.
Explanation

After OIDC-based Azure login with 'azure/login', the ML CLI extension must be installed ('az extension add --name ml') before any 'az ml' commands can be executed on the runner. These two steps together enable all subsequent Azure ML CLI operations. Installing the Python SDK ('pip install azureml-sdk') is unnecessary when using the Azure CLI v2 approach; the SDK is for Python-based scripts. 'az ml job create' is a valid action step, but it is the training submission command, not a prerequisite step for interacting with AML — and the question asks for essential enabling steps. A self-hosted runner inside the managed VNet is only required when the workspace has public network access disabled; it is not universally essential for this scenario.

2.

A company's ML platform team manages reusable pipeline components and curated environments. They want these assets to be accessible by data science teams working in four different Azure Machine Learning workspaces across two Azure subscriptions. What is the recommended Azure ML feature to enable this cross-workspace sharing?

  • A. Azure DevOps Artifacts feed configured to store ML components
  • B. A dedicated Azure Machine Learning workspace designated as the 'hub' workspace
  • C. A shared Azure Blob Storage account mounted as a datastore in all four workspaces
  • D. An Azure Machine Learning registry✓ Correct
Explanation

An Azure Machine Learning registry is the purpose-built feature for sharing assets such as models, components, environments, and datasets across multiple workspaces, even across different subscriptions. A shared blob storage datastore can share raw data files but cannot natively share versioned ML assets like components and environments with their metadata. A 'hub' workspace is a concept in Azure AI Foundry, not a native AML feature for cross-workspace asset sharing of this kind. Azure DevOps Artifacts is a package feed for code libraries (e.g., Python packages), not for Azure ML assets like registered components or environments.

3.

A machine learning team is creating an Azure Machine Learning workspace and wants to ensure that the managed identity used by the workspace has the minimum permissions necessary to read data from an Azure Data Lake Storage Gen2 account. Which built-in Azure role should be assigned to the workspace's managed identity on the storage account?

  • A. Reader
  • B. Storage Account Contributor
  • C. Storage Blob Data Reader✓ Correct
  • D. Storage Blob Data Contributor
Explanation

Storage Blob Data Reader is correct because it grants read-only access to blob data, satisfying the principle of least privilege for a workspace that only needs to read data. Storage Blob Data Contributor is incorrect because it also grants write and delete permissions, which exceed the minimum required. Storage Account Contributor grants control-plane management rights over the storage account but does not grant data-plane blob access. Reader grants read access to Azure Resource Manager metadata only, not to the actual blob data content.

4.

A team registers a new Azure ML environment version that uses a private base image hosted in an Azure Container Registry (ACR) associated with the workspace. When a training job tries to use this environment, it fails with an image pull error. The workspace uses a system-assigned managed identity. Which THREE actions are required to resolve this issue? (Select THREE)

  • A. Assign the 'AcrPull' role on the ACR to the workspace's system-assigned managed identity.✓ Correct
  • B. Rebuild the environment to use only public Docker Hub base images to avoid private registry authentication issues.
  • C. Ensure the ACR is linked (attached) to the Azure Machine Learning workspace.✓ Correct
  • D. Configure the workspace's managed network to allow outbound private endpoint traffic to the ACR, if the workspace uses a managed VNet.✓ Correct
  • E. Grant the compute cluster's managed identity the 'AcrPull' role, in addition to or instead of the workspace identity, as compute nodes pull images directly.
  • F. Enable the 'Admin user' on the ACR and store the credentials as a workspace secret.
Explanation

Three actions are required: (1) The workspace's system-assigned managed identity needs 'AcrPull' on the ACR so the workspace can build and pull the image during environment materialization. (2) The ACR must be linked/attached to the workspace so AML knows to use it for image operations. (3) If the workspace uses a managed VNet, an outbound private endpoint rule must permit traffic to the ACR; otherwise image pulls are blocked. Enabling the ACR admin user and using credential-based auth is a less secure pattern and is not the recommended approach when using managed identity. Assigning AcrPull to the compute cluster identity alone is insufficient because the workspace identity handles the environment build process. Rebuilding to use public images avoids the problem rather than solving it and is not an architectural fix.

5.

A company's data engineering team provisions Azure Machine Learning compute clusters using a shared Bicep module. A new compliance requirement states that all compute clusters must have SSH access disabled and must be deployed in a specific subnet of an existing virtual network. The MLOps engineer needs to update the Bicep module's 'Microsoft.MachineLearningServices/workspaces/computes' resource to enforce these settings. Which two properties in the compute resource's 'properties.computeProperties' (AmlCompute) block must be configured? (Select TWO)

  • A. Set 'isolatedNetwork' to 'true' to enforce that the cluster operates within the specified virtual network.
  • B. Set 'subnet.id' to the resource ID of the target subnet within the virtual network.✓ Correct
  • C. Set 'remoteLoginPortPublicAccess' to 'Disabled' to prevent SSH access to cluster nodes.✓ Correct
  • D. Set 'enableNodePublicIp' to 'false' to route all traffic through the virtual network.
  • E. Set 'sshConfiguration.sshKeyData' to an empty string to remove any SSH keys from cluster nodes.
Explanation

To disable SSH access on an AmlCompute cluster via Bicep, the 'remoteLoginPortPublicAccess' property must be set to 'Disabled'. To deploy the cluster in a specific subnet, the 'subnet.id' property must be set to the full resource ID of the desired subnet. These are both documented properties of the AmlCompute compute configuration. Setting 'enableNodePublicIp' to 'false' (option D) controls whether cluster nodes get public IP addresses and is a separate (though related) network setting; it does not place the cluster in a subnet on its own. Setting 'sshKeyData' to an empty string (option E) does not disable SSH access — SSH is controlled by the 'remoteLoginPortPublicAccess' property. 'isolatedNetwork' (option A) is not a valid property in the AmlCompute Bicep specification; it is a fabricated field.

Test yourself across every AI-300 domain

The free AI-300 practice test mixes about 20 questions weighted like the exam. The full 251-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Design and implement an MLOps infrastructure study guide (AI-300) →

Other AI-300 domains

← All Microsoft Machine Learning Operations Engineer Associate study resources