AWS Beginner to Intermediate Interview Notes
EC2 1. EC2 (Elastic Compute Cloud)
What is EC2?
EC2 provides virtual servers (instances) in the cloud that let you run applications just like on a
physical computer.
Key Features:
- AMI (Amazon Machine Image): A pre-configured template with OS + software.
- Instance Type: Defines compute power (e.g., [Link], [Link]).
- Key Pair: For securely accessing your EC2 via SSH or RDP.
- Security Groups: Acts as a firewall to control inbound/outbound traffic.
- Elastic IP: A static IP address for your EC2 instance.
- User Data: Scripts that run on launch (like software installs).
- Auto Scaling: Automatically adjusts the number of instances based on load.
- ELB (Elastic Load Balancer): Distributes traffic across instances.
Use Cases: Web hosting, app hosting, backend APIs, development servers.
IAM 2. IAM (Identity & Access Management)
What is IAM?
IAM helps control access to AWS resources.
Key Concepts:
- User, Group, Role, Policy, MFA
Best Practice: Never use the root account for daily tasks. Enable MFA. Apply least privilege.
S3 3. S3 (Simple Storage Service)
What is S3?
S3 is AWS's object storage system.
Core Terms:
- Bucket, Object, Key, Storage Classes, Versioning, Lifecycle Policies, Bucket Policy
Use Cases: Static website hosting, backup storage, media content.
EBS 4. EBS (Elastic Block Store)
What is EBS?
EBS provides persistent, block-level storage volumes for EC2.
Types: gp3, io2, st1
Snapshots: EBS volumes can be backed up into S3.
Use Cases: OS storage, database storage, application data.
EFS 5. EFS (Elastic File System)
What is EFS?
Scalable file system shared across EC2 instances.
Use Cases: Shared code repositories, containerized storage.
RDS 6. RDS (Relational Database Service)
Managed relational databases (MySQL, PostgreSQL, etc.).
Benefits: Backups, scaling, Multi-AZ.
Use Cases: Web apps, ERP systems.
DynamoDB 7. DynamoDB
NoSQL key-value and document database.
Features: Scalable, low latency, integrated with Lambda.
VPC 8. VPC (Virtual Private Cloud)
Isolated network within AWS.
Components: Subnets, Internet/NAT Gateway, Route Tables, Security Groups.
Lambda 9. Lambda
Serverless function execution.
Use Cases: APIs, automation, file processing.
CloudFormation 10. CloudFormation
Infrastructure as Code.
Use Cases: CI/CD, repeatable infrastructure.
CloudWatch & CloudTrail 11. CloudWatch & CloudTrail
CloudWatch: Logs and metrics.
CloudTrail: API call tracking.
SQS & SNS 12. SQS & SNS
SQS: Queues. SNS: Notifications (email, SMS).
Elastic Beanstalk 13. Elastic Beanstalk
Platform as a Service.
Use Case: Quick deployment without managing infrastructure.
Route 53 14. Route 53
DNS and domain registration.
AWS Free Tier AWS Free Tier Overview
- EC2: 750 hrs/month
- S3: 5GB storage
- RDS: 750 hrs/month
- Lambda: 1M requests/month