ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

概念 · 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.
Solutions Architect Associateのレッスンを読む
  • 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
One control per layer.

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

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
One control per layer.
Role tagged team: fraud
Tags match
Resource tagged team: fraud
allowed
ABAC lets one policy serve many teams.

概要

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.