EC2
Amazon EC2 provides resizable virtual machines in the cloud. It is one of the core AWS services and is widely used for hosting applications, APIs, internal services, and custom infrastructure.
What it does
Virtual machines in AWS.
When to use
Use EC2 when you need full control over the operating system, runtime, storage, and networking of your server.
Key Concepts
Instances are virtual machines with different sizes and capabilities.
AMI is a template used to launch EC2 instances.
Security Groups act as virtual firewalls for instances.
EC2 is often used with EBS, ALB, Auto Scaling, and IAM.
Common Use Cases
Hosting backend APIs and web applications.
Running custom Linux or Windows workloads.
Operating self-managed software in AWS.
Interview Questions
What is EC2?
What is the difference between an AMI and an instance?
What are Security Groups in EC2?