Lesson 10 of 36 · see all lessons
  1. Start here: cloud concepts (domain 1, 24%)

    1. 1. Start here: the exam, the plan and what you already know
    2. 2. What the cloud is: benefits, service models and deployment models
    3. 3. AWS global infrastructure: Regions, Availability Zones and edge locations
    4. 4. Cloud economics: what you pay for on-premises vs in the cloud
    5. 5. The AWS Well-Architected Framework: six pillars
    6. 6. Moving to AWS: the Cloud Adoption Framework and migration strategies
  2. Security and identity (domain 2, 30%)

    1. 7. The shared responsibility model: who secures what
    2. 8. IAM basics: users, groups, roles and policies
    3. 9. Protecting the root user, MFA and credentials
    4. 10. Identity at scale: IAM Identity Center, federation and cross-account access
    5. 11. Encryption and keys: protecting data at rest and in transit
    6. 12. Threat protection: Shield, WAF, GuardDuty, Inspector and Security Hub
  3. Governance, ways of working and compute (domains 2 and 3)

    1. 13. Logging, auditing and compliance: CloudWatch, CloudTrail, Config and Artifact
    2. 14. Governing many accounts: Organizations, Control Tower and Service Catalog
    3. 15. Ways to use AWS: console, CLI, SDKs and infrastructure as code
    4. 16. Amazon EC2: virtual servers and instance types
    5. 17. Elasticity: Auto Scaling and Elastic Load Balancing
    6. 18. Containers and serverless: ECS, EKS, Fargate, Lambda and more
  4. Storage, databases and networking (domain 3, 34%)

    1. 19. Block and file storage: EBS, instance store, EFS and FSx
    2. 20. Amazon S3: buckets, storage classes and lifecycle policies
    3. 21. Hybrid storage, backup and disaster recovery
    4. 22. Databases: RDS, Aurora, DynamoDB, ElastiCache and more
    5. 23. Networking: VPCs, subnets, gateways and security layers
    6. 24. Connecting and delivering: Route 53, CloudFront, VPN and Direct Connect
  5. Analytics, AI, integration and more (domain 3)

    1. 25. Analytics services: Athena, Glue, Kinesis, Redshift and Quick
    2. 26. AI and machine learning services: SageMaker AI, Lex, Rekognition and Amazon Q
    3. 27. App integration and business apps: SQS, SNS, EventBridge, Connect and SES
    4. 28. Developer tools, end-user computing, Amplify and IoT
  6. Billing, pricing and support, then exam practice (domain 4, 12%)

    1. 29. Pricing models: On-Demand, Savings Plans, Reserved, Spot and Dedicated
    2. 30. Billing and cost tools: Budgets, Cost Explorer, Pricing Calculator and tags
    3. 31. AWS Support plans, Trusted Advisor and where to get help
    4. 32. Final review and exam day: every decision on one page
    5. 33. Mock exam 1
    6. 34. Mock exam 2 Exam Pack · $12
  7. Extra practice: mock exams 3 and 4

    1. 35. Mock exam 3 Exam Pack · $12
    2. 36. Mock exam 4 Exam Pack · $12
See the leaderboard

17 min

Identity at scale: IAM Identity Center, federation and cross-account access

Give a workforce single sign-on to many accounts, federate identities and let apps sign users in.

By the end of this lesson you can

  • Explain what AWS IAM Identity Center gives a workforce
  • Describe identity federation and why AWS recommends it for people
  • Choose a cross-account role, Amazon Cognito or AWS Directory Service from a scenario
  • Spot the word that separates staff sign-in from customer sign-in

From earlier lessons · 1 of 2

An app on Amazon EC2 needs to read files from Amazon S3. Which option gives it access with the LEAST risk of leaked credentials?

Pick one answer.

From earlier lessons · 2 of 2

A company stores a database password that must change automatically every 30 days. Which AWS service fits?

Pick one answer.

