EC2 Fundementals Flashcards
(32 cards)
What does EC2 stand for?
Elastic Compute Cloud
What are the core capabilities of EC2?
Renting VMs, EBS storage, ELB for load balancing, ASG for scaling.
What is EC2 User Data used for?
Running a script at first boot to install packages, updates, or configure the instance.
Does EC2 User Data run every time the instance starts?
No, it runs only at the first launch.
What does EC2 user data script run as?
It runs as the root user.
What are the configuration options when launching an EC2 instance?
OS, CPU, RAM, Storage, Network, Security Group, EC2 User Data.
What is the EC2 instance naming convention format?
Example: m5.2xlarge – class, generation, size.
What is a General Purpose EC2 instance good for?
Balanced compute, memory, networking – good for web servers.
What workloads suit Compute Optimized EC2 instances?
Batch processing, HPC, gaming servers, media transcoding.
What are Memory Optimized instances best used for?
Large in-memory data processing, BI apps, high-perf databases.
When should you use Storage Optimized instances?
High IOPS tasks, OLTP, data warehousing, cache, file systems.
What is the function of a Security Group in EC2?
It acts as a virtual firewall to control inbound and outbound traffic.
Do security groups allow DENY rules?
No, only ALLOW rules are permitted.
What happens if your app times out on EC2?
Likely a security group issue.
What happens if your app gives a connection refused error?
Likely the app isn’t running or configured incorrectly.
What are some classic ports to know for EC2?
22-SSH, 21-FTP, 80-HTTP, 443-HTTPS, 3389-RDP.
What is EC2 Instance Connect?
Browser-based SSH access without downloading a key file.
What EC2 OS is required for EC2 Instance Connect to work out-of-the-box?
Amazon Linux 2.
What are EC2 On-Demand instances best for?
Short-term, unpredictable workloads.
How are EC2 On-Demand instances billed?
Per second (Linux/Windows) or per hour (others).
What are EC2 Reserved Instances best for?
Steady-state usage, long-term workloads.
What is a Convertible Reserved Instance?
RI that allows change in instance family, type, OS, etc.
What are EC2 Savings Plans?
Discounted pricing based on commitment to usage ($/hr for 1–3 years).
How much can you save with EC2 Spot Instances?
Up to 90% compared to On-Demand.