IAM & AWS CLI Flashcards

1
Q

What is IAM and is it a regional or global service?

A

IAM (Identity and Access Management) is a global service.

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

What is the root account, and should it be used?

A

It’s the account created by default with full access; should not be used regularly or shared.

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

Can an IAM user be in multiple groups? Can groups contain other groups?

A

A user can be in multiple groups. Groups cannot contain other groups.

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

What format are IAM policies written in?

A

JSON (JavaScript Object Notation)

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

What are the key components of an IAM policy?

A

Version, Id, Statement (Sid, Effect, Principal, Action, Resource, Condition)

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

What principle should always be followed when assigning permissions?

A

Least privilege – only give the permissions needed.

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

What does the ‘Effect’ field in a policy do?

A

Specifies whether access is allowed or denied.

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

What does MFA stand for and why is it important?

A

Multi-Factor Authentication – it adds an extra layer of security.

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

Name 3 types of MFA devices supported by AWS.

A
  • Virtual MFA app
  • U2F Security Key
  • Hardware MFA device
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are best practices for passwords in IAM?

A
  • Set length
  • Include character types
  • Expire passwords
  • Prevent reuse
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are three ways users can access AWS?

A
  • Management Console
  • AWS CLI
  • AWS SDK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are access keys composed of?

A

Access Key ID (username) and Secret Access Key (password)

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

What is the AWS CLI?

A

A tool to interact with AWS services via terminal/command-line.

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

What is the AWS SDK used for?

A

Programmatic access to AWS services through code.

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

What are IAM roles used for?

A

Grant temporary permissions to AWS services.

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

Name three common IAM roles for AWS services.

A
  • EC2 instance roles
  • Lambda roles
  • CloudFormation roles
17
Q

What is the IAM Credentials Report?

A

Account-level report showing user credentials and status.

18
Q

What does IAM Access Advisor show?

A

Services a user has access to and when they were last accessed.

19
Q

What should you do instead of using the root account regularly?

A

Create IAM users with least privilege and enable MFA.

20
Q

Should IAM users share access keys?

A

Never share IAM users or access keys.

21
Q

How often should access keys be rotated?

A

Regularly, as part of best practices.

22
Q

Under the shared responsibility model, what is AWS responsible for?

A

Infrastructure, hardware, network, global security.

23
Q

What are you (the customer) responsible for in IAM?

A

Managing users, roles, policies, enabling MFA, auditing.