AI-300 · Domain 3: Design and implement a GenAIOps infrastructure · 24% of the exam
Task 3.1: Implement Foundry environments and platform configuration
Foundry resources and projects, managed identities and RBAC, network security and private networking, and Bicep and Azure CLI infrastructure deployments.
Bicep and Azure CLI for Foundry resources and deployments
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.
Question 1 · choose 1
A bank runs a fraud-triage agent and a customer chat agent in production, each with its own access reviews, quota and cost reporting, and an incident in one must not exhaust the other's quota. Data scientists also need a sandbox to try models together with shared deployments. Which Foundry topology fits?
AA Foundry resource per production agent, plus one shared resource with projects for the sandbox
BOne Foundry resource with three projects: fraud triage, customer chat and the sandbox, all sharing its deployments
COne Foundry resource per data scientist for the sandbox, and one shared resource holding both production projects
DOne hub-based project per agent in a shared hub, with the sandbox as a third project in the same hub
Show the answer and why
AA Foundry resource per production agent, plus one shared resource with projects for the sandbox
Correct
Production defaults to isolation per workload, while colocation suits exploration with shared deployments.
BOne Foundry resource with three projects: fraud triage, customer chat and the sandbox, all sharing its deployments
Incorrect
Projects in one resource share its blast radius, quota and deployments, which production here can't accept.
COne Foundry resource per data scientist for the sandbox, and one shared resource holding both production projects
Incorrect
That isolates the sandbox, which wants sharing, and colocates production, which needs isolation.
DOne hub-based project per agent in a shared hub, with the sandbox as a third project in the same hub
Incorrect
Hub-based projects aren't supported in the new Foundry portal, and they'd still share the hub's resources.
Foundry's rollout guidance contrasts colocated workloads (one Foundry resource with multiple projects, good for experimentation and shared deployments but with a shared blast radius for incidents, quota exhaustion and misconfiguration) with fully isolated workloads (one Foundry resource per production workload boundary, for independent access control, quota and cost). For production, treat isolation as the default.
An Azure OpenAI resource with two private endpoints serves dozens of apps by its endpoint and keys. The team wants the Foundry capabilities without changing the apps, and the upgrade button in the Azure portal fails. What should it do?
ASet public network access to Enabled for the upgrade, then disable it again once the kind has changed
BCreate a new Foundry resource and move every app to its endpoint and keys
CKeep the private endpoints and add only the Foundry DNS zones next to the existing Azure OpenAI zone
DDelete the private endpoints, upgrade, then re-create them so the Foundry IP configurations exist
Show the answer and why
ASet public network access to Enabled for the upgrade, then disable it again once the kind has changed
Incorrect
Opening public access doesn't remove the private endpoint block on the portal upgrade.
BCreate a new Foundry resource and move every app to its endpoint and keys
Incorrect
The upgrade keeps the existing endpoint and keys; a new resource forces every app to change.
CKeep the private endpoints and add only the Foundry DNS zones next to the existing Azure OpenAI zone
Incorrect
DNS zones are needed, but the portal upgrade still fails while private endpoints exist.
DDelete the private endpoints, upgrade, then re-create them so the Foundry IP configurations exist
Correct
Resources with private endpoints can't be upgraded in the portals, and re-created endpoints add the Foundry IP configurations.
Upgrading an Azure OpenAI resource to Foundry keeps its API endpoint, keys and configuration. Resources with existing private endpoints can't be upgraded through the Foundry portal or Azure portal: delete the private endpoints first and re-create them afterward (re-creation adds the services.ai.azure.com and custom-domain IP configurations), or manage the upgrade with Bicep or Terraform. Private networks also need the extra DNS zone configuration.
A pipeline creates a Foundry resource and project with Bicep. Afterwards developers who built projects in the portal before get permission errors in the new project, and its agents can't reach the resource either. The pipeline identity has Owner on the resource group. What should the template add?
AOwner role assignments on the resource group for the developer group and the project identity
BCognitive Services Contributor for the developers and Cognitive Services User for the project identity
CFoundry User role assignments for the developer group and for the project's managed identity
DAzure AI Developer for the developers and Reader on the Foundry resource for the project's managed identity
Show the answer and why
AOwner role assignments on the resource group for the developer group and the project identity
Incorrect
Owner is far broader than building in a project needs.
BCognitive Services Contributor for the developers and Cognitive Services User for the project identity
Incorrect
Cognitive Services roles target AI Services resources directly, not Foundry projects.
CFoundry User role assignments for the developer group and for the project's managed identity
Correct
Automatic assignment happens only through the portal UI, not for SDK, CLI or template deployments.
DAzure AI Developer for the developers and Reader on the Foundry resource for the project's managed identity
Incorrect
Azure AI Developer is scoped to Azure Machine Learning workspaces and hubs, not Foundry projects.
When a user who can assign roles creates a Foundry resource or project in the portal, Foundry User is assigned automatically; this doesn't happen when you deploy with the SDK, CLI or templates. Grant Foundry User to the developers (least privilege for building) and to the project's managed identity on the Foundry resource. Cognitive Services roles (other than Usages Reader) and Azure AI Developer don't apply to Foundry projects.
A platform team keeps shared Azure OpenAI deployments in a central subscription. A new Foundry project in a business unit's subscription, in the same tenant, should use those deployments through a project connection. What applies?
AAdd an Azure OpenAI connection to the central resource, since connections work across subscriptions in one tenant
BAdd the connection with the central resource's API key, so that the subscription boundary no longer applies
CDeploy the models in a resource in the project's own subscription, since such connections can't cross subscriptions
DPeer the two subscriptions' virtual networks so that the project connection can reach the central deployments
Show the answer and why
AAdd an Azure OpenAI connection to the central resource, since connections work across subscriptions in one tenant
Incorrect
Connections used for model deployments can't point at a resource in a different subscription, even in the same tenant.
BAdd the connection with the central resource's API key, so that the subscription boundary no longer applies
Incorrect
The limit is about the subscription, not about the authentication method.
CDeploy the models in a resource in the project's own subscription, since such connections can't cross subscriptions
Correct
Cross-subscription connections for model deployment aren't supported, so the deployments have to sit in the same subscription.
DPeer the two subscriptions' virtual networks so that the project connection can reach the central deployments
Incorrect
Network peering doesn't change the rule: the connection itself isn't supported across subscriptions.
Connections let a Foundry project authenticate to other resources, but cross-subscription connections used for model deployment (Foundry and Azure OpenAI connections) aren't supported: you can't connect to resources from a different subscription for model deployments. Keep the deployments that a project uses in a resource in the same subscription.
Production Foundry resources must not use preview features. Portal users shouldn't see them, and calls from the SDK must also be refused. Which two controls should you apply? (Choose TWO.)
AThe tag AZML_DISABLE_PREVIEW_FEATURE set to true on the subscription, resource group or Foundry resource
BA resource lock of type ReadOnly on each production Foundry resource
CA custom role that lists the preview operations under notDataActions, assigned in place of broader roles
DRemoving every user's Foundry User role and assigning Reader instead
EThe tag alone, since hidden preview features can't be called from the SDK
Show the answer and why
AThe tag AZML_DISABLE_PREVIEW_FEATURE set to true on the subscription, resource group or Foundry resource
Correct
The tag hides preview surfaces in the new and classic portals.
BA resource lock of type ReadOnly on each production Foundry resource
Incorrect
A lock blocks management changes, not preview features.
CA custom role that lists the preview operations under notDataActions, assigned in place of broader roles
Correct
Custom roles block specific preview operations at the API level.
DRemoving every user's Foundry User role and assigning Reader instead
Incorrect
That blocks building entirely, not only preview features.
EThe tag alone, since hidden preview features can't be called from the SDK
Incorrect
Tags only hide portal surfaces; API calls need a custom role to block them.
Microsoft documents two ways to restrict preview features in Foundry: the AZML_DISABLE_PREVIEW_FEATURE tag with value true hides preview surfaces in the portals at the scope where you apply it, and custom RBAC roles that exclude permissions with notDataActions (or notActions for control-plane features such as tracing) block the operations at the API level.
Security wants to stop anyone from deploying models whose lifecycle status is Preview in any Foundry resource, without maintaining a list of model names. What should you assign?
AA custom role that removes the Deploy action from the model catalog for every user
BThe built-in eligibility requirements policy, set to exclude models whose lifecycle is Preview
CA tag on each Foundry resource that hides models in the Preview lifecycle from the catalog
DThe built-in policy Foundry model deployments should only use approved models, listing every GA model
Show the answer and why
AA custom role that removes the Deploy action from the model catalog for every user
Incorrect
It blocks all deployments, not only Preview models.
BThe built-in eligibility requirements policy, set to exclude models whose lifecycle is Preview
Correct
It restricts deployments by attributes such as lifecycle status, evaluated at deployment time.
CA tag on each Foundry resource that hides models in the Preview lifecycle from the catalog
Incorrect
Tags hide portal surfaces; they don't enforce deployment rules.
DThe built-in policy Foundry model deployments should only use approved models, listing every GA model
Incorrect
That's a per-model allow-list, which the team doesn't want to maintain.
Foundry provides two generally available built-in Azure Policy definitions for model deployments: one restricts deployments to an approved list of models or publishers, the other restricts them by model attributes such as source (Direct from Azure) and lifecycle status (Preview). Both are evaluated at deployment time; the catalog still shows models, and the Deploy action is disabled with a reason. Assigning them needs Owner or Resource Policy Contributor.
A team upgraded an Azure OpenAI resource to Foundry and hits a problem. What can it do?
ARoll back to Azure OpenAI after deleting the configurations the article lists
BNothing, since an upgrade to Foundry can't be undone once it completes
CDelete the resource and restore the Azure OpenAI setup from backup
DOpen a support case, since support is the only way to revert an upgrade
Show the answer and why
ARoll back to Azure OpenAI after deleting the configurations the article lists
Correct
The upgrade is opt-in and can be rolled back.
BNothing, since an upgrade to Foundry can't be undone once it completes
Incorrect
A rollback option exists.
CDelete the resource and restore the Azure OpenAI setup from backup
Incorrect
Rollback doesn't need a restore.
DOpen a support case, since support is the only way to revert an upgrade
Incorrect
The portal and ARM templates offer rollback.
Upgrading Azure OpenAI to Foundry is opt-in, and you can roll back if you run into problems: delete the configurations listed in the article, then use the classic portal, the Azure portal or an ARM template to roll back.
A Foundry resource was configured by hand in the portal. How can the team start a Bicep template from it?
ACopy the settings from the Foundry portal's Home page into a new file
BRun az cognitiveservices account show and rename the output .bicep
CExport the resource's configuration as a Bicep file from the portal
DAsk Microsoft support to generate the template from the resource
Show the answer and why
ACopy the settings from the Foundry portal's Home page into a new file
Incorrect
The Home page doesn't produce templates.
BRun az cognitiveservices account show and rename the output .bicep
Incorrect
JSON output isn't a Bicep template.
CExport the resource's configuration as a Bicep file from the portal
Correct
The export captures network rules, identity and project settings.
DAsk Microsoft support to generate the template from the resource
Incorrect
The portal can export it.
If you already configured a Foundry resource in the Azure portal, you can export that configuration as a Bicep file. The exported file captures current settings, including network rules, identity configuration and project associations, as a starting point.
A security engineer wants to create a custom role scoped to a Foundry resource. Which role does the engineer need there?
AFoundry Owner
BContributor
CFoundry Project Manager
DOwner
Show the answer and why
AFoundry Owner
Incorrect
It manages projects and resources but isn't the documented requirement.
BContributor
Incorrect
Contributor can't create custom roles.
CFoundry Project Manager
Incorrect
It isn't the role the guidance names for creating custom roles.
DOwner
Correct
Creating custom roles in a resource needs Owner on that scope.
You need the Owner role on a resource's scope to create custom roles in that resource. Custom roles are useful, for example, to tailor permissions beyond the built-in Foundry roles.
Right after a developer is granted a role on a Foundry resource, calls still fail. What does the guidance say?
ARole assignments apply only after the resource restarts
BRole assignments can take up to five minutes to propagate
CRole assignments apply at the next hour boundary
DRole assignments apply only after the developer's next password change
Show the answer and why
ARole assignments apply only after the resource restarts
Incorrect
Resources don't need restarting.
BRole assignments can take up to five minutes to propagate
Correct
Wait briefly, or manage access with security groups.
CRole assignments apply at the next hour boundary
Incorrect
Propagation takes up to minutes.
DRole assignments apply only after the developer's next password change
Incorrect
Passwords don't affect role propagation.
Azure role assignments can take up to five minutes to propagate. When you use security groups, adding or removing users from the group propagates immediately.