EC2 Flashcards

1
Q

What are the instance types?

A

General purpose
Compute optimized
Memory optimized
Storage optimized

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

What workloads are general purpose EC2 instances good for?

A

Diverse workloads such as code repositories and web servers

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

What workloads are Compute optimized EC2 instances good for?

A

Compute-intensive tasks that require high performance

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

What workloads are Memory optimized EC2 instances good for?

A

Fast performance workloads that process large data sets in memory

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

What workloads are Storage optimized EC2 instances good for?

A

storage-intensive tasks that require high, sequential read and write access to large data sets on local storage

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

What is a security group?

A

Firewall around EC2 instances that controls how traffic is allowed into or out of EC2 instances

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

What do security groups regulate?

A

Access Ports
Authorized IP ranges
Inbound network traffic
Outbound network traffic

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

What should you do when an EC2 instance needs to access AWS?

A

Assign it a role

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

What are the EC2 purchasing options?

A
On-Demand Instances
Reserved Instances
Spot instances
Dedicated Hosts
Dedicated instances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What type of workloads are a good fit for On-Demand Instances?

A

Short term and uninterrupted workloads

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

What are key characters for On-Demand Instances?

A

Pay for what you use
Highest cost with no upfront payment
No long-term commitment

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

What type of workloads are a good fit for Reserved Instances?

A

Long term, steady-state usage applications (i.e database)

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

What are the reserved instance types?

A

Reserved Instances
Convertible Reserved Instances
Schedule Reserved Instances

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

What EC2 purchasing option is the most cost expensive?

A

Dedicated hosts

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

What EC2 purchasing option is the least cost expensive?

A

Spot instances

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

What are the savings when using spot instances compared to On-Demand?

A

90%

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

What are the savings when using reserved instances?

A

75% when compared to On-Demand instances

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

What is the contract commitment when using reserved instances?

A

1 to 3 years

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

What are dedicated hosts?

A

A dedicated physical server

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

Why use a dedicated host?

A

Government compliance requirements

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

What are characteristics of dedicate hosts?

A

single instance on a single dedicate physical server
Hardware is not shared by other instances
Control over instance placement

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

What are the dedicate hosts use cases?

A

Software that has complicated licensing model

Companies that have strong regulatory or compliance needs

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

How long can dedicates hosts be reserved?

A

3 years

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

What are dedicate instances?

A

One or more instances running on a dedicated physical server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What are characteristics of dedicate instances?
No control over instance placement (can't move hardware after stop / start) Automatic instance placement All instances are on same physical server
26
What are strategies for handling spot instances?
Set max spot price Spot Block Know the type of instance needed
27
What is spot block?
Block spot instance during specified time frame without interruptions
28
What can be done to instances that exceed max spot price?
Stop or terminate the instance
29
How to terminate spot instances?
Cancel spot instance and then terminate it
30
What are Spot Fleets?
Set of spit instances + (optional) on-demand instances
31
What are strategies for allocating spot instances?
Lowest Price Diversified Capacity Optimized
32
What is the lowest price allocation strategy?
Spot instances are allocated from the pool with the lowest price (cost optimized, short workload)
33
What is the diversified allocation strategy?
Spot instances are distributed across all pools (great availability, long workloads)
34
What is the capacity optimized allocation strategy?
Spot instances are allocated from a pool with the optimal capacity for the number of instances
35
What are the placement group strategies?
Cluster Spread Partition
36
What are the characteristics of a cluster?
All instances are on the same hardware (rack)
37
What is a cluster strategy?
placement group strategy that places instances into low-latency group in single AZ
38
What are disadvantage(s) when using a cluster strategy?
If rack fails all instances fail
39
What are advantage(s) when using a cluster strategy?
offers low latency and high speed network
40
What is a spread strategy?
placement group strategy that spreads instances across underlying hardware
41
What are the characteristics of a spread strategy?
max 7 instances per group per Availability zone
42
What type of applications use the spread strategy?
critical applications that need high availability and in which failures are isolated
43
What are advantage(s) when using a spread strategy?
Located on different hardware Spans across AZs Reduced risk in case of failure
44
What are disadvantage(s) when using a spread strategy?
Limited to 7 instances per AZ per placement group
45
What is a partition strategy?
placement group strategy that spreads instances across different partitions (different sets of racks) within an AZ
46
What are advantage(s) when using a partition strategy?
Instances in different partitions are separated, in case of failure Scales to hundreds of EC2 instances per group Have up to 7 partitions per AZ in the same region
47
What type of applications use the partition strategy?
Big data applications
48
What is an Elastic Network Interfaces (ENI)?
Logical component in a VPC that represents a virtual network card
49
What are characteristics of an ENI?
Gives EC2 instances access to the network Gives a private IPv4 and secondary IPv4 address Gives one elastic IP per private IPv4 Has one or more security groups Has a MAC address
50
What are an ENI's limitation(s)?
Bound to a specific availability zone and single instance
51
What is EC2 Hibernate?
Service that preserves the state of an EC2 instances RAM
52
What are the advantages of using Hibernate?
Instance boot time is faster
53
What are Hibernate's characteristics?
RAM state is written to a file in the root EBS volume | The root EBS volume must be encrypted
54
What type of applications use Hibernate?
Long-running processing Need to save RAM state Services that take time to initialize
55
What is EC2 Nitro?
Underlying platform for higher speed EBS volumes that need increased I/O operations
56
What are advantages of using EC2 Nitro?
Better networking options Higher speeds EBS Better underlying security
57
What is a vCPU?
A thread in a CPU
58
How many vCPUs per core?
2
59
What are the advantages of using EC2 capacity reservations?
Ensures you have EC2 capacity in advance when needed
60
What commitments are required for EC2 capacity reservations?
No commitments