# Create and manage resources 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/506

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

## Question 1

Type: single\_choice
Knowledge point: Create and manage a workspace

An MLOps Engineer is deploying an Azure Machine Learning workspace using an Azure Resource Manager (ARM) template. The infrastructure team provides the following configuration summary for the dependent resources:

{  
"storageAccount": {  
"name": "mldefaultstorage",  
"properties": {  
"isHnsEnabled": true  
}  
}  
}

The engineer specifies this storage account as the default storage for the new workspace. What will be the outcome of this workspace deployment?

### Options

**A**

The operation will fail because hierarchical namespace is explicitly unsupported for the workspace default storage account.

**B**

The operation will succeed, but the workspace will automatically disable the hierarchical namespace feature on the storage account.

**C**

The operation will succeed, and the workspace will utilize the ADLS Gen2 storage account for all default machine learning artifacts.

**D**

The operation will fail because the default storage account must reside in the same resource group as the workspace.

Correct answer: A

### Explanation

The supplied account has hierarchical namespace enabled and is being used as the workspace default storage account. Azure Machine Learning requires that particular default account to have hierarchical namespace disabled. This restriction does not prohibit a separately registered ADLS Gen2 datastore for training data.

## Question 2

Type: single\_choice
Knowledge point: Create and manage a workspace

An engineer is creating a private endpoint for the existing Azure Machine Learning workspace `ml-prod`. The deployment is scoped to the workspace's resource group, and the workspace already exists. The engineer can create the private endpoint and approve its connection. The endpoint's subnet and location are valid.

The relevant Bicep identifiers and connection fragment are:

```bicep
param workspaceName string = 'ml-prod'

resource ws 'Microsoft.MachineLearningServices/workspaces@2024-04-01' existing = {
  name: workspaceName
}

var armRequestUrl = 'https://management.azure.com${ws.id}?api-version=2024-04-01'

// Fragment from a Microsoft.Network/privateEndpoints@2023-11-01 resource:
privateLinkServiceConnections: [
  {
    name: 'workspace-link'
    properties: {
      privateLinkServiceId: armRequestUrl
      groupIds: [
        'amlworkspace'
      ]
    }
  }
]
```

The team placed the URL used to read the workspace's ARM resource into `privateLinkServiceId`. The connection fails target-resource validation. Separately, the security reviewer expects a workspace private endpoint to make future workspace deletion requests to Azure Resource Manager travel through this workspace private endpoint.

After the target is repaired, workspace-private-endpoint DNS, private connectivity, connection approval, and public data-plane access restrictions will be configured and verified. These remaining steps have not yet been completed.

Which repair and explanation should the engineer give?

### Options

**A**

Keep `privateLinkServiceId: armRequestUrl` and create a DNS record mapping `management.azure.com` to the private endpoint; DNS converts the URL into a valid target resource identity.

**B**

Use `privateLinkServiceId: workspaceName`; the short workspace name identifies the resource across subscriptions, and the private endpoint then covers both workspace data and ARM operations.

**C**

Use `privateLinkServiceId: ws.id`; this targets the workspace's ARM resource identity, while workspace deletion and other ARM control-plane operations continue to use the Azure management path rather than this workspace data-plane private endpoint.

**D**

Use `privateLinkServiceId: ws.id` and tell the reviewer that completing the workspace private endpoint eliminates the need for access to public Azure Resource Manager for future workspace management.

Correct answer: C

### Explanation

