AWS Training
Modules Listen Certification

← SageMaker Unified Studio Foundations — The AWS Homework

Starts this lesson and continues through 16 more to the end of the course.

Setting up a domain — roles, network, identity and clean-up

Why this is the lesson people will quiz you on

Lesson 1 gave you the vocabulary. This one is the walkthrough: the screens H1 clicks through, the six IAM roles it tells you to keep the defaults on, and the clean-up list. "What does the Manage Access role do?" and "what is left behind if we delete the domain?" are answered here.

It is also where H1 has aged most. It was published 13 February 2025 and admits "SageMaker Unified Studio was in preview mode when this blog was published" (H1, "Create a custom project profile"). Every step below was checked against the admin guide on 2026-11-19; each mismatch carries a ⚠️.

H1 tells you to keep the defaults. Your job as the SME is to know what each default is — and which three cannot be changed afterwards.

Object definitions are in lesson 1; blueprints and profiles in lesson 3. What a domain does to your existing Glue and Redshift data is SM0 lesson 5.

Prerequisites: H1 versus the admin guide today

H1 lists four ("Prerequisites"): an AWS account; a user with administrative access; "Enable IAM Identity Center in the same AWS Region you want to create your SageMaker Unified Studio domain"; and, for Amazon Bedrock models, "grant access to base models".

H1 prerequisite Current docs (verified 2026-11-19)
A user with administrative access Narrower: choose an IAM role to administer the domain and attach SageMakerStudioAdminIAMConsolePolicy
Identity Center in the same Region ⚠️ No longer required. "The Amazon SageMaker domain can reside in a different AWS Region than where the IAM Identity Center organization instance is located using IAM Identity Center multi-Region support", provided the instance "must be connected to an external identity provider (IdP)" (domains)
Grant access to base models ⚠️ Bedrock now says "Access to many Amazon Bedrock foundation models is enabled by default with the correct AWS Marketplace permissions" (model access). Quick setup still offers a Grant model access button

Quick setup versus manual setup

Both start at "the Amazon SageMaker management console at https://console.aws.amazon.com/datazone" with Create a Unified Studio domain. The API underneath is CreateDomain (POST /v2/domains), whose domainVersion accepts V1 | V2 (API reference, verified 2026-11-19).

Quick setup Manual setup
H1's label "Quick setup (recommended for exploration)" Not walked through
Docs' intent "intended for testing purposes and we recommend deleting the domain after initial tests" "claiming full control over customizing your domain settings"
You supply Name, the six roles, S3 bucket, VPC, encryption, optional data onboarding, one SSO user Name, description, domain execution role, domain service role, encryption, tags
Blueprints and profiles "all the blueprints are automatically enabled" and default profiles exist (H1) None. You then configure "SSO, project profiles, blueprints, account associations, Amazon Bedrock models, connections, and AmazonQ" yourself
Authentication, as listed "AWS IAM or AWS IAM Identity Center" "AWS IAM, AWS IAM Identity Center, or SAML"
Admin project admin-project-accountID "created automatically for new domains" "created when you enable the Tooling blueprint"

Sources: quick setup, manual setup, domain management (verified 2026-11-19).

⚠️ Quick setup costs money: "there is an additional charge for any VPC or resources that AWS sets up". ⚠️ It now also has an Onboard your data - optional section that H1 does not mention; see SM0 lesson 5 before touching it.

H1's order of clicks

From H1 "Set up domain": Create a Unified Studio domain → Quick setup → Create VPC (opens CloudFormation in a new tab) → keep useVpcEndpoints as false → Create stack → return and refresh the page → enter the name → keep the defaults for four roles → VPC and private subnets are selected automatically → keep the defaults for two model roles → Continue → give the email of an SSO user → Create domain.

Three details from H1's screenshots: the stack name defaults to SageMakerUnifiedStudio-VPC; the parameter is described as "This controls whether VPC endpoints are created or not."; and under Name the console says "It cannot be changed after the domain is created."

The roles, one by one

H1 names six. The admin guide documents seven (IAM roles, verified 2026-11-19). All but the query execution role trust the service principal datazone.amazonaws.com.

