# Create and manage assets in a Machine Learning workspace — Practice reading

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Design and implement an MLOps infrastructure
HTML: https://learningpathx.com/learning-path/AI-300/learn/507

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: multiple\_choice
Knowledge point: Create and manage data assets

A Platform Engineer is registering a versioned Azure ML data asset pointing to one CSV file at `azureml://datastores/sales_store/paths/processed/sales.csv`. The datastore exists and caller access is configured. Storage controls preserve the source bytes; the asset pointer itself is not a content-immutability guarantee. The following hypothetical CLI v2 YAML definition needs its type and source path.

```yaml
$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: preprocessed_sales_data
version: "2023-clean"
description: Cleaned sales data
# Add the asset type and source path here
```

Which two fields complete the definition? (Choose 2.)

### Options

**A**

Add `path: azureml://datastores/sales_store/paths/processed/sales.csv`.

**B**

Replace the string version with `latest` so subsequent registrations overwrite the existing asset automatically.

**C**

Add `mode: download` to the static data asset definition as its retrieval policy.

**D**

Add `type: uri_folder` because all datastore URIs are folder assets regardless of the source path.

**E**

Add `type: uri_file` to identify the individual CSV source.

Correct answer: A, E

### Explanation

The file path and uri\_file type identify the source. Asset versioning names a pointer version; underlying source retention needs its own storage controls.

## Question 2

Type: multiple\_choice
Knowledge point: Create and manage data assets

An MLOps Engineer is designing reproducible training in Azure Machine Learning v2\. The raw source files are frequently updated. Registering a uri\_folder data asset records a reference to a storage location; it does not freeze that location's bytes. Each resulting model must be traceable to the exact consumed data. Which two complementary design choices address data preservation and job input selection? (Choose 2.)

### Options

**A**

Archive older data-asset versions, then delete the files at their referenced paths to save storage.

**B**

Keep overwriting one physical uri\_folder path and register each change under a new asset version.

**C**

Store training datasets as Azure Key Vault secrets instead of data assets.

**D**

Pin the job to a specific data-asset version and record the actual consumed version and content digest with the training run linked to the model.

**E**

For each changed dataset, retain a read-only version-specific copy at a distinct storage path and register a new data-asset version referencing that preserved copy.

Correct answer: D, E

### Explanation

Correct answers: D, E.

Option analysis:

* **A — Archive older data-asset versions, then delete the files at their referenced paths to save storage.**: Archiving can hide an asset from listings but does not preserve files deleted from storage. Azure ML data-asset deletion itself is unsupported; archiving is not a physical snapshot.
* **B — Keep overwriting one physical uri\_folder path and register each change under a new asset version.**: New metadata versions pointing to the same overwritten files do not preserve earlier training inputs.
* **C — Store training datasets as Azure Key Vault secrets instead of data assets.**: Key Vault holds secrets, keys and certificates; it is not the dataset storage service for physical training files.
* **D — Pin the job to a specific data-asset version and record the actual consumed version and content digest with the training run linked to the model.**: Pinning prevents floating-label resolution, while recording the consumed version and digest makes the selected preserved input auditable. Pinning alone cannot freeze mutable bytes.
* **E — For each changed dataset, retain a read-only version-specific copy at a distinct storage path and register a new data-asset version referencing that preserved copy.**: Distinct retained read-only copies preserve the old input content as new versions are created. Together with the pinned run reference, this separates physical preservation from metadata versioning.

## Question 3

Type: multiple\_choice
Knowledge point: Create and manage data assets

An MLOps Architect needs to share one versioned MLTable data asset between Azure Machine Learning development and production workspaces. Both workspaces are in registry-supported regions. The dataset may be used by all authorized registry users, and registry-managed ingestion and replication of a data copy are permitted. Production jobs must refer to the registry asset rather than maintain separate workspace-local definitions. Which three design choices support this sharing requirement? (Choose 3.)

### Options

**A**

Register separate workspace-local assets with the same name and assume they represent one registry version.

**B**

Share the validated workspace data asset to the registry as a named, versioned data asset and reference that registry version from production jobs.

