IAM Flashcards

1
Q

What are IAM components?

There are 4 elements in the list

A
  • Groups
  • Users
  • Roles
  • Policies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

IAM policies use which file format?

A

JSON

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

In IAM, A policy that is directly attached to an individual user is called what?

A

Inline Policy

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

In IAM, How to apply permissions to multiple AWS users?

A

IAM Groups

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

What are the three types of IAM Policies?

A

Managed Policies
A policy which is managed by AWS, which you cannot edit. Managed policies are labeled with an orange box.

Customer Managed Policies
A policy created by the customer which is editable. Customer policies have no symbol beside them.

Inline Policies
A policy which is directly attached to the user.

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

In IAM, Which policy element identifies the user or role that the policy applies to?

A

Principal

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

Which policy element determines if the policy will Allow or Deny permissions?

A

Effect

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

In IAM, what are some elements you can find in a policy structure?

There are 8 elements in the list

A
  • Version policy language version. 2012-10-17 is the latest version.
  • Statement container for the policy element you are allowed to have multiples
  • Sid (optional) a way of labeling your statements.
  • Effect Set whether the policy will Allow or Deny
  • Principal account, user, role, or federated user to which you would like to allow or deny access
  • Action list of actions that the policy allows or denies
  • Resource the resource to which the action(s) applies
  • Condition (optional) circumstances under which the policy grants permission
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which are some options in an IAM password policy?

There are 8 elements in the list

A
  • Uppercase letter
  • Lowercase letter
  • Number
  • Symbol
  • Allowed change its own password
  • Password Expiration (days)
  • Prevent reuse (Number of past passwords)
  • Administration reset when it expires
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

You can use this in IAM to set minimum requirements for passwords, or rotate user passwords on a schedule

A

Password Policy

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

In IAM, How many access keys are allowed per user?

A

2

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

You can download your IAM access keys in which file format?

A

CSV

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

The 2 components of an IAM access key

A
  • Access Key ID

- Secret Access Key

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

In IAM, The practice of requiring a second method of verification on-top of your regular password is called…

A

Multi-Factor Authentication (MFA)

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

In IAM, Can the Administrator account create a policy requiring MFA to access certain resources?

A

True

The user has to turn on MFA themselves, Administrator cannot directly enforce users to have MFA.

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

In IAM, Which AWS service provides the permissions for Cross-Account roles to be assumed?

  • krɒs əˈkaʊnt
  • əˈsumd
A

Security Token Service (STS)

17
Q

True or False, cross-account roles let you grant resource access to other users who do not have an account specific IAM login to your account.

  • krɒs əˈkaʊnt
  • grænt
A

True

18
Q

This special kind of IAM role allows granting access to your AWS resources for someone in a different AWS account

ˈgræntɪŋ

A

Cross-Account Roles

krɔs əˈkaʊnt roʊlz

19
Q

Which API actions can be used to obtain credentials via STS? (The first 3 elements)

ˈviə

A
  • AssumeRoleWithWebIdentity
  • AssumeRole
  • AssumeRoleWithSAML

əˈsum roʊl wɪð wɛb aɪˈdɛntəti

20
Q

This AWS service allows you to programmatically provide users with a temporary set of credentials to access limited AWS resources

A

Security Token Service (STS)

21
Q

In IAM, Which common protocol does web identity federation generally adhere to?

ədˈhɪr

A

OpenID Connect (OICD) 2.0

22
Q

What would be one example of Enterprise Identity Federation?

A
  • SAML (Microsoft Active Directory Integration)
23
Q

In IAM, This method of authentication allows you to authenticate your users with an external 3rd party service

A

Identity Federation

24
Q

In IAM, What is the first step for authentication when using AssumeRoleWithWebIdentity?

“Assume Role With Web Identity”

A

Authenticating with the external identity provider

25
Q

In IAM, What is returned from the web identity provider during authentication that is then used to grant temporary credentials to the user?

A

Json Web Token (JWT)

26
Q

In IAM, What are the 6 steps to get Temporary Credentials Using AssumeRoleWithWebIdentity?

A
  • The Developer authenticates on Facebook trough OAuth 2.0
  • Facebook returns a JWT
  • The Developer uses the CLI and calls the AssumeRoleWithWebIdentity passing along the JWT
  • The STS services returns the temporary credentials
  • The Developer uses those credentials to access to resources
27
Q

What is IAM?

What are its 5 components?

A
  • Manage access to AWS services and resources securely
  • IAM Identities (User, groups, roles)
  • IAM policies (Managed, Customer Managed, Inline)
  • STS
  • Cross Account Roles
  • Password policies
28
Q

The manager wants to grant access to user-specific folders in an Amazon S3 bucket s3:xx/cperez, s3:xx/igarcia

Instead of creating distinct policies for each team member, what approach can be used to make this policy snippet generic for all team members?

A

Use IAM policy variables