AWS EC2 Instance Management & Cloud Computing Concepts
45 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the primary method to avoid service disruption when changing the size of an EC2 instance?

  • Creating a snapshot of the instance and restoring it on a new, larger instance.
  • Pausing the instance for a brief period, during off-peak hours, before resizing.
  • Employing a load balancer in front of compute nodes to distribute traffic during the instance stop and resize. (correct)
  • Utilizing live migration to seamlessly transfer the instance to a larger size.

Why might a user choose the us-east-1 region over the eu-central-1 region when deploying an application on AWS?

  • us-east-1 generally has lower pricing compared to eu-central-1. (correct)
  • us-east-1 provides a wider selection of instance types than eu-central-1.
  • us-east-1 has more Availability Zones than eu-central-1 ensuring higher fault tolerance.
  • us-east-1 offers lower network latency for users in Europe.

How does EC2 handle bandwidth allocation for smaller instance sizes on the same machine?

  • Bandwidth is statically partitioned, with each instance receiving a fixed allocation regardless of usage.
  • Bandwidth is allocated based on a lottery system, where instances randomly receive available bandwidth.
  • Bandwidth is dynamically allocated, granting unused bandwidth from neighbors to other instances on the same machine temporarily. (correct)
  • Bandwidth is exclusively reserved for each instance, regardless of neighbor utilization, ensuring consistent performance.

What happens to an EC2 instance's bandwidth allocation in a steady state?

<p>The instance's bandwidth is capped at a minimum baseline, roughly equivalent to the paid-for fraction. (A)</p> Signup and view all the answers

Which cloud providers support live migration?

<p>Google Cloud and Azure (A)</p> Signup and view all the answers

What key factor primarily motivated Amazon to develop and launch Amazon Web Services (AWS)?

<p>The opportunity to monetize underutilized IT infrastructure built to support their own rapid growth. (B)</p> Signup and view all the answers

In the context of cloud computing's historical timeline, what significance does the launch of Amazon's EC2 and S3 in 2006 hold?

<p>It triggered the start of the modern era of cloud computing, setting the stage for other major players. (A)</p> Signup and view all the answers

Which of the following best describes the competitive landscape of the hyperscaler market, based on the provided market share information?

<p>Concentration of market share among a few major players, including AWS, Microsoft Azure, and Google Cloud. (C)</p> Signup and view all the answers

Why is it important to understand the pricing models of AWS services?

<p>To effectively manage cloud spending and optimize costs based on usage patterns. (B)</p> Signup and view all the answers

Considering the evolution of cloud computing, how did Amazon's internal IT infrastructure contribute to the broader industry?

<p>It served as a testing ground for innovative technologies that were later commercialized as AWS. (A)</p> Signup and view all the answers

Based on the observed trends, which factor primarily drives the increasing attractiveness of specialized hardware accelerators in modern computing environments?

<p>The stagnation of Moore's Law, leading to diminished improvements in CPU and DRAM performance per unit cost. (B)</p> Signup and view all the answers

Referring to the bandwidth/$ graph, which AWS instance type offered the highest bandwidth per dollar in 2021?

<p>c5n (D)</p> Signup and view all the answers

What is the primary advantage of cloud computing in the context of specialized hardware?

<p>It allows users to easily test and utilize specialized hardware without significant upfront investment. (C)</p> Signup and view all the answers

Given the trends in CPU development, which scenario would most likely justify the investment in specialized hardware?

<p>A workload that can be efficiently parallelized and requires high throughput for specific operations. (A)</p> Signup and view all the answers

How might the stagnation of CPU performance impact the design and adoption of new computing technologies?

<p>It will accelerate the shift towards heterogeneous computing architectures that incorporate specialized accelerators. (D)</p> Signup and view all the answers

Which Amazon S3 storage class offers the lowest storage cost per TB per month?

<p>Glacier Deep Archive (B)</p> Signup and view all the answers

Which S3 storage variant is best suited for data that needs extremely fast access times, even though it comes at a higher cost?