**C**

Provide private DNS and network connectivity from production compute to the registry service and the backing storage needed to read the data.

**D**

Grant the production caller appropriate registry permissions to read and use the shared data asset.

**E**

Pass a development-workspace-local asset name to production and rely on the matching name to resolve it automatically.

**F**

Grant access only to the original source datastore and skip registry access because registry data sharing never ingests a copy.

Correct answer: B, C, D

### Explanation

Registry sharing combines a shared asset identity with access to its service and stored data. It does not implement no-copy sharing of arbitrary existing storage.

## Question 4

Type: single\_choice
Knowledge point: Create and manage data assets

A Solution Architect defines an Azure Machine Learning data asset for tabular sales data used by downstream AutoML jobs. The team requires a reusable native declarative table definition with file-loading instructions and explicit column-type conversions, rather than a custom preprocessing component. A separate pipeline check will load/materialize the table and verify the resulting columns and types before training. Which data asset configuration meets the declarative table-definition requirement? (Choose 1.)

### Options

**A**

Use only Bicep resource properties to define and enforce the CSV column types.

**B**

Register a uri\_folder pointing to the CSV files without any table transformations.

**C**

Register an mltable asset whose MLTable file defines reading and column-type conversion transformations.

**D**

Register only a uri\_file pointing to a Python validation script.

Correct answer: C

### Explanation

MLTable expresses a reusable data-loading and transformation recipe. Registering the asset alone does not execute validation or guarantee that changing source data meets the training schema.

## Question 5

Type: multiple\_choice
Knowledge point: Create and manage data assets

A Quality Engineer registers data assets in development and production Azure Machine Learning workspaces with CLI v2\. A non-interactive identity has approved client connectivity. The release data is retained at a read-only cloud path independently of asset metadata. No local upload is requested.

The runner submits this data\_asset.yml using az ml data create --file data\_asset.yml and each target's workspace/resource group:

```yaml
$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: training-release
type: uri_folder
path: azureml://datastores/release_store/paths/releases/2026-10-06/
```

In each workspace, release\_store resolves to the same preserved cloud folder. Version is intentionally omitted. Which three statements describe this registration? (Choose 3.)

### Options

**A**

The submitting identity needs data-asset write authorization in each target workspace.

**B**

The command copies on-premises files regardless of the specified cloud path.

**C**

The runner must disable managed outbound network rules to inject asset metadata.

**D**

Storage connection strings must be embedded in this YAML.

**E**

For this existing cloud path, registration creates an asset reference without uploading a new local copy.

**F**

Azure Machine Learning generates a version; the pipeline should record each returned version rather than assume a matching numeric increment across workspaces.

Correct answer: A, E, F

### Explanation

Correct answers: A, E, F.

Option analysis:

* **A — The submitting identity needs data-asset write authorization in each target workspace.**: Authentication alone does not grant asset-write permissions in either workspace.
* **B — The command copies on-premises files regardless of the specified cloud path.**: The displayed path references cloud data. Local paths can upload, but that is not this input.
* **C — The runner must disable managed outbound network rules to inject asset metadata.**: The runner already has approved connectivity. Disabling managed outbound security is not a registration requirement.
* **D — Storage connection strings must be embedded in this YAML.**: Datastore or identity configuration supplies appropriate storage access; embedding keys is not mandatory.
* **E — For this existing cloud path, registration creates an asset reference without uploading a new local copy.**: The no-upload conclusion is conditional on the displayed cloud path, not universal. Asset metadata does not itself freeze mutable bytes.
* **F — Azure Machine Learning generates a version; the pipeline should record each returned version rather than assume a matching numeric increment across workspaces.**: The schema documents generated versions, not guaranteed cross-workspace sequential identity. Recording the returned values preserves actual registrations.

## Question 6

Type: single\_choice
Knowledge point: Create and manage data assets

