IAM (Identity Access Management) Flashcards

1
Q

Is IAM a global service on AWS? If the answer to this question is “yes”, what are the implications for users and permissions?

A

Because IAM is a global service on AWS, users and permissions apply across all available AWS regions.

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

What is IAM?

A

IAM (Identity Access Management) is a service on AWS that allows you to manager users and their level of access to the AWS console.

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

Name 9 key features that IAM provides.

A
  1. Centralised control of your AWS account
  2. Shared access to your AWS account
  3. Granular permissions
  4. Identity Federation (AD, Facebook, LinkedIn)
  5. Provides temp access to users, devices and services
  6. Setup your own Password rotation policy
  7. Integrates with other AWS services
  8. Supports PCI DDS compliance
  9. MFA (Multi-factor Authentication)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Are instances global or regional?

A

Instances are regional

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

Where do the permissions for instances apply?

A

Despite instances being regional, the permissions apply regardless of where the instance is

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

Can you provide regional based access to instances?

A

Yes. You could for example, allow EC2 admins to only start and stop instances in a given region

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

What is an ARN and what is its purpose?

A

Amazon Resource Name. It uniquely identifies an AWS resource

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

What are the two policies in IAM? Name them and elaborate on what each policy is for.

A

Inline Policy is a policy assigned to one user or one group –used to apply permissions in one off instances.

Managed Policy is a prebuilt policy either by AWS or an admin user inside the AWS account.

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

What are the implications of having an explicit “deny” in a policy?

A

An explicit deny will always override any “allow”.

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

All permissions are implicitly denied until you grant those permissions explicitly.

True or False.

A

True.

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

When assigning permissions, what important principle should you follow and keep in mind?

A

The principle of least privilege security which advises that you should only provide the bear minimum permissions required for a user to do their job and no more.

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

What is the best way to go about assigning permissions?

A

You should assign permissions to groups and assign users to those groups. The permissions assigned to the groups will apply to the users in the groups.

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

Which tool enables you to test the effects of IAM policies before committing them to production?

A

The IAM Policy Simulator. This helps validate that policies work as expected.

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

In which formate are policy documents written?

A

In JSON format, as a series of key-value pairs

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

What are the four key things that IAM consists of and briefly describe each of them.

A
  1. Users: end users interacting with console or CLI
  2. Groups: a collection of users under one set of permissions
  3. Roles: created and assigned to AWS resources
  4. Policy: a document that defines one or more permissions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which IAM entity can you use to delegate access to your AWS resources to users, groups or services?

A

IAM role

17
Q

AWS recommends that EC2 instances have credentials stored on them so that the instances can access other resources (such as S3 buckets).

True or False?

A

False

18
Q

Which is the best way to enable your EC2 instance to read files in an S3 bucket?

A

Create an IAM role with read-access to S3 and assign the role to the EC2 instance

19
Q

What are IAM roles and what are its functions?

A

IAM roles allow applications to securely make API requests from instances, without requiring you to manage the security credentials the applications use.

20
Q

What is an IAM Policy?

A

A JSON doc that defines one or more permissions

21
Q

In AWS, what is IAM used for?

A

Creating and managing users and groups, managing access to AWS resources and assigning permissions to allow and deny access to AWS resources