IAM Flashcards

1
Q

What does IAM stand for?

A

Identity and Access Management

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

True or false, IAM is a global service?

A

True

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

What should a root account be used for?

A

For AWS account setup only

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

Define User

A

People within your organisation that can be assigned to groups

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

True or false, a group can contain other groups?

A

False

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

True or false, users need to be assigned to groups?

A

False - however, it is bad practice to not assign user’s to groups

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

True or false, a user can belong to many groups?

A

True

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

What is an IAM policy?

A

JSON documents that define a set of permissions for making requests to AWS services, and can be used by IAM Users, User Groups, and IAM Roles.

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

What principle should you apply when assigning privileges?

A

Do not give more permissions then what the user needs.
(Grant least privilege)

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

Define Group Policies

A

Policies applied to everyone in a group

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

Define Inline Policies

A

Policies applied to a specific user

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

What does a IAM Policy structure consist of? (x3)

A
  • Version: policy language version
  • ID: (Optional) Identifier for the policy
  • Statement: One or more statements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does a IAM policy statement consist of? (x6)

A
  • SID: (Optional) Identifier for the statement
  • Effect: Indicates whether the statement allows or denies access, value can be either “Allow” or “Deny”
  • Principle: Account / user / role the policy is applied to
  • Action: List of actions this policy allows or denies
  • Resources: List of Resources to which the action is applied to
  • Conditions: (Optional) Conditions for which this policy is in effect
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What can you do with IAM Password Policy (x5)

A
  • Specify minimum password length
  • Require Specific Character types
  • Allow all IAM users to change their passwords
  • Require users to change their passwords (make passwords expire)
  • Prevent password reuse
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

List Multi Factor Authentication Options (x4)

A
  • Virtual MFA Devices
    – Google Authenticator
    – Authy
  • Universal 2nd Factor (UTF) Security Key
    – YubiKey
  • Hardware Key Fob MFA Device
    – Gemalto
  • Hardware Key Fob MEA Device + AWS GovCloud (US)
    – SurePassID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an IAM role?

A

An IAM entity that defines a set of permissions for making requests to AWS services, and will be used by an AWS service

17
Q

List Common IAM Roles (x3)

A
  • EC2 Instance Roles
  • Lambda Function Roles
  • Roles for CloudFormation
18
Q

List IAM Security Tools (x2)

A
  • IAM Credentials Report
  • IAM Access Advisor
19
Q

What is the IAM Credential Report?

A

An account-level report that lists your account’s users and the status of their various credentials

20
Q

What is IAM Access Advisor?

A

(user-level)
Access Advisor shows the service permissions granted to a user and when these services were last accessed.

You can use this information to revise your policies.

21
Q

List IAM Best Practices (x9)

A
  • Don’t use root account except for AWS account setup
  • 1 physical user for 1 AWS user
  • Assign users to groups and assign permissions to groups
  • Create a strong password policy
  • Use and enforce MFA
  • Create and use roles for giving permission to AWS services
  • Use Access Keys for Programmatic Access (CLI / SDK)
  • Audit permissions of your account using IAM Credentials Report and IAM Access Advisor
  • Never share IAM users and Access Keys
22
Q

What is AWS’s responsibility for IAM (x3)

A
  • Infrastructure (global network security)
  • Configuration and vulnerability analysis
  • Compliance validation
23
Q

What is Your responsibility for IAM (x5)

A
  • Users, Groups, Roles and Policies management and monitoring
  • Enabling MFA on all accounts
  • Rotating all your keys often
  • Using IAM tools to apply appropriate permissions
  • Analysing access patterns and reviewing permissions