<p>One Zone - Express (B)</p> Signup and view all the answers

What does Amazon S3 offer to ensure that you immediately see the latest version of your data after an update?

<p>Strong consistency for list operations (B)</p> Signup and view all the answers

A company wants to offer its software to AWS users and have AWS handle the billing. Which AWS service should they utilize?

<p>AWS Marketplace (D)</p> Signup and view all the answers

A software vendor on AWS Marketplace charges customers based on the amount of data ingested into their application each month. What is this pricing model called?

<p>Subscription-based pricing (A)</p> Signup and view all the answers

What mechanism does AWS Marketplace use to inform sellers about subscription changes (e.g., subscribe/unsubscribe events)?

<p>Simple Notification Service (SNS) (D)</p> Signup and view all the answers

A company needs a managed relational database service on AWS. Which of the following services should they use?

<p>Relational Database Service (RDS) (D)</p> Signup and view all the answers

Which AWS service would you use to set up a private, isolated network within the AWS cloud?

<p>Virtual Private Cloud (VPC) (D)</p> Signup and view all the answers

An organization wants to automate serverless workflows by orchestrating multiple Lambda functions. Which AWS service can help achieve this?

<p>Step Functions (B)</p> Signup and view all the answers

A data science team needs to run large-scale data processing jobs using Spark and MapReduce on AWS. Which service is most suitable for this?

<p>EMR (Spark/MapReduce) (D)</p> Signup and view all the answers

Given the cost factors of $0.03238 per vCPU per hour and $0.00356 per GB per hour, which algorithm (A, B, or C) is the most cost-effective based purely on the provided vCPU hours and memory usage?

<p>Algorithm C (B)</p> Signup and view all the answers

An application requires both high computational power and significant memory. Considering the instance storage options, which of the following instance types would be MOST suitable if data persistence is NOT a primary concern?

<p>i3en.24xlarge (D)</p> Signup and view all the answers

A company is using EBS volumes for their application. They need to ensure that their data remains accessible even if one of the servers in the AZ fails. How does EBS achieve this?

<p>By replicating the volume across multiple servers within the same Availability Zone (B)</p> Signup and view all the answers

An application requires 5,000 IOPS and 200 MB/s throughput. Which of the characteristics is MOST relevant when selecting an EBS gp3 volume to meet the application's needs?

<p>Throughput over 125 MB/s (D)</p> Signup and view all the answers

A video editing company needs a high-performance storage solution with very low latency and high IOPS for editing large video files directly from the storage. The data must also be extremely durable. Which EBS volume type is MOST suitable?

<p>io2 (B)</p> Signup and view all the answers

A company wants to store large amounts of infrequently accessed data for archival purposes. They need a cost-effective solution and can tolerate higher latency. Which S3 storage class is MOST appropriate?

<p>S3 Standard Infrequent Access (S3 Standard IA) (C)</p> Signup and view all the answers

A development team is using S3 to store application assets. They've noticed increased latency in retrieving these assets. How can they improve the data retrieval speed from S3?

<p>Use S3 Transfer Acceleration to reduce latency (D)</p> Signup and view all the answers

A company is designing a system where data loss is absolutely unacceptable. They are storing critical data in S3. Given S3's durability, what additional measure should they implement to further minimize the risk of data loss?

<p>Replicate data across multiple AWS regions (D)</p> Signup and view all the answers

Prior to 2020, S3 had eventual consistency for overwrite and delete operations. What potential issue could this cause for applications relying on immediate data accuracy?

<p>Reading outdated data after a write operation (A)</p> Signup and view all the answers

A company needs to transition from on-premise servers to cloud based services, and their system requirements suggest a need for high availability, strong consistency, and cost efficiency. Considering EBS and S3, what would the advantages of S3 be over EBS in this scenario?

<p>S3 offers lower costs for larger sized operations due to its serverless architecture that can be quickly scaled, whereas EBS can be more expensive to manage. (C)</p> Signup and view all the answers

What is the primary benefit of AWS Nitro Cards in the context of virtualization?

