IAM Flashcards

1
Q

By default, all requests are implcitly allowed.

True or False?

A

False.

By default, all requests are implicitly denied. (Alternatively, by default, the AWS account root user has full access.)

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

In simple terms. What is the Policy evaluation logic to determine whether a request is allowed or denied within an account?

A
  1. Explicit DENY has top priority
  2. Explicit ALLOW
  3. Implicit DENY
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the types of identity-based policies?

A
  1. Managed policies – Standalone identity-based policies that you can attach to multiple users, groups, and roles in your AWS account. There are two types of managed policies:
    1a. AWS managed policies – Managed policies that are created and managed by AWS.
    1b. Customer managed policies – Managed policies that you create and manage in your AWS account. Customer managed policies provide more precise control over your policies than AWS managed policies.
  2. Inline policies – Policies that you add directly to a single user, group, or role. Inline policies maintain a strict one-to-one relationship between a policy and an identity. They are deleted when you delete the identity.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are IAM users?

A

IAM Users are an identity used for anything requiring long-term AWS access e.g humans, apps or service accounts

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

What is a principal?

A

Is an entity trying to access an AWS account (individual people, computers, services or a group of them)

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

How can IAM authentication be achieved?

A
  1. Through username and passwords (for individual people)

2. Access keys (apps, command line tools, etc.)

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

How many IAM users per account you can have?

A

5,000 IAM users per account

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

How many groups an IAM users can be a member of?

A

10 groups max per IAM user

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

Can you log in to IAM Groups?

A

No. IAM groups have no credentials of their own

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

Can an IAM user be member of multiple groups?

A

Yes

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

Can you attach policies to IAM Groups?

A

Yes

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

What type of policies can be attached to IAM groups?

A

Inline and Managed

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

What is the limit of IAM users for a single IAM group?

A

There is no effective limit

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

What is the name for the All-Users-Group inside IAM?

A

There is no built in All-Users-Group inside IAM

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

How many nesting levels can you have in an IAM group?

A

There is no nesting available for IAM groups

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

What is the amount of IAM groups limit per account?

A

300 groups per account (can be increased through support ticket)

17
Q

Can groups be referenced in a policy?

A

No. Groups are not a true identity. They cannot be referenced as a principal in a policy.

18
Q

What types of policies can be attached to an IAM role?

A

Trust Policy and Permissions Policy

19
Q

What is the function of the STS service?

A

AWS provides AWS Security Token Service (AWS STS) as a web service that enables you to request temporary, limited-privilege credentials for AWS Identity and Access Management (IAM) users or for users you authenticate (federated users).

20
Q

What operation is used by STS to have a user assume a role and get the credentials?

A

sts:AssumeRole

21
Q

When to use IAM roles?

A
  1. For AWS services
  2. When temporary credentials are needed
  3. When the number of principals is unknown or more than 5000
  4. Emergency or unusual situations
  5. Allow external identities access
22
Q

Can external accounts access AWS resources directly?

A

No

23
Q

What are AWS Organizations used for?

A

Allows large businesses to manage multiple AWS accounts with little management overhead. Using AWS Organizations, you can programmatically create new AWS accounts and allocate resources, group accounts to organize your workflows, apply policies to accounts or groups for governance, and simplify billing by using a single payment method for all of your accounts.

24
Q

What is AWS SCP? What it is used for?

A

AWS Service Control Policies. Service control policies (SCPs) are a type of organization policy that you can use to manage permissions in your organization. SCPs offer central control over the maximum available permissions for all accounts in your organization. SCPs help you to ensure your accounts stay within your organization’s access control guidelines.

25
Q

Can you restrict the Management Account with an SCP?

A

No

26
Q

Do SCPs grant permissions?

A

No. SCPs only create boundaries/llimits for accounts permissions.

27
Q

What is Role Switching?

A

Assuming a Role in another AWS account to access that account via the console UI.