H1's label Role name in the admin guide What the docs say it is for Managed policy
Domain Execution role AmazonSageMakerDomainExecution "an IAM role that Amazon SageMaker Unified Studio requires to call APIs on behalf of authorized users, including those logged in" SageMakerStudioDomainExecutionRolePolicy
Domain Service role AmazonSageMakerDomainService "a service role for domain level actions performed by Amazon SageMaker Unified Studio" SageMakerStudioDomainServiceRolePolicy
Provisioning role AmazonSageMakerProvisioning-<domainAccountId> "used by Amazon SageMaker Unified Studio to provision and manage resources defined in the selected blueprints in your account" SageMakerStudioProjectProvisioningRolePolicy
Manage Access role AmazonSageMakerManageAccess-<region>-<domainId> "permissions to publish, grant access, and revoke access to Amazon SageMaker Lakehouse, AWS Glue Data Catalog and Amazon Redshift data", plus subscriptions on SageMaker Catalog assets AmazonDataZoneGlueManageAccessRolePolicy, AmazonDataZoneRedshiftManageAccessRolePolicy, AmazonDataZoneSageMakerAccess
Model provisioning role AmazonDataZoneBedrockModelManagementRole "to create an inference profile for an Amazon Bedrock model in a project" AmazonDataZoneBedrockModelManagementPolicy
Model consumption role AmazonDataZoneBedrockFMConsumptionRole "required for each Amazon Bedrock model that you want to enable in the playground" — one per model by default, or one shared role AmazonDataZoneBedrockModelConsumptionPolicy
(not in H1) AmazonSageMakerQueryExecution "AWS LakeFormation assumes this role to vend credentials needed by Amazon Athena during query execution" SageMakerStudioQueryExecutionRolePolicy

Details that get asked:

⚠️ H2 counts three roles; its own module creates five. H2 "Step 3" says "Three IAM roles will be created (domain execution, manage access, provisioning)". The repository README lists "domain execution, domain service, query execution, provisioning, and manage access roles" (repo, fetched 2026-11-19). Detail in lesson 4.

⚠️ The two domain policy pages call their roles SageMakerUnifiedStudioDomainExecutionRole and SageMakerUnifiedStudioDomainServiceRole, unlike the role pages. Search IAM by policy name.

Network

H1's Create VPC deploys a CloudFormation stack "to create the VPC and the necessary private and public subnets". Its screenshot shows four private subnets selected, under the instruction "Select at least 3 subnets in different Availability Zones that contain required VPC Endpoints."

What the current docs add (verified 2026-11-19):

⚠️ I could not verify useVpcEndpoints in current documentation. The string appears in neither the admin guide nor the user guide (I searched both PDFs on 2026-11-19); it exists only in H1's text and screenshot. Open the stack's Parameters tab in your own account to confirm it.

Our read: false means service traffic leaves by another route. The network isolation page lists the required interface endpoints (Athena, DataZone, EC2, S3, SageMaker AI, Glue, KMS, Secrets Manager, STS, Systems Manager and more) and warns: "If Amazon VPC endpoints are missing or misconfigured, network calls … route over the public internet when that network path is available."

Identity

Account instance or organization instance

H1: "If the account doesn't have IAM Identity Center set up, then it will create an IAM Identity Center account instance, so long as the account is permitted to do so."

From the IAM Identity Center guide (verified 2026-11-19): an organization instance is enabled "in the AWS Organizations management account" and supports all features. An account instance is "bound to a single AWS account, and … visible only within the AWS account and AWS Region in which it is enabled"; "You are limited to one account instance per AWS account"; and "If you plan to use IAM Identity Center to support applications in multiple accounts, use an organization instance. Account instances do not support this use case."

Which one the domain gets (managing users):

Your account is Instance selected
The management account, organization instance enabled Organization instance
A member account, organization instance enabled ⚠️ "an IAM Identity Center account instance is selected"
Not in an AWS Organization Account instance

⚠️ That middle row is hard to square with the multi-Region note on the same pages, which speaks of the domain using "the IAM Identity Center organization instance". Ask AWS which holds for a member account.

Three things you cannot change

  1. The domain name (H1 screenshot).
  2. SSO settings. You choose IAM Identity Center or SAML, then Require assignments or Do not require assignments, and "These settings cannot be changed once you save them." In the API this is the singleSignOn object: type IAM_IDC | DISABLED, userAssignment AUTOMATIC | MANUAL. This is the documented basis for H2's "one way door" on enable_sso.
  3. Encryption. "Encryption cannot be changed after the domain is created" (associated accounts).

Onboarding users

H1: User management tab → Add → Add SSO users and groups or Add IAM users. "After you add the users, they will appear with the status Assigned. The status changes to Activated only when the user logs in." The API enum on CreateUserProfile is ASSIGNED | NOT_ASSIGNED | ACTIVATED | DEACTIVATED; userType is IAM_USER | IAM_ROLE | SSO_USER | IAM_ROLE_SESSION (API reference, verified 2026-11-19).