<p>Reduced virtualization overhead by hardware virtualizing itself. (B)</p> Signup and view all the answers

Why might a company consider moving its machine learning training workload to a different cloud provider, such as through vast.ai?

<p>To take advantage of more favorable pricing for GPU compute resources. (C)</p> Signup and view all the answers

What characteristic of GPUs made them suitable for machine learning despite being originally designed for graphical applications?

<p>Their ability to execute complex vector calculations faster than CPUs. (D)</p> Signup and view all the answers

Which statement accurately compares GPUs and CPUs in the context of machine learning?

<p>GPUs have higher memory bandwidth but smaller capacity than CPUs. (C)</p> Signup and view all the answers

Besides GPUs, what other types of hardware accelerators are specifically designed for machine learning workloads on AWS?

<p>AWS Trainium and AWS Inferentia. (D)</p> Signup and view all the answers

In what scenario would using an FPGA be more advantageous than using a GPU or a CPU?

<p>When the workload benefits from pipeline parallelism and custom hardware configurations. (D)</p> Signup and view all the answers

Why might a company choose an FPGA over an ASIC, despite ASICs generally offering better performance for specific tasks?

<p>FPGAs have lower upfront costs and offer greater flexibility. (C)</p> Signup and view all the answers

What aspect of cloud computing requires a thorough understanding to avoid unexpected costs?

<p>The pricing structure of compute, storage, and network resources. (C)</p> Signup and view all the answers

Which AWS service benefits most directly from the AWS Nitro cards?

<p>Amazon EC2 (B)</p> Signup and view all the answers

Which of the following is an advantage of using cloud computing for specialized instance configurations, such as those with GPUs or FPGAs?

<p>Avoiding upfront capital expenditure (B)</p> Signup and view all the answers

Flashcards

Modern Cloud Era

Refers to the current period characterized by widespread adoption and innovation in cloud computing technologies.

Why AWS Started?

Amazon's internal IT infrastructure became so advanced that its services were offered to external customers

What is AWS?

Amazon Web Services, launched in 2006, offering services like EC2 and S3.

Hyperscalers

Leading cloud service providers with massive computing resources.

Signup and view all the flashcards

Why Study AWS Services and Pricing?

To understand the capabilities and costs associated with cloud services.

Signup and view all the flashcards

Bandwidth Allocation

Smaller slices get extra bandwidth unused by neighbors temporarily.

Signup and view all the flashcards

Steady State Bandwidth

In the long run, bandwidth returns to the baseline, roughly the paid-for amount.

Signup and view all the flashcards

EC2 Instance Resizing

To change an instance size, it must be stopped because EC2 doesn't support live migration.

Signup and view all the flashcards

AWS Regions

Physical data center locations, where prices can vary significantly.

Signup and view all the flashcards

Network Latency

A measure of the time it takes for data to travel between two points and back, impacting application responsiveness.

Signup and view all the flashcards

Hardware Accelerators

Specialized hardware designed for specific tasks, offering improved performance compared to general-purpose CPUs.

Signup and view all the flashcards

CPU Stagnation

The slowing down of improvements in CPU performance and efficiency.

Signup and view all the flashcards

Why Use Specialized Hardware?

As CPU improvements slow down, specialized hardware becomes a more effective alternative for performance gains.

Signup and view all the flashcards

Cloud and Specialized Hardware

Cloud environments provide easier access and experimentation with specialized hardware.

Signup and view all the flashcards

Payoff for Specialized Hardware

The economic point at which the benefits of specialized hardware outweigh the costs.

Signup and view all the flashcards

Space Tradeoff

Choosing between algorithms that use less compute time but more memory, or vice versa.

Signup and view all the flashcards

Instance Storage

Temporary storage directly attached to an EC2 instance.

Signup and view all the flashcards

EBS (Elastic Block Store)

Virtual disk service providing block-level storage for use with EC2 instances.

Signup and view all the flashcards

EBS gp3

General purpose SSD volume for a wide variety of workloads.

