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

Can Groups in IAM overlap on users

A

Yes

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

IAM Policy

A

is a json file that state what a group or user is allowed to do

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

Is User Console Region specific?

A

no, user is allowed in all regions

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

What is a User Group

A

It is

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

Will attaching IAM Policy at a group level add the permissions to all users?

A

YES

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

What is an inline Policy?

A

A policy for a single users

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

What does a policy JSON consists of?

A

At least Version, and Statement,

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

What does a Statement of policy JSON consists of?

A

Sid - statement id some string
Effect: Allow / Deny
Action: “” - list of action that should be allowed.
e.g iam:Get*
Resource: the resource that the permision is refering to

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

IAM Password policy

A

minimum length
special characters
changing IAM Users password
password expiration
prevent re-use

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

Hardware OTP tokens

A

TOTP - time based
HOTP - counter based

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

What are 3 ways to access AWS?

A

Management Console
CLI
SDK

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

What is an IAM Role

A

Permissions for a AWS Service that needs to access some our resources. e.g. a EC2 Instance trying to access S3 Bucket

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

What is IAM Last Acessed

A

list of all users and their credentials

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

What does IAM Access Advisor?

A

Shows what permissions are used by user and allow to revoke the unused ones (least priviledge principle)

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

What is shared responsibility model?

A

There are some elements that AWS is responsible for and some that us as a user are.

17
Q

What is a AWS Budget?

A

It is a threshold that will alarm us when we reach a particular spending goal. Even multiple times. (at. 85%, 100% or forecasted spent is 100%)

18
Q

What is AWS EC2?

A

Elastic Compute Cloud (IaaS)

19
Q

What does AWS EC2 consists of?

A

Renting virtual machines (EC2)
Storing data on virtual drives (EBS)
Distributing load across machines (ELB)
Scaling the services using an auto scaling group (ASG)

20
Q

What OS can be put on EC2?

A

Linux, Windows or Mac OS

21
Q

How to bootstrap EC2?

A

Using EC2 User data script.

22
Q

What does bootstraping mean?

A

Installing updates, software

23
Q

What are the EC2 Types?

A

e.g m5.2xlarge
m - class
5 - generation
2xlarge - size

-> compute optimized (start with C)
-> Memory optimized (R - RAM, X and Z)
-> Storage Optimized - for Databases (

24
Q

What are Security Groups?

A

Define what’s allowed in and out and where.
Can reference IP or other Security Group
a.k.a Firewall
divided into inbound and outbound

25
Q

What allows referencing security groups to other ones?

A

Allowing for a direct connection between EC2 instances that reference each others security groups

26
Q

What is a port for Remote Desktop Protocol a.k.a logging into windows instance

27
Q

When we encouter a timeout while connecting to the instance what can be causing it?

A

missing security group config

28
Q

Is there a limit how many security groups can be attached to a EC2?

29
Q

How to add permissions to our EC2 Instance within the AWS World

A

A EC2 can be attached an IAM Role

30
Q

What are EC2 Purchasing Options

A
  1. On-Demand - short term uninterrupted workloads
  2. Reserved (1 & 3 Years) -
  3. Savings Plans (1 & 3 Years) - commitment to a x $ of usage
  4. Spot Instances - very short workload, cheap, can be stoped
  5. Dedicated Hosts - entire physical server
  6. Dedicated Instances - no one will share hardware with us
  7. Capacity Reservations - reserve capacity in a specific AZ for any duration
31
Q

What is Reserved EC2 Purchasing option?

A

specific type, region, tenancy and OS (up to 72% discount compared to On-Demand)
Payment (upfront +++, partially upfront ++, no upfront +)
Period(1 year +, 3 years +++)
+ - discounts

32
Q

What is EC2 Savings Plans?

A

discount of up to 72% compared to On-demend

commit to certain level of usage (e.g 10$ an hour for 1 or 3 years)
everything beyound that will be billed at on-demand rate
locked to instance type and region but not size e.g (m5.xlarge, m5 2xlarge)

33
Q

What are EC2 Spot Instances?

A

discount of up to 90% (we set what is the max we want to pay)
but can be interrupted if the price goes up

34
Q

EC2 dedicated hosts

A

EC2 Instance fully dedicated to our use. Allows for compliance. Most expensive option.
2 Options:
on-demand pay per sec
reserved (1 / 3 years)

allows access to dedicated hardware

35
Q

EC2 Dedicated Instances

A

We may share hardware with other instances in the same account

36
Q

EC2 Capacity Reservations

A

You pay no matter if you use them or not. (on demand rate)
- no time commitment but also no billing discounts
- combine with regional reserved instances and savings plans to benefit from discounts
Short term uninterrupted workloads in a specific az

37
Q

What is AWS responsible for on EC2?

A

Global network security
Isolation of physical hosts
Replacing faulty hardware
compliance validation

38
Q

What is User responsible for on EC2?

A

Security Groups rules
system pathes and updates
Software installed
IAM Roles and user management
Data Security on the instance