29. Advanced Identity Flashcards

1
Q

What is AWS STS?

A

Security Token Service

allows you to grant limited and temporary access to AWS resources (up to 1 hour)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What STS API operation should you use to assume roles within your account or cross account?

A

AssumeRole

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What STS API operation should you use to return a set of temporary credentials for an AWS account or IAM user?

A

GetSessionToken

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What STS API operation should you use to decode the error message when an AWS API is denied?

A

DecodeAuthorizationMessage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does GetSessionToken return?

A
  • Access ID
  • Secret Key
  • Session Token
  • Expiration Date
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What should you include in an IAM policy to enable MFA?

A

aws:MultiFactorAuthPresent:true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you assign each user a /home/ folder in an S3 bucket?

A

Create one dynamic policy with IAM and leverage the special policy variable ${aws:username}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an AWS Managed Policy?

A
  • maintained by AWS
  • good for power users and admins
  • updated in case of new services / new APIs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a Customer Managed Policy?

A
  • best practice, re-usable, can be applied to many principals
  • version controlled + rollback
  • central change management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an Inline Policy?

A
  • strict one-to-one relationship between policy and principal
  • policy is deleted if you delete the IAM principal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the IAM permission required to be able to pass a role?

A

iam:PassRole

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you view the role being passed?

A

iam:GetRole

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What policy grants the user of the role the needed permissions to carry out the intended tasks on the resource?

A

Permissions policy

A permissions document in JSON format in which you define what actions and resources the role can use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What policy specifies which trusted account members are allowed to assume the role?

A

Trust policy

A role trust policy is a required resource-based policy that is attached to a role in IAM. The principals that you can specify in the trust policy include users, roles, accounts, and services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the 3 AWS Directory Service Types?

A
  1. AWS Managed Microsoft AD
  2. AD Connector
  3. Simple AD
How well did you know this?
1
Not at all
2
3
4
5
Perfectly