Training data sits in an existing ADLS Gen2 account. Jobs should read it without copying it, and without storing an account key in the workspace. What do you create?
- Exam domain
- Design and implement an MLOps infrastructure15–20% of the exam
- Difficulty
- Medium
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Create and manage datastores.
Every training job reads data from somewhere. The exam checks you connect storage securely and without copies.
Why C is the answer
A datastore that uses identity-based access
A datastore is a reference to existing storage. With identity-based access, jobs use the identity of the user or compute, so no key is stored.
Remember: Datastores connect storage; identity-based access avoids stored keys.
How it works
A datastore is a reference to an existing Azure storage service, such as Blob Storage or ADLS Gen2; the data stays where it is.
Datastores support credential-based access, with a key or SAS, and identity-based access with Microsoft Entra ID.
With identity-based access, the identity running the job needs a role on the storage account.
Clues in the question
The words that point to the answer, and what each one tells you.
- Without copying it
- A reference to storage, which is a datastore.
- Without storing an account key
- Identity-based access.
In detail
- The identity used needs a data role on the storage account, such as Storage Blob Data Reader.
- Data assets can then point at paths inside the datastore.
Side by side with look-alikes
| Option | Copies data? | Stores a key? |
|---|---|---|
| A datastore that uses identity-based access | No | No |
| Datastore with account key | No | Yes |
| Copy to default storage | Yes | No |
| Key in an environment variable | No | Yes, exposed |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A copy of the data in the workspace default storageWrong
Copying duplicates data and goes stale.
B. A compute instance with the key in an environment variableWrong
An environment variable on one machine exposes the key and does not help jobs on clusters.
C. A datastore that uses identity-based accessRight
Datastores connect storage; identity-based access avoids stored keys.
D. A datastore that stores the account keyWrongMost tempting
This works, but stores a long-lived key in the workspace.
Why it tempts: It is the right kind of object, so it looks almost correct. But the question rules out stored keys.
In practice
- Grant the compute cluster's managed identity Storage Blob Data Reader on the account, then submit jobs without credentials in code.
Use case
An illustrative scenario, not a real incident.
A bank connects its governed data lake to Azure Machine Learning; audit shows each read under the job's managed identity.
See how it works
flowchart LR J["Training job on a cluster"] --> I["Cluster managed identity"] I --> R["RBAC role: Storage Blob Data Reader"] R --> S["ADLS Gen2 account"] D["Datastore: a reference, no key"] --> S
How to read this chart
- "Training job on a cluster" leads to "Cluster managed identity".
- "Cluster managed identity" leads to "RBAC role: Storage Blob Data Reader".
- "RBAC role: Storage Blob Data Reader" leads to "ADLS Gen2 account".
- "Datastore: a reference, no key" leads to "ADLS Gen2 account".