iam Flashcards

(32 cards)

1
Q

What is AWS IAM?

A

IAM (Identity and Access Management) is a global AWS service that controls who can access AWS resources and what actions they can perform.

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

Is IAM a regional or global service?

A

IAM is a global service.

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

What is an IAM identity?

A

An IAM identity is an entity that can be authenticated by AWS and granted permissions to access AWS resources.

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

What are the three IAM identities?

A

IAM User; IAM Role; Root User.

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

Is an IAM group an IAM identity?

A

No. IAM groups cannot authenticate and are not IAM identities.

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

Is a policy an IAM identity?

A

No. Policies only define permissions and cannot authenticate.

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

What is an IAM user?

A

An IAM user represents a person or application with long-term credentials and assigned permissions.

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

What credentials can an IAM user have?

A

Username and password for the AWS Console and access key and secret key for CLI or SDK.

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

How does an IAM user get permissions?

A

Through policies attached directly or policies inherited from groups.

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

What is an IAM role?

A

An IAM role is an identity that provides temporary credentials and must be assumed.

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

Does an IAM role have long-term credentials?

A

No. IAM roles only use temporary security credentials.

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

Who can assume an IAM role?

A

IAM users; AWS services like EC2 or Lambda; other AWS accounts; external identity providers.

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

What is the most common use of IAM roles?

A

Granting permissions to AWS services such as EC2 accessing S3.

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

What is the root user?

A

The root user is the original identity created with the AWS account and has unrestricted access.

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

Can IAM policies restrict the root user?

A

No. The root user cannot be restricted by IAM policies.

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

When should the root user be used?

A

Only for account-level tasks like closing the account or changing the support plan.

17
Q

What is an IAM policy?

A

A JSON document that defines permissions using Effect

18
Q

What are the three main types of IAM policies?

A

AWS managed policies; customer managed policies; inline policies.

19
Q

What is an AWS managed policy?

A

A policy created and maintained by AWS and automatically updated.

20
Q

What is a customer managed policy?

A

A custom policy created by the customer and reusable across multiple identities.

21
Q

What is an inline policy?

A

A policy directly attached to a single identity and not reusable.

22
Q

Are inline policies recommended?

A

No. Managed policies are preferred.

23
Q

How are permissions granted in AWS?

A

Permissions are granted only through policies.

24
Q

Are policies the only way to grant permissions in AWS?

A

Yes. All permissions in AWS are defined by policies.

25
Do policies do anything by themselves?
No. Policies must be attached to an identity or resource to have an effect.
26
What are identity-based policies?
Policies attached to users
27
What are resource-based policies?
Policies attached directly to resources such as S3 bucket policies.
28
What is a permission boundary?
A policy that limits the maximum permissions an identity can have.
29
What is a Service Control Policy (SCP)?
A policy used in AWS Organizations to limit permissions across accounts.
30
What rule always overrides all others in IAM?
An explicit Deny always wins.
31
Authentication
- Who is this person? - Are they who they say they are?
32
Authorization
- What can this user do? - What can this user access?