AWS Fundamentals
Start from zero: what AWS is, how Regions and Availability Zones are organized, and how to use AWS Console and CLI for daily work.
What Is It? (ELI5)
AWS is a giant online data center you rent. Instead of buying your own servers, you click a few buttons and get servers, storage, and networking in minutes.
Why Do We Need It?
- Launch infrastructure fast without hardware buying cycles.
- Scale up and down based on demand.
- Pay for usage instead of fixed large upfront cost.
- Build global apps close to users.
How It Works (Technical)
Global Infrastructure
- Region: Geographic area like
us-east-1. - Availability Zone (AZ): Isolated data center group inside a region.
- Best practice: Run critical workloads across multiple AZs for resilience.
| Concept | AWS | Azure Equivalent |
|---|---|---|
| Geographic unit | Region | Region |
| Data center isolation | Availability Zone | Availability Zone |
| Management portal | AWS Console | Azure Portal |
| CLI tool | AWS CLI | Azure CLI |
Visual Representation
Region (us-east-1)
├─ AZ-a: app server 1
├─ AZ-b: app server 2
└─ AZ-c: database replica
If one AZ fails, others continue serving traffic.
├─ AZ-a: app server 1
├─ AZ-b: app server 2
└─ AZ-c: database replica
If one AZ fails, others continue serving traffic.
Hands-on
# Configure CLI profile aws configure # List configured region and identity aws configure list aws sts get-caller-identity # List EC2 instances in current region aws ec2 describe-instances --query "Reservations[].Instances[].InstanceId" --output table
Debugging Scenario
Problem
Command fails with Unable to locate credentials.
- Run
aws configure listand confirm keys/profile are set. - Check environment variables overriding profile.
- If using SSO, refresh login with
aws sso login.
Interview Questions
Beginner: What is the difference between Region and AZ?
A Region is a geographic location; AZ is an isolated location inside that region.
A Region is a geographic location; AZ is an isolated location inside that region.
Intermediate: Why deploy across multiple AZs?
To reduce single point of failure and improve uptime.
To reduce single point of failure and improve uptime.
Scenario: Your app is slow for users in Asia but hosted in one US region. What would you change?
Deploy workload closer to users and add CDN or multi-region strategy.
Deploy workload closer to users and add CDN or multi-region strategy.
Real-world Usage
A startup launches MVP in one region, then adds another region and CloudFront as traffic grows globally.
Summary
- AWS gives on-demand infrastructure at global scale.
- Regions and AZs are core to resilience and latency planning.
- Console and CLI are both essential for operations.