Advanced Identity Flashcards

1
Q

What is AWS STS used for?

A

To grant temporary, limited access to AWS resources (valid up to 1 hour).

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

What STS API is used 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

Which STS API returns credentials for users authenticated via SAML?

A

AssumeRoleWithSAML

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

What is AWS’s recommendation instead of using AssumeRoleWithWebIdentity?

A

Use Cognito Identity Pools.

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

Which STS API is used to authenticate with MFA?

A

GetSessionToken

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

Which STS API returns the IAM user or role making the API call?

A

GetCallerIdentity

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

Which STS API decodes AWS error messages for denied requests?

A

DecodeAuthorizationMessage

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

What credentials are returned by STS GetSessionToken?

A

Access Key ID, Secret Access Key, Session Token, Expiration Time

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

What IAM condition key enforces MFA use?

A

aws:MultiFactorAuthPresent:true

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

What is the IAM best practice regarding root credentials?

A

Never use root credentials; enable MFA on the root account.

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

What is the IAM best practice for assigning roles to EC2 or Lambda?

A

Assign a separate IAM role per EC2 or Lambda function.

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

What is the IAM best practice for on-premises servers?

A

Use STS to request temporary credentials (not permanent ones).

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

How does AWS evaluate IAM policies?

A

Explicit DENY > ALLOW > (default) DENY

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

If there’s a conflict between IAM and S3 bucket policies, what happens?

A

Explicit DENY in either policy overrides any ALLOW.

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

How do dynamic IAM policies improve scalability?

A

Use policy variables like ${aws:username}.

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

What’s the difference between AWS Managed, Customer Managed, and Inline Policies?

A

AWS Managed = reusable by AWS; Customer Managed = reusable by you; Inline = tied to a single user/role.

17
Q

What IAM permission is required to allow a user to pass a role to a service?

A

iam:PassRole

18
Q

Can a role be passed to any AWS service?

A

No, the service must be trusted in the role’s trust policy.

19
Q

What AWS service acts as a proxy to on-prem Active Directory?

A

AD Connector

20
Q

What is AWS Simple AD?

A

A lightweight, standalone AD-compatible directory in AWS; cannot connect to on-prem AD.