IAM & AWS CLI Flashcards

1
Q

What is the main benefit of multi factor authorization (MFA)?

A

If a password is stolen or hacked, the account is not compromised

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

What are the MFA devices option in AWS?

A
  • Virtual MFA device (support for multiple tokens on a single device)
  • UF2 Universal 2nd Factor Security Key (support for multiple root and IAM users using a single security key)
  • Hardware Key Fob (3rd Party)
  • Hardware Key Fob for AWS GovCloud (3rd party)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Should you share Access Keys?

A

No. AK are secret, just like a password. Because colleagues can generate their own AK as well.

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

How can users access AWS?

A
  • AWS Management Console (protected by password + MFA)
  • AWS Command Line Interface (CLI) (protected by access keys)
  • AWS Software Developer Kit (SDK) (for code. Protected by access keys)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What can you do with AWS CLI?

A
  • Direct access to the public APIs of AWS services
  • Develop scripts to manage your resources
  • It’s open-source
  • Alternate to using AWS Management Console
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is AWS CLI?

A

A tool that enables you to interact with AWS services using commands in your command-line shell

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

What is AWS SDK?

A

A tool that enables you to access and manage AWS services programmatically

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

What is an API?

A

Mechanisms that enable two software components to communicate with each other using a set of definitions and protocols.

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

What does API stand for?

A

Application Programming Interface

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

What is AWS CloudShell?

A

A browser based, pre authenticated shell that you can launch directly from the AWS Management Console.

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

What is an IAM role?

A

A secure way to grant permissions to entities that you trust

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

What are common IAM Roles?

A
  • EC2 Instance Roles
  • Lambda Function Roles
  • Roles for CloudFormation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What security tools can you use in IAM?

A
  • IAM Credentials Report (account-level)

* IAM Access Advisor (user-level)

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

What is IAM Credentials Report?

A

Audits all users

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

What is IAM Access Advisor?

A

Audits specific users

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

Never share ___ users or ______ Keys

A

IAM - Access

17
Q

What security tool should you use to audit permissions of your account?

A

IAM Credentials Report

18
Q

Use ______ ____ for Programmatic Access (CLI/SDK)

A

Access Keys

19
Q

Create and use _____ for giving permissions to AWS services

A

Roles

20
Q

Don’t use the ____ _______ except for AWS account setup

A

Root account

21
Q

Assign users to ______ and assign ___________ to groups

A

Groups - Permissions

22
Q

What are IAM Policies?

A

JSON documents that outlines permissions for users or groups

23
Q

Roles are given to..

A

EC2 instances or AWS services

24
Q

Groups contain _____ only.

A

Users

25
Q

Access Keys are used to access what?

Using what?

A

AWS

CLI or SDK

26
Q

How do IAM users access AWS services?

A

By using their own credentials (username/password or Access Keys)

27
Q

For everyday task, use an ___ _____.

A

IAM user

28
Q

IAM User Groups can only contain (blank)

A

IAM users.

29
Q

A statement in an IAM Policy consists of what? (6)

A
  • Sid (Statement ID)
  • Effect
  • Principal
  • Action
  • Resource
  • Condition