EC2 Deck Flashcards
(34 cards)
EC2 is _AAS?
IAAS
What is EC2 used for?
o Renting virtual machines (EC2)
o Storing data on virtual drives (EBS)
o Distributing load across machines (ELB)
o Scaling the services using an auto-scaling group (ASG)
What is ECs' Sizing & Config options? o Amazon Machine Image Operating System (OS): o Compute power & cores (CPU) o Random-access memory (RAM) o Storage space: Network-attached: Hardware o Network card o Firewall rules o Bootstrap script (configure at first launch)
o Operating System (OS): Linux or Windows
o Compute power & cores (CPU)
o Random-access memory (RAM)
o Storage space:
Network-attached (EBS & EFS)
Hardware (EC2 Instance Store)
o Network card: speed of the card, Public IP address
o Firewall rules: security group
o Bootstrap script (configure at first launch): EC2 User Data
What does each represent?
m5.2xlarge
m: instance class
5: generation
2xlarge: size w/in instance
What are the EC2 instance types?
General purpose Compute Optimized Memory Optimized Accelerated Computing Storage Optimized Instance Features Measuring Instance Performance
What is general purpose EC2 instance good for? What are the classes?
- Great for a diversity of workloads such as web servers or code repositories
- Balance b/w compute, memory & networking
Classes: Mac, T, M, A
What is compute optimized EC2 instance good for? What are the classes?
Great for compute-intensive tasks requiring high performance processing
Use cases: • Batch processing workloads • Media transcoding • High performance web servers • High performance computing (HPC) • Scientific modeling & machine learning • Dedicated gaming servers
Classes: C
What is memory optimized EC2 instance good for? What are the classes?
Fast performance for workloads that process large data sets in memory
Use cases:
• Floating point number calculations
• Graphic processing
• Data pattern matching
Classes: R, X, High Memory, Z
What is storage optimized EC2 instance good for? What are the classes?
Great for storage-intensive tasks that require high, sequential read and write access to large data sets on local storage
Use cases:
• High frequency online transaction processing (OLTP) systems
• Relational & NoSQL databases
• Cache for in-memory databases (for example, Redis)
• Data warehousing applications
• Distributed file systems
Classes: I, D, H
What is fundamental of network security in AWS?
Security Groups
What controls how traffic is allowed into or out of our EC2 Instances?
Security Groups
What is the most cost efficient instance in AWS? What is the d/c and compared to what?
EC2 Spot Instance & up to 90% compared to On-demand
What is EC2 Spot Instance best used for?
Useful for workloads that are resilient to failure
• Batch jobs
• Data analysis
• Image processing
• Any distributed workloads
• Workloads with a flexible start and end time
Not suitable for critical jobs or databases
What is AWS responsible for EC2 as part of shared responsibility model?
• Infrastructure (global network security) • Isolation on physical hosts • Replacing faulty hardware • Compliance validation
What is customer responsible for EC2 as part of shared responsibility model?
• Security Groups rules • Operating-system patches and updates • Software and utilities installed on the EC2 instance • IAM Roles assigned to EC2 & IAM user access management • Data security on your instance
What is EC2 User Data?
Script launched at the first start of an instance
What is SSH used for?
To start a terminal into our EC2 Instances (port 22)
What storages exist for EC2 Instance?
EBS volumes AMI EC2 Image Builder EC2 Instance Store EFS
What is an EBS volume? What can it do? How many instances can it be associated with? What’s a good analogy?
NETWORK drive you can attach to your instances while they run that allows the instances to persist data even after termination. It can only be mounted to one instance at a time.
Analogy: USB
What limitations exist with EBS volume?
It can only be mounted to one instance at a time, and it’s bound to a specific AZ
Can you copy EBS volume? If so, how?
With EBS snapshot (i.e. copy/back-up)
How does EBS provisioned capacity work for size and pricing?
Get billed for all the provisioned capacity and can increase capacity over time
What is a customization of an EC2 instance where you don’t change IP? What is the advantage of this?
Amazon Machine Image
You add your own software, configuration, operating system, monitoring… Faster boot / configuration time because all your software is pre-packaged
What are the regional restrictions for AMI?
AMIs are built for a specific region but can be copied across regions