A Machine Learning Engineer trains a distributed PyTorch model on individual JPEG images in an existing ADLS Gen2 directory tree. The training script expects a directory path, enumerates its files and reads individual images; it does not accept an archive or an MLTable/dataframe input. The team needs versioned references to the existing external directories without uploading copies to default workspace storage. External dataset paths are frozen by a separate storage policy; data-asset versioning alone does not snapshot mutable file bytes. Which data asset matches the required input layout? (Choose 1.)

### Options

**A**

Create an mltable asset because only MLTable assets can have versions.

**B**

Create a uri\_file asset pointing to an image archive and leave the directory-reading script unchanged.

**C**

Upload the image directory to the default workspace storage and use that copy.

**D**

Create a uri\_folder asset referencing the existing external directory as a versioned asset.

Correct answer: D

### Explanation

The deciding condition is the script's directory input contract and the existing external layout. MLTable can represent image-path tables, but the current script does not consume that representation.

## Question 7

Type: single\_choice
Knowledge point: Create and manage environments

A Platform Engineer creates an Azure Machine Learning SDK v2 environment whose base image is hosted at a private external registry. The team uses the documented Generic Container Registry workspace-connection feature (preview). The isolated build target can already resolve and reach the registry, but its image pull returns an authentication failure. The registry remains private. Where should the engineer configure the supported registry username/password authentication for the environment build?

### Options

**A**

In a Blob datastore credential, because the environment is an Azure ML asset.

**B**

In an interactive docker login session on the engineer's laptop, without a workspace connection.

**C**

In the submitted training job's environment variables, after the environment build has started.

**D**

In a GenericContainerRegistry workspace connection targeting the registry URL.

Correct answer: D

### Explanation

Configure credentials at the documented build connection, while preserving the private network and registry boundary.

## Question 8

Type: single\_choice
Knowledge point: Create and manage environments

You maintain an Azure Machine Learning workspace using Azure CLI ml extension v2\. Its registered environment risk-runtime, version 1, must remain usable to reproduce earlier jobs. A new script requires pandas 2.2.3 instead of the version in that asset.

The complete replacement recipe and referenced file are available:

environment.yml:

```yaml
$schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json
name: risk-runtime
version: "2"
image: mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04:latest
conda_file: conda.yml
```

conda.yml:

```yaml
name: risk-conda
channels:
  - conda-forge
dependencies:
  - python=3.10
  - pandas=2.2.3
```

The image and package channel are reachable. The signed-in CLI caller may create environment assets and submit jobs. The build service can reach and push to the associated registry. No image has yet been built from version 2's recipe. The new recipe must be discoverable as a named workspace asset shared by several jobs.

Which action meets the requirement, and what does successful registration establish?

### Options

**A**

Update version 1's conda\_file in place; successful registration proves the new image is available.

**B**

Register environment.yml as version 2, then use azureml:risk-runtime:2; registration records the recipe, while the image is built when used unless a build is triggered separately.

**C**

Put the image and conda specification inline in each job without a name or version; this registers the shared asset as risk-runtime:2.

**D**

Register only name: risk-runtime and version: "2"; workspace authentication supplies omitted dependencies and the image.

Correct answer: B

### Explanation

Correct answer: B.

Option analysis:

* **A — Update version 1's conda\_file in place; successful registration proves the new image is available.**: Existing environment dependency properties are immutable. Registration does not prove completion of a conda-based image build.
* **B — Register environment.yml as version 2, then use azureml:risk-runtime:2; registration records the recipe, while the image is built when used unless a build is triggered separately.**: A new version preserves version 1\. The registered reference resolves the explicit recipe; image materialization occurs on use or a separately triggered build.
* **C — Put the image and conda specification inline in each job without a name or version; this registers the shared asset as risk-runtime:2.**: A nameless, versionless inline environment is unregistered.
* **D — Register only name: risk-runtime and version: "2"; workspace authentication supplies omitted dependencies and the image.**: Authentication authorizes operations but does not supply an environment recipe.

## Question 9

Type: single\_choice
Knowledge point: Create and manage environments

An MLOps Engineer must run repeated Azure ML training jobs with a specific older scikit-learn version absent from the available curated environment. In this hypothetical case, the team has validated that version with a compatible Python/base image and has an immutable image digest and a tested pinned dependency specification. Jobs must select one centrally registered environment version and avoid installing packages during each run. Which plan meets these requirements?