⚠️ IAM roles and portal login — H1 is out of date. H1 says twice that IAM roles are for "programmatic access only" and "you can't use IAM roles to log in to the SageMaker Unified Studio URL". The current user management page says: "When an IAM role logs in to the portal for the first time, the service creates a group profile for the new IAM role and IAM role session user profiles for the user federating into Amazon SageMaker Unified Studio through the IAM role." H2 agrees: IAM roles are "assumed by humans, services, or automation", need SageMakerStudioUserIAMConsolePolicy "to access the Amazon SageMaker Unified Studio interface", and "only IAM principals within the same AWS account as the domain can access the Amazon SageMaker Unified Studio portal".

Sign-in methods have not changed: the concepts page still says "your IAM user credentials or … credentials from your identity provider through the AWS IAM Identity Center or … your SAML credentials".

Associated accounts

H1: Account associations tab → Request association; "you share the root domain with the other AWS account with AWS Resource Access Manger (AWS RAM)"; the other account's admin accepts, then "must enable the necessary blueprints".

The current page confirms each step (verified 2026-11-19). The request shows status Requested. The other account uses View requests → Review request → Accept new permissions. And: "project profiles for the domain can only be created by domain administrators from the AWS account that owns the domain." To remove one you type disassociate. ⚠️ "Be sure to check the accuracy of the account IDs that you enter" — the request itself shares the domain.

Git, Amazon Q, Bedrock

Git. H1: "The quick setup also establishes a default Git connection to AWS CodeCommit". ⚠️ Superseded. The admin guide now says "You can't create new projects with AWS CodeCommit. Existing projects that were created using CodeCommit will continue to work" (legacy). Today "Every project … includes S3 shared storage by default", and Git connections go through AWS CodeConnections to five providers: GitHub, GitHub Enterprise Server, GitLab, GitLab Self-Managed and Bitbucket (H1 lists four; Bitbucket is new). ⚠️ The current concepts page still repeats the CodeCommit-default sentence. The docs contradict themselves; trust the note.

⚠️ "Enabling a Git connection grants all users in the account read and write access to all repositories on that connection", and it "makes it accessible in all domains that you own" (Git connections).

Amazon Q. H1 and the docs agree: "by default, all users … have access to the Free Tier release of Amazon Q". Disabling takes IAM deny statements plus two Systems Manager parameters (page). ⚠️ I could not verify how Amazon Q Developer Pro is configured — check the admin guide's Generative AI assistance page; today it has no procedure for it.

Bedrock. Quick setup "Configures permissions for all enabled Amazon Bedrock serverless models accessible in the AWS account and Region". Models are published through a project named GenerativeAIModelGovernanceProject, created automatically; with quick setup, "SSO users that were configured during Quick setup are also owners" (Bedrock).

Domain types: what H1 could not have known

H1 describes one kind of domain. There are now two (domains, verified 2026-11-19). Identity Center-based domains are what H1 builds. IAM-based domains use a Login IAM role and an Execution IAM role, and "Only one IAM-based domain is available per AWS Account". Everything in H1 is the Identity Center-based path. The comparison is in SM0 lesson 5; the decision is in lesson 6.

Clean-up

H1's ten steps, in order ("Clean up"):

  1. Unsubscribe from all assets.
  2. Note the names of all Glue databases and Athena workgroups your projects created.
  3. Delete connections you created in the data explorer.
  4. Note the project IDs.
  5. Delete the projects; on error, find the failed CloudFormation stack, fix it, retry.
  6. Note the domain ID.
  7. Delete the domain.
  8. Delete the S3 bucket "named amazon-datazone-AWSACCOUNTID-AWSREGION-DOMAINID".
  9. Delete the Glue databases and Athena workgroups from step 2.
  10. Delete the VPC's CloudFormation stack.

Our read: the "note" steps come first because the names are hard to recover afterwards.

⚠️ The bucket name does not match H1's own screenshot. The quick setup screen in H1 shows a bucket of the form amazon-sagemaker-<account-id>-<region>-<suffix>, and the user guide gives that same form. The Terraform module names its bucket sagemaker-studio-<account>-<region>-<suffix>. Read the name from the domain's Tooling blueprint settings; do not search for amazon-datazone-.

