EC2 Fundamentals Flashcards

1
Q

Spot Instances

A

the hotel allows people to bid for empty rooms, highest bidder keeps room, you can get kicked out any time.

Spot Instances are good for short workloads and are the cheapest EC2 Purchasing Options, but the least reliable. Provide the biggest discount but are not suitable for critical jobs.

most cost efficient, can get a discount of up to 90% compared to On-demand

Instances that you can “lose” at any point of time if your max price is less than current spot price.

Not suitable for critical jobs or databases.

Useful for workloads that are resilient to failure:
1) batch jobs
2) data analysis
3) image processing
4)distributed workloads
5) workloads with flexible start and end time.

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

Security Groups

A

Control traffic in and out of EC2 instances. can be attached to multiple EC2 instances.

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

EC2 Reserved Instances

A

like planning ahead, and if we plan to stay for long time we may get a good discount.

  • Up to 72% discount compared to On-demand
  • You reserve a specific instance attributes (Instance Type, Region,Tenancy, OS)
  • Reservation Period – 1 year (+discount) or 3 years (+++discount)
  • Payment Options – No Upfront (+), Par tial Upfront (++), All Upfront (+++) * Reserved Instance’s Scope – Regional or Zonal (reserve capacity in an AZ)
  • Recommended for steady-state usage applications (think database)
  • You can buy and sell in the Reserved Instance Marketplace
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Convertible Reserved instance

A
  • Convertible Reserved Instance
  • Can change the EC2 instance type, instance family, OS, scope and tenancy * Up to 66% discount
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Compute Optimized Instance

A
  • Great for compute-intensive tasks that require high performance processors:
  • Batch processing workloads
  • Media transcoding
  • High performance web servers
  • High performance computing (HPC)
  • Scientific modeling & machine learning
  • Dedicated gaming servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

EC2 User Data

A

is used to bootstrap your EC2 instances using a bash script. The script can contain commands such as installing software/packages, download files from the internet or anything you want.

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

Memory Optimized Instance

A

Fast performance for workloads that process large data sets in memory
* Use cases:
* High performance, relational/non-relational databases
* Distributed web scale cache stores
* In-memory databases optimized for BI (business intelligence)
* Applications performing real-time processing of big unstructured data

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

Storage Optimized Instance

A

Great for storage-intensive tasks that require high, sequential read and write access to large data sets on local storage
* Use cases:
* High frequency online transaction processing (OLTP) systems
* Relational & NoSQL databases
* Cache for in-memory databases (for example, Redis)
* Data warehousing applications
* Distributed file systems

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

Dedicated Host Instances

A

we book an entire building of the resort.

A physical server with EC2 instance capacity fully dedicated to your use
* Allows you address compliance requirements and use your existing server- bound software licenses (per-socket, per-core, pe—VM software licenses)
* Purchasing Options:
* On-demand – pay per second for active Dedicated Host
* Reserved - 1 or 3 years (No Upfront, Partial Upfront,All Upfront)
* The most expensive option
* Useful for software that have complicated licensing model (BYOL – Bring Your
Own License)
* Or for companies that have strong regulatory or compliance needs

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

Spot Fleet

A

Set of spot instances and optionally on-demand instances. it allows you to automatically request spot instances with the lowest price.

spot fleet will try to meet the target capacity with price constraints:
1) define possible launch pools. instance type, OS, AZ
2) can have multiple launch pools, so that the fleet can choose
3)spot fleet stops launching instances when reaching capacity or max cost.

Strategies to allocate Spot instances:
1) lowest price: from the pool with lowest price.
2) diversified: distributed across all pools that you define (great for availability, long workloads
3) capacity optimized: pool with the optimal capacity for the number of instances
4) Price Capacity Optimized: pools with highest capacity available, then select the pool with the lowest price (best choice for most workloads).

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

General Purpose Instance

A

1)Great for Diversity of workloads such as web servers or code repositories. 2) Balance Between Compute, memory and networking.

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

Security Groups

A

Firewalls. Control how traffic is allowed into or out of EC2 Instances. Regulate access to ports and authorized IP ranges.

Can be attached to multiple instances.

Locked down to a region/VPC combination

Does live “outside” the EC2- if traffic is blocked the EC2 instance won’t see it.

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

Port 22

A

SSH (Secure Shell)- log into a Linux Instance

SFTP (Secure File Transfer Protocol)- Upload files using SSH

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

Port 21

A

FTP (File Transfer Protocol)- Upload files into a file share

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

Port 80

A

HTTP- access unsecured websites.

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

Port 443

A

HTTPS- access secured websites

17
Q

Port 3389

A

RDP (Remote Desktop Protocol)- log into a Windows instance.

18
Q

On-Demand Instances

A

coming and staying in resort whenever we like, pay full price.

Short-term and unpredictable workload, predictable pricing, pay by second

Pay for what you use
1) linux or windows- billing per second after first minute
2) All other systems- billing/hour

no long-term commitment.

19
Q

Savings Plan Instances

A

pay a certain amount/hour for certain period and stay in any room type (king, suite, seaview)

1 & 3 years- commitment to an amount of usage, long workload

get a discount based on long-term usage (up to 72% just like RIs)

Locked to a specific instance family and AWS region

Flexible across:
1) instance size
2)OS
3)Tenancy (host, dedicated, default)

20
Q

Dedicated Instances

A

Instances that run on hardware that’s dedicated to you

may share hardware with other instances in same account

no control over instance placement.

no other customers will share your hardware.

21
Q

Capacity Reservations

A

you book a room for a period with full price even if you don’t stay in it.

Reserve capacity in a specific AZ for any duration.

no time commitment, no billing discounts.

combine with regional reserved instances and savings plan to benefit from billing discounts.

you’re charged at on-demand rate whether you run instances or not.

suitable short-term uninterrupted workloads that need to be in a specific AZ

22
Q

EC2 User Data

A

used to bootstrap your EC2 instances using a bash script. This script can contain commands such as installing software/packages, download files from the Internet, or anything you want