Cedar Lane Books now runs three AWS accounts: one for testing, one for the live shop, one for finance. Forty staff already sign in to email with a company login. An outside auditor wants read-only access for two weeks. And the website team wants shoppers to create accounts and sign in with Google. Creating an IAM user for every person in every account would take days and leave a mess.

[3]

Two ways to manage identities

Exam depth: know it cold.

An identity is a person or app that needs access. You can manage identities in two ways.

  • Per-account IAM users: you create a user, with its own password or keys, inside each AWS account. Ten accounts means ten logins per person.
  • Centralized, or federated: people keep one login in one directory. AWS trusts that directory and hands out short-term access.

AWS recommends the second way for people. Its best practice is that human users sign in through an identity provider (IdP), a system that stores logins, such as Okta or Microsoft Entra ID. IAM users stay for rare cases.

[94]

AWS IAM Identity Center: one sign-in, many accounts

Exam depth: know it cold.

AWS IAM Identity Center gives your workforce one sign-in to many AWS accounts and business apps. Its former name was AWS Single Sign-On (renamed in July 2022).

Staff sign in once to the AWS access portal, a web page that lists every account and app they may use.

Where do the users live? You pick one identity source:

  • An external IdP, such as Okta or Microsoft Entra ID.
  • Your Active Directory, on premises or managed by AWS.
  • The built-in Identity Center directory, where you create users yourself.

The recommended setup runs in the AWS Organizations management account. That lets it manage access across every account in the organization.

[91][93]

A permission set is a template of one or more IAM policies, for example "Database Admin" or "Read only". You assign a permission set to a user or group for one or more accounts.

Behind the scenes, Identity Center creates a matching IAM role in each of those accounts. When a person picks that role in the portal, they get short-term credentials. No long-term passwords or keys sit in the accounts.

Change the permission set once, and Identity Center updates the roles in every account.

[92][94]

Rendering diagram…
One login at the company IdP. Identity Center turns permission sets into short-term access in each account.

[92][93]

Cedar Lane Books has 40 staff who already sign in with Microsoft Entra ID. They need access to three AWS accounts in AWS Organizations without new passwords. Which AWS service meets these requirements with the LEAST operational overhead?

Pick one answer.

[91][93]

Identity federation

Exam depth: know it cold.

Identity federation means AWS trusts logins from an outside identity provider, so you don't create IAM users. Users sign in at the IdP, and AWS gives them temporary access.

The IdP and AWS talk through open standards:

  • SAML 2.0 (Security Assertion Markup Language), common for company directories.
  • OIDC (OpenID Connect), common for web logins and outside apps.

Federation keeps accounts safer because no long-term keys get handed out or built into apps. For many accounts, federate through IAM Identity Center. A single, standalone account can set up federation directly in IAM.

[94]

Cross-account IAM roles

Exam depth: know it cold.

A cross-account role is an IAM role that another account may assume. To assume a role means to step into it for a while. The role's trust policy names the account that may use it. Its permissions policy says what they can do.

While someone uses the role, they get temporary credentials and only the role's permissions. Their own permissions pause until they leave the role.

For an outside company, such as an auditor or a monitoring partner, the role is the right tool too. You never share access keys. You give them the role's ARN, its unique name, and usually an external ID, an agreed value they must send. Anything they do is billed to your account.

[95][96]

Watch it happen · 12 s

An auditor assumes a read-only role

Cedar Lane creates a read-only role whose trust policy names the auditor's account.

Scene 1 of 4

[95]

An external audit firm has its own AWS account. It needs read-only access to a company's AWS account for two weeks. Which option is the MOST secure?

Pick one answer.

[96]

Me with 40 staff, 3 accounts and an IAM user for each: 120 passwords. Me with IAM Identity Center: one login each. Picture: Classic two-panel reaction meme, cartoon style.

Amazon Cognito: sign-in for your app's customers

Exam depth: know it cold.

