Quizzes · Compute · Level 0
EC2 (Elastic Compute Cloud)
Rent a virtual server by the second.
Think of it as: Renting a computer you have to look after yourself.
What to know for Level 0
- With EC2 you get a server: patching the operating system and everything on it is your job. AWS runs the hardware.
- The AMI decides what a server starts with (operating system and software); the instance type decides its size (CPU and memory).
- On-Demand Linux instances are billed per second while running, with a one-minute minimum. A stopped instance only pays for its disk.
- An app on EC2 gets AWS permissions from a role attached through an instance profile, never from access keys in files or user data.
- EC2 doesn't send logs by itself: install the CloudWatch agent and let the instance's role write logs.
What to know for Level 1
- An AMI belongs to one Region. To launch the same image elsewhere, copy the AMI to that Region first.
- Stopping an instance keeps its EBS volumes (you pay for storage, not compute) and you can start it again. Terminating deletes the instance for good, and its root volume by default.
- Shared responsibility: AWS secures the cloud itself (data centres, hardware, the virtualization layer); you secure what you put in it. On EC2 that's the OS, patches, firewall rules, apps and data; managed services like RDS or Lambda take more of it off you.
More detail
You choose the size (the instance type), the operating system (the AMI) and the network, and EC2 gives you a running server. Everything on it, from patching to the web server, is your job.
Quiz yourself on EC2 (Elastic Compute Cloud) →Study flash cards
← All quizzes