IAM Flashcards

This deck aims to help retain concepts related to the AWS IAM service.

1
Q

Which policies are attached to IAM identities (users, groups to which users belong, or roles) and grant permissions to an identity?

A

Identity-based policies

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

What types of identity-based policies are there?

A

Managed policies and inline policies

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

What type of identity-based managed policy is created and administered by you?

A

Customer-managed policy

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

What type of identity-based managed policy is created and managed by AWS and has an ARN that includes the policy name?

A

AWS-managed policy

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

What type of identity-based policy is created for a single IAM identity (a user, group, or role), maintains a one-to-one relationship with the identity, and is deleted when the identity is deleted?

A

Inline policy

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

Which policies are attached to resources (such as an S3 bucket or an IAM role trust policy) and grant permissions to the principal specified in the policy (principals can be in the same account as the resource or in other accounts)?

A

Resource-based policies

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

Which policy type uses a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity, but does not grant permissions itself?

A

Permissions boundary

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

Which policy type is used to limit the permissions that the role or user’s identity-based policies grant when using AWS CLI or AWS API to assume a role or a federated user, but does not grant permissions itself?

A

Session policy

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

Which type of cross-account permissions policies, not utilizing the JSON policy document structure, are used to control which principals in other accounts can access the resource?

A

Access control lists (ACLs)

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

Which type of policy is used to define the maximum permissions for account members of an organization or organizational unit (OU), limiting permissions that identity-based or resource-based policies grant to entities (users or roles) within the account, but does not grant permissions itself?

A

Organizational security policies (SCPs)

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

In which order are the “Effect” rules (Allow, Deny) applied when AWS processes policy statements?

A
  1. Explicit Deny (overrides all Allow effects)
  2. Explicit Allow (provides access to the listed resources)
  3. Implicit Deny (denies access by default)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What identity types are in AWS IAM?

A

Users, Groups (to which users belong), and Roles

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

Which identity type is used for long-term AWS access, representing an application, a person, or a service account?

A

User

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

What is the limit on the number of IAM groups IAM users can be members of?

A

Each IAM user can be a member of a maximum of 10 groups

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

What is the limit on the number of IAM users that can be created per account?

A

There is a limit of 5000 IAM users per account

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

Which IAM identities specify a collection of IAM users, primarily focusing on policy management simplification for a large set of users?

A

User groups

17
Q

Which IAM identities cannot be used to sign in and do not support nesting?

A

User groups

18
Q

Which IAM identities cannot be referenced as principals in a resource-based policy?

A

User groups

19
Q

What is the default limit for user groups per account (which can be increased with a support ticket)?

A

300 user groups

20
Q

Which IAM identity is used to provide short-term access permissions to internal or external principals and can be referenced as principals in resource-based policies?

A

Role

21
Q

Which type of IAM policy defines which principals can assume the role and under which conditions?

A

Trust policy

22
Q

Which type of IAM policy defines the specific permissions and actions that the IAM identity is allowed or denied within AWS services and resources?

A

Permissions policy (IAM policy)

23
Q

Which two types of policies do IAM roles have attached?

A

Permissions policy and trust policy

24
Q

Which type of IAM role is associated directly with an AWS service and includes all the permissions required to call other AWS services on your behalf?

A

Service-linked role

25
Q

What is the precedence of the assumption of configuration settings by AWS tools?

A
  1. Command line options (–profile, –region)
  2. Environment variables
  3. Assume role
  4. Assume a role with a web identity
  5. Credentials file (~/.aws/credentials)
  6. Custom process
  7. Configuration file (~/.aws/config)
  8. Container credentials (ECS)
  9. EC2 instance profile credentials
25
Q

What are the most common use cases for IAM roles?

A

Service execution roles (e.g., Lambda, ECS), identity federation, cross-account access