Amazon Cognito adds sign-up and sign-in to your own web and mobile apps. Its users are your customers, not your staff. It has two parts:

  • User pools: a user directory for your app. People sign up with email and a password, or sign in with Google, Apple, Facebook or Amazon. This is called social login. Most apps start here.
  • Identity pools: swap a user's login for temporary AWS credentials, so the app can, say, upload a photo to Amazon S3 for that user. They can even serve guest users.

Cognito can also connect to enterprise SAML or OIDC providers.

[97]

[94]

AWS Directory Service

Exam depth: recognize it.

Microsoft Active Directory (AD) is the directory many companies use to manage Windows logins, groups and computers. AWS Directory Service lets you use AD with AWS.

  • AWS Managed Microsoft AD: a real Microsoft AD that AWS runs for you. Use it when apps need actual AD, such as SharePoint, SQL Server or many .NET apps.
  • AD Connector: a proxy that lets AWS services, like Amazon WorkSpaces, use your existing on-premises AD.

The scenario says "Active Directory", "Windows apps" or "LDAP"? Think Directory Service.

[99]

Pick the identity tool

Exam depth: know it cold.

The scenario saysPick
Staff, many AWS accounts, single sign-on, existing company login.AWS IAM Identity Center
Use our existing IdP, no IAM users, SAML or OIDC.Identity federation (through Identity Center for many accounts).
Another AWS account, auditor, partner, temporary access.Cross-account IAM role
Customers, mobile app, sign up, sign in with Google.Amazon Cognito
Active Directory, Windows apps, LDAP.AWS Directory Service

Decision rule: ask who signs in. Staff go through Identity Center, customers through Cognito, another AWS account through a role, and AD-dependent apps through Directory Service.

[94][99]

Match

Match each Cedar Lane Books need to the AWS identity tool

Pick an item on the left, then its match on the right.

[94][97]

Exam-style practice

A fitness startup is building a mobile app. Users must sign up with email or sign in with their Apple or Google accounts. Which AWS service meets these requirements?

Pick one answer.

[97]

A company wants employees to use their existing corporate identity provider to reach AWS. It does not want to create IAM users. Which concept describes this?

Pick one answer.

[94]

A company moves a Microsoft SharePoint farm to Amazon EC2. SharePoint needs Microsoft Active Directory, and the company does not want to run domain controllers itself. Which AWS service should it use?

Pick one answer.

[99]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 15

[91][92][94][96][97][99]

Worth keeping

  1. IAM Identity Center gives staff one sign-in to many accounts, using permission sets.
  2. Federation reuses an existing identity provider over SAML 2.0 or OIDC, with no IAM users.
  3. Another AWS account or an auditor gets a cross-account role, never shared keys.
  4. Amazon Cognito signs in your app's customers. Directory Service brings Active Directory.
  5. The word that decides it: who signs in, and to what.

On the job

When a new hire joins Cedar Lane Books, IT adds them to a group in the company directory. Identity Center picks that up, and the next morning they see the right accounts in the access portal. When someone leaves, IT disables one login and every AWS door closes.

In sales or project management, customers love one line. "Your staff keep the login they already have." It shortens security reviews and onboarding plans.

Now the right people can get in. But what if someone steals the hard drive, or listens on the wire? Next lesson: encryption, keys and certificates.

Leaderboard

Loading…

50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (9)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [3]AWS: CLF-C02 Content Domain 2: Security and Compliance
  2. [91]AWS: What is IAM Identity Center?
  3. [92]AWS: Manage AWS accounts with permission sets
  4. [93]AWS: Manage your identity source
  5. [94]AWS: Identity providers and federation into AWS
  6. [95]AWS: Access for an IAM user in another AWS account that you own
  7. [96]AWS: Access to AWS accounts owned by third parties
  8. [97]AWS: What is Amazon Cognito?
  9. [99]AWS: What is AWS Directory Service?