### Options

**A**

Register a custom environment using the validated base image and pinned Conda specification, verify its build, and reference its exact version in jobs.

**B**

Reference a curated environment and manually patch packages on each compute node before submission.

**C**

Pin the older package in a pip install command at the start of every training script.

**D**

Use only the base image reference and omit the Conda specification even though the required package is absent from the image.

Correct answer: A

### Explanation

The environment needs its base image and dependency specification, successful validation, and a fixed asset version. Reuse/caching can reduce repeated setup, but no universal minimum build or startup time follows.

## Question 10

Type: multiple\_choice
Knowledge point: Create and manage environments

A custom Azure Machine Learning environment declares a Conda specification and base image. It has been registered, but has never been used by a remote job or manually built. No dedicated image-build compute is configured; the applicable serverless build quota and network prerequisites are met. Which two statements are correct? (Choose 2.)

### Options

**A**

A successfully built environment image can be cached in the workspace registry and reused.

**B**

First remote use or a manual build can trigger image construction using the applicable workspace build service.

**C**

Registration proves that an immediate registry build task has already completed successfully.

**D**

Every training node must independently build the Conda environment image.

**E**

Registration automatically publishes the custom image to public Microsoft Container Registry.

Correct answer: A, B

### Explanation

Environment registration and successful image construction are separate events. First remote use or a manual build can trigger image construction; a successful build is cached for reuse. Check build status and logs rather than treating registration as proof of image completion.

## Question 11

Type: multiple\_choice
Knowledge point: Create and manage environments

A Machine Learning Engineer submits an Azure Machine Learning SDK v2 training job using a Dockerfile-based environment with proprietary C++ dependencies. The workspace is configured to use a supported dedicated image-build compute cluster. The training target is a separate cpu-cluster.

The environment build fails with EnvironmentBuildError. No detailed build log has yet been inspected, so the error does not identify a specific root cause. The relevant environment and job definitions are:

```python
from azure.ai.ml import command
from azure.ai.ml.entities import Environment, BuildContext

env = Environment(
    name="custom-cpp-env",
    build=BuildContext(path="./docker-context", dockerfile_path="Dockerfile")
)
job = command(
    code="./src",
    command="python train.py",
    environment=env,
    compute="cpu-cluster"
)
```

Which are valid diagnostic steps or constraints for this managed environment build? (Choose 3.)

### Options

**A**

Check that the submitted build context contains the Dockerfile and files it references, and distinguish a context-upload failure from a Docker compilation failure.

**B**

SSH into a training node and manually build an image there; this necessarily repairs the centrally managed environment definition.

**C**

Identify the actual build principal and registry permission mode, then check the required build and image-push permissions for that path.

**D**

BuildContext is supported only for local interactive execution, so it cannot define an environment used by a remote training job.

**E**

Inspect Azure Machine Learning's environment image-build logs and error analysis for the configured builder before attributing the failure to C++ compilation.

Correct answer: A, C, E

### Explanation

Correct answers: A, C, E.

Option analysis:

* **A — Check that the submitted build context contains the Dockerfile and files it references, and distinguish a context-upload failure from a Docker compilation failure.**: The build context supplies Docker inputs. A missing referenced file can affect a Docker build, while a submission/upload error can occur before compilation starts. The generic error alone does not prove either condition or a particular size-limit violation.
* **B — SSH into a training node and manually build an image there; this necessarily repairs the centrally managed environment definition.**: The managed environment asset and its image-build process are separate from a manually modified training node. Such a local build does not necessarily correct the submitted definition or make the managed image available.
* **C — Identify the actual build principal and registry permission mode, then check the required build and image-push permissions for that path.**: Use the identity actually performing the operation, not an assumed interactive user. Registry data access and build orchestration are different permission surfaces; legacy AcrPush is not honored in ABAC-enabled registries, and generic Contributor is not evidence of repository push permission in that mode.
* **D — BuildContext is supported only for local interactive execution, so it cannot define an environment used by a remote training job.**: Docker build contexts are supported for custom environments used by cloud training jobs. Their local source directory does not confine the resulting environment to local execution.
* **E — Inspect Azure Machine Learning's environment image-build logs and error analysis for the configured builder before attributing the failure to C++ compilation.**: The relevant build logs can reveal a failing Docker instruction or package compilation. This scenario names dedicated image-build compute; it does not establish an ACR Tasks backend. If logs are unavailable, inspect that failure too rather than inventing a compiler cause.

