Which TWO actions should be taken to enforce Least Privilege access for developers interacting with SageMaker Model Monitor?
Trap 1: Allow all 'iam:PassRole' actions
Allowing all pass-role actions is a severe security risk.
Trap 2: Assign the 'SageMakerFullAccess' managed policy
SageMakerFullAccess grants broad permissions across the entire SageMaker service, directly violating least privilege for Model Monitor work. Least privilege requires a scoped custom policy limited to monitoring actions and specific resources. It is tempting because it guarantees the developer can perform every monitoring task, but that breadth is precisely the problem.
Trap 3: Enable root access to the underlying EC2 instance
Root access to the underlying EC2 instance grants unrestricted control of the host, directly violating least privilege by giving developers far more than the SageMaker Model Monitor permissions they need. Least privilege requires scoped IAM roles and policies. Root access would be the correct choice only for administrative host maintenance by authorised infrastructure owners, not developers.
- A
Allow all 'iam:PassRole' actions
Why it fails: Allowing all pass-role actions is a severe security risk.
- B
Restrict access to the 'sagemaker:CreateModelMonitor' action
Limiting this action prevents unauthorized creation of monitoring jobs.
- C
Grant s3:PutObject on the bucket containing baseline data
Baseline data access is required for monitoring jobs.
- D
Assign the 'SageMakerFullAccess' managed policy
Why it fails: SageMakerFullAccess grants broad permissions across the entire SageMaker service, directly violating least privilege for Model Monitor work. Least privilege requires a scoped custom policy limited to monitoring actions and specific resources. It is tempting because it guarantees the developer can perform every monitoring task, but that breadth is precisely the problem.
- E
Enable root access to the underlying EC2 instance
Why it fails: Root access to the underlying EC2 instance grants unrestricted control of the host, directly violating least privilege by giving developers far more than the SageMaker Model Monitor permissions they need. Least privilege requires scoped IAM roles and policies. Root access would be the correct choice only for administrative host maintenance by authorised infrastructure owners, not developers.