EC2 Flashcards

1
Q

Types of instances

A
General purposes
Compute optimized (Prefix C)
Memory optimized (Prefix R/X)
Storage optimized (Prefix I/D)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Dedicated Host

A

allow you to use your existing per-socket, per-core, or per-VM software licenses that are bound to VMs, sockets, or physical cores, subject to your license terms

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

EC2 On-demand

A

Pay per second or hours

Minimum 60 second

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

Purchase options

A
On-demand (regular case)
Spot instance (cheap but not reliable)
Reserved instance (big discount but need long-term commitment: 1 year or 3 years)
1 to 3 years
up to 72% discount
Options
Standard: Can change AZ, instance size (Linux), networking type
Convertible: Can change AZ, instance size, OS, payment options, have lower discount than standard
Dedicated hosts (most expensive, physical server, can request location placement, not sharing hardware)
Dedicated instance (virtual, cannot require location placement)
Capacity reservation (no discount, only reserve resources)
The minimum charge for an on-demand instance is 60 seconds (so if you use less than 60, you still charged 60s)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

User data

A

Bash script that run on 1st start-up (once) of EC2 instance

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

Security group

A
Consider as firewall or access control rules
Control access to ports
Allowed IP ranges
Control inbound/outbound traffic
can be applied to multiple EC2
cannot share between vpc/regions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Instance roles

A

Attach IAM role to the instance

Use to configure aws access inside ec2

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