A data engineer configures Amazon SageMaker Studio to use AWS Glue interactive sessions for data preparation but receives an AccessDenied error when attempting to prepare data. What change should the engineer make to obtain access to SageMaker Studio?
Choose an answer
Tap an option to check your answer.
Correct answer: Add a policy to the data engineer's IAM user that includes the sts:AssumeRole action for the AWS Glue and SageMaker service principals in the trust policy..
Why this is the answer
The sts:AssumeRole action is necessary for an IAM user to temporarily assume an IAM role, which grants the user the permissions defined in that role. When SageMaker Studio uses AWS Glue interactive sessions, it operates under a service role. The data engineer's IAM user needs permission to assume this service role (or a role that can assume it) to perform actions like data preparation within Glue. The trust policy of the assumed role must allow the SageMaker and Glue service principals to assume it. Adding AWSGlueServiceRole to the user directly is incorrect because this is a service-linked role, not a role for users to assume. AmazonSageMakerFullAccess grants broad SageMaker permissions but doesn't inherently provide the sts:AssumeRole permission needed to interact with Glue interactive sessions via a service role. sts:AddAssociation is not a valid or relevant action for this scenario; sts:AssumeRole is the correct action for cross-service or cross-account access.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed