EC2 Flashcards
This deck aims to help retain concepts related to the AWS EC2 service.
What AWS service provides secure, scalable compute capacity in the cloud?
AWS Elastic Compute Cloud (EC2)
What is the resiliency posture of EC2 service?
EC2 is an Availability Zone-resilient service
Can an EC2 instance be connected to ENI, or EBS volume, which exists in different Availability Zones?
No, they must be in the same Availability Zone
What events might cause an EC2 instance to be moved to a different EC2 host?
- The host is down for maintenance by AWS
- The instance is restarted (stopped and started again)
What are some common use cases for EC2 instances?
Usually the default choice for most cases (or a good starting point)
1. Traditional services (OS + App)
2. Long-running compute (months/years 24/7)
3. Server-style applications (burst, steady-state)
4. Monolithic applications
5. Application migration from on-prem
6. Disaster recovery
What are the different types of EC2 hosts?
Shared Host (default)
Dedicated Instance
Dedicated Host
Name the EC2 host type where the physical server is shared with other customer instances.
Shared Host (default)
Name the EC2 host type where the instance can be moved to a different physical server.
Dedicated Instance
Name the EC2 host type where the physical server does not change.
Dedicated Host
What are the different types of EC2 instances?
General Purpose (default)
Compute Optimized
Memory Optimized
Accelerated Computing
Storage Optimized
HPC Optimized
Why does AWS offer so many different EC2 instance types?
Instance types consist of various combinations of CPU, memory, storage, and networking capacity, allowing the selection of the most appropriate mix of resources for the use case
Which EC2 instance type would be appropriate for diverse workloads that require an equal resource ratio?
General Purpose (default)
A1, M6g, T3, T3a, M5, M5a, M5n
Which EC2 instance type would be appropriate for media processing, high-performance computing (HPC), science modelling, gaming, or machine learning workloads?
Compute Optimized
C5, C5n
Which EC2 instance type would be appropriate for processing large in-memory datasets, or database workloads?
Memory Optimized
R5, R5a, X1, X1e, u-Xtb1, z1d
List the most popular EC2 instance families for the General Purpose instance type.
A1, M6g: Graviton, Graviton 2, arm-based processors
T3, T3a: Burst pools, normal usage with occasional peaks
M5, M5a, M5n: steady-state workloads (Intel/AMD arch)
Which EC2 instance type would be appropriate for Hardware GPU, or field programmable gate arrays (FPGAs) workloads?
Accelerated Computing
P3, G4, F1, Inf1
Which EC2 instance type would be appropriate for sequential and random IO, transactional database scaling, data warehousing, elastic search, and analytics workloads?
Storage Optimized
I3/I3en, D2, H1
Decode the following instance type: r5d.8xlarge
r - instance family
5 - instance generation
d - instance additional features
8xlarge - instance size
Which EC2 instance type would be appropriate for applications such as large, complex simulations and deep learning workloads?
HPC Optimized
List the most popular EC2 instance families for the Compute Optimised instance type.
C5, C5n
- media encoding
- scientific modelling
- gaming
- machine learning
List the most popular EC2 instance families for the Memory Optimised instance type.
R5, R5a: real-time analytics, in-memory cache, in-memory operations
X1, X1e: large-scale in-memory applications, lowest $/GiB memory in AWS
u-Xtb1: highest memory of all AWS instances
z1d: large memory and CPU with directly attached NVMe
List the most popular EC2 instance families for the Accelerated Computing instance type.
P3: GPU instances (Tesla v100 GPUs) for parallel processing and machine learning
G4: GPU instances (NVIDIA T4 Tensor) for graphic intensive and machine learning
F1: field programming gate arrays (FPGA) genomic, financial analysis, big data
Inf1: machine learning, recommendation, forecasting, analysis, voice, conversation
List the most popular EC2 instance families for the Storage Optimised instance type
I3/I3en: local high-performance SSD (NVMe), NoSQL databases, warehousing, analytics
D2: Dense Storage (HDD) - data warehousing, HADOOP, distributed file systems, data processing (lowest price disk throughput)
H1: high throughput, balance CPU/Memory, HDFS, MAPR-FS, file systems, apache Kafka, big data
What is the difference between the following PUBLIC EC2 connection methods: Client SSH and EC2 Instance Connect?
- Client SSH: requires an SSH key and the connection must originate from the client’s (your) IP address
- EC2 Instance Connect: does not require an SSH key, uses IAM to determine permissions, and the connection originates from an AWS IP address