Module Overview
Estimated Time: 2-3 hours | Difficulty: Beginner | Prerequisites: None
- AWS global infrastructure and how to choose regions
- Availability Zones and designing for high availability
- AWS pricing models and cost optimization strategies
- The shared responsibility model for security
- Account structure and AWS Organizations
AWS Global Infrastructure
AWS operates the world’s largest cloud infrastructure, designed for high availability, fault tolerance, and low latency.Regions
A Region is a geographical area containing multiple data centers. Each region is completely independent and isolated from other regions.How to Choose a Region
Latency
Choose the region closest to your users for lowest latency
Compliance
Data residency laws may require specific regions (GDPR, HIPAA)
Service Availability
Not all services are available in all regions—check first
Pricing
Prices vary by region (us-east-1 is often cheapest)
Pro Tip: us-east-1 (N. Virginia) is the oldest and largest AWS region. New services launch here first, but it’s also the most crowded. Consider us-east-2 (Ohio) for similar pricing with less congestion.
Availability Zones (AZs)
Each region has multiple Availability Zones (typically 3-6). Each AZ is one or more discrete data centers with redundant power, networking, and connectivity.Designing for High Availability
Edge Locations
Edge Locations are AWS data centers designed to deliver content to end users with low latency. There are 400+ edge locations worldwide. Services using Edge Locations:- CloudFront (CDN) - Cache static and dynamic content
- Route 53 (DNS) - Low-latency DNS resolution
- AWS Global Accelerator - Optimized routing
- Lambda@Edge - Run code at edge locations
AWS Pricing Models
Understanding pricing is crucial for cost optimization — often 40-70% of cloud spend can be optimized. The biggest savings come not from clever discounting but from turning off resources you are not using and right-sizing instances that are over-provisioned. A senior engineer would say: “The cheapest instance is the one you don’t run.”Pricing Model Comparison
On-Demand Pricing
Pay by the second (minimum 60 seconds) with no commitments.Reserved Instances
Commit to 1 or 3 years for significant discounts.Spot Instances
Use unused EC2 capacity for up to 90% off. Instances can be reclaimed with a 2-minute warning. The mental model: spot instances are like standby airline tickets — you get a massive discount because you are willing to be bumped if the flight fills up. The key to using spot successfully is designing for interruption: run stateless workloads, spread across multiple instance types and AZs, and save checkpoints frequently.Spot Best Practice: Use Spot Fleet with multiple instance types and AZs to maximize availability and minimize interruptions.
Savings Plans
Flexible alternative to Reserved Instances. Commit to a consistent amount of usage ($/hour) for 1 or 3 years.Shared Responsibility Model
AWS security is a shared responsibility between AWS and the customer. This is the single most important security concept in cloud computing — misunderstanding it is behind the majority of cloud security breaches. The analogy: AWS provides a secure building (locks on the doors, security guards, fire suppression), but if you leave your apartment door wide open, that is your problem, not the building’s. AWS secures the infrastructure; you secure what you put on it.Responsibility by Service Type
AWS Account Structure
Root Account Security
AWS Organizations
Manage multiple AWS accounts centrally with consolidated billing and policy governance.Common Abbreviations Reference
🎯 Interview Questions
Q1: What's the difference between a Region and an Availability Zone?
Q1: What's the difference between a Region and an Availability Zone?
Answer: A Region is a geographical area (e.g., us-east-1) containing multiple isolated data center clusters called Availability Zones. AZs are physically separated but connected by low-latency fiber. Regions are completely isolated from each other.Key Points:
- Region = Geographic area (e.g., N. Virginia, Ireland)
- AZ = One or more data centers within a region
- AZs are connected via private fiber (< 2ms latency)
- Regions are isolated for fault tolerance
Q2: When would you use Spot Instances vs Reserved Instances?
Q2: When would you use Spot Instances vs Reserved Instances?
Answer:Spot Instances (up to 90% off):
- Fault-tolerant, stateless workloads
- Batch processing, CI/CD, data analysis
- Can be interrupted with 2-minute notice
- Steady-state, predictable workloads
- Production databases, core application servers
- Commitment of 1 or 3 years
Q4: How would you design a highly available application on AWS?
Q4: How would you design a highly available application on AWS?
Answer:
- Multi-AZ Deployment: Run instances in at least 2-3 AZs
- Load Balancing: Use ALB/NLB to distribute traffic
- Auto Scaling: Automatically add/remove instances based on demand
- Database HA: RDS Multi-AZ or Aurora with read replicas
- Stateless Design: Store session data in ElastiCache, not on instances
- Health Checks: Route 53 health checks for DNS failover
- Data Replication: S3 cross-region replication for DR
Q5: What is an ARN and why is it important?
Q5: What is an ARN and why is it important?
Answer: ARN (Amazon Resource Name) is a unique identifier for any AWS resource. Format:Examples:
arn:aws:s3:::my-bucket(S3 bucket)arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0
- Required in IAM policies to specify resources
- Used in CloudFormation/Terraform for cross-references
- Essential for resource-level permissions
🧪 Hands-On Lab: Secure Account Setup
Objective: Set up your AWS account following security best practices.1
Enable MFA on Root Account
- Sign in as root user
- Go to IAM → Security credentials
- Enable virtual MFA or hardware MFA
2
Create IAM Admin User
- Create IAM user with
AdministratorAccesspolicy - Enable MFA for this user
- Use this user for all future operations
3
Set Up Billing Alerts
- Go to Billing → Budgets
- Create a budget for $10 (or your limit)
- Set email alerts at 50%, 80%, 100%
4
Enable CloudTrail
- Go to CloudTrail
- Create a trail in all regions
- Store logs in S3 with encryption
5
Create Account Alias
- Go to IAM → Dashboard
- Create a custom alias for easier sign-in
- Bookmark the new sign-in URL
Next Module
Compute Services
Learn about EC2, Lambda, ECS, EKS, and Auto Scaling