IAM Policies Flashcards

1
Q

What is an IAM policy?

A

A policy is a document that formally states one or more permissions.

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

What would happen if a user had both an explicit allow policy & an explicit deny policy set?

A

By default, an explicit deny policy will always override an explicit allow policy.

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

Imagine you have a user with multiple policies across various services. What would be the quickest way to revoke access to all services, if for example, they were taking a sabbatical?

A

You could create an explicit deny policy which would override all their other policies and you could remove that when they come back from their sabbatical.

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

How long does it take for policies to update / take effect?

A

They are immediate.

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

What are some examples of pre-built policy templates?

A

Administrator: Full access to ALL services
Power user: Admin access except for user/group management
Read only: only view AWS resources

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

What are the 2 methods of creating new policies?

A

Using the policy generator or written from scratch.

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

What is the minimum contents of a policy?

A

Effect, Action, Resource

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

Can a user have more than policy assigned at the same time?

A

Yes, a user can have multiple policies. If conflicts, the denial policies take precedence.

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

Can policies be attached to resources? eg. EC2 instances

A

No.

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