## Question 12

Type: single\_choice
Knowledge point: Create and manage environments

A Platform Engineer completes an Azure Machine Learning CLI v2 environment definition. The team has validated the shown base image for its chosen dependencies and wants Azure Machine Learning to build Conda dependencies on top of that image. conda\_env.yml is in the same directory as the environment file.

```yaml
# environment.yml
$schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json
name: custom-training-env
version: "1"
image: mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04
# Add the missing dependency-file property here.
```

```yaml
# conda_env.yml
name: training-dependencies
channels:
  - conda-forge
dependencies:
  - python=3.10
  - pip
  - pip:
      - numpy==1.26.4
```

Which property binds that local Conda file in this image-plus-Conda definition? (Choose 1.)

### Options

**A**

build: {path: ./conda\_env.yml}

**B**

image: ./conda\_env.yml

**C**

conda\_file: ./conda\_env.yml

**D**

tags: {conda\_file: ./conda\_env.yml}

**E**

description: ./conda\_env.yml

Correct answer: C

### Explanation

Correct answer: C.

Option analysis:

* **A — build: {path: ./conda\_env.yml}**: build.path names a Docker build-context directory, not a Conda file. It is a different environment-definition mechanism.
* **B — image: ./conda\_env.yml**: image identifies a container image rather than a local dependency specification.
* **C — conda\_file: ./conda\_env.yml**: conda\_file references the dependency file. For this schema form, image is also required and is already supplied.
* **D — tags: {conda\_file: ./conda\_env.yml}**: Tags record metadata and do not install Conda dependencies.
* **E — description: ./conda\_env.yml**: Description text does not bind a build dependency file.

## Question 13

Type: multiple\_choice
Knowledge point: Create and manage components

A Platform Engineer is completing a reusable Azure ML CLI v2 command component. The registered custom environment image contains executable `/opt/run_tuning.sh`, which accepts an input-file path and output-directory path. Compute is chosen when the component is invoked as a job. This hypothetical definition leaves the component type and command unfinished:

```yaml
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: hyperparameter_tuner
version: "2"
type: <COMPONENT_TYPE>
inputs:
  training_data:
    type: uri_file
outputs:
  best_model:
    type: uri_folder
command: <COMMAND>
environment: azureml:custom-tuning-env:3
```

Which two edits complete those fields for the declared interfaces? (Choose 2.)

### Options

**A**

Add a mandatory `compute` property to this component definition instead of choosing compute at job invocation.

**B**

Remove `environment` so all dependencies are inherited implicitly from the parent pipeline.

**C**

Set `type: pipeline` because the component will be used within a pipeline.

**D**

Set `type: command` for this standalone shell-script component.

**E**

Set `command: >-` followed by `bash /opt/run_tuning.sh "${{inputs.training_data}}" "${{outputs.best_model}}"` as its indented command string.

Correct answer: D, E

### Explanation

The reusable component declares execution type, environment and port bindings; the invoking job supplies compute. Script availability is established by the stated image contents.

## Question 14

Type: single\_choice
Knowledge point: Create and manage components

An MLOps Engineer is reviewing components during an architecture trade-off review. The data science team has created a Python script for data normalization that they want to reuse across dozens of different training pipelines. The script requires specific input parameters and outputs a transformed dataset.

```
$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
name: data_normalization
display_name: Data Normalizer
version: 1
type: command
inputs:
  raw_data:
    type: uri_folder
  scaling_factor:
    type: number
    default: 1.0
outputs:
  normalized_data:
    type: uri_folder
code: ./src
environment: azureml:sklearn-env:1
command: >-
  python normalize.py 
  --input_data ${{inputs.raw_data}} 
  --scale ${{inputs.scaling_factor}} 
  --output_data ${{outputs.normalized_data}}
```

