Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Last day of our Black Friday sale: an extra 40% off every course.Last day of our New Year sale: an extra 30% off every course.Last day of our Memorial Day sale: an extra 25% off every course.Last day of our SysAdmin Day sale: an extra 25% off every course.Last day of our Back to School sale: an extra 25% off every course.Last day of our Labor Day sale: an extra 25% off every course.Last day of our Black Friday sale: an extra 40% off every course.Last day of our New Year sale: an extra 30% off every course. Ends at midnight ETChoose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

5.3.1. IAM Roles, Policies, and Least Privilege Access

💡 First Principle: In AWS, nothing has permission to do anything by default. Every action—starting a training job, reading from S3, deploying an endpoint—requires explicit permission through IAM. The principle of least privilege means granting only the exact permissions needed for a specific task, nothing more. Over-permission is the single most common security vulnerability in ML systems.

SageMaker interacts with IAM through execution roles—IAM roles that SageMaker assumes when performing tasks on your behalf. When you launch a training job, SageMaker assumes the execution role to read training data from S3, write model artifacts back to S3, and push logs to CloudWatch. That role must have permissions for exactly those actions and no others.

Persona-based roles keep this manageable: define one execution role per persona (data scientist, ML engineer, ML admin) from the AWS managed policies for SageMaker AI plus scoped custom policies, and keep the definitions in AWS CloudFormation or AWS CDK so they are repeatable and reviewed. IAM Access Analyzer can then generate a least-privilege policy from the actions a role actually used, as recorded in CloudTrail. The exam may present a scenario where a data scientist needs to train models but shouldn't be able to deploy them—separate persona roles handle this separation.

Key IAM concepts the exam tests:

Identity-based policies attach to IAM users, groups, or roles and define what actions the identity can perform. Example: "This role can call sagemaker:CreateTrainingJob and s3:GetObject on the training-data bucket."

Resource-based policies attach to resources themselves and define who can access them. Example: an S3 bucket policy that allows only a specific SageMaker execution role to read training data.

Service control policies (SCPs) in AWS Organizations restrict what any account in the organization can do, regardless of individual IAM permissions. Useful for enforcing guardrails like "no SageMaker resources outside us-east-1."

⚠️ Exam Trap: When a question asks about restricting access to training data, the answer often involves both an IAM role policy (who can access) and an S3 bucket policy (from where). Providing only one is incomplete. The exam tests defense-in-depth—multiple overlapping controls.

Reflection Question: A company wants to ensure that data scientists can train models but cannot access production endpoints, while ML engineers can deploy models but cannot modify training data. How would you structure IAM roles and policies to enforce this separation?

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned