EC2 Flashcards
What is an AMI?
Amazon Machine Image: Template for software configuration (operating system, application server, applications). Need to specify an AMI when you launch an instance.
Billing
Pricing is per instance-hour consumed for each instance, from the time an instance is launched until it is terminated or stopped. Each partial instance-hour consumed will be billed per-second (minimum of 1 minute) for Linux or Ubuntu Instances and as a full hour for all other instance types.
Dedicated Host
A physical server with EC2 instance capacity fully dedicated to your use. Useful for compliance needs.
Dedicated Instance
EC2 instances that run in a VPC on hardware dedicated to a single customer. Physically isolated at the host hardware level. May share with other instances from same AWS account. Can still use RI purchasing for discounts.
Elastic Block Storage (EBS) Volumes
Storage attached to EC2 instances
Elastic Load Balancing
Feature of EC2, balances traffic across instances. Increases fault tolerance.
Key Pairs
During the creation process of the Amazon EC2 instances you can create and download your key pair. This key pair is required when you want to connect to your Amazon EC2 instances.
Note: You can’t connect to your EC2 instance unless you attach a Security Group that allows SSH access from your IP.
Payment Options/Plans
Payment Plans:
All Upfront = largest discount
Partial upfront = low upfront fee plus discounted rate
No Upfront = discounted hourly rate for term. One year at a time only.
Pricing
Varies by storage capacity and instance type, AMI selected, region, data transfer in/out, and payment option selected.
On Demand: billed by second, minimum 1 minute.
Spot Instances: up to 90% discount, rates fluctuate based on Spot marketplace.
Reserved Instances: charged by hour regardless if usage occurs. Low up-front fee + discounted rate. 1 or 3 year terms.
- Convertible RI – discounted rate with ability to change configuration
- Standard RI – biggest discount but no changes
- Scheduled RI – launch in specified time range
What is EC2?
EC2 provides scalable computing capacity in AWS cloud. Eliminates need to provision hardware up front, and allows you to launch as many or as few virtual servers as you need.
EC2 allows you to scale up or down to handle changes in requirements or spikes in popularity, reducing the need to forecast traffic.
What are the components of launching an EC2 instance?
- AMI (Amazon Machine Image): For software configuration
- Instance type: For processing power, network speed, and memory
- Storage: EBS, SSD, etc. Also storage amount
- Configuration: IP addressing, VPC, subnet selection, IAM roles, and network interfacing
- Security Groups
- Tags: For labeling and cost segmentation
- Key Pair: For access to the instance
What are the three main categories of AMI’s?
- Community AMI’s
- Free to use
- Generally, with these AMI’s you are just selecting the OS you want - AWS Marketplace AMI’s
- Pay to use
- Generally comes packaged with additional, licensed software - My AMI’s
- AMI”s created on your AWS account
What is the function of an instance type?
To specify the CPU power, network performance, and memory of an EC2 instance.
What are the different families of instance types?
- General purpose
- Compute optimized
- GPU optimized
- Memory optimized
- Storage optimized
What are the EC2 purchasing options?
- On Demand
- Reserved
- Spot
- Savings Plans
- Dedicated Host