AWS-Module 2: Computing in the cloud Flashcards
What is Amazon Elastic Cloud (EC2)
AWS has a variety of different severs that provide IT resources & the severs that you use to access those servers is called EC2
a service that lets you run virtual servers in the cloud
How is EC2 beneficial compared to having your own server on-premise?
AWS EC2 is very beneficial in comparison because they already:
- Built datacenters for the servers
- Secured the datacenters
- Purchased servers
- Installed servers
- Servers already online to be used
Basically the whole process that it would take if the company wanted to know their own servers AWS already handle all of it
EC2 uses ______________
multitenancy
What does mean multitenancy?
it shares underlying hardware between virtual machines EC2 can allow you to vertical scale (you can make an instance bigger or smaller whenever you need to)
Explain how EC2 functions
EC2 runs on actual host machines so when you use EC2, you dont have an entire host to yourself but actually sharing a host with others (virtual machines), it has a hypervisor on that host that is responsible for sharing the underlying resources between the virtual machines (multitenacy) & the hypervisor also isolates the virtual machines to keep them secure even though your sharing a host
With EC2 you can control the _________ of other applications & software
configuration
AWS uses a ___________ which allows you to acquire servers through this model
Compute as a service (CaaS)
Describe EC2 instances
They are like employees, they are optimized for different tasks. When selecting an instance type, consider the specific needs of your workloads and applications. This might include requirements for compute, memory, or storage capabilities.
What are the different EC2 instance families?
- General purpose
- Compute optimized
- Memory opitmized
- Accelerated computing
- Storage optimized
General purpose instances
of compute, memory, and networking resources, and can be used for a variety of diverse workloads like web service or code repositories.
Compute optimized instances
are ideal for compute-intensive tasks like gaming servers, high performance computing or HPC, and even scientific modeling
Memory optimized instances
Are good for memory-intensive tasks.
Storage optimized instances
Workloads that require high performance for locally stored data.
Accelerated Computing Instances
Accelerated computing are good for floating point number calculations, graphics processing, or data pattern matching, as they use hardware accelerators.
What are the different type of EC2 pricing?
- On-demand
- Saving plan
- Reserved instances
- Spot instances
- Dedicated host
On-demand pricing
pay what you use (best for short-term, irregular workload that can’t be interrupted
Saving plan pricing
offers low prices on EC2 usages in exchange for a commitment to a consistent amount of usage measures in dollars per hour for 1-3 yr term, an hourly spend commitment for 1-3 yr term (can save up to 72% on your AWS usage & can lower your EC2 usages prices
Reserved instances
used for steady-state workloads or ones with predictable usage & offer you up to 75% discount verus on-demand pricing (have to commit to 1-3 yr term & can pay either upfront. Partial upfront, no upfront)
What are the two different types of Reserve instances?
- Standard reserve
- Convertible reserved instances
Standard Reserved Instances
This option is a good fit if you know the EC2 instance type and size you need for your steady-state applications and in which AWS Region you plan to run them.
Reserved Instances require you to state what qualifications?
- Instance type & size (For example, m5.xlarge)
- Platform description (operating system) : (For example, Microsoft Windows Server or Red Hat Enterprise Linux)
- Tenancy (Default tenancy or dedicated tenancy)
Convertible Reserved Instances
If you need to run your EC2 instances in different Availability Zones or different instance types, then Convertible Reserved Instances might be right for you. Note: You trade in a deeper discount when you require flexibility to run your EC2 instances.
At the end of a Reserved Instance term, you can continue using the Amazon EC2 instance without interruption. However, you are charged On-Demand rates until you do one of the following, what are they?
- Terminate the instance.
- Purchase a new Reserved Instance that matches the instance attributes (instance family and size, Region, platform, and tenancy).
Spot instances
they allow you to request spare Amazon EC2 computing capacity for up to 90% off of the On-Demand price. The catch here is that AWS can reclaim the instance at any time they need it, giving you a two-minute warning to finish up work and save state (You can always resume later if needed. So when choosing Spot Instances, make sure your workloads can tolerate being interrupted.