Signup and view all the flashcards

EBS io1/io2

High-performance EBS volumes designed for latency-sensitive transactional workloads.

Signup and view all the flashcards

EBS st1/sc1

Low-cost, HDD-backed EBS volumes designed for frequently accessed, throughput intensive workloads.

Signup and view all the flashcards

S3 (Simple Storage Service)

Object storage service for storing and retrieving any amount of data.

Signup and view all the flashcards

S3 Object

The name for a file in S3.

Signup and view all the flashcards

S3 Prefix

Equivalent to file path in S3.

Signup and view all the flashcards

S3 Bucket

A container for objects stored in S3.

Signup and view all the flashcards

Custom AWS Hardware

Custom-built hardware by hyperscalers (like AWS) that can't be purchased off-the-shelf.

Signup and view all the flashcards

AWS Nitro Cards

AWS-designed cards that offload tasks like networking and security, reducing virtualization overhead.

Signup and view all the flashcards

Graphics Processing Units (GPUs)

Processors optimized for machine learning tasks, originally for video games.

Signup and view all the flashcards

ML Accelerators

Hardware accelerators tailored for machine learning workloads.

Signup and view all the flashcards

AWS Trainium

AWS's machine learning training accelerator, offering high compute and memory bandwidth.

Signup and view all the flashcards

AWS Inferentia

An AWS accelerator designed for machine learning inference.

Signup and view all the flashcards

Google TPU

A Google-developed accelerator chip designed to speed up neural network workloads.

Signup and view all the flashcards

Field-Programmable Gate Array (FPGA)

Programmable hardware, useful when CPUs/GPUs/ML accelerators aren't sufficient.

Signup and view all the flashcards

Pipeline Parallelism

Designing systems to perform operations simultaneously.

Signup and view all the flashcards

Application-Specific Integrated Circuit (ASIC)

Specialized chips designed for a specific application.

Signup and view all the flashcards

S3 List Consistency

S3 provides immediate consistency for listing operations after a write.

Signup and view all the flashcards

S3 Storage Variants

S3 offers various storage classes with different costs, access times, and durability levels.

Signup and view all the flashcards

Alternatives to S3

Alternatives to S3 include main memory, EFS (network file system), DynamoDB (key/value store), and RDS (relational database).

Signup and view all the flashcards

AWS Marketplace

AWS Marketplace allows buying/selling third-party software and SaaS through AWS, with AWS taking a fee on sales.

Signup and view all the flashcards

Marketplace Pricing

Sellers define pricing dimensions (e.g., data, requests) and charges per unit; customers are billed for usage.

Signup and view all the flashcards

Marketplace API

Capture (un)subscribe events via SNS notifications. Sellers are responsible for metering and reporting resource consumption via the AWS Marketplace Metering API every hour.

Signup and view all the flashcards

Core AWS Services

IAM manages user access, CloudWatch handles logging/monitoring, Route 53 provides DNS, VPC creates private networks, CloudFront is a CDN.

Signup and view all the flashcards

Messaging Services

SQS is a queue service, SNS for publish/subscribe, Step Functions manages Lambda workflows.

Signup and view all the flashcards

Advanced AWS Services

SageMaker provides machine learning capabilities, Beanstalk for PaaS, and EMR for Big Data batch processing.

Signup and view all the flashcards

CloudFront

A service that allows for content to be delivered quickly to end users all of around the world.

Signup and view all the flashcards

Study Notes

Modern Cloud Era

  • Amazon's extreme growth led to the development of a sophisticated in-house IT infrastructure
  • Amazon Web Services (AWS) launched EC2 and S3 in 2006, marking the beginning of the modern era of cloud computing
  • Microsoft Azure was launched in 2010, and Google Cloud in 2012

Hyperscalers Market Share

  • Amazon leads the cloud provider market share in IaaS, PaaS, and Hosted Private Cloud

Market Share

  • A chart shows the market cap and share of main cloud providers, both in Europe and the US