When the MLOps Engineer registers this YAML definition using the Azure CLI (az ml component create), how does the workspace architecture handle the code property?

### Options

**A**

The workspace ignores the local ./src path entirely and strictly requires the code to be hosted in an external GitHub repository linked via a datastore.

**B**

The CLI uploads the included files from ./src as a source artifact referenced by the registered component; later local edits are not automatically reflected in that registered version.

**C**

The Azure CLI injects the raw contents of the normalize.py script directly into the component's internal metadata database within the workspace.

**D**

The workspace creates a symbolic link to the local ./src directory, dynamically pulling the updated code each time a pipeline runs.

Correct answer: B

### Explanation

The code field selects the local source directory for upload, subject to applicable ignore rules. The registered component uses the uploaded source artifact rather than a live link to a workstation directory. This describes versioned execution logic, not a guarantee that every physical storage byte is impossible to modify.

## Question 15

Type: multiple\_choice
Knowledge point: Create and manage components

A Quality Engineer is recognizing the effects of registering a component in a shared Azure Machine Learning registry. prep\_component.yml contains a valid component named prepare\_data, version 2, with its required code and a valid environment reference. The authorized CLI operation below succeeds. Existing production pipelines explicitly reference version 1; they are not being edited by this command.

```bash
az ml component create --file prep_component.yml --registry-name central-ml-registry --resource-group ml-governance-rg
```

Which two statements describe registration and sharing behavior? (Choose 2.)

### Options

**A**

Every workspace in the tenant can immediately read the component, irrespective of the consuming principal's registry permissions.

**B**

The registry stores the versioned component definition and code assets, allowing authorized consumers to reference that component from the registry.

**C**

Registration changes the existing pipelines' explicit version-1 references to version 2 without a pipeline update.

**D**

The registry supports replication to its configured regions, but this command does not establish instantaneous availability in every region; verify required availability before depending on it.

**E**

The registry component becomes a deployed real-time inference endpoint as part of asset creation.

Correct answer: B, D

### Explanation

Registry registration creates a reusable versioned asset. Asset distribution and access are distinct from updating consumers or deploying a serving endpoint.

## Question 16

Type: single\_choice
Knowledge point: Create and manage components

In an Azure Machine Learning SDK v2 pipeline, `prep_component` declares `raw_data` as a uri\_folder input and `processed_data` as a uri\_folder output. `train_component` declares `training_data` as a uri\_folder input, `epochs` as an integer input, and `model` as a uri\_folder output. Both components and the input data asset already exist. The following Python DSL excerpt is illustrative and has not been submitted:

```python
from azure.ai.ml import dsl

@dsl.pipeline()
def training_pipeline(raw_data):
    prep_step = prep_component(raw_data=raw_data)
    train_step = train_component(training_data=..., epochs=10)
    return {"model": train_step.outputs.model}
```

Which replacement for `...` binds training to the preparation output produced by this same pipeline execution?

### Options

**A**

An Input object pointing to a literal azureml://jobs/prep\_step/outputs/processed\_data/paths URI.

**B**

prep\_step.get\_output("processed\_data")

**C**

An Input object whose path is the string "prep\_step".

**D**

prep\_step.outputs.processed\_data

Correct answer: D

### Explanation

Use the output port of the instantiated preparation node. The declared port names and matching uri\_folder types make the binding independently interpretable; no external output name must be guessed.

## Question 17

Type: single\_choice
Knowledge point: Create and manage components

A Solution Architect is designing a new Azure Machine Learning workspace to support multiple data science squads. The squads frequently build complex machine learning pipelines containing distinct steps for data preprocessing, model training, and evaluation. To ensure reusability and enforce organizational standards, the architect mandates that all pipeline steps must be modularized and shared centrally. Which workspace asset type must be explicitly created to fulfill this modular pipeline design requirement?

### Options

