Prepstellar

SAA-C03 · Secure Access to AWS Resources

22 cards

Federated Identity, Roles, and Cross-Account Access

Swipe, scroll or use ← →
  1. Authenticate in one place, act as a role

    Federation exists so that people do not need an AWS identity of their own. They already have a corporate one; the job is to turn that into AWS permissions for a limited time.

    Federated human users authenticate with an identity provider and assume roles that provide temporary AWS credentials.

    Two distinct things happen, and scenario questions almost always hinge on telling them apart:

    Step Question it answers Who supplies it
    Authentication Who is this person? The identity provider
    Authorization What may they do in AWS, and for how long? The assumed role
    1 / 22
  2. Authenticate in one place, act as a role

    So the reading order for any federation question is fixed: identify the authentication source first and the AWS permission-bearing identity second.

    Notice what federation deliberately avoids. Nobody receives permanent root credentials, and nobody needs a long-term access key created in each account. The credentials are temporary and their reach is exactly the role's, no wider.

    An organization-level permissions ceiling is also not part of this path. A ceiling limits what an identity may do; it never authenticates anybody and never hands out access.

    2 / 22
  3. Quick check

    What do federated human users receive when they assume a role in AWS?

    1. ATemporary credentials limited to the assumed role

      Right. The identity provider authenticates the person, and the role supplies a temporary session carrying that role's permissions.

    2. BLong-term access keys created in each destination account

      Creating long-term keys per account is exactly what federation removes the need for.

    3. CPermanent root credentials for the destination account

      Root credentials are permanent and unrestricted, which is the opposite of a bounded temporary session.

    3 / 22

  4. IAM Identity Center as one point of federation

    When workforce access spans several accounts, doing federation separately per account becomes the problem. IAM Identity Center provides one point of federation for access to AWS accounts and applications.

    Choose IAM Identity Center when workforce access to multiple AWS accounts needs one centrally managed point of federation. That sentence is the selection rule: many accounts, one workforce, one place to manage the mapping.

    4 / 22
  5. IAM Identity Center as one point of federation

    Identity Center does not force a company to abandon the directory it already runs. IAM Identity Center can connect an existing identity provider and synchronize directory users and groups, or it can create and manage users directly.

    A directory can be federated through IAM Identity Center by connecting the external identity provider and synchronizing its users and groups. The existing users and groups become the basis of AWS access assignments instead of being re-created by hand.

    Identity source How it works
    An existing identity provider Connect it, then synchronize its users and groups
    Identity Center itself Create and manage the users directly

    What is not a federation path: turning directory groups into account root users, naming a directory group as the principal in a policy attached to a resource, or expecting a permissions ceiling to issue credentials.

    5 / 22
  6. Quick check

    A company wants to reuse the users and groups from its existing workforce directory in AWS. Which path is supported?

    1. ARepresent each directory group as the principal in a resource policy

      A resource policy names authenticated principals for a resource; it is not how a workforce directory is federated into AWS.

    2. BCreate a root user per directory group and share the keys

      Sharing root credentials replaces federation with the least secure option available and manages nothing centrally.

    3. CConnect the identity provider and synchronize its users and groups

      Right. Identity Center can connect the external identity provider and synchronize its users and groups for central assignment.

    6 / 22

  7. Two instance types, two scopes

    Identity Center comes in two shapes, and the difference is entirely about how far an assignment can reach.

    An organization instance is the IAM Identity Center instance type that can manage access to AWS accounts. An account instance is bound to one AWS account and supports isolated deployments of selected AWS managed applications.

    Instance type Scope Use it for
    Organization instance The organization's accounts Managing workforce access to AWS accounts
    Account instance One AWS account Isolated deployments of selected AWS managed applications

    Let the required assignment scope decide. If the requirement says "assign access across our accounts", only the organization instance reaches that far; an account instance is confined to the single account it lives in.

    7 / 22
  8. Quick check

    Which IAM Identity Center instance type can manage access to AWS accounts?

    1. AAn account instance bound to one isolated deployment

      An account instance is bound to a single AWS account and serves isolated deployments of selected managed applications.

    2. BAn organization instance, which can manage access to AWS accounts

      Right. The organization instance is the type that manages access to AWS accounts.

    3. CA role session obtained from AWS STS

      A role session is temporary access obtained at run time, not an Identity Center instance type.

    8 / 22

  9. Keep your progress in the app

    That’s 3 of 9 quick checks. In the app they stay answered, and every lesson remembers where you left off.

  10. Adding Identity Center without disturbing what works

    Adoption rarely happens on a clean slate, and it does not have to. Existing IAM federation workflows can continue to provide AWS account access when IAM Identity Center is introduced for AWS managed applications.

    An existing IAM federation workflow can remain in place when the requirement is to preserve current AWS account access while adding Identity Center application access.

    That gives a staged path: application access moves to Identity Center now, account sign-in stays exactly as it is, and nothing has to be cut over in one quarter.

    9 / 22
  11. Quick check

    A company federates workforce access to its AWS accounts through IAM today and now needs centralized access to AWS managed applications, but account sign-in workflows cannot change this quarter. What should it do?

    1. AReplace every federation path at once with long-term users in each destination account

      A forced cutover breaks the stated constraint and replaces federation with the long-term credentials it was meant to avoid.

    2. BUse temporary role sessions on their own as the application access portal

      Temporary role sessions provide access to AWS resources; on their own they are not a directory or an application access portal.

    3. CAdd Identity Center for the applications and keep the IAM federation

      Right. Existing IAM federation can keep providing account access while Identity Center is introduced for managed applications.

    10 / 22

  12. Temporary sessions and what bounds them

    Roles are not only for people. AWS STS AssumeRole returns temporary credentials whose actions are limited to the permissions of the assumed role.

    Both halves matter. The credentials are temporary, so nothing long-lived has to be stored, and their reach is the role's permissions, so the caller's own privileges are irrelevant during the session.

    What AssumeRole does not return is just as testable: not a permanent access key for the caller, not a policy attached to the destination resource, and not a new user in the account that owns the role.

    11 / 22
  13. Quick check

    What does a call to AWS STS AssumeRole return?

    1. ATemporary security credentials for the role session

      Right. The call returns a temporary session whose actions are limited to the assumed role's permissions.

    2. BA permanent access key for the caller

      Nothing permanent is issued; avoiding long-term keys is the point of the mechanism.

    3. CA resource-based policy attached to the destination resource

      A policy on a resource is configuration written in advance, not something a session request hands back.

    12 / 22

  14. Switching replaces, it never accumulates

    The most common misconception about roles is that a switched role adds to what you already had. It does not.

    A console user who switches to a role gives up the original permissions and receives them back after exiting the role. Only one permission set is effective while a user is operating through a switched role.

    Moment Effective permissions
    Before switching The user's own
    While in the role The role's, and only the role's
    After exiting The user's own again
    13 / 22
  15. Switching replaces, it never accumulates

    This single-set behavior is what makes role switching useful for risky work. An operator who switches into a production role for one narrow task is not carrying development privileges into that session, so a mistake cannot reach beyond the role. And because the change is temporary, the original privileges come back on exit rather than being lost.

    Rule out the two tempting misreadings: permissions are not combined for the duration, and the original set is not deleted permanently.

    14 / 22
  16. Quick check

    An operator switches to a production role for one task, must not keep development privileges during it, and needs them back afterwards. What behavior provides this?

    1. ABoth permission sets stay active until the session ends

      Permissions are not combined: only one set is effective while the user operates through the switched role.

    2. BOnly the production-role permissions are active, and the original set returns on exit

      Right. Switching replaces the active permissions for the duration and restores the original set when the user exits.

    3. CThe original permissions are removed for good

      Nothing is deleted; exiting the role returns the user to the original permissions.

    15 / 22

  17. Cross-account access has two halves

    Reaching into another account is never a one-sided configuration. Both accounts have to agree, and each does it differently.

    For cross-account role access, the destination account creates a role that trusts the originating account and grants permissions to destination resources. The originating account must grant its identity permission to call sts:AssumeRole on the destination role.

    Side What it configures If it is missing
    Destination account A role that trusts the origin and carries permissions to its own resources There is nothing to assume
    Originating account Permission for its identity to call sts:AssumeRole on that role The identity may not make the call

    Cross-account role access avoids creating an individual IAM user in every destination account — one role, trusted once, instead of a user per person per account.

    16 / 22
  18. Cross-account access has two halves

    Because the origin-side grant is separate, it doubles as a filter. Suppose developers in one account need temporary write access to a single bucket in another account, analysts in the same account must not get it, and no duplicate users may be created in the destination.

    The design writes itself from the two halves: create a role in the destination limited to that bucket, trust the originating account in it, and on the origin side allow only the developers to call sts:AssumeRole on it. Analysts are excluded precisely because they never receive that grant.

    The failure modes are the mirror image. A shared user with long-term keys creates the duplicate identity the constraint forbids and separates nobody. Trusting the origin while granting no sts:AssumeRole permission leaves a role that nobody can use. And expecting original permissions to survive the switch contradicts how role sessions work.

    17 / 22
  19. Quick check

    Developers in one account need temporary write access to a single bucket in another account, analysts from the same account must not, and no duplicate users may be created there. Which design works?

    1. ACreate a shared user in the destination account and give both teams its long-term keys

      A shared user is the duplicate destination identity the requirement rules out, and shared keys separate the two teams not at all.

    2. BTrust the origin in the destination role, adding nothing on the origin side

      Trust alone is half the path: without the origin-side permission to call the role, no one can assume it.

    3. CA narrow destination role that trusts the origin, assumable only by developers

      Right. The destination role carries the narrow permissions and the trust, and the origin-side grant limits who may assume it.

    18 / 22

  20. Interactive or programmatic

    The last choice is about who is doing the assuming. Use console role switching for an interactive user and AssumeRole for programmatic access that needs temporary credentials.

    Caller Mechanism Why
    A person working in the console Switch Role The session follows the browser and can be exited
    Application or script code sts:AssumeRole Code receives temporary credentials it can use directly

    An application should never be built around a console session, and a permissions ceiling is not a credential source for either caller.

    19 / 22
  21. Quick check

    An application needs programmatic cross-account access without long-term credentials. Which mechanism fits?

    1. ACall AWS STS AssumeRole and use the temporary credentials it returns

      Right. Programmatic role assumption gives code a bounded temporary session limited to the role's permissions.

    2. BUse console role switching and store the browser session

      Console switching is designed for an interactive user; a browser session is not credentials for an application.

    3. CCreate a permanent root access key in the destination

      A permanent root key is long-term and unrestricted, which the requirement explicitly excludes.

    20 / 22

  22. Key takeaways

    • Separate the two steps: the identity provider authenticates federated users, and the assumed role supplies temporary AWS credentials.
    • One point of federation: Identity Center centralizes workforce access to AWS accounts and applications, using a connected identity provider with synchronized users and groups, or users it manages itself.
    • Match the instance to the scope: an organization instance manages access to AWS accounts; an account instance is bound to one account for isolated deployments of selected managed applications.
    • Adopt without a cutover: existing IAM federation can keep providing account access while Identity Center is added for applications.
    • Sessions replace, not accumulate: AssumeRole returns temporary credentials limited to the role, and only one permission set is effective while a user operates through a switched role.
    • Configure both sides: the destination account creates the trusting role with its permissions, and the originating account allows its identity to call sts:AssumeRole.
    21 / 22
  23. Quick check

    Which summary of a cross-account path is correct?

    1. AThe origin creates the role, and the destination grants itself the trust it needs

      The role lives in the destination account, which is where the trust and the resource permissions are defined.

    2. BDestination trusts the origin; the origin allows the call

      Right. The destination role trusts the originating account, and the origin grants its identity permission to assume that role.

    3. CBoth accounts create identical roles that share one set of credentials

      Duplicating roles and sharing credentials defeats the purpose of cross-account access, which avoids per-account identities.

    22 / 22

  24. 9 quick checks · then the test

    In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.

The whole course, on your phone

Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.