IAM β Identity and Access Management
Global service (not region-specific). Controls who can do what on which AWS resources. Every API call is authenticated and authorized through IAM.
Users, Groups, Roles
Identity typesPolicy Types
Know the differencesPolicy Evaluation Logic
Decision flowSTS & AssumeRole
Temporary credentials| Feature | IAM Role | IAM User |
|---|---|---|
| Credentials | Temporary (STS) | Long-term (keys) |
| For AWS services | Yes (best practice) | No (avoid) |
| Cross-account | Yes, via trust policy | Possible but messy |
| MFA possible | Yes (on AssumeRole) | Yes |
| Permissions boundary | Yes | Yes |
Organizations & SCPs
Multi-account governanceExam Traps
Typical Scenarios
s3:DeleteObject. Admin creates an IAM Allow. Can they delete? β NO. SCP is the maximum permission ceiling.sts:AssumeRole permission in account A.aws:MultiFactorAuthPresent: true.EC2 β Elastic Compute Cloud
Virtual servers (instances) with configurable CPU, memory, storage, and networking. Building block of most AWS architectures.
| Model | Discount vs On-Demand | Commitment | Best for |
|---|---|---|---|
| On-Demand | β | None | Short-term, unpredictable, dev/test |
| Reserved (Standard) | Up to 72% | 1 or 3 yr, fixed type | Steady-state predictable workloads |
| Reserved (Convertible) | Up to 54% | 1 or 3 yr, can change family | Steady-state, flexibility needed |
| Savings Plans (Compute) | Up to 66% | 1 or 3 yr, $/hr commitment | Flexible: applies to EC2, Lambda, Fargate |
| Spot | Up to 90% | None β can be interrupted 2 min notice | Fault-tolerant batch, ML training, CI/CD |
| Dedicated Host | Can use BYOL | On-Demand or Reserved | Compliance, per-socket/core licensing |
| Dedicated Instance | Higher cost | On-Demand | Compliance, isolated hardware (no host control) |
Instance Families
Choose by workload typePlacement Groups
Control physical placementStorage & Metadata
Key concepts169.254.169.254/latest/user-data.169.254.169.254/latest/meta-data/. Contains IAM role creds, instance-id, AMI-id, etc.Exam Traps
Typical Scenarios
S3 & Storage Services
S3 = object storage (not block, not file). EBS = block storage for EC2. EFS = shared file system. Snow family = data migration. Storage Gateway = hybrid on-prem integration.
| Class | Availability | Min Storage | Retrieval fee | Use case |
|---|---|---|---|---|
| Standard | 99.99% | β | None | Frequently accessed, general purpose |
| Standard-IA | 99.9% | 30 days | Per-GB | Infrequent access, backups, DR |
| One Zone-IA | 99.5% (1 AZ) | 30 days | Per-GB | Infrequent, reproducible data (thumbnails) |
| Intelligent-Tiering | 99.9% | β | None | Unknown or changing access patterns |
| Glacier Instant | 99.9% | 90 days | Per-GB | Archives needing ms retrieval |
| Glacier Flexible | 99.99% | 90 days | Per-GB | Archives, 1 min β 12 h retrieval |
| Glacier Deep Archive | 99.99% | 180 days | Per-GB, 12β48 h | Long-term compliance archives, lowest cost |
Encryption
SSE = server-sidex-amz-server-side-encryption: AES256.aws:kms. Counts against KMS API limits.Replication
Requires versioning ONAccess Control
Layered permissions| EBS Type | Category | Max IOPS | Use case |
|---|---|---|---|
| gp3 | SSD General | 16,000 | Default choice. Boot volumes, dev/test. IOPS independent of size. |
| gp2 | SSD General | 16,000 | Legacy. IOPS scales with size (3 IOPS/GB). |
| io2 Block Express | SSD Provisioned | 256,000 | Sub-ms latency, critical DBs, SAP HANA. Multi-Attach supported. |
| io1 | SSD Provisioned | 64,000 | High-perf DBs. Multi-Attach supported. |
| st1 | HDD Throughput | 500 MiB/s | Big data, data warehouses, log processing. Sequential access. |
| sc1 | HDD Cold | 250 MiB/s | Infrequently accessed archives. Lowest cost HDD. |
EFS vs FSx
Shared file systemsSnow Family
Physical data migrationStorage Gateway
On-prem β AWS hybridAWS DataSync
Online data migration & syncExam Traps
Typical Scenarios
VPC β Virtual Private Cloud
Isolated virtual network in AWS. You control IP addressing, subnets, routing, and network gateways. Default VPC exists in every region.
| Feature | Security Groups | NACLs |
|---|---|---|
| Level | Instance (ENI) | Subnet |
| Statefulness | Stateful β return traffic auto-allowed | Stateless β must allow inbound AND outbound |
| Rules | Allow only | Allow and Deny |
| Rule evaluation | All rules evaluated together | Lowest rule number wins (1β32766) |
| Default | Deny all inbound, allow all outbound | Allow all inbound & outbound |
| Can block specific IP | No | Yes β use Deny rule |
| Option | Direction | Transitive? | Use case |
|---|---|---|---|
| Internet Gateway (IGW) | Both | β | Public subnet β internet. 1 per VPC. |
| NAT Gateway | Outbound only | β | Private subnet β internet. Managed, per-AZ. No inbound initiated from internet. |
| VPC Peering | Both | No | Connect 2 VPCs. Same or cross-account/region. No overlapping CIDRs. |
| Transit Gateway (TGW) | Both | Yes | Hub-and-spoke for many VPCs + on-prem. Supports VPN, Direct Connect. |
| VPC Endpoint (Gateway) | Outbound | β | S3 and DynamoDB only. Free. Route table entry. |
| VPC Endpoint (Interface) | Outbound | β | All other AWS services via PrivateLink. ENI in subnet. Paid. |
| Direct Connect | Both | β | Dedicated private connection to AWS. Consistent bandwidth, lower latency than VPN. |
| Site-to-Site VPN | Both | β | IPSec tunnel over internet. Quick to set up. Variable latency. |
Subnet & Routing Fundamentals
Core conceptsNAT Gateway vs NAT Instance
Private β internetVPC Flow Logs
Network visibilityExam Traps
Typical Scenarios
Databases
RDS for relational, Aurora for high-performance relational, DynamoDB for NoSQL key-value/document, ElastiCache for in-memory caching, Redshift for analytics.
| Feature | Multi-AZ | Read Replica |
|---|---|---|
| Purpose | High Availability / DR | Read Scaling / Performance |
| Replication | Synchronous | Asynchronous |
| Standby readable? | No (not accessible) | Yes (separate endpoint) |
| Failover | Automatic (<60s DNS cutover) | Manual promotion to standalone |
| Cross-region | No (same region only) | Yes |
| Max replicas | 1 standby | Up to 15 (Aurora) / 5 (RDS) |
| Use for DR? | Yes β primary purpose | Cross-region only, must promote |
Aurora
AWS-optimized relational DBDynamoDB
Serverless NoSQL key-valueElastiCache & Redshift
Cache & analyticsAWS DMS β Database Migration Service
Migrate databases to AWSExam Traps
Typical Scenarios
High Availability & Auto Scaling
Elastic Load Balancing distributes traffic. Auto Scaling Groups adjust capacity automatically. Together they form the backbone of resilient, cost-efficient architectures.
| Type | Layer | Protocols | Key features | Use case |
|---|---|---|---|---|
| ALB | L7 | HTTP, HTTPS, gRPC, WebSocket | Path/host/header routing, Lambda targets, Cognito auth, sticky sessions | Web apps, microservices, containers |
| NLB | L4 | TCP, UDP, TLS | Static IP per AZ, Elastic IP, preserve source IP, PrivateLink, ultra-low latency | Gaming, IoT, financial trading, VoIP |
| GWLB | L3 | IP (GENEVE 6081) | Transparent bump-in-the-wire, distributes to virtual appliances | Firewalls, IDS/IPS, deep packet inspection |
| CLB | L4/L7 | HTTP, HTTPS, TCP, SSL | Legacy β not recommended for new workloads | Older EC2-Classic apps only |
ASG Core Concepts
Elasticity engineScaling Policies
When and how much to scaleALB Advanced Features
Most common in exam scenarios/api/* β target group A,
/static/* β target group B.api.example.com β TG A,
www.example.com β TG B.Exam Traps
Typical Scenarios
ApproximateNumberOfMessagesVisible / number of instances) + Target Tracking.Serverless & Event-Driven
No servers to manage. Pay per invocation/request. Lambda runs code, API Gateway exposes HTTP APIs, SQS decouples, SNS fans out, EventBridge routes events.
Lambda Key Concepts
Serverless computeAPI Gateway
Managed HTTP API| Feature | SQS | SNS | EventBridge |
|---|---|---|---|
| Model | Queue (pull) | Topic (push) | Event bus (route) |
| Consumers | 1 consumer per message | Many subscribers simultaneously | Many targets via rules |
| Persistence | Up to 14 days | Not stored β fire and forget | Not stored |
| Ordering | FIFO (strict), Standard (best-effort) | FIFO topics available | No guarantee |
| Filtering | No | Message filter policy (per subscription) | Rich event pattern matching |
| AWS service events | No (must push to SQS) | Some services push to SNS | Native: 90+ AWS services |
| Use case | Decouple microservices, buffer spikes | Fan-out (1 message β many queues/emails/HTTP) | Event-driven architectures, SaaS events |
SQS Key Settings
Know these numbersStep Functions
Orchestrate workflowsAmazon Cognito
Auth for web & mobile appsAmazon MQ
Managed broker for migrations onlyExam Traps
Typical Scenarios
Security Services
Encryption, secrets management, threat detection, vulnerability assessment, and DDoS protection. Defence in depth across all layers.
KMS β Key Management Service
Managed encryption keysSecrets Manager vs SSM Parameter Store
Choosing the right service| Service | What it does | Data sources | Key point |
|---|---|---|---|
| GuardDuty | ML-based threat detection | CloudTrail, VPC Flow Logs, DNS logs, EKS audit | No agents. Detects: compromised instances, crypto mining, unusual API calls, port scanning. |
| Inspector | Vulnerability assessment | EC2 (SSM agent), ECR images, Lambda functions | Automated scanning. CVE findings. Severity scores. Continuous or on-demand. |
| Macie | Sensitive data discovery | S3 buckets | Uses ML to find PII, credentials, financial data in S3. Alerts on unencrypted/public buckets. |
| Detective | Security investigation | CloudTrail, VPC Flow Logs, GuardDuty findings | Root cause analysis. Graph model of resource behavior. After GuardDuty finds a threat. |
| Security Hub | Centralized security posture | GuardDuty, Inspector, Macie, IAM Access Analyzer⦠| Single pane of glass. Automated compliance checks (CIS, PCI-DSS). Prioritized findings. |
| WAF | Web Application Firewall | ALB, API Gateway, CloudFront, AppSync | Rules for SQL injection, XSS, IP blocks, rate limiting. Web ACLs with rule groups. |
| Shield Standard | DDoS protection | All AWS services | Free, automatic for all customers. L3/L4 attacks. |
| Shield Advanced | Enhanced DDoS protection | EC2, ELB, CloudFront, Route 53, Global Accelerator | Paid ($3,000/mo). 24/7 DRT team, cost protection, L7 DDoS with WAF. |
Exam Traps
Typical Scenarios
s3:x-amz-server-side-encryption: AES256, or enable Default Encryption on the bucket.Monitoring, Audit & Compliance
CloudWatch for metrics and alarms, CloudTrail for API audit, Config for compliance, X-Ray for tracing, Trusted Advisor for best-practice checks.
Metrics & Alarms
Observe and reactCloudWatch Logs
Centralized log management| Service | Question it answers | Key detail |
|---|---|---|
| CloudTrail | "Who called what API, when, from where?" | Enabled by default (90-day event history). Enable Trail for S3/CloudWatch Logs long-term storage. Management events (default) vs Data events (S3, Lambda β extra cost). Global services trail for IAM/STS/CloudFront. |
| AWS Config | "What is the configuration of this resource, and is it compliant?" | Records resource configuration changes over time. Config Rules evaluate compliance (managed or custom Lambda). Remediation actions (SSM Automation). Per-config-item cost. |
| X-Ray | "Where is the latency/error in my distributed application?" | Distributed tracing. Service map. Trace = collection of segments. Annotations (indexed, filterable) vs Metadata (not indexed). SDK in Lambda/EC2/ECS. Sampling to control cost. |
| Trusted Advisor | "Am I following AWS best practices?" | Checks: Cost Optimization, Performance, Security, Fault Tolerance, Service Limits. 6 free security checks for all. Full checks require Business/Enterprise Support. |
| EventBridge | "React to state changes in real time" | CloudWatch Events is now EventBridge. Default bus (AWS services), custom bus (your apps), partner bus (SaaS). Rules with patterns or schedules. 90+ AWS service sources. |
Exam Traps
Typical Scenarios
CPUUtilization metric, threshold 80, period 300s, 1 datapoint.DeleteBucket / AuthorizeSecurityGroupIngress).StopLogging event β SNS β email.Architecture & Well-Architected Framework
The 6 pillars of Well-Architected, Disaster Recovery strategies, and common design patterns. These appear in every SAA-C03 scenario question.
Operational Excellence
Run and improve systemsSecurity
Protect systems and dataReliability
Recover from failuresPerformance Efficiency
Use resources efficientlyCost Optimization
Eliminate unnecessary costSustainability
Minimise environmental impact| Strategy | RTO | RPO | Cost | Description |
|---|---|---|---|---|
| Backup & Restore | Hours | Hours | Lowest | Back up data to S3/Glacier. Restore from scratch in DR. No running resources in DR region. Pay only for storage. |
| Pilot Light | 10s min | Minutes | Low | Core services (DB) always running in DR. Other services stopped. On failure: scale up and start stopped resources. Like a pilot light on a gas furnace. |
| Warm Standby | Minutes | Seconds | Medium | Scaled-down but fully functional copy running in DR. On failure: scale up to full production size. Faster than Pilot Light. |
| Multi-Site Active/Active | Near zero | Near zero | Highest | Full production in multiple regions simultaneously. Route 53 or Global Accelerator splits traffic. Instant failover. |
3-Tier Web Architecture
Most common exam patternDecoupling Pattern
Absorb traffic spikesFanout Pattern
1 event β multiple consumersCaching Strategies
Reduce latency and DB loadCost Management
Control and optimize AWS spendExam Traps
Typical Scenarios
Containers β ECS, EKS, ECR & Fargate
ECS = AWS-native container orchestration. EKS = managed Kubernetes. ECR = private container registry. Fargate = serverless compute engine for containers (works with both ECS and EKS).
ECS Building Blocks
Know each componentECS Service Auto Scaling
Scale tasks, not instancesECR β Elastic Container Registry
Container image storage| Feature | ECS β EC2 Launch Type | ECS β Fargate | EKS |
|---|---|---|---|
| Manage EC2 instances | Yes β you patch/scale | No β serverless | Yes (managed node groups) or No (Fargate profile) |
| Orchestrator | ECS (AWS native) | ECS (AWS native) | Kubernetes (portable) |
| Pricing model | Pay per EC2 instance | Pay per task vCPU + memory per second | Pay per EC2 or Fargate + $0.10/hr cluster |
| Cost at scale | Cheaper (pack tasks on instances) | More expensive (each task isolated) | Similar to ECS EC2 |
| K8s ecosystem / portability | No | No | Yes β Helm, operators, existing K8s workloads |
| Complexity | Medium | Low (no infra to manage) | High |
| Best for | Cost-optimised, long-running workloads | Variable workloads, simplicity, microservices | Existing K8s apps, large teams, multi-cloud |
Exam Traps
Typical Scenarios
Networking & Streaming β Route 53, CloudFront, Kinesis
Route 53 for DNS and traffic routing, CloudFront for global CDN, Global Accelerator for TCP/UDP acceleration, Kinesis for real-time data streaming pipelines.
| Policy | How it works | Health checks | Use case |
|---|---|---|---|
| Simple | Returns single record (or multiple IPs β client picks randomly) | No | Single resource, no routing logic needed |
| Weighted | Distributes traffic by weight (0β255). Weight 0 = stop sending traffic | Optional | A/B testing, gradual blue/green migration |
| Latency | Routes to AWS region with lowest measured latency for the user | Optional | Multi-region apps optimising user experience |
| Failover | Active-passive. Primary receives traffic; secondary only if primary fails health check | Required (primary) | DR active-passive setup |
| Geolocation | Routes based on user's country/continent. Default record for unmatched locations | Optional | Content localisation, compliance (GDPR data residency) |
| Geoproximity | Routes based on geographic distance + optional bias (+/- shift traffic). Requires Traffic Flow | Optional | Fine-grained geographic traffic shifting |
| Multivalue Answer | Returns up to 8 healthy records. Client chooses. NOT a substitute for a load balancer | Yes | Simple client-side load balancing with health awareness |
| IP-based | Routes based on client IP CIDR blocks you define | Optional | ISP-specific routing, cost optimisation |
Route 53 Health Checks
Required for failover routingCloudFront
Global CDN β HTTP/HTTPS only| Feature | CloudFront | Global Accelerator |
|---|---|---|
| Protocols | HTTP / HTTPS | TCP, UDP, HTTP/S β any protocol |
| Caching | Yes β caches content at edge | No β proxies traffic, no caching |
| Static IPs | No (domain-based) | 2 static Anycast IPs globally |
| Use case | CDN, static/dynamic web content, API acceleration | Gaming, IoT, VoIP, non-HTTP, IP whitelisting requirements |
| Failover speed | Seconds (DNS-based) | <30 s (Anycast, no DNS) |
| DDoS protection | Shield Standard + WAF | Shield Standard included |
| Feature | Data Streams | Data Firehose | Data Analytics |
|---|---|---|---|
| Management | You manage shards | Fully managed, auto-scale | Fully managed |
| Latency | Real-time (~200 ms) | Near real-time (60 s min buffer) | Real-time SQL |
| Consumers | Multiple custom consumers (Lambda, KCL, Flink) | S3, Redshift, OpenSearch, Splunk, HTTP endpoint | S3, Redshift, Streams |
| Data retention | 1 day (default) β 365 days | No retention β deliver only | No retention |
| Replay | Yes β reprocess from any point | No | No |
| Transformation | Custom in consumer code | Lambda transformation built-in | SQL / Apache Flink |
| Throughput unit | Shard (1 MB/s in, 2 MB/s out) | Automatic | KPU (Kinesis Processing Unit) |
| Use case | Click streams, log ingestion, real-time analytics with custom processing | ETL to data lake/warehouse β S3 or Redshift | Real-time metrics, anomaly detection, SQL on streams |
Exam Traps
example.com). CNAME cannot point to the root (subdomains only). Alias records to AWS resources are free.Typical Scenarios
Analytics & IaC
Serverless analytics on S3 (Athena/Glue), infrastructure as code (CloudFormation), managed deployments (Elastic Beanstalk), operations automation (SSM), certificates (ACM/CloudHSM), backup, and big data (EMR).
Amazon Athena
Serverless SQL on S3AWS Glue
Serverless ETL & Data CatalogAmazon EMR
Managed big data (Hadoop/Spark)AWS CloudFormation
IaC β define AWS resources as codeElastic Beanstalk
PaaS β deploy code, AWS manages infraAWS Systems Manager (SSM)
Manage EC2 and on-prem at scaleAWS Backup
Centralized backup across servicesACM β AWS Certificate Manager
Free SSL/TLS for AWS servicesCloudHSM
Dedicated Hardware Security ModuleExam Traps
DeletionPolicy: Retain or Snapshot on critical resources (RDS, S3) to protect them from rollback or stack deletion.