**A**

A component asset containing the step logic, environment, and interface.

**B**

A model asset tagged with the specific pipeline step execution metadata.

**C**

An environment asset referencing a standard Conda configuration file.

**D**

A datastore asset configured to share intermediate pipeline outputs globally.

Correct answer: A

### Explanation

A component defines reusable step computation with an environment reference and typed interface. An environment, model or datastore alone supplies only part of that structure and does not represent the executable step.

## Question 18

Type: multiple\_choice
Knowledge point: Create and manage components

A Machine Learning Engineer checks a submitted Azure ML SDK/CLI v2 pipeline's inputs against the registered clean\_data:1 component contract. The relevant registered input declarations are:

```yaml
inputs:
  raw_csv:
    type: uri_file
  drop_nulls:
    type: boolean
    default: false
  threshold:
    type: integer
    default: 1
```

The complete pipeline invocation is:

```yaml
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json
type: pipeline
settings:
  default_compute: azureml:cpu-cluster
jobs:
  clean_step:
    type: command
    component: azureml:clean_data:1
    inputs:
      raw_csv:
        type: uri_file
        path: azureml:my_raw_data:3
      drop_nulls: "maybe"
      threshold: "high"
```

The registered component and data asset exist. Validation rejects the two unparseable primitive values before execution. Which two input corrections address the reported defects? (Choose 2.)

### Options

**A**

Replace drop\_nulls: "maybe" with the supported boolean value drop\_nulls: true.

**B**

Change raw\_csv to uri\_folder even though the component declares uri\_file.

**C**

Change the pipeline step type from command to component.

**D**

Add an output block solely because every component invocation must explicitly override outputs.

**E**

Replace threshold: "high" with an integer value such as threshold: 1.

Correct answer: A, E

### Explanation

The defect is unparseable primitive values, not quotation marks alone. The documented SDK input parser accepts supported true/false strings; numeric conversion behavior must not be inferred merely from YAML spelling.

## Question 19

Type: single\_choice
Knowledge point: Share assets across workspaces by using registries

A Solution Architect is completing this hypothetical Azure ML CLI v2 batch deployment. The endpoint and compute exist. fraud-model version 3 is an MLflow model in ml-registry. Registry permissions, supported region and network access are configured.

```yaml
$schema: https://azuremlschemas.azureedge.net/latest/modelBatchDeployment.schema.json
name: fraud-deployment-prod
endpoint_name: batch-fraud-scoring
type: model
model: <MODEL_REFERENCE>
compute: azureml:prod-cluster
```

Which reference selects the model from the central registry?

### Options

**A**

`azureml:fraud-model:3`

**B**

`azureml://registries/ml-registry/models/fraud-model/versions/3`

**C**

`azureml://subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/prod-rg/workspaces/prod/models/fraud-model/versions/3`

**D**

`https://mlregistry.blob.core.windows.net/models/fraud-model/3`

Correct answer: B

### Explanation

A registry asset URI identifies the shared model; asset existence, authorization and network reachability remain separate requirements.

## Question 20

Type: multiple\_choice
Knowledge point: Share assets across workspaces by using registries

A Platform Engineer is configuring private access for Azure Machine Learning jobs that consume existing assets from a registry. Public network access is disabled on the registry and its backing storage and Azure Container Registry (ACR). The caller has the required RBAC permissions. The workspace private endpoint and compute networking already work. This task concerns consuming existing assets; environment creation and image import are outside this operation. Private DNS and approved private endpoint connections must be configured for each new private path. Which two additional private endpoint configurations are required? (Choose 2.)

### Options

**A**

Reuse the workspace private endpoint as the sole private endpoint for every registry dependency.

**B**

Enable a trusted-services firewall exception instead of creating private endpoints for client asset access.

**C**

Configure private endpoints and private DNS reachability for the registry's backing storage and ACR.

**D**

Allow production compute public IP addresses through registry IP rules while leaving public network access disabled.

**E**

Configure a private endpoint and private DNS reachability for the registry service itself.

Correct answer: C, E

### Explanation