The delete page (verified 2026-11-19): "the act of deleting a domain is final". Not deleted: "AWS resources - except for this domain", "Subscription grants", and "Resource shares of this domain to associated accounts". You confirm by typing the domain name. ⚠️ The API offers more than H1 knew: DeleteDomain has cascadeDelete, which "cleanly removes its associated resources without leaving orphaned resources behind", and skipDeletionCheck, which "can leave orphaned resources behind". They are mutually exclusive.

Evidence for a support case: domain ID (dzd-…), Region, account ID, the role ARNs above, and the name and status of any failed CloudFormation stack.

Questions you should be able to answer as the SME

  1. Which roles does H1's quick setup ask about? Six: Domain Execution, Domain Service, Provisioning, Manage Access, Model provisioning, Model consumption (H1, "Set up domain"). The admin guide adds a seventh, AmazonSageMakerQueryExecution.
  2. Which role issues grants on our Redshift and Glue data? AmazonSageMakerManageAccess-<region>-<domainId> — it can "publish, grant access, and revoke access" (admin guide, AmazonSageMakerManageAccess).
  3. Which role provisions a project's resources? AmazonSageMakerProvisioning-<domainAccountId> (admin guide, AmazonSageMakerProvisioning).
  4. What is useVpcEndpoints? A VPC stack parameter — "This controls whether VPC endpoints are created or not." H1 keeps it false (H1, "Set up domain"). It is not in current docs.
  5. Can an IAM role log in to the portal? H1 says no. The user management page and H2 say yes; H2 limits it to the domain's own account, with SageMakerStudioUserIAMConsolePolicy attached.
  6. What do Assigned and Activated mean? Assigned: added, never logged in. Activated: has logged in (H1). API values ASSIGNED, ACTIVATED, plus NOT_ASSIGNED and DEACTIVATED.
  7. How is another account attached? Request association shares the domain through AWS RAM; the other admin accepts and enables blueprints (H1; associated accounts page).
  8. Is CodeCommit the default repository? In H1, yes. Now: "You can't create new projects with AWS CodeCommit"; default storage is S3 (admin guide, legacy Git page).
  9. What cannot be changed after creation? Domain name (H1 screenshot), SSO settings once saved, and encryption (admin guide).
  10. What survives deleting a domain? Other AWS resources, subscription grants, and RAM resource shares to associated accounts (delete-domain page).
  11. Which Identity Center instance will we get? Management account: the organization instance. Member or standalone account: an account instance (managing users page).
  12. Is quick setup meant for production? No — "intended for testing purposes", and its VPC template "is not intended for production use".

What to ask AWS next

  1. "What does the VPC template create today, and does useVpcEndpoints still exist?" It appears only in H1.
  2. "From a member account, can the domain use our organization's Identity Center instance?" The user management page says an account instance is selected; the multi-Region note implies otherwise.
  3. "Two private subnets or three?" The network settings page and the profile pages disagree.
  4. "What is the project bucket's naming pattern, and does deleting the domain remove it?" H1's text, H1's screenshot and the Terraform module give three different names.
  5. "Should we use cascadeDelete instead of H1's ten manual steps?" The API documents it; no homework document mentions it.

Check yourself

  1. Someone attaches AdministratorAccess to the provisioning role "to be safe". Which role should worry you more for existing data, and why?
  2. H1 says to refresh the domain creation page after the VPC stack completes. Why?
  3. A member-account admin runs quick setup with no Identity Center instance present. What gets created, and what does that limit?
  4. Your clean-up script looks for a bucket starting amazon-datazone-. What happens?
  5. A CI role is added to the domain. H1 says it cannot open the portal. Is that still true?
Answers
  1. The manage access role. Provisioning creates new resources; manage access is the one permitted to "publish, grant access, and revoke access" on Lakehouse, Glue Data Catalog and Redshift data.
  2. The stack is created in a separate browser tab. After the refresh, "the configuration automatically selects the VPC and private subnets".
  3. An Identity Center account instance, "so long as the account is permitted to do so". It is bound to that one account and Region, limited to one per account, and cannot serve applications in multiple accounts.
  4. It probably finds nothing. H1's own screenshot and the user guide show amazon-sagemaker-<account-id>-<region>-<suffix>. Read the name from the domain's settings.
  5. No. Current docs describe IAM roles logging in to the portal, creating a group profile plus session user profiles. H2 adds the same-account limit and the required managed policy.

Teaching this section

← PreviousThree planes and the admin's job — the vocabulary of the homeworkNext →Blueprints, project profiles, projects and authorization