AWS Deep Dive

  • Cloud costs are often a significant portion of software product expenses
  • Development and administration costs can be amortized or automated
  • Cloud costs can be effectively marginal
  • Offerings from public cloud vendors now influence the hardware landscape
  • Minor changes can have substantial cost effects
  • Cloud costs can be cheaper or more expensive than on-premise IT, depending on the situation
  • Pricing structures have significant implications for the best software architecture
  • Efficient cloud usage is important
  • Understanding how to price cloud services is essential

Amazon Elastic Compute Cloud (EC2)

  • Amazon EC2 provides a large and growing selection of virtual machines ("instances") with varying characteristics
  • General purpose instances include: m7g, mac, m6g, m6i, m6in, m6a, m5, m5n, m5zn, m5a, m4, a1, t4g, t3, t3a, t2
  • Compute optimized instances include: c8g, c7g, c7gn, c7a, c7i, c6i, c6in, c6a, c6g, c6gn, c5, c5n, c5a, c4
  • Memory optimized instances include: r8g, r7g, r7iz, r6g, r6i, r6in, r6a, r5, r5n, r5b, r5a, r4, x2gd, x2idn, x2iedn, x2iezn, x1, x1e, high memory, z1d
  • Accelerated computing instances include: p4, p3, p2, dl1, trn1, inf2, inf1, g5, g5g, g4dn, g4ad, g3, f1, vt1
  • Storage optimized instances include: im4gn, is4gen, i4i, i3, i3en, d2, d3, d3en, h1
  • HPC optimized instances include: hpc6id, hpc6a
  • Formerly mainly 2-socket Intel servers; now also AMD and custom ARM chips (“Graviton”)
  • More information can be found at: https://aws.amazon.com/ec2/instance-types/ and https://instances.vantage.sh/

Instance Slices

  • Physical servers are divided into smaller virtual machines
  • c5n.metal is like c5n.18xlarge but lacks virtualization
  • There are 2 vCPUs per core for Intel and AMD-based CPUs
  • On ARM/Graviton vCPU equals a core
  • Cost usually increases linearly with resources
  • Google Cloud offers granular RAM/CPU configuration options
  • The Linux On Demand price for a c5n.large with 5.25 GB memory, 2 vCPUs and an Intel Xeon 8124M processor is $0.12
  • The Linux On Demand price for a c5n.xlarge with 10.50 GB memory, 4 vCPUs and an Intel Xeon 8124M processor is $0.25
  • The Linux On Demand price for a c5n.2xlarge with 21.00 GB memory, 8 vCPUs and an Intel Xeon 8124M processor is $0.49
  • The Linux On Demand price for a c5n.4xlarge with 42.00 GB memory, 16 vCPUs and an Intel Xeon 8124M processor is $0.98
  • The Linux On Demand price for a c5n.9xlarge with 96.00 GB memory, 36 vCPUs and an Intel Xeon 8124M processor is $2.21
  • The Linux On Demand price for a c5n.18xlarge with 192.00 GB memory, 72 vCPUs and an Intel Xeon 8124M processor is $4.43

Burst Bandwidth: What Does "Up To 25 Gbit" Mean?

Changing Instances

  • EC2 does not support live migration
  • To change an instance, such as increasing its size, it has to be stopped first
  • Load balancers in front of compute nodes are helpful, in avoiding service disruption when instances are starting and stopping during deployment
  • Google Cloud and Microsoft Azure support live migration

Regions

  • There are 27 physical locations of data centers
  • As an example, eu-central-1 is located in Frankfurt
  • Prices vary by region; for example, eu-central-1 is roughly 15% more expensive than us-east-1

Network Latency

  • Median round trip latency from eu-central-1 to eu-south-1 (Milan) is 12ms
  • Median round trip latency from eu-central-1 to eu-west-1 (Ireland) is 27ms
  • Median round trip latency from eu-central-1 to us-east-1 (N. Virginia) is 93ms
  • Median round trip latency from eu-central-1 to us-west-1 (N. California) is 153ms
  • Median round trip latency from eu-central-1 to ap-southeast-1 (Singapore) is 209ms
  • For comparison, 10,000km at the speed of light (round trip) has a latency of 60ms
  • More information on latency can be found at: https://www.cloudping.co/grid

