概念 · SAA-C03 の発展
Least privilege for ML artifacts
Give each role the smallest S3 prefix, key, registry and data permission it needs, and use tags to scale the rules.
このレッスンはまだ翻訳されていないため、英語で表示しています。
Solutions Architect Associateで学んだこと
- Least privilege means only the permissions a task needs, and nothing more.
- Access Analyzer finds outside access and builds a policy from CloudTrail activity.
- Customer managed policies are reusable and easy to audit.
Data in S3
- Control
- Prefix-scoped policy
- Example
- Read features, write models
Encryption key
- Control
- Key policy and grants
- Example
- Role may decrypt one key
Model Registry
- Control
- Register and approve split
- Example
- Release role approves
Many teams
- Control
- Tag conditions (ABAC)
- Example
- Team tag matches
Data lake columns
- Control
- Lake Formation
- Example
- Mask personal columns
Review
- Control
- Access Analyzer
- Example
- Generate and trim policies
| Layer | Control | Example |
|---|---|---|
| Data in S3 | Prefix-scoped policy | Read features, write models |
| Encryption key | Key policy and grants | Role may decrypt one key |
| Model Registry | Register and approve split | Release role approves |
| Many teams | Tag conditions (ABAC) | Team tag matches |
| Data lake columns | Lake Formation | Mask personal columns |
| Review | Access Analyzer | Generate and trim policies |
1 / 2
Data in S3
- Control
- Prefix-scoped policy
- Example
- Read features, write models
Encryption key
- Control
- Key policy and grants
- Example
- Role may decrypt one key
Model Registry
- Control
- Register and approve split
- Example
- Release role approves
| Layer | Control | Example |
|---|---|---|
| Data in S3 | Prefix-scoped policy | Read features, write models |
| Encryption key | Key policy and grants | Role may decrypt one key |
| Model Registry | Register and approve split | Release role approves |
2 / 2
Many teams
- Control
- Tag conditions (ABAC)
- Example
- Team tag matches
Data lake columns
- Control
- Lake Formation
- Example
- Mask personal columns
Review
- Control
- Access Analyzer
- Example
- Generate and trim policies
| Layer | Control | Example |
|---|---|---|
| Many teams | Tag conditions (ABAC) | Team tag matches |
| Data lake columns | Lake Formation | Mask personal columns |
| Review | Access Analyzer | Generate and trim policies |
概要
Split data into S3 prefixes by stage: raw data, features, models and outputs. A training role may read the features prefix and write the models prefix, and nothing else. An inference role reads only the model it serves. When data is encrypted with a customer managed KMS key, the role also needs kms:Decrypt or kms:GenerateDataKey, and the key policy must allow it. A KMS grant lets an AWS service use the key for you for a short time, so you do not widen the key policy.
概要
Separate duties in the SageMaker Model Registry. Data scientists may register model versions in one model package group, and only a release role may change the approval status. Give experiment and pipeline permissions to the resources a team owns.
概要
Attribute-based access control (ABAC) uses tags to scale. Allow an action when the tag on the caller matches the tag on the resource, for example team equals team, using aws:PrincipalTag and the resource tag condition. New projects need tags, not new policies. For data lake tables, AWS Lake Formation grants permission on databases, tables and columns (and rows), and the grants apply to Athena, Glue, EMR and other readers, so you can hide a column of personal data from one team. IAM Access Analyzer reports resources shared outside your account, creates a policy from real activity, and flags unused access.
覚えること
- Separate S3 prefixes for raw data, features, models and outputs. Allow per role.
- Encrypted data needs permission on the key too: key policy plus IAM or a grant.
- Registry: many can register, few can approve.
- ABAC: caller tag equals resource tag. New project means a new tag, not a new policy.
覚えること
- Lake Formation: column-level and row-level permissions for data readers.
- Access Analyzer: outside access, policy generation, unused access.
試験では
- “Training role may read features but never raw data” points to a policy scoped to the features S3 prefix.
- “Only the release team may approve models” points to a separate permission for changing the model package approval status.
- “Scale access to many teams without new policies” points to ABAC with tag conditions.
- “Hide a personal data column from analysts” points to Lake Formation column permissions.
混同しやすいもの
- IAM roles for SageMaker and ML workloadsTwo identities are involved: the person or app who calls the API, and the execution role SageMaker assumes. PassRole joins them.
- Encryption and data protection for MLEncrypt data at rest with KMS in each place ML touches it, encrypt traffic in transit, and keep secrets out of code.
- Bedrock access controlIAM decides which models and profiles a caller may invoke. SCPs and a guardrail condition enforce the rules for everyone.
このタスクの内容 · 4.3
- Scanning code and images in CI/CD
- Least privilege for ML artifacts
- IAM roles for SageMaker and ML workloads
- Bedrock access control
- Credential types for Bedrock
- Auditing, logging and compliance for ML
- Troubleshooting ML security issues
- Isolating ML systems with VPCs
- Encryption and data protection for ML
- AI and ML security risks
Guardrails