The connection requires the target resource's ARM ID, not its request URL or short name. Correct identity is only one provisioning requirement. A workspace private endpoint changes the workspace's private data-access path, not the networking contract of Azure Resource Manager. Sources: [Private endpoint connection properties, API 2023-11-01](https://learn.microsoft.com/en-us/azure/templates/microsoft.network/2023-11-01/privateendpoints), [Azure Machine Learning private endpoint limitations](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-configure-private-link?view=azureml-api-2).

## Question 3

Type: multiple\_choice
Knowledge point: Create and manage a workspace

A quality engineer reviews inbound access to an Azure Machine Learning workspace. Approved clients have private network connectivity and working private DNS. The requirement is that the workspace data-plane API cannot be reached through its public endpoint. Training egress and dependency access are governed separately. Which two workspace ingress configurations together establish this private-only data-plane access arrangement? (Choose 2.)

### Options

**A**

Set publicNetworkAccess to Disabled on the Microsoft.MachineLearningServices/workspaces resource.

**B**

Enabling allowPublicAccessWhenBehindVnet on the workspace identity settings.

**C**

Configuring the Network Contributor role specifically on the AzureMachineLearning compute subnet.

**D**

Using a public Azure Load Balancer for the mlWorkspace ingress controller.

**E**

Provision and approve a private endpoint for the workspace amlworkspace subresource, with the required private DNS and client network route.

Correct answer: A, E

### Explanation

An approved workspace private endpoint supplies the private data-plane route; disabling publicNetworkAccess prevents use of the workspace public data-plane endpoint. This pair does not make ARM management traffic private or configure training egress, storage access or other dependency boundaries.

## Question 4

Type: multiple\_choice
Knowledge point: Create and manage a workspace

A Machine Learning Engineer needs to create a new Azure Machine Learning workspace named ws-test in the existing resource group rg-test. The target subscription is selected, the compatible Azure CLI ml extension is installed, and authentication, permissions, provider registration, and policy prerequisites are satisfied. The workspace does not yet exist. A validated local file, workspace-test.yml, contains:

```yaml
$schema: https://azuremlschemas.azureedge.net/latest/workspace.schema.json
name: ws-test
location: eastus
display_name: Test workspace
```

Which two statements correctly describe workspace creation scope and configuration input? (Choose 2.)

### Options

**A**

Using az ml workspace create --name ws-test --resource-group rg-test identifies the workspace name and resource group in the selected subscription.

**B**

Using --location eastus automatically selects both the target subscription and resource group.

**C**

Adding --file workspace-test.yml supplies the workspace YAML specification to the create command.

**D**

Rejecting every az resource create approach because generic ARM provisioning can never create a Machine Learning workspace.

**E**

Using az ml workspace show --name ws-test --resource-group rg-test creates the workspace when it does not exist.

Correct answer: A, C

### Explanation

Use the workspace create command with the intended scope, and pass the local YAML specification with --file. A resource's region, resource-group scope, and subscription are distinct settings. This question concerns creation of a new workspace; the command and file do not establish arbitrary update portability, configuration-drift prevention, or seamless changes to immutable properties.

## Question 5

Type: single\_choice
Knowledge point: Create and manage a workspace

An enterprise requires all Azure resources to be defined via infrastructure as code. A Solution Architect is planning architecture, governance, and rollout tradeoffs for a workspace during an architecture trade-off review. To ensure the automated provisioning of the ML workspace does not fail, they must specify the exact resource provider namespace in the declarative deployment template.

```
resource myWorkspace '<PROVIDER_NAMESPACE>/workspaces@2024-04-01' = {
  name: 'ml-workspace-prod'
  location: 'eastus'
}
```

When configuring the core workspace resource, which exact provider namespace must the Solution Architect select to replace <PROVIDER\_NAMESPACE>?

### Options

**A**

Microsoft.MachineLearning

**B**

Microsoft.AzureML

**C**

Microsoft.ML

**D**

Microsoft.MachineLearningServices

Correct answer: D

### Explanation

The missing token is the documented ARM provider namespace in Microsoft.MachineLearningServices/workspaces. Selecting that namespace resolves this question; the abbreviated snippet is not a complete deployable workspace definition.

## Question 6

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

A Quality Engineer checks a credentialless AzureDataLakeGen2Datastore. Its registration stores the account and filesystem references without static storage credentials; it does not grant authorization. The notebook uses user pass-through principal U. The training job explicitly selects the compute's assigned managed identity J. Both principals authenticate successfully and reach the private storage path.

Only ACL authorization applies: neither principal has a broad data-plane RBAC grant or a granting group membership. The effective access ACLs already account for masks; other-user permissions are empty. This hypothetical JSON audit snapshot describes existing files:

```
{
  "filesystem": "marketdata",
  "effective_access_acl": {
    "/": {"U": "--x", "J": "--x"},
    "/finance": {"U": "r-x", "J": "r--"},
    "/finance/current.csv": {"U": "r--", "J": "r--"},
    "/hr": {"U": "---", "J": "---"},
    "/hr/payroll.csv": {"U": "---", "J": "---"}
  },
  "observed_read": {"U_finance": "success", "J_finance": "denied"}
}
```

Both workloads need to read current.csv, and access to HR must remain denied. Which three statements or actions follow? (Choose 3.)

### Options

**A**

The notebook user already has sufficient effective ACLs to read the specified finance file without an account-wide Reader role.

**B**

Add execute permission for J on the existing /finance directory, keeping the HR ACLs unchanged, then retest the job read.

**C**

Grant J account-wide Storage Blob Data Reader because restrictive HR ACLs will override that grant.

**D**

Re-register the credentialless datastore to automatically assign the missing folder permissions to J.

**E**

The datastore avoids stored static account credentials, while actual user/job authorization still depends on the selected principals; token caching is a separate issue.

Correct answer: A, B, E

### Explanation

Use the actual execution principals and effective ACL traversal rules. Least privilege is not satisfied by broadening authorization beyond the finance path.

## Question 7

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

Using Azure Machine Learning SDK v2, an engineer plans to register existing storage as datastores. The storage locations are shown below. OneLake refers to the documented preview connector for lakehouse Files; required identity and network access will be configured separately.

| Data | Existing storage |
| --- | --- |
| Images | Azure Blob Storage |
| Hierarchical directories | HNS-enabled Azure Data Lake Storage Gen2 |
| Shared files | Azure Files |

Which two statements correctly describe datastore support and responsibility? (Choose 2.)

### Options

**A**

Registering each datastore creates the underlying storage account if it is absent.

**B**

Supported connectors include Azure Blob Storage, ADLS Gen2, Azure Files, and the preview OneLake lakehouse Files connector.

**C**

A datastore records connection information for existing storage; registration alone does not grant data permissions or network access.

**D**

A OneLake shortcut to Amazon S3 makes an Amazon S3 bucket directly registerable as a native Azure ML S3 datastore.

**E**

The external ADLS Gen2 account must have hierarchical namespace disabled before registration.

Correct answer: B, C

### Explanation

The supported connection types and connection metadata role are separate from provisioning and authorization. The external HNS-enabled ADLS Gen2 account can be referenced without treating it as default workspace storage.

## Question 8

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

An Azure Machine Learning workspace and an approved Blob account are in different subscriptions in the same tenant. Network access is already validated. The datastore resource is:

```json
{
  "type": "Microsoft.MachineLearningServices/workspaces/datastores",
  "apiVersion": "2024-04-01",
  "name": "ws-a/external_blob",
  "properties": {
    "datastoreType": "AzureBlob",
    "accountName": "approvedexternalstore",
    "containerName": "shared-features",
    "subscriptionId": "22222222-2222-2222-2222-222222222222",
    "resourceGroup": "rg-data",
    "endpoint": "core.windows.net",
    "protocol": "https",
    "credentials": {"credentialsType": "None"}
  }
}
```

The job explicitly uses principal p-run for data access. Which three statements support credential-free, auditable reading? (Choose 3.)

### Options

**A**

Grant p-run Storage Blob Data Reader at the required container scope.

**B**

Grant workspace Contributor and use it to bypass Blob data-plane authorization.

**C**

Enable Blob diagnostic export and inspect OAuth request records for the requester object ID.

**D**

Treat the credential-free datastore as a pointer that neither stores a secret nor grants data access.

**E**

Assume registration automatically grants p-run access and exports every read to a log workspace.

Correct answer: A, C, D

### Explanation

Registration stores a data location without a secret. Actual reads require the selected job principal's data-plane permission and an accessible network path. Diagnostic export and requester identity evidence are separate from successful registration.

## Question 9

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

During platform design approval, a Solution Architect must decide how datastores should be integrated with an existing Azure Files share. The storage account is heavily restricted, resides in a different region, and has public network access entirely disabled. The ML workspace uses a Managed Virtual Network. What is the primary network topology requirement to ensure compute instances in the workspace can successfully mount and read from this restricted Azure Files datastore?

### Options

**A**

Configure a private endpoint for the storage account inside the managed virtual network for secure routing.

**B**

Deploy Azure Data Factory to copy data locally to the default workspace blob container over the public internet.

**C**

Map the datastore using standard HTTP access keys without modifying the managed virtual network routing table.

**D**

Whitelist the outbound IP address of the compute instance in the storage account public firewall rules.

Correct answer: A

### Explanation

The necessary network route is an approved managed-network private endpoint targeting the Azure Files file subresource, with working private DNS. Storage public access is disabled, so public transfer or firewall allowlisting cannot substitute for that route. Supported datastore/mount configuration and data authorization must also be satisfied; this topology choice alone does not grant read access.

## Question 10

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

A team has registered an Azure Blob datastore in an Azure Machine Learning workspace using the following CLI v2 YAML:

```yaml
type: azure_blob
name: training_blob
account_name: lpxtrainingstore
container_name: training
```

There is no `credentials` section. Registration succeeds. Policy requires identity-based access and forbids storing an account key or SAS token for this datastore.

A command job runs on an AmlCompute cluster with exactly one configured managed identity, named `train-mi`. The job selects:

```yaml
identity:
  type: managed
inputs:
  source_data:
    type: uri_folder
    path: azureml://datastores/training_blob/paths/daily/
    mode: ro_mount
```

The job command passes `${{inputs.source_data}}` to the script's data-directory argument. The existing folder contains CSV files, and the script reads but never writes them.

Network access, DNS, the storage firewall, and the input path have been verified. The storage account does not use hierarchical namespaces. Investigation confirms authentication as `train-mi`, followed by a Blob data-authorization failure. Effective role assignments show:

| Principal | Storage Blob Data Reader on the training container |
| --- | --- |
| Job submitter | Yes |
| Workspace managed identity | Yes |
| train-mi | No |

No other role or deny assignment affects `train-mi`'s Blob access. The requirement is to keep using the cluster's managed identity and grant only the read access needed for this container.

Which change resolves the demonstrated authorization gap while preserving the requirements?

### Options

**A**

Change the input mode from `ro_mount` to `download`; the data-transfer mode uses the datastore creator's role assignments instead of the job identity.

**B**

Assign Storage Blob Data Reader on the `training` container to `train-mi`, allow the assignment to become effective, and retry with the credentialless datastore, managed job identity, and read-only input unchanged.

**C**

Reassign Storage Blob Data Reader to the workspace managed identity and retry; every registered datastore uses that identity regardless of the job's selected identity.

**D**

Switch the job to `type: user_identity` so it can use the submitter's existing reader role; this retains the required cluster-managed-identity authorization path.

Correct answer: B

### Explanation

Registration records the storage location without a secret. The job selects the compute identity, and the observed authorization failure names that same principal. Its missing container-level data-read role is the demonstrated gap. Sources: [Blob datastore identity-based registration](https://learn.microsoft.com/en-us/azure/machine-learning/reference-yaml-datastore-blob?view=azureml-api-2), [Job identities and input delivery modes](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-read-write-data-v2?view=azureml-api-2), [Storage Blob Data Reader role](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/storage).

## Question 11

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

An MLOps Engineer chooses an Azure ML datastore credential configuration for an external ADLS Gen2 account. The organization's explicit policy forbids persisting account keys, SAS bearer tokens or service-principal secrets in datastore configuration or its associated Key Vault. This is the organization's stated credential policy, rather than a universal definition of zero trust. Jobs will be configured separately to use the selected compute managed identity. Required storage data-plane authorization, any applicable ADLS directory/file access rules, and network access must also be established for that actual caller. Which registration/access approach meets the no-persisted-authentication-secret requirement? (Choose 1.)

### Options

**A**

Register an identity-based datastore without stored credentials and use the separately selected compute managed identity for job data access.

**B**

Register service-principal credentials and keep the client secret in the workspace's associated Key Vault.

**C**

Store a short-lived SAS bearer token for storage access instead of using the job's selected identity.

**D**

Use a rotated storage account key and persist it in Key Vault rather than in the datastore text.

Correct answer: A

### Explanation

Credentialless registration avoids saving a datastore authentication secret. It does not automatically select one identity for every access context, grant storage permission, bypass network restrictions, or eliminate runtime access tokens and token caching.

## Question 12

Type: multiple\_choice
Knowledge point: Create and manage compute targets

An engineer creates an Azure Machine Learning AmlCompute cluster whose unattended training jobs will use its attached managed identity to read an ADLS Gen2 account. Storage networking and job submission permissions are already validated. The organization prohibits storing a client secret or storage key for this workload.

The CLI has authenticated subscription, resource-group and workspace defaults. The compute definition includes a supported VM size:

```bash
az ml compute create --name training-cluster \
  --type AmlCompute --size Standard_DS3_v2 \
  --min-instances 0 --max-instances 4 \
  --identity-type <IDENTITY_CHOICE>
```

Which two supported compute-identity configurations meet the requirement when the necessary storage data access is granted? (Choose 2.)

### Options

**A**

Configure --identity-type None and inject a Service Principal Client Secret via plain-text environment variables at job runtime.

**B**

Set --identity-type UserAssigned and --user-assigned-identities to the pre-provisioned identity resource ID; grant that identity the required storage data-plane permission.

**C**

Configure --identity-type SystemAssigned on the workspace itself, avoiding the need to configure identities on individual compute targets.

**D**

Set --identity-type SystemAssigned and grant the resulting cluster identity the required storage data-plane permission on the ADLS Gen2 account.

**E**

Use --identity-type WorkspaceManaged to automatically federate the user's interactive login token to the distributed batch nodes.

Correct answer: B, D

### Explanation

AmlCompute supports system-assigned and user-assigned managed identities. The job must actually select the intended compute identity and its effective storage authorization must permit the data read. Attaching an identity, workspace management rights and registering a datastore are separate operations.

## Question 13

Type: single\_choice
Knowledge point: Create and manage compute targets

An infrastructure engineer must create an Azure Machine Learning compute cluster in a customer-managed virtual network. The workspace does not use a workspace-managed virtual network. Policy prohibits public IP addresses on compute nodes but permits documented outbound service access through the approved network path.

The selected VM size is available in the region, quota is sufficient, and the subnet can host the requested cluster. The CLI v2 schema accepts the following cluster configuration:

```yaml
type: amlcompute
name: private-train
size: Standard_DS3_v2
min_instances: 0
max_instances: 3
enable_node_public_ip: false
network_settings:
  subnet: /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg-net/providers/Microsoft.Network/virtualNetworks/vnet-train/subnets/snet-compute
```

The subnet is in the workspace's region. A readiness audit finds:

* No workspace private endpoint is reachable from this virtual network.
* A deny-all outbound rule prevents access to required Azure Machine Learning, regional Batch node management, and regional Storage destinations.
* Package and container dependencies have an approved reachable source.

The team wants to preserve the no-public-IP policy and make the compute's required service communications possible. Which change should it make before retrying provisioning?

### Options

**A**

Create and configure the workspace private endpoint and its DNS resolution for the compute network, and permit the documented required outbound destinations through the approved network path while retaining `enable_node_public_ip: false`.

**B**

Set `ssh_public_access_enabled: false`, remove `enable_node_public_ip`, and keep the existing network rules; disabling public SSH implements the same no-public-IP and service-connectivity requirements.

**C**

Move `enable_node_public_ip: false` under `network_settings` and retain the deny-all rule; nesting the setting activates private service communication.

**D**

Keep the current networking and increase `min_instances` to three so that a permanently running cluster no longer needs the missing service connectivity.

Correct answer: A

### Explanation

The audit identifies unmet connectivity prerequisites, not insufficient compute capacity. A node can lack a public IP while using explicitly permitted outbound service paths. The root-level setting does not supply private endpoint reachability or override network-deny rules. Sources: [No-public-IP compute network prerequisites](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-secure-training-vnet?view=azureml-api-2), [AmlCompute schema](https://azuremlschemas.azureedge.net/latest/amlCompute.schema.json), [Compute cluster scaling settings](https://learn.microsoft.com/en-us/azure/machine-learning/reference-yaml-compute-aml?view=azureml-api-2).

## Question 14

Type: multiple\_choice
Knowledge point: Create and manage compute targets

A training command references an existing src/train.py and registered custom environment. Quota is available; the workspace managed network is provisioned and required dependencies are approved. The command omits compute:

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

job = command(
    code="./src",
    command="python train.py",
    environment="azureml:custom-env:3"
)
```

Which three statements correctly compare this choice with a named compute cluster? (Choose 3.)

### Options

**A**

A cluster's maximum node count caps concurrent scale rather than all lifetime spending.

**B**

Omitting compute selects serverless training without requiring creation of a named cluster.

**C**

Named compute clusters cannot use managed identities.

**D**

Serverless training accepts only curated environments.

**E**

This serverless job uses the applicable configured workspace managed network in the stated setup.

**F**

Assign a system-assigned managed identity to this serverless job as if it were a cluster.

Correct answer: A, B, E

### Explanation

Omitting compute selects the supported serverless training path. Custom environments and the configured managed network are supported in this setup. A cluster's maximum node count bounds concurrent scale, not lifetime spending. Serverless supports user pass-through or an appropriate workspace user-assigned identity, not a system-assigned identity; permissions, quota, policy, and cost controls still matter.

## Question 15

Type: single\_choice
Knowledge point: Create and manage compute targets

A Solution Architect is conducting an architecture trade-off review for a new data science environment. The data science team requires an interactive, cloud-based development environment that natively supports Jupyter notebooks and VS Code remote connections. The environment must be secured within the corporate Virtual Network (VNet) and allocated to individual users to prevent resource contention during exploratory data analysis. Based on these requirements, which architectural choice should the Solution Architect select?

### Options

**A**

Provision an Azure Kubernetes Service (AKS) cluster and attach it to the workspace for interactive endpoint debugging.

**B**

Deploy a scalable amlCompute cluster configured with a minimum node count of zero to optimize costs during interactive development.

**C**

Utilize Serverless compute for the workspace to eliminate the need for managing underlying interactive infrastructure.

**D**

Provision a dedicated computeInstance assigned directly to the individual developer to support interactive notebook exploration.

Correct answer: D

### Explanation

A compute instance is the per-user managed interactive workstation for Jupyter and supported VS Code connections. The administrator must also configure the required private networking, authorized user and resource access. Job clusters, serverless job compute and attached inference clusters do not replace this persistent interactive development context.

## Question 16

Type: single\_choice
Knowledge point: Create and manage compute targets

An Azure ML managed compute cluster runs nightly distributed training jobs that must be able to scale to eight nodes. The node quota and capacity for this configuration are available. After a job completes, the cluster may have idle nodes for the configured scale-down delay. The requirement is zero running-node VM charges after the cluster has remained idle for the 300-second delay and scale-down has completed, while still allowing the next job to scale to eight nodes. Storage and network charges are outside this running-node requirement. Which current CLI v2 YAML scaling block satisfies both requirements? (Choose 1.)

### Options

**A**

\~\~\~yaml min\_instances: 1 max\_instances: 8 idle\_time\_before\_scale\_down: 300 \~\~\~

**B**

\~\~\~yaml min\_instances: 0 max\_instances: 8 idle\_time\_before\_scale\_down: 300 \~\~\~

**C**

\~\~\~yaml min\_instances: 0 max\_instances: 0 idle\_time\_before\_scale\_down: 300 \~\~\~

**D**

\~\~\~yaml min\_instances: 8 max\_instances: 8 idle\_time\_before\_scale\_down: 300 \~\~\~

Correct answer: B

### Explanation

Apply minimum, maximum and idle delay together to meet both idle cost and training capacity requirements.

## Question 17

Type: multiple\_choice
Knowledge point: Configure identity and access management for workspaces

An MLOps Engineer must allow data scientists to submit training jobs, register data assets, and register models in one Azure Machine Learning workspace. Compute clusters already exist and are running. The team must not create or delete compute resources or modify the workspace, including its network settings. The identities have no other role assignments, including inherited assignments. Which two alternative role-assignment designs satisfy the required separation of duties? (Choose 2.)

### Options

**A**

Assign Reader at the workspace scope to allow the team to inspect resources and submit training jobs.

**B**

Assign AzureML Data Scientist at the workspace scope.

**C**

Assign Contributor at the workspace's resource-group scope so the limited scope prevents compute and network changes.

**D**

Assign a tested custom role at workspace scope allowing workspace-resource reads and jobs, data-asset, and model operations, with no compute-management or workspace-write permissions.

**E**

Assign Owner at workspace scope and use an audit-only Azure Policy to detect network changes.

Correct answer: B, D

### Explanation

Correct answers: B, D.

Option analysis:

* **A — Assign Reader at the workspace scope to allow the team to inspect resources and submit training jobs.**: Reader permits inspection but does not grant job submission or registration writes.
* **B — Assign AzureML Data Scientist at the workspace scope.**: This built-in role supports workspace ML operations while excluding compute creation/deletion and workspace modification. The absence of other grants matters.
* **C — Assign Contributor at the workspace's resource-group scope so the limited scope prevents compute and network changes.**: Scope limits which resources can be affected; Contributor still permits forbidden changes inside that resource group.
* **D — Assign a tested custom role at workspace scope allowing workspace-resource reads and jobs, data-asset, and model operations, with no compute-management or workspace-write permissions.**: The stated tested allowlist supplies the required ML operations without infrastructure writes. No additional assignments restore forbidden permissions; NotActions alone would not override a separate grant.
* **E — Assign Owner at workspace scope and use an audit-only Azure Policy to detect network changes.**: Owner allows the prohibited writes, and audit-only policy records rather than prevents them.

## Question 18

Type: single\_choice
Knowledge point: Configure identity and access management for workspaces

A training job uses an Azure Machine Learning compute cluster and CLI ml extension v2\. It explicitly selects managed-identity authentication. The cluster has one system-assigned managed identity. Its credentialless Azure Blob datastore points to trainingstore in the same tenant.

An administrator verifies:

| Identity | Object ID | Existing authorization |
| --- | --- | --- |
| Job submitter | user-17 | Can submit the job; cannot read training blobs |
| Workspace managed identity | workspace-23 | Storage Blob Data Reader on trainingstore |
| Compute cluster managed identity | compute-41 | No role permitting reads in trainingstore |

The failed storage read records requester object ID compute-41 and an authorization failure. Token acquisition succeeds and networking permits the request. The job must retain its compute managed identity. The submitter must not gain direct data access. The administrator may grant read access across this training storage account; write access is unnecessary.

Which change addresses the demonstrated failure?

### Options

**A**

Grant Storage Blob Data Reader to compute-41 at the trainingstore storage-account scope.

**B**

Grant Contributor to compute-41 at the Machine Learning workspace scope.

**C**

Grant Storage Blob Data Contributor to workspace-23 at the trainingstore storage-account scope.

**D**

Grant Storage Blob Data Reader to user-17 without changing the job identity.

Correct answer: A

### Explanation

Correct answer: A.

Option analysis:

* **A — Grant Storage Blob Data Reader to compute-41 at the trainingstore storage-account scope.**: The caller is the compute identity. Its missing read-only data role at the authorized account scope addresses the failure.
* **B — Grant Contributor to compute-41 at the Machine Learning workspace scope.**: Workspace control-plane permission does not grant blob data-plane reads.
* **C — Grant Storage Blob Data Contributor to workspace-23 at the trainingstore storage-account scope.**: The workspace identity is not the caller. Its added write permission does not repair the compute read.
* **D — Grant Storage Blob Data Reader to user-17 without changing the job identity.**: The job still reads as compute-41, and the change violates the submitter's access boundary.

## Question 19

Type: multiple\_choice
Knowledge point: Configure identity and access management for workspaces

A Solution Architect must implement identity and access management for workspaces using the Python SDK v2\. The script runs on an external continuous integration (CI) server and needs to authenticate to the workspace to trigger a training job. The team wants to leverage the standard identity library to handle token acquisition dynamically based on the environment context.

```
from <MISSING_MODULE> import DefaultAzureCredential
from azure.ai.ml import MLClient
# Authenticate to the workspace
credential = DefaultAzureCredential()
ml_client = MLClient(
    credential=credential,
    subscription_id="<subscription_id>",
    resource_group_name="<resource_group>",
    workspace_name="<workspace_name>"
)
```

Which two statements accurately describe the architecture and requirements of this authentication pattern? (Choose 2.)

### Options

**A**

With its environment service-principal credential unavailable, the default chain can proceed through other applicable credentials, including workload identity and then managed identity.

**B**

DefaultAzureCredential requires interactive user login every time the CI pipeline executes, making it unsuitable for automated pipelines.

**C**

The <MISSING\_MODULE> must be replaced with azure.identity to import the standard credential chain.

**D**

The script must embed the workspace's primary account key in plain text to establish the connection if the credential fails.

**E**

This pattern is strictly limited to local development environments and cannot be executed on automated CI servers.

Correct answer: A, C

### Explanation

DefaultAzureCredential is imported from azure.identity and supports non-interactive authentication. Its chain considers applicable credential types in documented order. An unavailable credential is different from an attempted deployed credential that fails authentication; the latter can stop the chain. Configure the intended CI identity and its workspace permissions explicitly.

## Question 20

Type: single\_choice
Knowledge point: Configure identity and access management for workspaces

Two new development Azure ML workspaces intentionally share the same service privileges and can share one security principal; separate per-workspace principal audit attribution is not required. Their team wants to reduce repeated service-role administration. A production workspace must have separately revocable permissions and must not share the development principal. Which design best fits?

### Options

**A**

Use a development user-assigned managed identity across the two development workspaces and a separate production identity; scope each principal's roles to its approved resources.

**B**

Use a separate system-assigned identity for every workspace and administer each service-role assignment separately.

**C**

Use one user-assigned identity for all three workspaces and grant it the union of development and production permissions.

**D**

Share one principal everywhere and enable data isolation to create a different managed identity for each workspace.

Correct answer: A

### Explanation

Identity reuse is appropriate only within the explicitly shared development trust boundary. Production's independent privileges require a distinct principal. Isolation settings complement role scoping rather than replace principal separation.

## Question 21

Type: multiple\_choice
Knowledge point: Configure identity and access management for workspaces

An Azure ML workspace uses the UserAssigned identity type and has both workspace-prod and maintenance identities attached. The approved service identity is workspace-prod, but the workspace's primaryUserAssignedIdentity property is unset. That principal has Contributor on the associated storage account but lacks Storage Blob Data Contributor. Studio data preview through the workspace identity is required. All other required service-role assignments and network paths have been verified; full ARM IDs are available. Which two changes address the identified primary-identity and preview prerequisites? (Choose 2.)

### Options

**A**

Grant Storage Blob Data Contributor to workspace-prod at the approved data scope needed for Studio preview.

**B**

Rely on attaching the identity to automatically grant all storage data permissions.

**C**

Replace the identities with a system-assigned identity because multiple user-assigned identities are unsupported.

**D**

Replace Contributor on the workspace-associated ACR with AcrPull because every identity needs only image-pull permissions.

**E**

Set primaryUserAssignedIdentity to the full ARM resource ID of workspace-prod.

Correct answer: A, E

### Explanation

Resolve primary identity selection and the missing preview data-plane grant. Preserve the already-verified roles for other service operations, whose requirements differ from a compute image pull.

## Question 22

Type: multiple\_choice
Knowledge point: Configure identity and access management for workspaces

An Azure ML training job in the commercial Azure cloud must read an Azure SQL Database table and read input blobs and write job outputs to a storage container. Network tests have already verified the SQL outbound private endpoint, private DNS, and storage connectivity from the job compute. The workspace's inbound private endpoint is a separate connection. A SQL Microsoft Entra administrator is configured. Several user-assigned managed identities are attached, and no configured default selects the intended job identity. That intended identity will perform both the SQL query and the blob operations. Which three remaining authorization and identity steps are appropriate? (Choose 3.)

### Options

**A**

Enable the SQL firewall option that broadly allows Azure services instead of configuring the intended identity

**B**

Route SQL traffic through the workspace inbound private endpoint as an authentication proxy

**C**

Create the intended identity's contained database user and grant the SELECT permissions required for the table query

**D**

Grant that identity scoped blob permissions sufficient to read the required inputs and write the job outputs

**E**

Select the intended user-assigned identity explicitly for this job and acquire a SQL access token for https://database.windows.net/.default

Correct answer: C, D, E

### Explanation

Apply database and storage authorization requirements to the stated single runtime identity and verified private network.