Consuming existing registry assets needs service access and access to their blobs and images. The registry endpoint does not make the general Azure Resource Manager management endpoint private.

## Question 21

Type: single\_choice
Knowledge point: Share assets across workspaces by using registries

A Quality Engineer publishes a validated Azure Machine Learning component to a shared registry. The component definition and referenced files have passed validation; network access is working. Registry asset creation fails with AuthorizationFailed. Effective role assignments show that the caller has Reader on the target registry and Contributor only on the separate development workspace; no broader assignment or deny assignment applies.

```bash
az ml component create --file prep_data.yml --registry-name shared-ai-registry
```

Which role assignment provides built-in registry asset write capability at the required scope? (Choose 1.)

### Options

**A**

Storage Blob Data Contributor on the development workspace storage account.

**B**

Contributor on the development workspace only.

**C**

Reader on the shared-ai-registry resource.

**D**

AzureML Registry User on the shared-ai-registry resource.

Correct answer: D

### Explanation

Authorization must cover registry assets on the registry being written.

## Question 22

Type: multiple\_choice
Knowledge point: Share assets across workspaces by using registries

A Data Scientist wants to share a tested Azure Machine Learning workspace environment through `corp-ml-registry`. The release requirement is to reuse the tested final container image without rebuilding dependencies. The workspace environment is an image-plus-Conda definition; its `image` is a base-image reference, not a verified final-image digest. Registry region support and network access are confirmed.

The proposed SDK v2 script reconstructs the definition:

```python
import os
from azure.ai.ml import MLClient
from azure.ai.ml.entities import Environment
from azure.identity import DefaultAzureCredential

credential = DefaultAzureCredential()
workspace = MLClient(credential, os.environ['AZURE_SUBSCRIPTION_ID'],
                     'rg-ml-dev', 'myWorkspace-dev')
registry = MLClient(credential, registry_name='corp-ml-registry')
local_env = workspace.environments.get(name='custom-training-env', version='1')
registry_env = Environment(name=local_env.name, version=local_env.version,
                           image=local_env.image, conda_file=local_env.conda_file)
registry.environments.create_or_update(registry_env)
```

Which three judgments apply before release approval? (Choose 3.)

### Options

**A**

The caller needs asset write permissions on the registry, such as AzureML Registry User at the registry scope, as well as access to read the workspace environment.

**B**

Matching the environment name and version proves that the registry uses the exact tested final container image.

**C**

Recreating image-plus-Conda does not prove no rebuild or binary identity; verify the actual resolved image digest against the tested image before accepting the release requirement.

**D**

The registry create\_or\_update call automatically deletes the source workspace environment.

**E**

An authorized consuming workspace in a supported region can reference azureml://registries/corp-ml-registry/environments/custom-training-env/versions/1 after registration.

Correct answer: A, C, E

### Explanation

Central asset registration does not by itself prove reuse of the tested container binary.

## Question 23

Type: multiple\_choice
Knowledge point: Share assets across workspaces by using registries

An Azure ML registry currently replicates assets in East US. Supported consuming workspaces in the US and Europe need read-only access, and private-only registry access is mandatory. Europe is an available registry replication region. In a hypothetical access/network audit, the actual consuming principal P has Microsoft.MachineLearningServices/registries/read but not Microsoft.MachineLearningServices/registries/assets/read. Private registry and backing Blob paths and DNS are verified, but the backing ACR private route/DNS is missing. Other download identities and workspace permissions are verified. Which three changes address the identified distribution, authorization and private-access gaps? (Choose 3.)

### Options

**A**

Configure the supported European replication region and measure the resulting asset-download latency.

**B**

Automatically copy every registry asset into every workspace on each model update.

**C**

Grant P the missing asset-read permission through an appropriate read-only role or custom role.

**D**

Give P AzureML Registry User because it is a read-only role, then skip backing-service connectivity checks.

**E**

Complete and verify the missing private ACR route and DNS.

Correct answer: A, C, E

### Explanation

The gaps are independent: regional distribution, the consumer's missing read action, and a backing-service private path. Correcting one does not supply the others.

