SAP 3: Identity & Federation

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/118

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

119 Terms

1
New cards

RTO

Recovery Time Objectives

2
New cards

RPO

Recovery Point Objectives

3
New cards

KMS keys are protected by...

FIPS 140-2 validated hardware security modules (HSM)

4
New cards

HSM

Hardware Security Module

5
New cards

Which keys does KMS protect?

Root Keys

6
New cards

How do you manage who has access to KMS Keys?

Create and manage key policies

7
New cards

What permissions are required by a user to access the KMS console?

KMS permissions list IAM users & roles

8
New cards

What's the name of the managed policy for users to work with KMS?

AWSKeyManagementServicePowerUser

9
New cards

JSON IAM Policies have what fields?

effect

10
New cards

In an IAM Policy

what happens if there is a conflicting DENY and ALLOW?

11
New cards

What tools can be used to verify least privilege?

Access advisor

12
New cards

What is Access Advisor?

See permissions granted and when last accessed

13
New cards

What is access analyzer?

Analyze resources that are shared with an external entity. use zone of trust to determine what counts as "findings"

14
New cards

access advisor vs access analyzer?

access advisor shows granted permission and last access

15
New cards

What can an IAM policy be attached to?

user

16
New cards

Types of identity based policies?

AWS managed

17
New cards

Are additional permissions required for performing actions in the IAM console?

Yes

18
New cards

AWS managed policies

administrator vs power user?

19
New cards

What NotAction restrictions are on the PowerUserAccess policy?

iam:CreateServiceLinkedRole
iam:DeleteServiceLinkedRole
iam:ListRoles
organizations:DescribeOrganization
account:ListRegions

20
New cards

NotAction vs Effect:Deny

NotAction = exception to action
Effect:Deny = deny access to indicated resource/action

21
New cards

Types of IAM Policies Conditions

String (i.e. stringEquals)

22
New cards

List types of IAM Policies Variables and Tags

AWS Specific

23
New cards

When using a role for attaching a resource policy

the role is acting as a _____

24
New cards

IAM Role vs Resource Based Policies

With role

25
New cards

When using a resource-based policy

the principal doesn't have to give up any __________

26
New cards

What is an IAM permission boundary?

Define what is allowed

27
New cards

What are IAM permission boundary uses cases?

-delegate responsibilities to non administrators with their permission boundaries

-allow developers to self-assign policies without overreaching

-useful to restrict one specific user. Easier than using organization SCP

28
New cards

What resources are analyzed by Access Analyzer?

S3 buckets

IAM roles

KMS Keys

Lambda Functions & Layers

SQS queues

Secrets Manager Secrets

29
New cards

What is a zone of trust in access analyzer?

AWS Account or Organization

30
New cards

Features of IAM Access Analyzer

Policy Validation Policy Generation

31
New cards

What is IAM Access Analyzer Policy Validation?

Provides recommendations against best practices

32
New cards

What is IAM Access Analyzer Policy Generation?

Generates IAM policy based on access activity Uses cloudtrail logs to generate Up to 90 days

33
New cards

Up to how many days can cloudtrail logs be analyzed for IAM Access analyzer Policy Generation?

90 days

34
New cards

What is STS?

Security Token Service Request temporary

35
New cards

Through what endpoint do you retrieve temporary STS credentials?

AssumeRole API

36
New cards

What time range can STS credentials be valid for?

15 min - 12 hour

37
New cards

What are some use cases for assuming a role using STS?

Provide access for a user on another account or 3rd party Provide access for services Provide access for externally authenticated users

38
New cards

What permissions are required and what line is added to revoke active sessions for a role?

Required: PutRolePolicy Inline policy: AWSRevokeOlderSessions

39
New cards

What are the benefits of using role based access?

