AWS Compute Flashcards
List types of compute
- AWS App Runner
- Batch
- EC2
- EC2 Image Builder
- Elastic Beanstalk
- Lambda
- Lightsail
- AWS Outposts
- Serverless Application Repository
What are three types of compute?
- Virtual machines
- Container services
- Serverless
What is Amazon EC2?
Amazon EC2 is a web service that provides secure, resizable compute capacity in the cloud.
When launching an EC2 instance, the first setting is what?
Amazon Machine Image (AMI)
What is an AMI?
Amazon Machine Image. Essentially the blue print for how you want your EC2 configured.
EC2 instances are live instantiations of what is defined in an AMI, much like a cake is a live instantiation of a cake recipe.
An AMI is reusable. You can create many EC2 instances from the same AMI configuration.
What is the relationship between AMI and EC2 instances?
EC2 instances are live instantiations of what is defined in an AMI.
What makes up an EC2 instance?
Virtual processors
Memory
Network
Storage
Graphics processing units
List 5 EC2 Instance Families (MAGCS)
- General purpose - Provides a balance of compute, memory, and networking resources, and can be used for a variety of workloads.
- Compute optimized - Ideal for compute-bound applications that benefit from high-performance processors.
- Accelerated computing - Use hardware accelerators or co-processors to perform functions such as floating-point number calculations, graphics processing, or data pattern matching more efficiently than is possible with conventional CPUs.
- Storage optimized - Designed for workloads that require high, sequential read and write access to large data sets on local storage. They are optimized to deliver tens of thousands of low-latency random I/O operations per second (IOPS) to applications that replicate their data across different instances.
- Memory optimized - Designed to deliver fast performance for workloads that process large data sets in memory.
Where does an EC2 instance live?
Placed in a network called the default Amazon Virtual Private Cloud (VPC)
EC2 Life Cycle. Explain at a high level?
When you launch an instance, you enter the ‘pending state’
Bill has not yet started
Your instance is ‘running’, ready to use, and billable
When running, you can take other actions such as ‘reboot’, ‘terminate’, ‘stop’, and ‘stop-hibernate’.
Stop instance (powering down)
Stop hibernate (locking laptop)
Terminate (getting rid of the instance forever)
ECWhat makes up EC2 pricing?
By the hour.
5 minutes and 30 seconds = 338 seconds
What are 3 main purchasing options for EC2?
- On demand
- Reserved
- Spot instances
What is an on demand instance?
Pay as you go. Billing starts when the instance is running, and billing stops when the instance is in a stopped or terminated state.
What is a reserved instance?
You agree to a term. If stopped or terminated, you still pay because you agreed to a 1 - 3 year term.
What is a spot instance?
A price a customer is willing to pay for EC2 compute? If AWS determines the cost of EC2 compute is greater than what you are paying, your compute may be interrupted. You will get a 2 minute warning.