Availability Zones (AZ)

  • An AZ is similar to a data center with network latency within an AZ that can be as low as 0.03ms
  • Regions usually consist of geographically close AZs but not directly next to each other; for example, eu-central-1a, eu-central-1b, and eu-central-1c
  • More information on measuring AWS Region and AZ latency can be found at: https://www.xkyle.com/Measuring-AWS-Region-and-AZ-Latency/

Internet Traffic Cost

Intra-AWS Transfer Cost

Placement Groups

  • Cloud providers have some degree of control over the physical hardware and rack of EC2 instances
  • Racks have correlated failures involving the Top of Rack switch and the power supply -Placement groups can offer some control over the proximity of instances
  • Cluster groups keep instances close together in the same rack
  • Spread groups place instances on different racks
  • Partition groups organize instances into groups and control if those are on the same or different racks

Region/AZ Choice: Considerations

  • Factors weighing in on Region / AZ choices
  • Legal reasons
  • Network bandwidth cost
  • Network speed
  • Fault tolerance
  • Availability

EC2 Pricing Models

  • The following pricing models are offered
  • On-demand: per-second billing
  • Spot Instances: Variable costs, subject to interruption
  • Reserved Instances: Reservation for 1 or 3 years
  • Reserved Instance Market: Purchase and sale of reserved instances with remaining contract duration
  • Savings Plan: Commitment to yearly spending for a discount

On Demand

  • On-demand is the most flexible and most expensive option
  • Billing is per-second
  • Minimum duration is 1 minute
  • Availability of a particular instance is not guaranteed

Reserved Instance, Reserved Instance Market

  • An instance is reserved for a long duration
  • Users can reserve for 1 or 3 years
  • Provides 50-70% savings
  • Can choose partial upfront payment, or monthly payment
  • Reserved instance market: seller pays service fee of 12% on the price

Savings Plans

  • Commit to a specified spending amount, and get a discount if you stay below this threshold.
  • Spending is committed for 1 or 3 year periods, broken down to hourly increments
  • If hourly spending is less than committed amount, you get a discount
  • If hourly spending is above, get no discount for that usage

Savings Plans Variants

  • Compute Savings Plans: applicable to any EC2 instance
  • EC2 Instance Savings Plans: commitment to specific family in a certain region (eg m5.* or c5.*)
  • One example Savings Plan with a 1-year term, for the c5n.24xlarge instance, has between 28% and 37% savings
  • One example Savings Plan with a 3-year term, for the c5n.24xlarge instance, has between 58% and 64% savings

Spot

  • On-demand pricing can result in many idle instances
  • Unused capacity offered at discount to flexible users
  • Discount can be 60-70% relative to on-demand
  • A limit price can be set, but below demand prices
  • Price and availability depend on the AZ
  • Spot instances used to be governed by actual market mechanism, with large price fluctuations
  • Now, the prices are driven by algorithms

Spot Instance Interruption

  • Spot instances can be interrupted at any time
  • But can often run for weeks without interruptions
  • Two minutes notice of interruption before forced stop
  • AWS publishes interruption frequencies of last 30 days
  • Further information is available at: https://aws.amazon.com/ec2/spot/instance-advisor/

EC2 Pricing Models: Summary

  • Best strategy is to use a mix of models
  • 3-year reserved instances are recommended for base load and mission-critical applications
  • Spot instances are optimal for large jobs not sensitive to latency
  • On-demand instances should only be used to fill unexpected gaps
  • On average, aim to an average cost equal to one-half the on-demand price

Why Are We Talking About Cost So Much?

  • Cloud-native systems should automatically provision optimal instances and pricing models However, this process is usually done manually
  • Better: software picks best instance automatically, taking current spot prices and discounts into account -This is currently an open research question

Things Can Go Wrong...