-Users must be granted permission explicitly -Users must actively switch (console

40
New cards

What is a zone of trust?

accounts

41
New cards

What service would be used to determine which resources are used outside zone of trust?

Access Analyzzer

42
New cards

List steps to grant access to 3rd party

Account ID external ID (secret between you and 3rd party) IAM policy permissions

43
New cards

What type of attack does an external ID prevent when granting access to a 3rd party?

confused deputy

44
New cards

What is a confused deputy attack?

When an external ID is not used

45
New cards

What is a session tag in STS?

Tags passed when you assume a role or federate a user in STS. Can be used to require a 3rd party to pass a tag to access specific resources

46
New cards

What is the condition name for requiring a tag for a 3rd party to access an STS enabled resource?

aws:PrincipalTag

47
New cards

Which API to access a role within your account or cross-account?

AssumeRole

48
New cards

Which API to return credentials for users logged with SAML?

AssumeRoleWithSAML

49
New cards

Which API to return credentials for users logged with an ldP?

AssumeRoleWithWebIdentity

50
New cards

IdP

Identity Provider (i.e. facebook etc)

51
New cards

What is the preferred option over the API AssumeRoleWithWebIdentity?

AWS Cognito

52
New cards

Which API is used for MFA

from a user or AWS account root user?

53
New cards

Which API is used to obtain temporary creds for a federated user

usually a proxy app that will give the creds to a distributed app inside a corporate network?

54
New cards

When would you use identity federation over an IAM user?

User management is outside AWS (i.e. active directory

55
New cards

What are some example of identity federation flavors?

SAML Custom Identity Broker Web Identity Federation with(out) Amazon Cognito SSO

56
New cards

SAML

Security Assertions Markup Language

57
New cards

ADFS

Active Directory Federation Services

58
New cards

SAML definition?

Open standard used by many identity providers (such as ADFS)

59
New cards

What does SAML use under the hood? (API)

STS API AssumeRoleWithSAML

60
New cards

SAML vs AWS SSO?

SSO is the new and simpler way

61
New cards

IdP

Identity Provider

62
New cards

SAML Federation steps

App makes Auth request to IdP Authenticates with identity store Return SAML assertion to user User calls AssumeRoleWithSAML API to STS STS returns temporary credentials User can access AWS APIs

63
New cards

IdP vs Active Directory FS

authentication happens with AD

64
New cards

What to use if IdP is NOT compatible with SAML 2.0?

Custom Identity Broker Application

65
New cards

What is the trick with using a custom identity broker?

the IdP must determine the appropriate IAM role

66
New cards

Which AWS APIs would a custom identity broker use?

STS APIs: AssumeRole or GetFederationToken

67
New cards

What is Web Identity Federation?

Web identity federation allows you to create AWS-powered mobile apps that use public identity providers (such as Amazon Cognito

68
New cards

Which API is used by Web Identity Federation?

AssumeRoleWithWebIdentity

69
New cards

OIDC

OpenID Connect

70
New cards

Web Identity Federation with Cognito steps

Login ID Token from IdP ID Token to Cognito Cognito Token from Cognito Cognito Token to STS Get Temporary Security Credentials

71
New cards

Cognito benefits?

Support anonymous users Supports MFA Data Synchronization

72
New cards

TVM

Token Vending Machine

73
New cards

Can you use IAM Policy for cognito auth?

Yes

Examples:

cognito-identity.amazonaws.com:sub

www.amazon.com:user_id

graph.facebook.com:id

account.google.com:sub

74
New cards

AD Objects are organized as ______

trees

75
New cards

What is ADFS used for?

SSO across apps

76
New cards

List AWS Directory Services

AWS Managed Microsoft AD AD Connector Simple AD

77
New cards

What is AWS Managed Microsoft AD

Create your own AD in AWS

78
New cards

What is an AD Connector

Directory Gateway (proxy) to redirect to on-prem AD

79
New cards

What is Simple AD

AD-compatible managed directory

80
New cards

Benefits of using AWS Managed Microsoft AD

-EC2 Windows instances can join the domain -Domain join EC2 instances from multiple accounts & VPCs -Integrates with RDS

81
New cards

What are the 3 types of forest trusts between AWs Microsoft AD and on-prem AD?

One way trust: AWS => On-Premise
One way trust: On-premise => AWS
Two way trust: AWS

82
New cards

Is replication supported between AWS Microsoft AD and On-prem?

No

83
New cards

Forest trust == synchronization?

No. Users live independently but 2 ADs can talk to each other.

84
New cards

on-prem AD DC in VPC can talk to on-prem AD?

Yes

85
New cards

Can replication be configured between on-prem and AWS AD?

Yes

86
New cards

Give an example of AD architecture with replication to an AWS VPC

on-prem AD => | Microsoft AD in EC2

87
New cards

Describe AWS AD Connector

Directory gateway to redirect to on-prem AD. -- No caching -- Only on-prem users -- VPN or Direct Connect (DX) -- No SQL Server

88
New cards

Give AD Connector use case example

on-prem user -> AWS sign-in -> authenticate to on-prem AD -> STS -> user authenticated to AWS

89
New cards

Describe AWS Simple AD

cheap support joining EC2 instances

90
New cards

Role for managing organization

OrganizationAccountAccessRole

91
New cards

T/F: Existing member account invited to an Organization automatically have the OrganizationAccountAccessRole added

False

92
New cards

SCP

Service Control Policy

93
New cards

2 AWS Organization Feature Modes

Consolidated billing features All features (default)

94
New cards

T/F: You cannot return to consolidated billing features from 'All features'

True

95
New cards

What is consolidated billing features?

Consolidated billing across all accounts (single payment method) Pricing benefits from aggregated usage (volume discount for ec2

96
New cards

T/F: All accounts in an organization can receive the hourly cost benefits or Reserved Instances that are purchased by any other account

True (if sharing is turned on)

97
New cards

What are the steps to move an account between orgs?

Remove account from first org Send invite to the account from the new org Accept invite to new org from the account

98
New cards

SCP are applied at the ______ or the ______ level

OU or the Account Level

99
New cards

What are service control policies (SCP)?

Define allowlist or blocklist IAM actions via organization

100
New cards

T/F: SCP are not applied to management accounts?

True