AWS Module 6 -- Section 3

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

Amazon EC2 Pricing Models

On-Demand Instances

Spot Instances

Reserved Instances

Dedicated Hosts

Dedicated Instances

Scheduled Reserved Instances
Per Second Billing

2
New cards

On-Demand Instances

  • Pay by the hour

  • No long term commitments 

    • Lowest upfront cost

    • Most flexibility

  • Eligible for the AWS Free Tier

    • Good choice for applications with short-term, spiky, or unpredictable workloads

3
New cards

Spot Instances

  • Instances run as long as they are available and your bid is above the Spot Instance price

  • They can be interrupted by AWS with a 2-minute notification

  • Interruption options include terminated, stopped, or hibernated

  • Prices can be significantly less expensive compared to On-Demand instances

    • Good choice when you have flexibility in when your applications can run (not a specific time)

4
New cards

Reserved Instances

  • Full, partial, or no upfront payment for Instance you reserve

  • Discount on fixed hourly charge for that instance

    • 1 year or 3 year term

  • Should be used if you expect consistent, heavy use, in order to get substantial savings compared to On-Demand Instances (predictable)

5
New cards

Dedicated Hosts

  • A physical server with EC2 instances capacity fully dedicated to your use

    • Enable you to use you existing per-socket, per-core, or per-VM software licenses

    • Enable you to use licenses for Microsoft Windows or Microsoft SQL servers

6
New cards

Dedicated Instances

  • Instances that run in a VPC on hardware that is dedicated to a single customer

  • Physically isolated at the host hardware level

7
New cards

Scheduled Reserved Instances

  • Purchase a capacity reservation that is always available on a recurring schedule you specify (daily, weekly or monthly)

  • 1 year term

  • You pay for the time that the instances are scheduled (even if you are not actively using it)

8
New cards

Per Second Billing

  • Available for On-Demand instances, Reserved Instances, and Spot instances that run Amazon Linux or Ubuntu

9
New cards

The Benfits of EC2 Pricing Models - On-Demand Instances

On-Demand Instances

Offers the most flexibility, with no long-term contracts and low costs


10
New cards

The Benfits of EC2 Pricing Models - Spot Instances

Spot Instance

Provide large scale, dynamic workloads at a significantly discounted price

11
New cards

The Benfits of EC2 Pricing Models - Reserved Instances

Reserved Instances

Good choice if there is a predictable or steady-state compute need

  • Predictability ensures compute capacity is available when needed

(Example: Instance that you know you want to keep running most or all of the time for months or years)

12
New cards

The Benfits of EC2 Pricing Models - Dedicated Hosts

Dedicated Hosts

Good choice when you have licensing restrictions for the software you want to run on Amazon EC2, or when you have specific compliance or regulatory requirements that preclude you from using the other deployment options

13
New cards

Amazon EC2 Pricing Models: Use cases - On-Demand Instances

On-Demand Instances

  • Short-term, spiky, or unpredictable workloads

  • Application development or testing

14
New cards

Amazon EC2 Pricing Models: Use cases - Spot Instances

Spot Instance

  • Applications with flexible start and end times

  • Applications only feasible at very low compute prices

  • Users with urgent computing needs for large amounts of additional capacity

15
New cards

Are instances terminated by default?

What common use cases can be used to combat this?

Yes

Web servers, API backends, and big data processing

Amazon S3 —> Constantly saves data for persistent storage

16
New cards

Amazon EC2 Pricing Models: Use cases - Reserved Instances

Reserved Instances

  • Steady state or predictable usage workloads

    • Long term workloads that will run in a consistent way over many months

  • Applications that require reserved capacity, including disaster recovery

  • Users able to make upfront payments to reduce total computing costs even further

17
New cards

Amazon EC2 Pricing Models: Use cases - Dedicated Hosts

Dedicated Hosts

  • Bring your own license (BYOL)

  • Compliance and regulatory restrictions

  • Usage and licensing tracking

  • Control Instance placement

18
New cards

What are the 4 pillars of Cost Optimization?

  1. Right-size – Choose the right balance of instance types 

  • Servers can be sized down or turned off and still provide performance

  1. Increase elasticity – Design your deployments to reduce the amount of server capacity that is idle by implementing deployments that are elastic

  • Deployments that use automatic scaling to handle peak loads

  1. Optimal pricing model – 

  • Analyze your usage patterns so that you can run EC2 instances

  1. Optimize storage choices – Analyze the storage requirements of your deployments

  • Reduce unused storage overhead when possible, and choose less expensive storage options if they can 

19
New cards

Pillar 1: Right Size

  • Provision Instances to match the need

    • CPU, memory, storage, and network throughput

    • Select appropriate instance types for your use

  • Use Amazon CloudWatch metrics

    • How idle are instances? When?

    • Downsize instances

  • Best practice: Right Size, then Reserve

20
New cards

How many instances types and size are there?

60

21
New cards

In order to Right Size, what must one do?

1) Select the cheapest instance available (still needs to meet performance requirements)

2) Review CPU, RAM, storage, and network utilization to identify instances that COULD be downsized

3) Use Amazon CloudWatch metrics and set up custom metrics

22
New cards

Pillar 2: Increase elasticity

  • Stop or hibernate Amazon EBS-backed instances that are not actively in use

    • Example: non-production development or test instances

  • Use automatic scaling to match needs based on usage

    • Automated and time-based elasticity

23
New cards

Pillar 3: Optimal Pricing Model

  • Leverage the right pricing model for your use case

    • Consider your usage patterns

  • Optimize and combine purchase types

    • Examples:

      • Use On-Demand Instance and Spot Instance for variable workloads

      • Use Reserved Instances for predictable workloads

  • Consider serverless solutions (AWS Lambda)

24
New cards

Pillar 4: Optimize Storage Choice

  • Best Practice: Reduce costs while maintaining storage performance and availability

  • Resize EBS volumes

  • Change EBS volume types

    • Can you meet performance requirements with less expensive storage?

    • Example: Amazon EBS Throughput Optimized HDD storage typically costs half as much as the default General Purpose SSD (gp2) storage option

  • Delete EBS snapshots (backups) that are no longer needed

  • Identify the most appropriate destination for specific types of data

    • Does the application need the instance to reside on Amazon EBS?

    • Amazon S3 storage options with lifecycle policies can reduce costs


25
New cards

What is the motto for the recommendations for Cost Optimization?

What type of Process is Cost Optimization?

Measure, monitor and improve

Type —> Ongoing

26
New cards

What are the recommendations for Cost Optimization?

  • Recommendations –

    • Define and enforce cost allocation tagging

      • Utilize Billing and Cost management console

    • Define metrics, set targets, and review regularly

    • Encourage teams to architect for cost

      • Utilize AWS Cost Explorer

    • Assign the responsibility of optimization to an individual or to a team