Outages highlight the importance of proper architecture

  • https://thestack.technology/ovhcloud-fire-strasbourg/
  • https://www.youtube.com/watch?v=swQbA4zub2

Service Level Agreements (SLAs)

  • SLAs are a way to commit to quality standards for a service, e.g., availability, performance, durability
  • As an availability example: uptime of 95% per month
  • SLAs are a way to communicate to service users what they can expect
  • Monetary penalities of SLAs align the incentives of the service vendor and the user

EC2 SLAS

  • Individual instances fail occasionally, even with server-grade hardware
  • Monthly instance availability must be below 99.5% to get Instance-Level SLA refund
  • a. <95.0% uptime (>36.0 hours/month downtime): 100% refund
  • b. <99.0% uptime (>7.2 hours/month downtime): 30% refund
  • c. <99.5% uptime (>3.6 hours/month downtime): 10% refund
  • Region-Level SLA: if availability of two instances in two different AZs is below 99.99% a refund if below
  • a. <95.0% uptime (>36.0 hours/month downtime): 100% refund
  • b. <99.0% uptime (>7.2 hours/month downtime): 30% refund
  • c. <99.99% uptime (> 4.3 minutes/month downtime): 10% refund

AWS Outage History

  • Hyperscalers occasionally have major outages
  • It is probably fewer than most organizations running their own data centers
  • As an example, S3 downtime in us-east-1 on February 28th, 2017 from 9:37AM PST to 1:54PM PST
  • More information here: (https://aws.amazon.com/message/41926/)
  • Because S3 is used by many other services (including EC2), this has been called one of the biggest outages in cloud computing
  • AWS Post-Event Summaries: https://aws.amazon.com/premiumsupport/technology/pes/

Burstable Instances

  • Many systems and applications have low average CPU utilization but occasional workload spikes
  • Burstable instances may be more economical in such cases

Burstable Instances Implementation

  • Burstable instances implement CPU oversubscription, with many VMs on same physical server to smooth over spikes
  • Easy implemented through hypervisor
    • vCPUs started can be over subscribed with the underlying hardware
  • Like overbooked airline seats
  • RAM is also a significant contributor to cost, could also be oversubscribed, but is generally not
  • Available burstable instance families: t4g (ARM), t3 (Intel), t3a (AMD), t2 (Intel)

Burstable Instances Pricing Example

  • t4g.2xlarge, 32 GB, 8 vCPUs, 40% base load, costs $0.27/hour
  • a. 8 vCPUs * 40% = 3.2 vCPUs
  • Accrued credits can occur over a 24 hour period when below base load, and can then be spent later when above this
  • During the time of spending accumulated credits:
  • i. standard mode will slow down to base load
  • ii. unlimited adds charges (around $0.04 vCPU)

Steady-State Comparison (Graviton2, 32 GB RAM)

  • t4g.2xlarge: has 8 vCPUs with a 40.00% base load, and costs $0.27/hour
  • m6g.2xlarge: has 8 vCPUs with a cost of $0.31/hour
  • r6g.xlarge: has 4 vCPUs with a cost of $0.20/hour

Steady-State Comparison (Graviton2, 4 GB RAM)

  • t4g.medium: Has base load 20,00% of the CPU and costs $0.033/h c6g.large: Costs $0.06 Has $0.068/h m6g.Cost medium: Has $0.0385/h and Has 20% $0.033/h

Burstable Instance Analysis

  • Fits with spirit of cloud computing
  • Saves by smoothing load across different tenants
  • Hyperscalers can sell fraction of CPU core to increase utilization.
  • Provides practical savings for bursty workloads
  • The cost of small resources is greater than large
  • Limited for larger Slices Due to OverSubscription Performance is less predictable

Lambda: Function as a Service

  • Function as a Service
  • Code is automatically assigned to compute hardware
  • Automatic scaling
  • Well-suited to short bursts, not sustained tasks, "serverless"
  • Best for stateless tasks: complex jobs are often broken into graphs, with S3 used for inter-step communication

Lambda Pricing

  • Duration cost: This Depends on the capacity of the device, The time is measured in millsecond, Save plans offer a savings discount of 17%
  • cost for duration depends on amount of available RAM and CPU, in GB steps.
  • Requests can be $20 per million request equal for10 CPU MS
  • https://aws.amazon.com/lambda/pricing

Limitations

  • There is a maximum Duration14MIN, and Max Memory and CPUs Also There is NO Network communication

Lambda vs. EC2 On Demand Cost Example (Graviton)

Cost for on deman service includes; 4GB Ram , And there is a cost 22X more expesnive then lambda vs;2CPUs

###How IsLambda Implemented?

  • Containers implement multiple instances of EC" and custom virtual machinces and OS, and minimum memory of 5 MB. Has a virtual machine on the backend

Lambda (vs. EC2)

  • Lambdas are highly scalable with automation, but not customiazble, or hardware access

Fargate

  • Compute service container based vs EC2
  • can run for Elastic Compute Cloud (ECS), or elastic Kuubernetes(EKS) user assigns CPU and Ram constraints. 25 and less than 5 CPUs ARE there
  • $0..33 per CPU AND a RAM PRice. Minimum 1 minute time

Fargate vs. EC2

EC. and fewer cost is also much greater than EC2

Compute vs. Space Tradeoff

Cloud solutions suggest a Unique Soultion. More expensive, vs more Cpu / RAM.

Instance Storage

Instance strorage has 4-9 ,GB

###Amazon Elastic Block Store (EBS):

  • EBS is a virturial store Block Device, NOT A FILE S SYSTEM CAN CAN be added with adiotnt volume. max is bandwidth depends on time Volume can access bby VM

###EBS General Purpose Storage: gp3 Free1 GB; VolumeSize: free, 80$/ TB more per months

EBS Variants

EBS provides storage options, performance . high low, or standard disk

Simple Storage Service (S3):

Important since. EC redundant stoage across:AZ'

S3 Standard

  • Storage IS,
  • put list5$/milion
  • Free data

### S3 Standard Durability and Availability SLAS

. provides High durability and 900;

S3 Consistency:

  • Is a stronger consistency model with immediate read access after write

S3 Variants:

  • have varies acceess cost of durability

Other Storage Alternatives:

-EFS Network filde system, dynamos key, and realational service

Cloud Storage Summary

Different Storage Options and Cost and Tradoff per operations

AWS Marketplace

AWs provides 3rd parte SASS , and customners can negotiate pirce,. AWS and SAAWS have 3% in sales:

  • AWS
  • Selles: get acceS

###AWS Marketplace: Subscription-based Pricing aws has number price DIMS for $ to gbs

Over 200 Addition Services

Over200 ADDITONALS SERIVCES like management.. Queue,and DATA .

Hardware Landscape

EC2 provides little price

  • There new and old, all

Prices evolution of EC2 from 2016, shows little price changes

CPU STAGNATION

  • there is a stagnant cpus - and cloud

Cpu stagnaiton is slow

AMD CPU Cost Stagnation

AMD cost performance decline graph

Custom AWS Hardware

Hyperscale have custom VPC Nitor offers low hardware cost.

Machine Learning

Capabilities AI System have Improves, Rapidly, and are close to Human Preform

Graphics Processing Unit (GPU)

Gpu provide to be the best for gamin, AND MORE FLOPS. HAS MEMORY, ANB

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

AWS Cloud Services PDF

Description

Explore key aspects of AWS EC2, including instance sizing, region selection, and bandwidth allocation. Understand the historical context of cloud computing, focusing on Amazon's role and the evolution of AWS services. Learn about cloud provider competition and the importance of AWS pricing models.

More Like This

Amazon EC2 Purchasing Options Quiz
10 questions
AWS EC2 Instance Metadata Service Attack
20 questions
Amazon Web Services (AWS) EC2 Instances
24 questions
AWS EC2 Instances Placement
5 questions
Use Quizgecko on...
Browser
Browser