Choosing datastore authentication with a configurable privilege level
Short answer
B Use a managed identity for the workspace1 datastore so Blob access is authenticated without stored secrets and the privilege level is set by a role on the container
Question
Key Takeaways
Azure Machine Learning datastore authentication for a Blob container favors a managed identity, the option that satisfies both a configurable privilege level and secret-free sign-on. Managed identity (B) wins because access is scoped through a role on the container, while SAS tokens, account keys and service principals each embed a shared secret to rotate or expire. In AI-300 scenarios pairing privilege scoping with authentication, pick the workspace managed identity.
Expert Analysis
A managed identity (B) is the recommended authentication for workspace datastores because it can be configured with a privilege level (credential-based vs credentialless via identity) and avoids storing secrets. SAS tokens (A) and account keys (C) embed shareable secrets that expire or need rotation; a service principal (D) requires managing a client secret/certificate. Managed identity is the only option that satisfies both privileged-access configuration and secret-free authentication.
The deciding constraint in this scenario is the pairing of two requirements: the datastore must connect an Azure Blob container to workspace1, and it must expose a configurable privilege level. In an Azure Machine Learning datastore created against Blob storage, the authentication choices are account key, SAS token, service principal, and Azure ML workspace managed identity — and the managed identity path is the only one that offers a credentialless mode in which no secret is stored at all, while the workspace identity still carries a defined role on the container. That is the privilege-level lever the scenario requires: you scope what the identity can do on the Blob container (for example, a read-oriented role such as Storage Blob Data Reader versus a broader data contributor role) rather than handing out a shared secret whose blast radius is fixed by the key itself.
Option B, managed identity, therefore satisfies both halves at once. The datastore authenticates without a client secret, certificate, or rotating token, and access is governed by an Azure RBAC role assigned to the workspace identity on workspace1's backing storage — a level of privilege you assign and can tighten independently of the datastore definition.
Option A, a SAS token, fails the privilege-level test in the practical sense: a container SAS grants whatever permissions were baked into the token at generation time, it carries an expiry you must track, and every regeneration means updating the datastore credential. Option C, an account key, is the most powerful secret in the storage account — anyone holding it has effectively full control of the account, so there is no meaningful privilege dial to configure, and the key must be rotated and re-pasted into the datastore. Option D, a service principal, does let you scope a role on the container, but it introduces a client secret or certificate that has to be created, stored, rotated, and kept from expiring; the scenario asks for authentication that supports a configurable privilege level without that credential-management overhead, and a service principal is exactly the shared-secret pattern the workspace managed identity replaces.
One mechanism worth naming, because the question relies on it without stating it: Azure RBAC on Blob data planes is evaluated against a security principal, and a system-assigned managed identity attached to workspace1 is such a principal. When the datastore runs under the workspace identity, jobs and pipelines reading that Blob container are authorized by the identity's role assignment, so changing the privilege level means editing the role assignment on the container — not editing the datastore or reissuing a token. That indirection is what makes "configure a privilege level" a first-class, adjustable setting rather than a property frozen into a credential.
In exam terms, the signal words are "configure a privilege level" together with "configure authentication." Whenever a scenario pairs privilege scoping with authentication on an Azure ML datastore, prefer the workspace managed identity: it removes stored secrets and moves access control into assignable, revisable roles.
Exam Strategy
Treat "configurable privilege level" as the tie-breaker when several Azure ML datastore authentication options look plausible: ask which one lets you scope access through a role you can edit later. Eliminate options whose credential itself defines the access ceiling (account key) or that force expiry tracking (SAS token) before weighing convenience. On AI-300, a managed identity paired with a role assignment is the recurring correct answer whenever a question stresses secret-free authentication plus scorable privilege.
Related Analysis
Practice All AI-300 Questions
Access 49 questions with complete answers and detailed explanations.
View Full AI-300 Practice Test →