đŻ AWS SAA-C03 COMPLETE MASTER STUDY GUIDE â FINAL EDITION
1ď¸âŁ EXAM DOMAIN BREAKDOWN
Domain 1: Design Secure Architectures â 30%
IAM, KMS, Secrets Manager, VPC security, encryption, compliance
Domain 2: Design Resilient Architectures â 26%
Multi-AZ, DR strategies, decoupling, HA, backup
Domain 3: Design High-Performing Architectures â 24%
Compute selection, storage selection, database selection, caching, networking performance
Domain 4: Design Cost-Optimized Architectures â 20%
Storage classes, compute pricing models, cost tools
đ Domain 1 + 2 = 56% of the exam. Security and resilience are NOT optional study areas.
Task Statement Cheat Sheet
| Domain | Task Statement | Core Ask |
|---|---|---|
| 1.1 | Secure network architectures | SG/NACL/VPC layers |
| 1.2 | Secure compute/storage/DB | Encryption, IAM roles |
| 1.3 | Determine access controls | IAM, SCP, boundaries |
| 1.4 | Data security options | KMS, Secrets Manager |
| 2.1 | Scalable/loosely coupled | SQS/SNS/EventBridge |
| 2.2 | HA/fault tolerant | Multi-AZ, ASG, ELB |
| 2.3 | Disaster recovery | Backup, DRS, RTO/RPO |
| 3.1 | High-performing storage | S3 classes, EBS types |
| 3.2 | High-performing compute | EC2 families, Lambda |
| 3.3 | High-performing DB | Aurora, DynamoDB, DAX |
| 3.4 | High-performing networking | CloudFront, GA, Direct Connect |
| 4.1 | Cost-effective storage | Lifecycle, tiering |
| 4.2 | Cost-effective compute | Spot, RI, Savings Plans |
| 4.3 | Cost-effective DB | Aurora Serverless, read replicas |
| 4.4 | Cost monitoring | Cost Explorer, Budgets, CUR |
2ď¸âŁ EXAM FRAMEWORK
7 Steps:
1ď¸âŁ Read the LAST sentence first
2ď¸âŁ Find the REQUIREMENT
3ď¸âŁ Find the CONSTRAINT
4ď¸âŁ Highlight KEYWORDS
5ď¸âŁ ELIMINATE impossible answers
6ď¸âŁ COMPARE the final 2
7ď¸âŁ Pick the BEST-PRACTICE answer
đ§Ş Worked Examples
đ "...automatic failover, AZ outage, zero data loss, no app changes" â Eliminate â Read Replica (async, manual) â â
RDS Multi-AZ
đ "...serve video worldwide, lowest latency, signed URLs" â Eliminate â Direct S3 (no edge cache) â â
CloudFront + S3 (OAC) + Signed URLs
đ "...exactly once, exact order" â Eliminate â SQS Standard, â SNS â â
SQS FIFO
đ "Nightly batch job, 2 hours, must not need patching, lowest cost, fault-tolerant" â Eliminate â Lambda (>15min limit), â On-Demand EC2 â â
AWS Batch on Spot / Fargate
đ "Users worldwide need lowest latency access to a REST API backed by Lambda, with throttling" â Eliminate â ALB alone â â
API Gateway (edge-optimized) + Lambda
đ "500TB, 1 week deadline, 100Mbps line" â Eliminate â DataSync (too slow) â â
Snowball Edge
đ "Recover in under 1 minute, region failure, cost not a concern" â Eliminate â Warm Standby â â
Multi-Site Active/Active
đ "No EC2 in Sandbox OU should ever get a public IP, regardless of IAM permissions" â Eliminate â Security Group â â
SCP
đ "Ad-hoc SQL on 2 years of raw CSV in S3, no infra" â Eliminate â Redshift (requires load) â â
Athena
đ "On-prem VMware â EC2, minimal downtime, continuous replication until cutover" â Eliminate â Snowball â â
MGN
3ď¸âŁ THE AWS THINKING PROCESS
- Managed > Self-managed
- Serverless > Provisioned
- Native AWS > 3rd-party
- Automated > Manual
- Least ops overhead wins ties
- Elastic > Fixed capacity
- Secure by default
- HA by default (if "production")
- Cost matched to workload pattern
â ď¸ Override: Compliance/security beats cost/efficiency every time.
Tie-Breaker Priority Order
1. Does it meet the HARD constraint (RTO/RPO/compliance)? â disqualifies first
2. Is it the MOST managed option remaining?
3. Is it the MOST secure option remaining?
4. Is it the LOWEST cost option remaining?
5. Is it the option requiring the LEAST re-architecture?
4ď¸âŁ WELL-ARCHITECTED FRAMEWORK
đď¸ The 6 Pillars
| Pillar | Focus | Key Services | Keyword |
|---|---|---|---|
| Operational Excellence | Run/monitor/improve | CloudFormation, CloudWatch, Config, SSM | "automate", "IaC", "runbooks" |
| Security | Protect data/identities | IAM, KMS, GuardDuty, WAF, Shield, Macie | "least privilege", "defense in depth" |
| Reliability | Recover/scale | Multi-AZ, ASG, ELB, R53 health checks | "self-healing", "fault isolation" |
| Performance Efficiency | Use resources well | Lambda, DynamoDB, CloudFront | "elastic", "serverless", "right instance" |
| Cost Optimization | Avoid waste | Cost Explorer, Trusted Advisor, Savings Plans | "lowest cost", "right-sizing" |
| Sustainability | Minimize footprint | Managed services, region choice | "carbon footprint", "utilization" |
đ§ "Old Sailors Rarely Perform Correctly Sober"
đ Trap: "reduce carbon footprint" â managed services/consolidation, NOT a technical redesign.
Design Principles Cheat Sheet
| Pillar | Core Design Principles |
|---|---|
| Operational Excellence | Perform ops as code, make frequent small reversible changes, refine procedures often, anticipate failure, learn from failure |
| Security | Strong identity foundation, traceability, security at all layers, automate best practices, protect data in transit/rest, keep people from data |
| Reliability | Auto-recover from failure, test recovery procedures, scale horizontally, stop guessing capacity, automate change |
| Performance | Democratize advanced tech, go global in minutes, serverless first, experiment often, mechanical sympathy |
| Cost | Adopt consumption model, measure efficiency, stop spending on undifferentiated heavy lifting, analyze/attribute spend |
| Sustainability | Understand impact, set goals, maximize utilization, anticipate/adopt efficient offerings |
AWS Well-Architected Tool
Free service â self-review workload against the 6 pillars â generates improvement plan.
đ "Structured, free way to review architecture against best practices" â Well-Architected Tool
đ AWS Artifact
On-demand access to AWS compliance reports (SOC, PCI, ISO) and to accept agreements (BAA for HIPAA).
đ "Auditor needs AWS's SOC 2 report" â AWS Artifact
đ AWS Trusted Advisor + Personal Health Dashboard
- Trusted Advisor â account-level best practice checks (cost/security/performance/fault tolerance/limits)
- AWS Health Dashboard (Personal Health Dashboard) â personalized alerts about AWS events/maintenance affecting YOUR resources specifically (vs the public Service Health Dashboard which shows AWS-wide status)
đ "Need proactive notification when an upcoming AWS maintenance event affects one of my specific EC2 instances" â AWS Health Dashboard, not the public status page
5ď¸âŁ đ AWS GLOBAL INFRASTRUCTURE BASICS
Region â geographic area, fully isolated (âĽ3 AZs typically)
Availability Zone (AZ) â 1+ discrete data centers, isolated power/network/cooling, low-latency link to other AZs in region
Edge Location â CloudFront/Route 53 cache points, far more numerous than regions
Regional Edge Cache â sits between edge locations and origin, larger cache, less frequently accessed content
Local Zone â extension of a Region, closer to large population/industry centers, low latency for specific metros
Wavelength Zone â embedded in telecom 5G network, ultra-low latency for mobile edge use cases
Choosing a Region â Common Exam Factors
Compliance/data residency (data must stay in-country) â pick specific region
Latency to end users â pick nearest region
Service availability â not all services in all regions
Cost â prices vary slightly by region
đ "EU data protection law requires customer data never leaves EU soil" â pick an EU region, replicate only within EU, avoid global services that might replicate elsewhere without control (encrypt + control replication).
Availability Zone Math
- Minimum recommended for HA = 2 AZs (most exam answers want this at minimum for "production")
- Best practice = 3 AZs for maximum resilience
- đ "Design must survive loss of a single data center" â deploy across âĽ2 AZs
6ď¸âŁ SERVICE SELECTION MATRIX
Database
HA relationalâMulti-AZ | Read scalingâRead Replica | Global relational readsâAurora Global DB | Massive NoSQLâDynamoDB | Îźs cache on DynamoDBâDAX | In-memory cacheâElastiCache | Data warehouseâRedshift | GraphâNeptune | Time-seriesâTimestream | Immutable ledgerâQLDB | Mongo-compatibleâDocumentDB | Unpredictable relationalâAurora Serverless v2
Messaging
QueueâSQS Standard | Exactly-once+orderâSQS FIFO | Fan-outâSNS | Event routingâEventBridge | Workflow orchestrationâStep Functions | Real-time+replayâKinesis Streams | Buffered deliveryâFirehose | Managed KafkaâMSK | GraphQL real-time APIâAppSync
Storage
Block,1 instanceâEBS | Shared file LinuxâEFS | Shared file WindowsâFSx Windows | HPC scratchâFSx Lustre | NetAppâFSx ONTAP | ObjectâS3 | Cheapest archiveâGlacier Deep Archive | Unknown patternâIntelligent-Tiering | On-prem gateway cacheâStorage Gateway
Compute
Serverless <15minâLambda | Serverless containerâFargate | K8sâEKS | Simple containersâECS | Quick web deployâElastic Beanstalk | Cheap VPSâLightsail | Batch/HPCâAWS Batch | Virtual desktopsâWorkSpaces | Streamed appsâAppStream 2.0
Networking
CDNâCloudFront | Global static IPâGlobal Accelerator | DNSâRoute 53 | Dedicated bandwidthâDirect Connect | Quick hybridâVPN | Remote usersâClient VPN | Many VPCsâTransit Gateway | 2 VPCsâVPC Peering | Free private S3/DDBâGateway Endpoint | Private other servicesâInterface Endpoint | Share subnets cross-accountâVPC Sharing (RAM) | Central IP planningâIPAM | Inline firewallâNetwork Firewall | Diagnose connectivityâReachability Analyzer
Security
Temp credsâIAM Role | Multi-account guardrailâSCP | Cap 1 identityâPermissions Boundary | Secret w/ rotationâSecrets Manager | Plain configâParameter Store | Encryption keysâKMS | Dedicated HSMâCloudHSM | Threat detectionâGuardDuty | Vuln scanâInspector | Sensitive dataâMacie | Central security viewâSecurity Hub | Web exploitsâWAF | DDoSâShield | TLS certsâACM | Managed ADâAWS Managed Microsoft AD | Find unused accessâIAM Access Analyzer | Investigate root cause of findingâDetective | Centralize WAF/SG rules across accountsâFirewall Manager
Monitoring
API auditâCloudTrail | Config driftâAWS Config | Metrics/alarmsâCloudWatch | TracingâX-Ray | Best-practice checksâTrusted Advisor | Right-sizingâCompute Optimizer | App performanceâCloudWatch Application Insights | Canary synthetic monitoringâCloudWatch Synthetics | Log queryâCloudWatch Logs Insights
Migration
DB migrationâDMS | Server lift&shiftâMGN | Bulk offlineâSnowball | Ongoing syncâDataSync | SFTPâTransfer Family | On-prem discoveryâApplication Discovery Service | Track migrationâMigration Hub | Different DB engineâDMS+SCT
Cost
Spend forecastingâCost Explorer | Budget alertsâAWS Budgets | Detailed billingâCUR | Best-practice recsâTrusted Advisor | Software license trackingâLicense Manager | Max flexible compute discountâCompute Savings Plan
Governance/IaC
AWS-native templatesâCloudFormation | Programming language IaCâCDK | Self-service catalog for teamsâService Catalog | Multi-account landing zoneâControl Tower | Cross-account resource sharingâRAM | Compliance reportsâAWS Artifact
7ď¸âŁ FLOWCHART LOOKUP
Database? RelationalâHA Multi-AZ / Reads Read Replica / Global Aurora Global DB / Unpredictable Aurora Serverless v2 || NoSQLâhuge scale DynamoDB / with cache DAX / Graph Neptune / Time-series Timestream / Mongo-style DocumentDB / Ledger QLDB
Storage? Block,1 instanceâEBS | Shared LinuxâEFS | Shared WindowsâFSx Windows | HPCâFSx Lustre | Object generalâS3 Standard | Object infrequentâStandard-IA | UnknownâIntelligent-Tiering | Archive hrsâGlacier Flexible | CheapestâDeep Archive
Compute? Full OSâEC2 | Quick web appâElastic Beanstalk | Simple VPSâLightsail | Event<15minâLambda | K8sâEKS | AWS-native containersâECS | No server mgmtâFargate | Batch/HPCâAWS Batch | Virtual desktopâWorkSpaces
Networking? Dedicated bandwidthâDirect Connect | Quick setupâVPN | Many VPCsâTransit Gateway | 2 VPCsâVPC Peering | Private S3/DDBâGateway Endpoint | Private otherâInterface Endpoint | Global static IPâGlobal Accelerator | Cache contentâCloudFront | Troubleshoot connectivityâReachability Analyzer
Security? Temp credsâIAM Role | Multi-account ruleâSCP | Cap 1 identityâPermissions Boundary | EncryptâKMS | Rotate DB credsâSecrets Manager | Plain configâParameter Store | Detect threatsâGuardDuty | Scan CVEsâInspector | Find PIIâMacie | Web exploitsâWAF | DDoSâShield | TLS certsâACM | Investigate findingâDetective | Centralize rules org-wideâFirewall Manager
Messaging? DecouplingâSQS Standard | Exactly-once+orderâSQS FIFO | Fan-outâSNS | Rule routingâEventBridge | Multi-step workflowâStep Functions | Stream+replayâKinesis Streams | Managed KafkaâMSK
Disaster Recovery? Cheapest, hours okâBackup & Restore | ~10min RTOâPilot Light | Minutes RTOâWarm Standby | Near-zero RTOâMulti-Site Active/Active | Continuous server-level replicationâAWS DRS
IaC? AWS-native declarativeâCloudFormation | Familiar programming languageâCDK | Self-service for non-technical teamsâService Catalog | Full account automationâControl Tower
8ď¸âŁ DISTRACTOR DICTIONARY
đ Lowest ops overheadâManaged service | đ Don't rewrite appâRehost (EC2) | đ Existing Oracle/SQL ServerâRDS | đ Existing MySQL/Postgres, want perfâAurora | đ Existing K8sâEKS | đ Existing DockerâECS/Fargate | đ Millions req/secâDynamoDB/Lambda/ASG | đ Unpredictable trafficâASG/Aurora Serverless | đ ComplianceâKMS+IAM+Config+CloudTrail | đ Analytics/BIâAthena/Glue/Redshift | đ Real-time streamingâKinesis Streams | đ Near-real-timeâFirehose | đ Static contentâS3+CloudFront | đ Temp credentialsâIAM Role | đ Cross-account accessâIAM Role+Trust Policy | đ No server mgmtâLambda/Fargate/DynamoDB | đ Cost-effective steadyâRI/Savings Plan | đ Cost-effective flexibleâSpot | đ Encrypted at restâKMS/SSE-S3 | đ Rotate credentialsâSecrets Manager | đ Non-sensitive configâParameter Store | đ Compromised credentialsâGuardDuty | đ Scan vulnerabilitiesâInspector | đ Discover PIIâMacie | đ Centralize securityâSecurity Hub | đ SQL injectionâWAF | đ DDoSâShield | đ Who did thisâCloudTrail | đ What changedâAWS Config | đ Monitor CPU/memoryâCloudWatch (memory needs agent!) | đ Trace requestâX-Ray | đ Dedicated lineâDirect Connect | đ Quick encrypted linkâVPN | đ Remote employeesâClient VPN | đ Many VPCs central routingâTransit Gateway | đ Two VPCs onlyâVPC Peering | đ Private S3 onlyâGateway Endpoint | đ Private other servicesâInterface Endpoint | đ Expose service privatelyâPrivateLink | đ Global static IP non-HTTPâGlobal Accelerator | đ Automatic DB failoverâMulti-AZ | đ Offload readsâRead Replica | đ Cross-region DB readsâAurora Global DB | đ Multi-region active-active NoSQLâDynamoDB Global Tables | đ Centralized backupâAWS Backup | đ Continuous DR replicationâElastic Disaster Recovery | đ DB migration minimal downtimeâDMS (CDC) | đ DB migration diff engineâDMS+SCT | đ Whole server migrationâMGN | đ Bulk offline transferâSnowball | đ Scheduled syncâDataSync | đ SFTP accessâTransfer Family | đ On-prem app, cloud storageâStorage Gateway | đ Serverless SQL on S3âAthena | đ ETL+catalogâGlue | đ LambdaâRDS poolingâRDS Proxy | đ SaaS multi-tenant dataâDynamoDB w/ tenant partition key | đ Mobile app loginâCognito User Pools | đ Federated temp credsâCognito Identity Pools | đ Central SSOâIAM Identity Center | đ Auto landing zoneâControl Tower | đ Share resource cross-accountâRAM | đ IaC AWS nativeâCloudFormation | đ IaC programming languageâCDK | đ TLS cert mgmtâACM | đ Dedicated HSMâCloudHSM | đ SSH without open portsâSSM Session Manager | đ Right-size EC2 fleetâCompute Optimizer | đ Best-practice health checkâTrusted Advisor | đ Detailed hourly billingâCUR | đ Simple 3-tier minimal configâElastic Beanstalk | đ Cheap predictable small workloadâLightsail | đ Track migration statusâMigration Hub | đ Discover on-prem serversâApplication Discovery Service | đ Reduce carbon footprintâManaged services/consolidate | đ Immutable audit ledgerâQLDB | đ Central data catalogâLake Formation | đ Ultra-low latency at cell tower edgeâWavelength | đ On-prem hardware, AWS-managedâOutposts | đ Physically close AWS infra, low latencyâLocal Zones | đ Virtual desktops for employeesâWorkSpaces | đ Streamed desktop apps, no installâAppStream 2.0 | đ Managed Active DirectoryâAWS Managed Microsoft AD | đ Self-service IT product catalogâService Catalog | đ Track software license usageâLicense Manager | đ GraphQL real-time app syncâAppSync | đ Find unused/over-permissive IAMâIAM Access Analyzer | đ Central SSO across accountsâIAM Identity Center | đ Server-level continuous DR replicationâAWS DRS | đ Investigate WHY a GuardDuty finding happenedâDetective | đ Centralize WAF rules across 50 accountsâFirewall Manager | đ Stateful VPC-level firewallâNetwork Firewall | đ Diagnose why two resources can't connectâVPC Reachability Analyzer | đ Query subset of S3 objectâS3 Select | đ Bulk-modify billions of S3 objectsâS3 Batch Operations | đ Cache DynamoDB reads at ÎźsâDAX | đ Cache general app dataâElastiCache | đ Redis with persistence/replicationâElastiCache for Redis | đ Simple cache, no persistence neededâElastiCache for Memcached | đ Compliance reports/agreementsâAWS Artifact | đ Personalized AWS event notificationsâAWS Health Dashboard
9ď¸âŁ SERVICE FAMILIES
đď¸ Storage: S3 ⢠EBS ⢠EFS ⢠FSx ⢠Storage Gateway ⢠AWS Backup ⢠Snow Family
đď¸ Database: RDS ⢠Aurora ⢠DynamoDB ⢠ElastiCache ⢠Redshift ⢠Neptune ⢠Timestream ⢠QLDB ⢠DocumentDB
đ Networking: ALB ⢠NLB ⢠GWLB ⢠CloudFront ⢠Global Accelerator ⢠VPN ⢠Client VPN ⢠Direct Connect ⢠Transit Gateway ⢠PrivateLink ⢠Route 53 ⢠IPAM ⢠Network Firewall ⢠Reachability Analyzer
đ Security: IAM ⢠KMS ⢠Secrets Manager ⢠Parameter Store ⢠GuardDuty ⢠Inspector ⢠Macie ⢠Security Hub ⢠WAF ⢠Shield ⢠CloudHSM ⢠ACM ⢠Cognito ⢠IAM Identity Center ⢠Access Analyzer ⢠Directory Service ⢠Detective ⢠Firewall Manager
đť Compute: EC2 ⢠Lambda ⢠ECS ⢠EKS ⢠Fargate ⢠Batch ⢠Elastic Beanstalk ⢠Lightsail
đĽď¸ End-User Computing: WorkSpaces ⢠AppStream 2.0
đ¨ Messaging: SQS ⢠SNS ⢠EventBridge ⢠Step Functions ⢠Kinesis ⢠MSK ⢠AppSync
đ Monitoring: CloudWatch ⢠CloudTrail ⢠Config ⢠X-Ray ⢠Trusted Advisor ⢠Compute Optimizer ⢠Health Dashboard
đ Migration: DMS ⢠MGN ⢠DataSync ⢠Storage Gateway ⢠Snow Family ⢠Transfer Family ⢠Migration Hub ⢠Application Discovery Service
đ Analytics: Athena ⢠Glue ⢠EMR ⢠Redshift ⢠QuickSight ⢠Lake Formation ⢠Kinesis family ⢠OpenSearch
đ° Cost: Cost Explorer ⢠AWS Budgets ⢠CUR ⢠Trusted Advisor ⢠Compute Optimizer ⢠Savings Plans ⢠License Manager
đ Edge/Hybrid: Outposts ⢠Local Zones ⢠Wavelength ⢠Direct Connect
đď¸ Governance: Organizations ⢠Control Tower ⢠RAM ⢠Service Catalog ⢠Config Conformance Packs ⢠Artifact
đ§ Dev Tools: CodeCommit ⢠CodeBuild ⢠CodeDeploy ⢠CodePipeline
đ SERVICE SYNONYMS
DurableâS3 | ElasticâAuto Scaling | Fault tolerantâMulti-AZ | ResilientâMulti-AZ/Region | ArchiveâGlacier | QueueâSQS | Fan-outâSNS | OrchestrationâStep Functions | Event routingâEventBridge | Temp credentialsâIAM Role | SecretsâSecrets Manager | Config valuesâParameter Store | Encryption keysâKMS | Audit trailâCloudTrail | Compliance driftâAWS Config | PerformanceâCloudWatch | Latency bottleneckâX-Ray | ThreatsâGuardDuty | CVEsâInspector | PIIâMacie | Dedicated bandwidthâDirect Connect | Quick hybridâVPN | Hub-and-spokeâTransit Gateway | Private connectivityâVPC Endpoint | Global static IPâGlobal Accelerator | Content cachingâCloudFront | ServerlessâLambda/Fargate/DynamoDB | Lift and shiftâEC2/MGN | Zero data lossâSync replication (Multi-AZ) | Right-sizingâCompute Optimizer | Data governance/catalogâLake Formation/Glue | Mobile app authâCognito | API throttlingâAPI Gateway | Virtual desktopâWorkSpaces | Software license trackingâLicense Manager | Unused permissionsâIAM Access Analyzer | Central workforce identityâIAM Identity Center | Root cause investigationâDetective | Centralized firewall policyâFirewall Manager | In-memory cacheâElastiCache | Micro-second DynamoDB cacheâDAX
1ď¸âŁ1ď¸âŁ AWS DEFAULT CHOICES
â "Production"âMulti-AZ | â Encryption unspecifiedâEnable it | â Service-to-service authâIAM Role | â Database placementâPrivate subnet | â Public HTTP trafficâALB | â Global contentâCloudFront | â Static contentâS3 | â Private S3 accessâGateway Endpoint | â Private other-service accessâInterface Endpoint | â "No server management"âFargate | â Job >15minâNOT Lambda | â Steady workloadâReserved/Savings Plan | â Spiky workloadâSpot | â Rotating credsâSecrets Manager | â Plain configâParameter Store | â Cross-accountâIAM Role+Trust Policy | â Multi-account restrictionâSCP | â Quick web app deploymentâElastic Beanstalk | â Simple predictable workload/budgetâLightsail | â Mobile/web app user loginâCognito User Pools | â "Automatically scale on demand"âTarget Tracking Policy | â Cross-region DR w/ server-level replicationâAWS DRS | â Central multi-account SSOâIAM Identity Center | â At least 2 AZs for HAâminimum default | â Cache needs persistence/replicationâRedis (not Memcached)
1ď¸âŁ2ď¸âŁ ONE-LINE DEFINITIONS
CloudTrail â Who did it?
CloudWatch â How is it performing?
Config â What changed?
GuardDuty â Who is attacking?
Inspector â What is vulnerable?
Macie â Where is sensitive data?
Security Hub â What's the overall security posture?
Detective â WHY did this happen? (root cause investigation)
Firewall Manager â Centralize WAF/SG/Shield rules across accounts
Network Firewall â Stateful, VPC-level traffic filtering
WAF â Block bad web requests
Shield â Block DDoS floods
KMS â Manage encryption keys
Secrets Mgr â Store & rotate secrets
Param Store â Store plain config
SQS â Hold messages until processed
SNS â Broadcast to many subscribers
EventBridge â Route events by rule
Step Functions â Orchestrate multi-step workflow
Multi-AZ â Survive AZ failure (HA)
Read Replica â Scale read traffic
Aurora Global DB â Cross-region reads + fast DR
Transit Gateway â Hub for many VPCs
VPC Peering â Direct link between 2 VPCs (non-transitive)
Gateway Endpoint â Free private path to S3/DynamoDB only
Interface Endpoint â Private path to everything else
Direct Connect â Dedicated, consistent bandwidth
VPN â Quick, encrypted, internet-based link
Trusted Advisor â Automated best-practice checks
Compute Optimizer â Right-size your EC2/Lambda
Cost Explorer â Analyze/forecast spend
AWS Budgets â Alert before overspending
Elastic Beanstalk â Deploy app without managing infra
Lightsail â Simple VPS, predictable pricing
Lake Formation â Central data lake governance
Cognito User Pools â Sign-up/sign-in for your app's users
Cognito Identity Pools â Temp AWS creds for federated users
API Gateway â Managed front door for APIs (throttle, auth, cache)
Outposts â AWS hardware physically in your data center
Local Zones â AWS infra closer to a metro area
Wavelength â AWS compute at telecom 5G edge
WorkSpaces â Managed virtual desktop (persistent)
AppStream 2.0 â Streamed applications (non-persistent)
AWS DRS â Continuous server replication for DR (near-CDP)
IAM Identity Center â One login for all AWS accounts + SaaS apps
Access Analyzer â Finds resources shared outside your account/org
Service Catalog â Curated self-service list of approved AWS products
License Manager â Track/enforce software license usage
AppSync â Managed GraphQL API w/ real-time subscriptions
IPAM â Plan/track/audit IP address usage across accounts
CDK â Define infra using real programming languages
Control Tower â Automates multi-account landing zone setup
ElastiCache â Managed in-memory cache (Redis/Memcached)
DAX â In-memory cache specifically for DynamoDB
Reachability Analyzer â Diagnoses why two resources can't connect
Artifact â On-demand access to AWS compliance reports
Health Dashboard â Personalized alerts about AWS events affecting YOUR resources
1ď¸âŁ3ď¸âŁ QUESTION PATTERNS
đ "A company wants..." â Architecture question
đ "A company needs..." â Service selection
đ "A company must..." â Compliance/security
đ "An application..." â Compute/storage/DB
đ "Developers need..." â IAM / CI-CD
đ "...LEAST operational overhead" â Most-managed option
đ "...LOWEST cost" â Check workload pattern
đ "MOST secure way" â Encryption + least privilege
đ "MOST resilient" â Multi-AZ / Multi-Region
đ "Without re-architecting" â Keep relational/EC2
đ "Minimize administrative burden" â Managed service
đ "Reduce carbon footprint" â Managed services / consolidate regions
đ "...with the LEAST amount of code" â Managed integration over custom Lambda glue
đ "...must be encrypted using keys the company fully controls" â KMS Customer Managed Key
đ "...must not leave AWS network" â PrivateLink / VPC Endpoints
đ "...single pane of glass" â Security Hub / CloudWatch Dashboards
đ "...at a specific point in time in the past" â Snapshot / PITR
đ "...choose TWO/THREE" â read carefully, ALL must be correct, no partial credit
đ "...MOST cost-effective AND meets requirement" â eliminate non-compliant options FIRST, then pick cheapest survivor
1ď¸âŁ4ď¸âŁ DECISION TREES
(â ď¸ = "NO SUCH THING" trap)
Storage
Block,1 instanceâEBS â ď¸shared across AZsâNOâEFS/FSx | Block,shared,same AZâEBS Multi-Attach(io1/io2) â ď¸cross-AZâNO | Shared LinuxâEFS | Shared WindowsâFSx Windows | HPC scratchâFSx Lustre | NetAppâFSx ONTAP | ObjectâS3 â ď¸low-latency file access at scaleâNOâEFS/FSx | On-prem cached volâStorage Gateway | Migrate/syncâDataSync(online)/Snowball(offline)
Compute
Full OSâEC2 | Quick web appâElastic Beanstalk â ď¸needs low-level controlâNO,use EC2 | Cheap VPSâLightsail | Event-driven shortâLambda â ď¸>15minâNOâFargate/Batch/EC2 | K8sâEKS | AWS-native containersâECS | No EC2 mgmtâFargate â ď¸GPU/custom AMIâNOâEC2 launch type | Batch/HPCâAWS Batch | Employee virtual desktop, persistentâWorkSpaces | Streamed app, non-persistentâAppStream 2.0
Database
Relational, specific engineâRDS | Relational MySQL/PostgresâAurora(Serverless v2 if spiky) â ď¸scale to zero in v2âNO(min 0.5 ACU) | Need HAâMulti-AZ â ď¸standby serves readsâNOâRead Replica/Aurora | Need read scalingâRead Replica â ď¸auto failover from replicaâNOâMulti-AZ | Cross-region reads+DRâAurora Global DB | Lambda+RDS poolingâRDS Proxy | NoSQL massive scaleâDynamoDB â ď¸SQL joinsâNOâAurora/RDS | DynamoDB+Îźs cacheâDAX | Multi-region active-active NoSQLâDynamoDB Global Tables | In-memory cache, general purposeâElastiCache | Data warehouseâRedshift | GraphâNeptune | Time-seriesâTimestream | Immutable ledgerâQLDB | Mongo-compatibleâDocumentDB
Networking & Hybrid
Public subnet in/outâIGW | Private subnet outbound onlyâNAT Gateway â ď¸NAT for inboundâNOâALB/NLB | On-prem quick+encryptedâSite-to-Site VPN | Individual remote usersâClient VPN | Dedicated bandwidthâDirect Connect | Many VPCs hub-spokeâTransit Gateway | 2 VPCs simpleâVPC Peering â ď¸transitive routingâNOâTransit Gateway | Free private S3/DDBâGateway Endpoint â ď¸for EC2/SNS etcâNOâInterface Endpoint | Private other AWS/SaaSâInterface Endpoint | Expose service privatelyâPrivateLink | Global static IP non-HTTPâGlobal Accelerator | Content cachingâCloudFront | Share subnets across accountsâVPC Sharing (RAM) | Plan IP space org-wideâIPAM | Inline stateful firewall at VPC edgeâNetwork Firewall | Debug why traffic isn't reaching targetâReachability Analyzer
Security & IAM
Temp accessâIAM Role â ď¸long-term keysâAVOID | Multi-account guardrailâSCP â ď¸SCP to grantâNOâIAM Policy | Cap 1 delegated adminâPermissions Boundary | Share resource cross-accountâRAM | Encrypt AWS-managed keysâSSE-S3 | Encrypt, control key policyâSSE-KMS | Dedicated HSMâCloudHSM | Rotate DB credsâSecrets Manager â ď¸Param Store auto-rotateâNO natively | Plain configâParameter Store | Detect threatsâGuardDuty â ď¸scans CVEsâNOâInspector | Scan vulnerabilitiesâInspector | Discover sensitive dataâMacie | SQLi/XSSâWAF | DDoSâShield | Find unused permissionsâIAM Access Analyzer | Central login across accountsâIAM Identity Center | Investigate root causeâDetective | Centralize security rules org-wideâFirewall Manager
Messaging
Point-to-point decouplingâSQS Standard â ď¸order/exactly-onceâNOâFIFO | Fan-outâSNS â ď¸fan-out w/ SQS aloneâNOâSNS+SQS | Rule-based routingâEventBridge | Multi-step workflowâStep Functions | Real-time+replayâKinesis Data Streams â ď¸replay from SQSâNO(deleted after ack) | Buffered deliveryâKinesis Firehose | Real-time GraphQL updatesâAppSync
Disaster Recovery (RTO/RPO ladder)
Hours-days, cheapestâBackup & Restore | ~10minâPilot Light | MinutesâWarm Standby | Near-zeroâMulti-Site Active/Active | Continuous block-level server replicationâAWS Elastic Disaster Recovery (DRS)
â ď¸ Multi-AZ covers region failureâNO(Multi-AZâ DR)âCross-Region
Migration
PB-scale, poor networkâSnowball/Snowmobile | Ongoing scheduled transferâDataSync | SFTP into S3/EFSâTransfer Family | Migrate databases, SAME engineâDMS | Migrate databases, DIFFERENT engineâDMS+SCT â ď¸DMS migrates VMsâNO(DB only)âMGN | Lift-shift serversâMGN | On-prem, cloud storage as local driveâStorage Gateway | Discover on-prem infra firstâApplication Discovery Service | Track migration progressâMigration Hub
IaC / Governance
Declarative AWS-native templateâCloudFormation | Prefer Python/TypeScript/JavaâCDK | Give teams pre-approved self-service productsâService Catalog | Automate multi-account setup w/ guardrailsâControl Tower | Share VPC subnets/TGW cross-accountâRAM
1ď¸âŁ5ď¸âŁ VPC DEEP DIVE
CIDR & Subnetting
- VPC CIDR: /16 to /28
- Each subnet lives in exactly ONE AZ
- AWS reserves 5 IPs per subnet (first 4 + last 1)
- Public subnet = route to IGW | Private subnet = no direct route to IGW
đ Subnet Sizing Math (commonly tested)
/24 subnet = 256 total IPs - 5 reserved = 251 usable
/28 subnet = 16 total IPs - 5 reserved = 11 usable
Formula: usable IPs = 2^(32-prefix) - 5
đ "Need a subnet supporting at least 20 hosts" â smallest CIDR that fits = /27 (32 - 5 = 27 usable)
Route Tables
- Each subnet â ONE route table (a route table can serve many subnets)
- Local route (VPC CIDR) always present, can't be removed
- Most specific route wins (longest prefix match)
Security Group vs NACL
| Security Group | NACL | |
|---|---|---|
| Level | Instance (ENI) | Subnet |
| State | Stateful | Stateless (must allow both directions) |
| Rules | Allow only | Allow AND Deny |
| Evaluation | All rules evaluated | Lowest number first, first match wins |
| Default | Deny all in, allow all out | Default NACL=allow all / Custom=deny all |
đ Trap: NACL is stateless â must explicitly allow EPHEMERAL PORTS (1024-65535) for return traffic.
NAT Gateway vs NAT Instance
| NAT Gateway | NAT Instance | |
|---|---|---|
| Managed | Yes (AWS) | No (you patch it) |
| HA | Built into AZ, multi-AZ needs one per AZ | Manual (ASG needed) |
| Bandwidth | Scales automatically | Limited by instance type |
| Security Group | N/A (doesn't have one) | Has one, can act as bastion |
| Exam default | â Always pick this | Rare legacy answer |
đ NAT Gateway HA Design Pattern
- NAT Gateway is per-AZ, NOT automatically multi-AZ
- đ "Design NAT for HA across 3 AZs" â deploy ONE NAT Gateway PER AZ, each private subnet routes to the NAT Gateway in ITS OWN AZ (avoids cross-AZ data transfer charges + single point of failure)
Elastic IP vs ENI
- Elastic IP â static public IPv4, can be remapped between instances, charged when NOT attached to a running instance (common cost trap)
- ENI â virtual network card, can have multiple per instance, can be detached/reattached (used for failover architectures)
VPC Flow Logs
- Capture IP traffic metadata (not payload)
- Publish to CloudWatch Logs, S3, or Kinesis Data Firehose
- Used by GuardDuty as a data source
- Doesn't capture: DHCP traffic, Windows license activation, traffic to 169.254.169.254 (metadata)
VPC Peering Limits
- NOT transitive ¡ No overlapping CIDRs ¡ Cross-region OK ¡ Cross-account OK
VPC Endpoint Types Recap
- Gateway Endpoint â S3, DynamoDB only, free, route table entry
- Interface Endpoint (PrivateLink) â everything else, hourly+data cost, ENI with private IP
đ VPC Sharing (RAM)
Owner account shares subnets with other accounts in same Organization. Participants launch resources into shared subnets but can't modify the subnet itself.
đ "Centralize VPC management but let 5 dev teams deploy into the same subnets" â VPC Sharing via RAM
đ IPAM (IP Address Manager)
Plans, tracks, audits IP usage across accounts/regions.
đ "Prevent CIDR overlaps across 200 VPCs" â IPAM
đ IPv6 Notes
- VPC can be dual-stack | IPv6 addresses are always public â use Egress-Only Internet Gateway for outbound-only IPv6 (IPv6 equivalent of NAT Gateway)
đ VPC Traffic Mirroring
Copies network traffic from an ENI for inspection (IDS/IPS, troubleshooting) without disrupting flow.
đ AWS Network Firewall
Managed, stateful, VPC-level network firewall â deep packet inspection, intrusion prevention (IPS), domain filtering.
đ "Need stateful firewall rules AND intrusion prevention at the VPC perimeter, not just per-instance SGs" â AWS Network Firewall
Different from GWLB â Network Firewall IS an AWS-managed appliance; GWLB is for routing to 3rd-party appliances.
đ VPC Reachability Analyzer
Static configuration analysis tool â tells you WHY two resources can/can't communicate (checks SG, NACL, route tables) without sending live traffic.
đ "EC2 instance in subnet A can't reach RDS in subnet B, need to know exactly which rule is blocking it" â Reachability Analyzer
đ AWS Firewall Manager
Centrally manage WAF rules, Security Groups, Shield Advanced protections, and Network Firewall policies across multiple accounts in an Organization.
đ "Apply the same WAF rule to every ALB across 40 accounts automatically, including new accounts" â Firewall Manager
1ď¸âŁ6ď¸âŁ IAM DEEP DIVE
Policy Types
- Identity-based â attached to user/group/role
- Resource-based â attached to a resource (e.g., S3 bucket policy)
- Permissions boundary â MAX permissions for ONE identity
- SCP â MAX permissions for an account/OU
- Session policy â passed at role-assumption time, further restricts
Policy Evaluation Order (memorize)
- Explicit DENY anywhere â immediately denied
- Explicit ALLOW required somewhere
- Default = DENY if nothing matches
đ Explicit DENY always wins, no matter how many ALLOWs exist.
Effective Permissions Formula
Effective permissions =
Identity-based policy
⊠Permissions Boundary (if set)
⊠SCP (if in an Organization)
⊠Resource-based policy (if applicable)
(⊠= most restrictive wins)
đ Trap: S3FullAccess IAM policy does NOTHING if an SCP denies S3 at OU level.
Best Practices
- Never use root for daily tasks ¡ Enable MFA everywhere privileged
- IAM Roles for EC2/Lambda, never embedded keys
- Least privilege, expand only when needed
- IAM Access Analyzer â find overly permissive policies
- Roles > rotating credentials
IAM Identity Center (formerly AWS SSO)
Central place to manage workforce access across ALL AWS accounts + SaaS apps. Integrates with external IdP (Okta, Azure AD) or built-in directory.
đ "1000 employees need SSO across 50 AWS accounts and 3 SaaS apps" â IAM Identity Center
IAM Access Analyzer
Continuously analyzes resource policies to find access granted to external entities.
đ "Find any S3 bucket accidentally accessible from outside the organization" â IAM Access Analyzer
AWS Directory Service Options
| Option | Use Case |
|---|---|
| AWS Managed Microsoft AD | Full AD features, trust relationships with on-prem AD |
| AD Connector | Proxy/redirect to existing on-prem AD (no user data stored in AWS) |
| Simple AD | Basic AD-compatible directory, small scale, no trusts |
đ "Need AWS resources to authenticate against existing on-prem Active Directory without duplicating users" â AD Connector
STS (Security Token Service)
Issues temporary credentials for role assumption, federation, cross-account access. Key APIs: AssumeRole, AssumeRoleWithSAML, AssumeRoleWithWebIdentity.
đ Cross-Account Role Assumption Pattern
Account A (User) â sts:AssumeRole â Account B (Role w/ Trust Policy allowing Account A)
â Temp credentials â Access Account B resources
đ "Central security team in Account A needs read-only access to audit logs in 30 member accounts" â IAM Role in each account with trust policy to Account A + AssumeRole
đ Federation Types
SAML 2.0 â enterprise IdP (Active Directory Federation Services, Okta) â AssumeRoleWithSAML
Web Identity â social login (Google, Facebook, Amazon) â AssumeRoleWithWebIdentity (or Cognito, preferred)
Cognito â preferred method for mobile/web app federation â Identity Pools
1ď¸âŁ7ď¸âŁ S3 DEEP DIVE
Consistency
â Strong read-after-write consistency for ALL operations (since Dec 2020).
Versioning
- Once enabled, can only be suspended (not disabled)
- Protects against accidental overwrite/delete
- Combine with MFA Delete for extra protection
Replication (CRR/SRR)
- CRR = different region (DR/compliance/latency) | SRR = same region (log aggregation/compliance)
- Requires versioning on both buckets
- NOT retroactive (unless S3 Batch Replication)
Lifecycle Policies
Common pattern: Standard â Standard-IA (30d) â Glacier (90d) â Deep Archive (180d) â Delete (365d)
Storage Classes
| Class | Access | Retrieval |
|---|---|---|
| Standard | Frequent | ms |
| Intelligent-Tiering | Unknown/changing | ms (auto-moves) |
| Standard-IA | Infrequent | ms |
| One Zone-IA | Infrequent, non-critical | ms |
| Glacier Instant Retrieval | Archive, need fast | ms |
| Glacier Flexible | Archive | mins-hours |
| Glacier Deep Archive | Archive, cheapest | ~12hrs |
Advanced Features
- Object Lock â WORM compliance
- Object Lambda â transform on retrieval
- Multi-Region Access Points â single global endpoint
- Transfer Acceleration â speeds up uploads via edge locations
- Access Points â simplify shared-bucket access management
- Static Website Hosting â S3 can serve a website directly (but no HTTPS without CloudFront)
- Presigned URLs â temporary access to private objects without changing bucket policy
CloudFront + S3 Access Control
- OAC (Origin Access Control) â current best-practice, keeps S3 bucket private, only CloudFront can read
- OAI (Origin Access Identity) â legacy, still tested, same purpose as OAC
S3 Select / Glacier Select
Retrieve a SUBSET of data using SQL, instead of downloading the whole object.
đ "App only needs 3 columns from a 10GB CSV, minimize transfer/cost" â S3 Select
S3 Batch Operations
Perform bulk actions (copy, tag, restore, invoke Lambda) across billions of objects in one job.
đ "Apply a new tag to 2 billion existing objects" â S3 Batch Operations
S3 Event Notifications
Trigger Lambda/SQS/SNS on object create/delete/restore events.
đ "Automatically process an image the moment it's uploaded" â S3 Event Notification â Lambda
đ Bucket Policy vs ACL vs IAM Policy
| Attached To | Grants Cross-Account? | Modern Best Practice? | |
|---|---|---|---|
| IAM Policy | User/Role | No (same account) | â Yes |
| Bucket Policy | The bucket itself | â Yes | â Yes |
| ACL (Access Control List) | Bucket or Object | â Yes (legacy) | â Legacy, avoid |
đ "Grant read access to a bucket from a DIFFERENT AWS account" â Bucket Policy (or Access Point), not IAM policy alone
đ AWS now recommends disabling ACLs entirely (Bucket Owner Enforced setting) and using policies only.
đ S3 Cross-Account Access Pattern
Account A (bucket owner) â Bucket Policy allows Account B's role
Account B â IAM Policy allows s3:GetObject on that bucket ARN
BOTH must allow â effective access
đ Requester Pays
Bucket owner can shift data transfer/request costs to whoever downloads objects â useful for public datasets shared broadly.
đ "Publish a large public dataset but don't want to pay everyone else's download costs" â S3 Requester Pays
1ď¸âŁ8ď¸âŁ đ RDS & AURORA DEEP DIVE
RDS Backup Types
| Automated Backups | Manual Snapshots | |
|---|---|---|
| Trigger | Daily, automatic, during backup window | On-demand, user-initiated |
| Retention | 1-35 days | Until manually deleted |
| Deleted with instance? | â Yes (unless final snapshot taken) | â No, persists |
| Cross-region copy | â Supported | â Supported |
| Cross-account share | â No | â Yes |
đ "Need to retain a specific backup indefinitely even after the DB instance is deleted" â Manual Snapshot
đ "Need point-in-time restore to any second within the last 2 weeks" â Automated Backups (enables PITR)
RDS Encryption Rules (frequently tested trap)
- â ď¸ Cannot enable encryption on an existing UNENCRYPTED RDS instance directly
- â Workaround: Snapshot the unencrypted instance â Copy the snapshot WITH encryption enabled â Restore new (encrypted) instance from that snapshot đ "Existing unencrypted RDS instance must become encrypted with minimal effort" â Snapshot â Copy (encrypt) â Restore
RDS Multi-AZ vs Multi-AZ DB Cluster (newer)
| Multi-AZ Instance | Multi-AZ DB Cluster | |
|---|---|---|
| Standby readable? | â No | â Yes (readable replicas) |
| Failover time | ~60-120 sec | Faster (~35 sec), uses replicas |
| Replicas | 0 (standby only) | 2 readable standbys |
RDS Proxy
Connection pooling for Lambda/serverless apps hitting RDS â prevents connection exhaustion, faster failover.
đ "Lambda functions spike to thousands of concurrent executions, RDS running out of connections" â RDS Proxy
Aurora-Specific Features
Aurora Replicas â up to 15, low replication lag (~10-20ms), can auto-failover (unlike RDS Read Replicas)
Aurora Cloning â fast, copy-on-write clone of a DB for testing, doesn't copy full storage
Backtrack â rewind a cluster to a previous point in time WITHOUT restoring from backup (MySQL-compatible only)
Custom Endpoints â route specific queries to a defined subset of Aurora instances
Writer/Reader Endpoint â writer=single instance, reader=load-balanced across all replicas
Global Database â 1 primary region (write) + up to 5 secondary regions (read), <1s lag, fast regional failover
đ "Need to quickly test schema changes against a copy of production data without doubling storage cost" â Aurora Cloning
đ "Accidentally ran a bad DELETE, need to rewind the DB in seconds without a full restore" â Aurora Backtrack
Aurora Serverless v1 vs v2
| v1 | v2 | |
|---|---|---|
| Scale to zero | â Yes | â No (min 0.5 ACU) |
| Scaling speed | Seconds-minutes (cold start possible) | Fast, fine-grained, near-instant |
| Use case | Infrequent, intermittent workloads | Variable/unpredictable but still active |
đ "Dev/test database used a few hours a week, must have zero cost when idle" â Aurora Serverless v1
đ "Production workload with unpredictable but continuous traffic" â Aurora Serverless v2
đ RDS Read Replica Cross-Region
Read Replicas CAN be cross-region (unlike Multi-AZ standby) â useful for disaster recovery + reducing read latency for global users.
đ "Reduce read latency for users in Asia while primary DB is in US" â Cross-Region Read Replica
1ď¸âŁ9ď¸âŁ đ DYNAMODB DEEP DIVE
Indexes
| GSI | LSI | |
|---|---|---|
| Key structure | New partition + sort key | Same partition, different sort key |
| Created when | Anytime | ONLY at table creation |
| Consistency | Eventually consistent only | Strong or eventual |
| Max per table | 20 (default) | 5 |
đ "Need to query by an attribute that's not part of the primary key, added after table creation" â GSI
đ "Need strongly consistent reads on an alternate sort key" â LSI (must be planned at table creation!)
DynamoDB Streams
Captures item-level changes (insert/update/delete) â triggers Lambda for real-time processing.
đ "React in real-time to every item change, trigger downstream processing" â DynamoDB Streams + Lambda
TTL (Time to Live)
Auto-deletes expired items at no additional cost.
đ "Session data should auto-expire after 24 hours, zero extra cost" â DynamoDB TTL
Capacity Modes
| On-Demand | Provisioned | |
|---|---|---|
| Best for | Unpredictable/spiky traffic | Steady, predictable traffic |
| Scaling | Automatic | Manual or Auto Scaling |
| Cost model | Pay per request | Pay for provisioned capacity |
Hot Partition Problem
â ď¸ Poor partition key choice (e.g., using a low-cardinality attribute like "status") â throttling on that partition even with capacity available elsewhere.
â
Fix: choose a high-cardinality partition key (e.g., user ID), not add more capacity.
đ "DynamoDB table throttles despite having available overall capacity" â Redesign partition key (not "increase provisioned capacity")
PITR (Point-in-Time Recovery)
Continuous backups, restore to any second within the last 35 days.
đ "Need to restore a DynamoDB table to exactly 3 days ago at 2:14pm" â PITR
Conditional Writes
Prevent race conditions on concurrent updates (e.g., attribute_not_exists).
đ DynamoDB Accelerator (DAX)
Fully managed, in-memory cache for DynamoDB â microsecond latency, write-through cache.
đ "DynamoDB read-heavy workload needs microsecond response times without app code rewrite for cache logic" â DAX
â ď¸ DAX is API-compatible â minimal code change vs building your own ElastiCache caching layer.
2ď¸âŁ0ď¸âŁ đ ELASTICACHE DEEP DIVE
Redis vs Memcached (HIGH-YIELD comparison)
| Feature | Redis | Memcached |
|---|---|---|
| Persistence | â Yes (snapshots/AOF) | â No |
| Replication | â Yes (Multi-AZ) | â No |
| Data structures | Rich (lists, sets, sorted sets, hashes) | Simple key-value only |
| Multi-threading | Single-threaded (mostly) | â Multi-threaded |
| Backup/Restore | â Yes | â No |
| Pub/Sub | â Yes | â No |
| Transactions | â Yes | â No |
| Use case | Leaderboards, session store, HA cache needing durability | Simple, high-throughput cache, easily rebuilt |
đ "Need a cache that persists data and supports automatic failover" â Redis
đ "Need pure simple caching, data loss acceptable, want to scale horizontally across many nodes easily" â Memcached
đ "Need a leaderboard with sorted rankings" â Redis (Sorted Sets)
đ§ "Redis Remembers (persists), Memcached Might forget."
Caching Strategies
| Pattern | How It Works | Trade-off |
|---|---|---|
| Lazy Loading (Cache-Aside) | App checks cache, on miss queries DB then populates cache | Cache can go stale, only caches requested data |
| Write-Through | Data written to cache AND DB simultaneously | Cache always fresh, but write penalty + wasted cache space for unused data |
đ "Cache should stay current with DB writes, and app can accept slightly slower writes" â Write-Through
đ "Only cache what's actually requested to save memory" â Lazy Loading
2ď¸âŁ1ď¸âŁ đ KMS & ENCRYPTION DEEP DIVE
Envelope Encryption
KMS doesn't directly encrypt large data â it encrypts a Data Encryption Key (DEK), which encrypts your actual data. This is how S3/EBS/RDS encryption works under the hood.
Plaintext Data + DEK â Ciphertext
DEK + KMS CMK â Encrypted DEK (stored alongside ciphertext)
CMK Types
| Type | Who Manages | Rotation | Use Case |
|---|---|---|---|
| AWS Managed Key (aws/s3, aws/ebs) | AWS | Automatic, AWS-controlled schedule | Default, simplest, no customization |
| Customer Managed Key (CMK) | You | Optional automatic annual rotation (you enable) | Full control: policy, rotation, deletion, cross-account sharing |
| AWS Owned Key | AWS (shared across accounts, invisible to you) | AWS-controlled | Some AWS service internals |
đ "Must fully control key policy, rotation schedule, and be able to disable/delete the key" â Customer Managed Key
đ "Just needs encryption at rest, doesn't care about key management" â AWS Managed Key (SSE-S3 or default)
Key Policies vs Grants
- Key Policy â resource-based policy, primary access control mechanism for a CMK (required, even if IAM also allows)
- Grants â temporary, programmatic delegated permissions (used by AWS services needing short-term key access)
Multi-Region Keys
Same key material replicated across regions â used for Global Tables, Aurora Global DB, or multi-region DR needing consistent encryption without re-encrypting.
đ "Encrypt data consistently across DynamoDB Global Tables in 3 regions using related keys" â KMS Multi-Region Keys
Asymmetric CMKs
Used for digital signing/verification (not just encrypt/decrypt) â e.g., verifying software integrity.
Encryption in Transit vs At Rest
| At Rest | In Transit | |
|---|---|---|
| Mechanism | KMS/SSE encryption on storage | TLS/SSL |
| Services | S3 (SSE-S3/KMS), EBS, RDS | ACM certs on ALB/CloudFront, VPN, HTTPS |
đ "Data must be encrypted both while stored AND while moving between services" â KMS (at rest) + TLS/ACM (in transit) â both required, not either/or
Secrets Manager vs Parameter Store â Full Comparison
| Secrets Manager | Parameter Store (Standard) | Parameter Store (Advanced) | |
|---|---|---|---|
| Automatic rotation | â Native (Lambda-based) | â No | â No (needs custom automation) |
| Cost | $$ per secret/month | Free | $ small monthly fee |
| Max size | 64KB | 4KB | 8KB |
| Cross-account | â Via resource policy | Limited | Limited |
| Native integration | RDS, Redshift, DocumentDB | General config | General config |
đ "Store DB password AND automatically rotate it every 30 days" â Secrets Manager
đ "Store a non-sensitive API endpoint URL, free of charge" â Parameter Store (Standard)
2ď¸âŁ2ď¸âŁ đ CLOUDFRONT DEEP DIVE
Signed URL vs Signed Cookie
| Signed URL | Signed Cookie | |
|---|---|---|
| Scope | ONE file | MULTIPLE files/whole site |
| Use case | Single video/document download | Video streaming site with many assets per session |
đ "User needs access to an entire private video library during their session, not just one file" â Signed Cookies
đ "Grant temporary access to ONE private PDF" â Signed URL
Origin Failover (Origin Groups)
Primary + secondary origin â CloudFront automatically fails over to secondary if primary fails/returns errors.
đ "Need automatic failover to a backup S3 bucket in another region if primary origin is down" â CloudFront Origin Groups
Lambda@Edge vs CloudFront Functions
| CloudFront Functions | Lambda@Edge | |
|---|---|---|
| Language | JavaScript only | Node.js/Python |
| Trigger points | Viewer request/response only | All 4 (viewer/origin request/response) |
| Execution | Lightweight, microseconds | Heavier, up to seconds |
| Use case | Simple header manipulation, redirects | Complex logic, external calls, A/B testing |
đ "Modify HTTP headers at the edge with minimal latency, simple logic only" â CloudFront Functions
đ "Need to call an external API or do complex request transformation at the edge" â Lambda@Edge
Field-Level Encryption
Encrypts specific sensitive fields (e.g., credit card numbers) end-to-end, even the origin only sees ciphertext unless it holds the private key.
Cache Behaviors
Path-pattern based routing to different origins within a single distribution (e.g., /images/* â S3, /api/* â ALB).
đ Geo Restriction
Block or allow access to your CloudFront distribution based on viewer's country (allowlist/denylist) â simpler than Route 53 Geolocation for pure content blocking.
đ "Content must not be accessible from specific embargoed countries" â CloudFront Geo Restriction
2ď¸âŁ3ď¸âŁ đ LAMBDA DEEP DIVE
Concurrency Controls
| Feature | Purpose |
|---|---|
| Reserved Concurrency | Guarantees AND caps capacity for a function (throttles beyond limit) |
| Provisioned Concurrency | Pre-warmed execution environments â eliminates cold starts |
đ "Latency-sensitive API cannot tolerate cold-start delay" â Provisioned Concurrency
đ "Ensure one noisy function can't consume all account-wide concurrency, starving others" â Reserved Concurrency
Cold Starts
VPC-attached Lambdas historically had slower cold starts (ENI attachment) â significantly improved with Hyperplane ENIs, but still a testable concept when comparing VPC vs non-VPC Lambda.
Lambda Layers
Share code/libraries across multiple functions without duplicating in each deployment package.
đ "Share a common logging library across 20 Lambda functions" â Lambda Layers
Lambda Destinations vs DLQ
| DLQ | Destinations | |
|---|---|---|
| Captures | Failed async invocations only | Success AND failure |
| Targets | SQS, SNS | SQS, SNS, EventBridge, another Lambda |
đ "Need to route BOTH successful and failed async Lambda results to different downstream targets" â Lambda Destinations
Environment Variables
Can be encrypted with KMS for sensitive values (though Secrets Manager/Parameter Store preferred for actual secrets).
đ Lambda SnapStart
Pre-initializes a snapshot of the execution environment (JVM state) to dramatically reduce cold starts for Java functions specifically.
2ď¸âŁ4ď¸âŁ đ MESSAGING DEEP DIVE (SQS / SNS / EventBridge / Step Functions)
SQS Core Mechanics
Visibility Timeout â time a message is hidden after being received, before it's deletable/re-visible (default 30s)
Dead Letter Queue (DLQ) â captures messages that fail processing after max receive count
Long Polling â waits up to 20s for messages, reduces empty responses & cost (vs Short Polling)
Delay Queues â delay message visibility up to 15 min after being sent
Message Retention â default 4 days, max 14 days
đ "Messages failing repeatedly should be isolated for investigation instead of blocking the queue" â DLQ
đ "Reduce empty API call costs when polling SQS" â Long Polling
đ "Consumer needs more time to process a large message before it reappears in the queue" â Increase Visibility Timeout
SNS Advanced Features
Message Filtering â subscribers receive only messages matching a filter policy (reduces unnecessary processing)
FIFO Topics â ordered, exactly-once delivery to SQS FIFO queues only
Message Attributes â metadata used for filtering
đ "Only some subscribers should receive certain message types from the same topic" â SNS Message Filtering
EventBridge
Event Bus â default, custom, or partner (SaaS) buses
Schema Registry â auto-discovers and stores event structure
Rules â pattern match events â route to targets (Lambda, SQS, Step Functions, etc.)
Scheduler â cron/rate-based invocations (newer, more scalable than CloudWatch Events rules)
đ "Route events from Salesforce/Zendesk/etc. based on event type" â EventBridge (partner event bus)
Step Functions: Standard vs Express
| Standard | Express | |
|---|---|---|
| Max duration | 1 year | 5 minutes |
| Execution semantics | Exactly-once | At-least-once |
| Pricing | Per state transition | Per execution + duration |
| Use case | Long-running workflows, audit history needed | High-volume, short-duration event processing |
đ "High-volume IoT event processing workflow, sub-second executions, cost-sensitive" â Express Workflow
đ "Multi-day order fulfillment workflow needing full execution history" â Standard Workflow
2ď¸âŁ5ď¸âŁ EC2, AUTO SCALING & ELB DEEP DIVE
EC2 Purchasing Options
| Option | Best For | Commitment |
|---|---|---|
| On-Demand | Unpredictable, short-term, no commitment | None |
| Reserved Instance | Steady-state, known usage | 1 or 3 years |
| Savings Plan | Steady $/hr spend, flexible instance family | 1 or 3 years |
| Spot | Fault-tolerant, flexible, interruptible | None (2min warning) |
| Dedicated Host | Compliance needs physical server visibility, BYOL | Physical host billing |
| Dedicated Instance | Isolated hardware, no visibility needed | Per-instance billing |
đ Savings Plans Subtypes
| Type | Flexibility | Discount Depth |
|---|---|---|
| Compute Savings Plan | Highest â any instance family/region/OS, EC2+Fargate+Lambda | Lower than EC2 SP |
| EC2 Instance Savings Plan | Locked to instance family + region, flexible size/OS/tenancy | Deepest discount |
| SageMaker Savings Plan | ML workloads specifically | N/A |
đ "Wants maximum flexibility across compute services AND regions" â Compute Savings Plan
đ "Committed to c5 family in us-east-1, wants deepest possible discount" â EC2 Instance Savings Plan
Placement Groups
| Type | Use Case | Trap |
|---|---|---|
| Cluster | Low latency, high throughput, same AZ | â ď¸ Single AZ = single point of failure |
| Spread | Critical instances, max 7 per AZ, each on distinct hardware | Reduces correlated failure |
| Partition | Large distributed systems (Hadoop, Cassandra), partitions = separate racks | Failure isolation per partition |
EBS Volume Types
| Type | Best For |
|---|---|
| gp3/gp2 (SSD) | General purpose, boot volumes |
| io1/io2 (SSD) | High IOPS databases, Multi-Attach support |
| st1 (HDD) | Big data, throughput-heavy, streaming workloads |
| sc1 (HDD) | Cold data, infrequent access, cheapest |
đ EBS Encryption Rules
- â ď¸ Cannot directly encrypt an existing UNENCRYPTED volume
- â Workaround: Snapshot â Copy snapshot with encryption enabled â Create new volume from encrypted snapshot
- Encrypting the root/default EBS encryption setting applies only to NEW volumes going forward
Auto Scaling Policies
| Policy | Use When |
|---|---|
| Target Tracking | Maintain metric at target (e.g. CPU 50%) â MOST COMMON answer |
| Step Scaling | Scale by different amounts based on alarm breach size |
| Scheduled Scaling | Predictable timing (e.g. Black Friday) |
| Predictive Scaling | ML-based, scales ahead of forecasted demand |
Other ASG Concepts
- Lifecycle Hooks â pause instance in Pending/Terminating state to run custom actions
- Warm Pools â pre-initialized instances sitting ready, reduces scale-out latency
- Health Checks â ELB health check = traffic eligibility; ASG health check = replacement decision
ELB Comparison
| Layer | Best For | |
|---|---|---|
| ALB | 7 (HTTP) | Path/host routing, WebSockets, microservices |
| NLB | 4 (TCP/UDP) | Extreme performance, static IP, preserves source IP |
| GWLB | 3 (Network) | Inline 3rd-party appliances (firewalls, IDS/IPS) |
đ ELB Target Types
Instance â route to EC2 instance ID
IP â route to any IP (even on-prem via VPN/DX!) â enables hybrid load balancing
Lambda â ALB can invoke a Lambda function as a target (HTTP-triggered serverless)
đ "Load balance traffic between EC2 instances in AWS AND on-prem servers" â ALB/NLB with IP target type
đ "Expose a Lambda function behind an ALB for simple HTTP triggering" â ALB with Lambda target type
ELB Extras
- Cross-Zone Load Balancing â ALB: on by default, NLB: off by default
- Sticky Sessions â cookie-based, use only if app is NOT stateless
- đ Deregistration Delay (Connection Draining) â in-flight requests finish before instance removed from rotation (default 300s)
đ EC2 Hibernate
Saves RAM contents to EBS on stop, resumes faster than cold boot.
đ Spot Fleet / Mixed Instance ASG
ASG can mix On-Demand + Spot across multiple instance types for cost + resilience.
đ IMDSv2
Session-oriented, token-required metadata service â mitigates SSRF attacks.
đ "Harden EC2 against credential theft via metadata service" â Enforce IMDSv2
2ď¸âŁ6ď¸âŁ ROUTE 53 DEEP DIVE
Routing Policies
| Policy | Use When |
|---|---|
| Simple | One resource, no health checks |
| Weighted | % split (A/B testing, gradual rollout) |
| Latency-based | Route to lowest-latency region |
| Failover | Active-passive DR |
| Geolocation | Route by user's country (compliance/localization) |
| Geoproximity | Geo + bias to shift traffic |
| Multi-value | Multiple healthy IPs returned, basic LB + health checks |
đ§ "Sillie Wabbits Like Failing, Geo Multiplying"
Health Checks
- HTTP/HTTPS/TCP endpoint checks
- Calculated health checks (check other health checks)
- Can monitor CloudWatch alarms
Hosted Zones
- Public â internet routing
- Private â routing within VPC(s)
Route 53 Resolver
- Inbound Endpoint â on-prem DNS queries resolve AWS private hosted zone records
- Outbound Endpoint â VPC resources resolve on-prem DNS names đ "Hybrid DNS resolution between on-prem and VPC private hosted zone" â Route 53 Resolver (inbound + outbound)
Route 53 Application Recovery Controller
Manages/automates regional failover with readiness checks and routing controls for highly critical apps.
2ď¸âŁ7ď¸âŁ đ CLOUDFORMATION & IaC DEEP DIVE
Core Concepts
Template â JSON/YAML describing desired resources
Stack â deployed instance of a template
Change Set â preview of changes before applying (safety check)
Drift Detection â identifies resources manually changed outside CloudFormation
Stack Policy â prevents accidental updates/deletes of specific resources
Deletion Policies
Delete (default) â resource deleted when stack deleted
Retain â resource kept even if stack deleted (e.g., for S3 buckets/RDS with important data)
Snapshot â creates a snapshot before deleting (RDS, EBS, ElastiCache)
đ "Deleting a CloudFormation stack must NOT delete the production database's data" â DeletionPolicy: Retain (or Snapshot)
Nested Stacks vs StackSets
| Nested Stacks | StackSets | |
|---|---|---|
| Purpose | Break one large template into reusable components | Deploy the SAME template across MULTIPLE accounts/regions |
| Scope | Single account/region | Multi-account/multi-region |
đ "Deploy the same security baseline stack across 50 accounts in 3 regions" â CloudFormation StackSets
đ "Reuse a common VPC template inside multiple larger templates" â Nested Stacks
Intrinsic Functions (commonly tested conceptually)
!Ref â reference a parameter/resource
!GetAtt â get an attribute of a resource
!Sub â string substitution
!Join â concatenate strings
Outputs â export values for cross-stack references
CDK vs CloudFormation vs Service Catalog vs Elastic Beanstalk
See Confusion Killer Y in Section 34.
2ď¸âŁ8ď¸âŁ đ DEPLOYMENT STRATEGIES DEEP DIVE
Elastic Beanstalk Deployment Policies
| Policy | Downtime | Rollback Speed | Use Case |
|---|---|---|---|
| All at Once | â Yes | Slow (redeploy) | Dev/test, speed over availability |
| Rolling | â No | Slow | Reduce capacity gradually, cost-conscious |
| Rolling with Additional Batch | â No | Slow | Maintains full capacity during deploy |
| Immutable | â No | Fast (just terminate new) | Production, safest, doubles capacity briefly |
| Blue/Green | â No | Instant (swap URL/DNS) | Zero-risk, full environment swap |
đ "Zero downtime AND maintain full capacity during deployment, cost is secondary" â Immutable or Rolling with Additional Batch
đ "Need instant rollback capability with a completely separate environment" â Blue/Green
CodeDeploy Deployment Types
| In-Place | Blue/Green | |
|---|---|---|
| Instances | Same instances updated | New instances stood up, traffic shifted |
| Downtime risk | Higher | Lower |
| Rollback | Redeploy previous version | Route back to old environment |
CodeDeploy Configs
AllAtOnce â fastest, most risk
HalfAtATime â 50% batches
OneAtATime â safest, slowest
Canary(X%,Y min) â shift X% traffic, wait, then rest
Linear(X%,Y min) â shift X% every Y minutes until 100%
đ "Gradually shift traffic in fixed percentage increments over time, not all at once" â Linear deployment config
đ "Shift 10% of traffic, monitor 5 minutes, then shift rest" â Canary deployment config
2ď¸âŁ9ď¸âŁ ANALYTICS DEEP DIVE
Kinesis Family
| Service | Purpose | Retention/Replay |
|---|---|---|
| Data Streams | Real-time, custom consumers | 24hr default, up to 365 days, replayable |
| Firehose | Auto-delivery to S3/Redshift/OpenSearch/Splunk | No retention/replay |
| Data Analytics | SQL/Flink on streaming data | N/A |
| Video Streams | Ingest video/audio | N/A |
đ§ "Streams Store, Firehose Flows, Analytics Analyzes"
Other Analytics Services
- Athena â serverless SQL directly on S3, pay-per-query
- Glue â serverless ETL + Data Catalog
- Glue DataBrew â visual data prep, no code
- EMR â managed Hadoop/Spark
- Redshift â data warehouse, complex joins, BI
- Redshift Spectrum â query S3 from Redshift without loading
- QuickSight â BI dashboards
- Lake Formation â centralized data lake governance on S3/Glue
- OpenSearch Service â managed Elasticsearch fork, log analytics/full-text search
- MSK â managed Kafka, use when team has existing Kafka tooling
3ď¸âŁ0ď¸âŁ COST OPTIMIZATION TOOLKIT
- Cost Explorer â visualize/forecast spend, RI/SP recommendations
- AWS Budgets â proactive alerts (cost, usage, RI/SP utilization budgets)
- Cost & Usage Report (CUR) â most granular billing data
- Trusted Advisor â best-practice checks (cost, security, performance, fault tolerance, limits)
- Compute Optimizer â ML-based right-sizing (EC2/Lambda/EBS)
- Savings Plans â flexible $/hr commitment
- Reserved Instances â locked to instance family/region
- Cost Allocation Tags â track spend by project/team
- License Manager â track/enforce BYOL software license usage
RI vs Savings Plan
| Reserved Instance | Savings Plan | |
|---|---|---|
| Locked to | Instance family/region | $/hr commitment, flexible family/region |
| Term | 1 or 3 years | 1 or 3 years |
| Flexibility | Low (Standard) / Medium (Convertible) | High |
đ Billing Alarms
CloudWatch billing alarm (in us-east-1, must enable billing alerts first) â simplest way to get notified of unexpected spend before AWS Budgets existed; still occasionally tested as the "basic" answer vs Budgets.
đ "Simplest way to get an alert if total account spend exceeds $500" â CloudWatch Billing Alarm (simple) or AWS Budgets (more feature-rich/preferred in modern exam answers)
3ď¸âŁ1ď¸âŁ ADDITIONAL SERVICES
Cognito Deep Dive
| User Pools | Identity Pools | |
|---|---|---|
| Purpose | Sign-up/sign-in directory | Temp AWS credentials |
| Output | JWT tokens | STS temp creds |
API Gateway Deep Dive
Edge-optimized â global clients (uses CloudFront)
Regional â clients in same region
Private â internal VPC-only APIs (via Interface Endpoint)
Usage Plans â throttling + quota per API key/customer
Caching â reduce backend load, TTL-configurable
Request Validation â reject malformed requests before hitting backend
Mapping Templates â transform request/response between client and backend format
đ "Different customers need different rate limits on the same API" â Usage Plans + API Keys
đ "API must only be reachable from within our VPC" â Private API Gateway + Interface Endpoint
Systems Manager Suite
- Session Manager â SSH/RDP without open ports or bastion hosts
- Patch Manager â automate OS patching
- Parameter Store â config/secrets
- Run Command â remote command execution at scale
- State Manager â maintain consistent config state
- Automation â predefined workflows (e.g., AMI creation)
- Inventory â collect metadata about instances
- OpsCenter â central place to view/resolve operational issues
- đ Compliance â scan instances against patch/config baselines
- đ Documents (SSM Documents) â define actions performed on instances (used by Run Command/Automation)
Governance & Multi-Account
- AWS Organizations â consolidated billing, account structure, SCPs
- Control Tower â automated landing zone, built on Organizations
- AWS RAM â share resources (subnets, TGW) cross-account
- Config Conformance Packs â pre-built compliance rule sets
- Service Catalog â curated self-service catalog of approved products
- đ AWS Artifact â compliance reports and agreements
Edge / Hybrid Infrastructure
- Outposts â AWS hardware physically installed in YOUR data center
- Local Zones â AWS infrastructure extension near major metro areas
- Wavelength â AWS compute embedded in telecom 5G networks
đ Direct Connect Deep Dive
Private VIF (Virtual Interface) â access VPC resources privately
Public VIF â access AWS public services (S3, DynamoDB) over DX, not internet
Transit VIF â connect to Transit Gateway over DX
Direct Connect Gateway â connect DX to multiple VPCs across regions
Link Aggregation Group (LAG) â bundle multiple DX connections for higher bandwidth
đ "Need to reach S3 over Direct Connect without traversing the public internet" â Public VIF
đ "Single DX connection needs to reach VPCs in multiple regions" â Direct Connect Gateway
â ď¸ DX alone has NO built-in encryption â for encrypted DX traffic, layer a VPN over Direct Connect.
đ "Need dedicated bandwidth AND encryption in transit" â VPN over Direct Connect
đ Amazon Detective
Automatically analyzes/visualizes security data (from GuardDuty, VPC Flow Logs, CloudTrail) to help find the ROOT CAUSE of a finding.
đ "GuardDuty flagged suspicious activity â need to investigate the underlying cause and related events" â Amazon Detective
đ Firewall Manager
Centrally manage WAF, Security Groups, Shield Advanced, and Network Firewall across an Organization.
đ Network Firewall
Managed, stateful VPC-level firewall with IPS capabilities.
đ VPC Reachability Analyzer
Diagnoses connectivity issues via static config analysis (SG/NACL/route tables).
đ End-User Computing
- WorkSpaces â persistent managed virtual desktops (VDI)
- AppStream 2.0 â streams individual applications, non-persistent
Developer Tools (CI/CD)
- CodeCommit â managed Git repo
- CodeBuild â managed build service
- CodeDeploy â automates deploy (In-place/Blue-Green, Canary, Linear)
- CodePipeline â orchestrates full CI/CD
3ď¸âŁ2ď¸âŁ đ CONFUSION KILLERS â Side-by-Side with Examples
đ A. WAF vs Shield vs GuardDuty
| Service | Protects Against | Blocks or Detects? |
|---|---|---|
| WAF | Malicious request content | Blocks |
| Shield | Traffic volume floods | Blocks |
| GuardDuty | Suspicious behavior | Detects only |
đ§ "WAF Watches words, Shield Stops storms, GuardDuty Gives detection."
đľď¸ B. Macie vs Inspector vs GuardDuty vs Detective
| Service | Finds |
|---|---|
| Macie | Sensitive data (PII) in S3 |
| Inspector | Vulnerabilities (CVEs) |
| GuardDuty | Active threats/malicious behavior |
| Detective | ROOT CAUSE of a finding (investigation) |
đ§ "Macie Mines data, Inspector Inspects code, Guard Guards traffic, Detective Digs deeper."
đď¸ C. Multi-AZ vs Read Replica vs Aurora Global DB
| Multi-AZ | Read Replica | Aurora Global DB | |
|---|---|---|---|
| Purpose | HA/failover | Read scaling | Cross-region + DR |
| Replication | Sync | Async | Async (<1s) |
| Failover | Automatic | Manual | Manual (~1min) |
| Readable? | â | â | â |
đ¨ D. SQS vs SNS vs EventBridge vs Kinesis
đ§ "Queue holds, Notifies broadcasts, Events route, Kinesis streams+replays."
đ¨ E. SQS Standard vs FIFO
Litmus: "order"/"exactly-once" â FIFO. Otherwise â Standard.
đ F. Gateway vs Interface Endpoint
đ§ "Gateway = Gratis (free), Interface = Invoiced."
đ G. VPC Peering vs Transit Gateway vs VPN vs Direct Connect
đ§ "VPN = Virtually instant, DX = Dedicated but delayed."
đ H. Security Group vs NACL
đ§ "Security Group remembers you leaving. NACL checks you again on the way out."
đť I. Lambda vs Fargate vs ECS vs EKS vs EC2
đ§ "Lambda = short & serverless, Fargate = containers & serverless, EC2 = full control."
đď¸ J. S3 vs EBS vs EFS vs FSx
đ§ "EBS = one drive one PC. EFS/FSx = shared drive many PCs. S3 = cloud filing cabinet."
đď¸ K. S3 Storage Classes
đ§ "Sally Is In One Giant Igloo, Deeply frozen."
đ L. IAM Role vs User vs SCP vs Permissions Boundary
đ§ "SCP = Stop (ceiling), IAM Policy = Issues permission, Boundary = Bounds one person."
đ M. CloudTrail vs CloudWatch vs Config vs X-Ray
đ§ "Trail tracks the actor. Watch watches metrics. Config catches change. X-Ray x-rays the path."
đ N. DMS vs MGN vs Snowball vs DataSync
đ§ "DMS = Data, MGN = Machines, Snowball = Ship it, DataSync = Schedule it."
âď¸ O. ALB vs NLB vs GWLB
đ§ "Apps Need Gateways" (ALB app layer, NLB raw speed, GWLB for appliances).
đ P. Route 53 Routing Policies
đ§ "Sillie Wabbits Like Failing, Geo Multiplying."
đŞď¸ Q. DR Strategies (RTO/RPO Ladder)
đ§ "Budget People Want More" (BackupâPilotâWarmâMulti-site).
đ° R. Reserved Instances vs Savings Plans vs Spot
đ§ "RI = Rigid, Savings Plan = Stretchy, Spot = Sacrificial."
đ S. Kinesis Streams vs Firehose vs Data Analytics
đ§ "Streams Store (& replay), Firehose Flows (auto), Analytics Analyzes (SQL)."
đť T. Elastic Beanstalk vs Lightsail vs EC2
đ§ "Beanstalk grows your app for you. Lightsail = light & cheap. EC2 = you're the sysadmin."
đ U. Cognito User Pools vs Identity Pools
đ§ "User Pools = who you are, Identity Pools = what you can touch."
đ V. Snapshot vs AWS Backup vs AMI
đ§ "Snapshot = one disk, AMI = one server clone, Backup = the whole org."
đ W. Athena vs Redshift vs Redshift Spectrum vs EMR
đ§ "Athena = ask S3 directly. Redshift = warehouse the data. Spectrum = warehouse + peek at S3. EMR = build your own big-data cluster."
đ X. Global Accelerator vs CloudFront vs Route 53
đ§ "CloudFront caches content, Global Accelerator routes packets, Route 53 resolves names."
đ Y. CloudFormation vs CDK vs Elastic Beanstalk vs Service Catalog
đ§ "CloudFormation = blueprint, CDK = code that draws the blueprint, Beanstalk = someone else builds it for you, Service Catalog = the approved catalog of blueprints."
đ Z. AWS Backup vs AWS DRS vs Cross-Region Replication vs Multi-AZ
đ§ "Backup = restore point, DRS = live standby copy, CRR = object mirror, Multi-AZ = same-region safety net."
đ AA. WorkSpaces vs AppStream 2.0
đ§ "WorkSpaces = your desk. AppStream = a single app in a window."
đ BB. IAM Identity Center vs Cognito vs Directory Service
đ§ "Identity Center = employees into AWS. Cognito = customers into your app. Directory Service = Windows/AD compatibility."
đ CC. ElastiCache Redis vs Memcached
đ§ "Redis Remembers (persists), Memcached Might forget."
đ "Need pub/sub + persistence + replication" â Redis
đ "Need simple, disposable, multi-threaded cache" â Memcached
đ DD. GSI vs LSI (DynamoDB)
| GSI | LSI | |
|---|---|---|
| Created | Anytime | Only at table creation |
| Key | New partition+sort | Same partition, diff sort |
| Consistency | Eventual only | Strong or eventual |
đ§ "GSI = Grows anytime, LSI = Locked at launch."
đ EE. Network Firewall vs Security Group vs NACL vs WAF vs GWLB
| Service | Scope | Layer |
|---|---|---|
| Security Group | Instance | L4 |
| NACL | Subnet | L3/L4 |
| Network Firewall | VPC-wide, stateful, IPS | L3-L7 |
| WAF | HTTP application layer | L7 |
| GWLB | Routes to 3rd-party appliance | L3 |
đ "Need intrusion prevention and deep packet inspection at the VPC perimeter" â AWS Network Firewall
đ "Need to route traffic through a 3rd-party firewall appliance transparently" â GWLB
đ FF. Firewall Manager vs Security Hub vs Organizations SCP
| Purpose | |
|---|---|
| Firewall Manager | Centrally deploy/enforce WAF, SG, Shield, Network Firewall rules org-wide |
| Security Hub | Aggregate and prioritize security FINDINGS across accounts |
| SCP | Restrict IAM ACTIONS/permissions org-wide |
đ "Automatically apply the same WAF rule to every new ALB created in any account" â Firewall Manager
đ "See a consolidated dashboard of GuardDuty + Inspector + Macie findings across all accounts" â Security Hub
đ MASTER LITMUS-TEST FLOWCHART
- Block or just detect? â WAF/Shield (block) vs GuardDuty (detect)
- Automatic failover needed? â Multi-AZ, not Read Replica
- Cross-region? â Needs "Global"/"Cross-Region" in the name
- Does it need to GRANT permission? â SCP/Boundary never do; only IAM Policy does
- Is it free? â Gateway Endpoint (S3/DynamoDB) vs paid Interface Endpoint
- Needs replay? â Kinesis, not SQS
- Single point or shared storage? â EBS (single) vs EFS/FSx (shared)
- How fast must recovery be? â Maps to DR ladder
- Steady or spiky workload? â RI/Savings Plan (steady) vs Spot (spiky)
- HTTP or non-HTTP traffic? â CloudFront/ALB (HTTP) vs Global Accelerator/NLB (non-HTTP)
- Employee or customer identity? â IAM Identity Center (employee) vs Cognito (customer)
- Persistent desktop or single app? â WorkSpaces (desktop) vs AppStream (app)
- Backup restore point or live standby? â AWS Backup (point-in-time) vs AWS DRS (continuous)
- đ Needs persistence/pub-sub? â Redis vs Memcached
- đ Index at table creation or anytime? â LSI (creation only) vs GSI (anytime)
- đ Investigating WHY vs WHAT happened? â Detective (why) vs GuardDuty/Config (what)
- đ Centralizing rules vs aggregating findings? â Firewall Manager (rules) vs Security Hub (findings)
3ď¸âŁ3ď¸âŁ WHY AWS REJECTS THIS ANSWER (Top 55)
1-45: (all prior entries retained â see below for the full list)
1. Need HA â â Read Replica â â
Multi-AZ
2. Need DR (region loss) â â Multi-AZ â â
Cross-Region
3. Need queue â â SNS â â
SQS
4. Need fan-out â â SQS â â
SNS
5. Need exactly-once+order â â SQS Standard â â
SQS FIFO
6. Need encryption â â Secrets Manager â â
KMS
7. Need to rotate password â â Parameter Store â â
Secrets Manager
8. Need drift detection â â CloudTrail â â
AWS Config
9. Need "who did it" â â CloudWatch â â
CloudTrail
10. Need threat detection â â Inspector â â
GuardDuty
11. Need vulnerability scan â â GuardDuty â â
Inspector
12. Need PII discovery â â GuardDuty/Inspector â â
Macie
13. Need central security dashboard â â GuardDuty alone â â
Security Hub
14. Need transitive VPC routing â â VPC Peering â â
Transit Gateway
15. Need dedicated bandwidth â â VPN â â
Direct Connect
16. Need quick hybrid setup â â Direct Connect â â
VPN
17. Need free S3 private access â â Interface Endpoint â â
Gateway Endpoint
18. Need private access to Kinesis/SNS â â Gateway Endpoint â â
Interface Endpoint
19. Need shared block storage, multi-AZ â â EBS Multi-Attach â â
EFS/FSx
20. Need cheapest archive â â Standard-IA â â
Glacier Deep Archive
21. Need SCP to grant permission â â SCP â â
IAM Policy
22. Need to cap 1 admin's perms â â SCP â â
Permissions Boundary
23. Need temp creds for EC2 app â â IAM User+keys â â
IAM Role
24. Job runs >15 min â â Lambda â â
Fargate/Batch/EC2
25. Need GPU in container â â Fargate â â
EC2 launch type
26. Need automatic replay of stream â â SQS â â
Kinesis Data Streams
27. Need to right-size EC2 fleet â â Trusted Advisor alone â â
Compute Optimizer
28. Need consistent read-after-write on S3 â â
S3 = strong consistency by default
29. Need Aurora that pauses to zero â â Serverless v2 â â
Serverless v1
30. Need to grant access despite SCP deny â â Broader IAM policy â â
Modify the SCP itself
31. Need static IP for non-HTTP global app â â CloudFront â â
Global Accelerator
32. Need NAT for inbound traffic â â NAT Gateway â â
ALB/NLB
33. Need mobile app to directly call S3 after login â â Cognito User Pool alone â â
+ Identity Pool
34. Need HPC lowest-latency clustering â â Spread Placement Group â â
Cluster Placement Group
35. Need on-prem AWS-native services â â Direct Connect alone â â
AWS Outposts
36. Need sub-minute RPO DR for on-prem servers â â AWS Backup â â
AWS DRS
37. Need SSO for employees across 40 accounts â â Cognito â â
IAM Identity Center
38. Need to find publicly exposed IAM roles/buckets â â Security Hub â â
IAM Access Analyzer
39. Need EC2 to join on-prem AD without duplicating users â â Simple AD â â
AD Connector
40. Need self-service deployment for non-technical teams â â raw CloudFormation â â
Service Catalog
41. Need query subset of columns from huge S3 CSV cheaply â â Download whole object â â
S3 Select
42. Need bulk tag/update on billions of S3 objects â â Manual Lambda loop â â
S3 Batch Operations
43. Need IPv6 outbound-only internet access â â NAT Gateway â â
Egress-Only Internet Gateway
44. Need to track software license compliance â â Cost Explorer â â
License Manager
45. Need virtual desktop persistence for full-time staff â â AppStream 2.0 â â
WorkSpaces
46. đ Need cache with persistence and pub/sub â â Memcached â â
Redis
47. đ Need strongly consistent read on alternate sort key â â GSI (eventual only) â â
LSI
48. đ Need index added AFTER table already exists â â LSI (creation-time only) â â
GSI
49. đ Need to encrypt an EXISTING unencrypted RDS instance â â "Enable encryption" toggle (doesn't exist) â â
SnapshotâCopy(encrypted)âRestore
50. đ Need root cause investigation of a GuardDuty finding â â GuardDuty alone (just alerts) â â
Amazon Detective
51. đ Need centralized WAF rule enforcement across new + existing accounts â â Manual per-account WAF â â
Firewall Manager
52. đ Need stateful deep packet inspection at VPC edge â â Security Group (stateful but L4 only, no IPS) â â
AWS Network Firewall
53. đ Need to diagnose exactly why traffic is blocked between 2 resources without sending live packets â â Manually reading SG/NACL rules â â
VPC Reachability Analyzer
54. đ Need Lambda cold-start elimination â â Reserved Concurrency (only caps capacity) â â
Provisioned Concurrency
55. đ Need same CloudFormation stack deployed to 50 accounts/3 regions â â Nested Stacks (single account/region) â â
StackSets
3ď¸âŁ4ď¸âŁ ARCHITECTURES (Vertical Flow)
Static Website
User â Route 53 â CloudFront (+WAF) â S3 (Origin, OAC private)
Three-Tier Web App
Users â CloudFront â Route 53 â ALB (public subnet) â EC2/ASG (private) â RDS Multi-AZ (isolated)
Serverless App
Client â API Gateway â Lambda â DynamoDB
Event-Driven
S3 Upload â EventBridge â Lambda (process) / SQS (buffer) / Step Functions (orchestrate)
Microservices
Client â ALB â ECS Orders(Fargate)âDynamoDB
â ECS Payments(Fargate)âAurora
â ECS Shipping(Fargate)âDynamoDB
Hybrid Cloud
On-Prem â Direct Connect(primary)+VPN(backup) â VPC â Transit Gateway â VPC-A/B/C
DR â Warm Standby
Region A(ACTIVE 100%) â Route 53 Failover â Region B(PASSIVE 10%)
Aurora Write(A) â Replication â Aurora Read(B)
DR â Active/Active
Region A(ACTIVE) â DynamoDB Global Tables â Region B(ACTIVE)
Route 53 Latency Routing â All Users
DR â Continuous Replication (AWS DRS)
On-Prem Servers â AWS DRS Replication Agent â Low-Cost Staging Subnet (EBS only, no live EC2)
On disaster â DRS Launches Full EC2 in minutes â Route 53 Failover
Secure Enterprise VPC
Internet â IGW â ALB(public,SG:443) â App Tier(private) â DB Tier(isolated, no NAT/IGW)
Side: NAT GW (one per AZ) | VPC Flow Logs â CloudWatch | VPC Endpoints (S3/KMS/Secrets)
Perimeter: AWS Network Firewall (inline inspection) | Firewall Manager (org-wide policy)
Data Lake
Sources â Kinesis Firehose â S3(raw) â Glue ETL â S3(processed) â Athena/Redshift/QuickSight
Governance: Lake Formation (across S3/Glue)
Streaming Pipeline
IoT/Clickstream â Kinesis Data Streams â Lambda(real-time)
â Kinesis Firehose â S3 â Athena/Redshift
CI/CD Pipeline
Dev push â CodeCommit â CodePipeline â CodeBuild â CodeDeploy(Blue/Green/Canary/Linear) â EC2/ECS/Lambda
CloudWatch Alarms â auto-rollback on failure
IoT Pipeline
Devices â IoT Core(MQTT) â IoT Rules Engine â Kinesis/Lambda/S3/Timestream
SaaS Multi-Tenant
Tenant â CloudFront â API Gateway â Lambda â DynamoDB(partition key=tenant_id)
Cognito (tenant-aware pools)
Mobile Backend with Federated Access
Mobile App â Cognito User Pool (login) â Cognito Identity Pool (temp creds) â S3/DynamoDB directly
Multi-Account Landing Zone
Management Account â Control Tower â Organizations (OUs: Security/Sandbox/Prod/Dev)
â SCPs per OU
â IAM Identity Center (SSO)
â Config Conformance Packs (compliance)
â Firewall Manager (org-wide WAF/SG rules)
Centralized Cross-Account Networking (VPC Sharing)
Network Account (owns VPC/subnets) â AWS RAM â Shares subnets â App Account A/B/C
Bastion-less Remote Access
Admin â SSM Session Manager â Private EC2 (no open SSH/RDP ports, no bastion host)
Cache-Aside Pattern
App â Check ElastiCache (Redis) â Miss â Query RDS/DynamoDB â Write result to cache â Return
Hybrid End-User Computing
Remote Employees â WorkSpaces (persistent desktop) â VPC â Internal Apps/Databases
Contractors â AppStream 2.0 (single streamed app) â Same VPC, limited scope
đ Serverless DB-Backed API with Caching
Client â API Gateway (with caching) â Lambda â DAX â DynamoDB
âł Provisioned Concurrency for cold-start-sensitive functions
đ Security Investigation Pipeline
VPC Flow Logs + CloudTrail + DNS Logs â GuardDuty (detect) â Security Hub (aggregate)
â Amazon Detective (investigate root cause)
â EventBridge â Lambda (auto-remediate)
đ Regulated Database Encryption Retrofit
Existing Unencrypted RDS â Manual Snapshot â Copy Snapshot (enable KMS CMK encryption) â Restore New Encrypted Instance â Cutover (update endpoint) â Delete Old Instance
3ď¸âŁ5ď¸âŁ VOCABULARY
Durable â won't be lost (S3)
Available â responsive when needed
Elastic â auto grow/shrink
Ephemeral â temp, lost on stop
Fault Tolerant â zero disruption
Highly Available â fast recovery, brief gap ok
Eventually Consistent â reads may lag briefly
Strongly Consistent â always latest write
Shared Responsibility â AWS=of cloud, You=in cloud
Immutable Infra â replace, don't patch
Serverless â no provisioning, auto-scale
Lift and Shift â rehost, minimal change
Replatform â small optimizations
Refactor â redesign cloud-native
Blue/Green â 2 envs, instant switch
Canary â gradual traffic shift
Burstable â baseline + credits (T-family)
Idempotent â repeat = same result
Decoupled â no direct calls, via queue
Stateless â no session on instance
Stateful â retains session/context
Multi-tenant â shared infra, multiple customers
Defense in Depth â multiple security layers stacked
Loosely Coupled â failure isolation between components
Anycast IP â same IP, routed to nearest location (Global Accelerator)
WORM â Write Once Read Many (Object Lock)
RTO â Recovery Time Objective (how long to recover)
RPO â Recovery Point Objective (how much data loss tolerable)
Idle capacity â unused, wasted resources (cost target)
Landing Zone â pre-configured, secure multi-account baseline
Guardrail â preventive/detective control (SCP, Config rule)
Blast Radius â scope of impact if a component fails
Chaos Engineering â intentionally injecting failure to test resilience
Data Gravity â tendency of data to attract compute near it
North-South Traffic â traffic in/out of a network
East-West Traffic â traffic between resources inside a network
Envelope Encryption â encrypting a data key with a master key
Write-Through Cache â cache updated at the same time as DB
Lazy Loading (Cache-Aside) â cache populated only on read-miss
Hot Partition â uneven load on a single DB partition due to poor key design
Poison Pill Message â message that repeatedly fails processing, needs DLQ
Bulkhead Pattern â isolate failures so they don't cascade across the system
Circuit Breaker Pattern â stop calling a failing dependency temporarily
3ď¸âŁ6ď¸âŁ LIMITS (Quick List)
Lambda 15min ¡ Lambda /tmp 10GB ¡ SQS 256KB msg/14 days max retention ¡ S3 max object 5TB ¡ EBS max 64TiB ¡ EBS Multi-Attach same-AZ, io1/io2 only ¡ DynamoDB item 400KB ¡ Aurora max storage 128TB ¡ RDS 5 replicas / Aurora 15 ¡ VPC 5/region (soft) ¡ VPC CIDR /16-/28 ¡ SG 60 rules in/out ¡ ALB 100 target groups ¡ CFN 500 resources/stack ¡ IAM policy 6144 chars ¡ Route53 health check 10s(fast)/30s(standard) ¡ S3 multipart recommended >100MB ¡ Aurora Serverless v2 min 0.5 ACU ¡ S3 strong consistency (all ops) ¡ Well-Architected = 6 pillars ¡ Spot interruption warning = 2 min ¡ Placement Group (Spread) max 7 instances/AZ
More Limits
Lambda concurrent executions default = 1000 (soft) ¡ Lambda deployment package 50MB zipped/250MB unzipped ¡ API Gateway timeout = 29 seconds max ¡ DynamoDB max throughput per partition = 3000 RCU/1000 WCU ¡ Kinesis Data Streams default retention = 24hrs (max 365 days) ¡ Kinesis shard = 1MB/sec in, 2MB/sec out ¡ SNS message size = 256KB ¡ Step Functions Standard = 1 year max execution / Express = 5 min max ¡ EFS scales automatically ¡ FSx Lustre min size 1.2TiB (scratch) ¡ CloudFront cache TTL default = 24hrs ¡ Transit Gateway max VPC attachments = 5000 ¡ Organizations max accounts = 10 default (increasable) ¡ Glacier Deep Archive retrieval = ~12hrs standard, ~48hrs bulk
đ Even More Limits
DynamoDB GSI max = 20 per table ¡ DynamoDB LSI max = 5 per table (creation-time only) ¡ SQS visibility timeout max = 12 hours ¡ SQS delay queue max = 15 min ¡ RDS automated backup retention max = 35 days ¡ DynamoDB PITR window = 35 days ¡ EBS io2 Block Express max IOPS = 256,000 ¡ NAT Gateway bandwidth up to 100Gbps (burst) ¡ CloudFront max origins per distribution = 25 ¡ Security Group max per ENI = 5 (default, can request increase) ¡ IAM: max 5000 users per account (soft) ¡ IAM: max 500 roles per account (soft, increasable) ¡ Direct Connect port speeds = 1/10/100 Gbps ¡ Placement Group (Cluster) recommended for tightly coupled HPC only
3ď¸âŁ7ď¸âŁ MEMORY TRICKS (All in One Place)
WAF/Shield/GuardDuty â Watches words / Stops storms / Gives detection
Macie/Inspector/Guard/Detective â Mines data / Inspects code / Guards traffic / Digs deeper
Multi-AZ/Replica â Availability=AZ, Reads=Replica
SQS/SNS/EventBridge â Queue holds, Notifies broadcasts, Events route
Gateway/Interface â Gratis(free) / Invoiced(paid)
VPN/Direct Connect â Virtually instant / Dedicated but delayed
SG/NACL â Remembers you leaving / Checks you again leaving
S3 classes â Sally Is In One Giant Igloo, Deeply frozen
SCP/IAM/Boundary â Stop(ceiling) / Issues permission / Bounds one person
DMS/MGN/Snowball/Sync â Data / Machines / Ship it / Schedule it
ALB/NLB/GWLB â Apps Need Gateways
Route 53 policies â Sillie Wabbits Like Failing, Geo Multiplying
DR ladder â Budget People Want More
RI/Savings/Spot â Rigid / Stretchy / Sacrificial
Kinesis family â Streams Store, Firehose Flows, Analytics Analyzes
Beanstalk/Lightsail/EC2 â Grows for you / Light & cheap / You're the sysadmin
Cognito Pools â User Pools=who you are, Identity Pools=what you can touch
Snapshot/AMI/Backup â One disk / One server clone / The whole org
Athena/Redshift/Spectrum/EMR â Ask S3 directly / Warehouse it / Warehouse+peek / Build your own cluster
CloudFront/GA/Route53 â Caches content / Routes packets / Resolves names
Well-Architected Pillarsâ Old Sailors Rarely Perform Correctly Sober
IAM Evaluation â Deny Always Wins
Snow Family â Cone < Ball < Mobile
WorkSpaces/AppStream â Your desk / A single app in a window
Backup/DRS/CRR/Multi-AZ â Restore point / Live standby copy / Object mirror / Same-region net
Identity Center/Cognito/Directory â Employees into AWS / Customers into your app / Windows/AD
CloudFormation/CDK/Beanstalk/Catalog â Blueprint / Code that draws it / Someone builds it / Approved catalog
Redis/Memcached â Redis Remembers (persists), Memcached Might forget
GSI/LSI â Grows anytime / Locked at launch
Firewall Manager/Security Hub â Enforces rules / Aggregates findings
3ď¸âŁ8ď¸âŁ STAR RATINGS (Study Priority)
â
â
â
â
â
Almost guaranteed:
EC2, S3, VPC, IAM, RDS/Aurora, Lambda, DynamoDB, ELB, Auto Scaling,
Multi-AZ vs Read Replica, S3 Storage Classes, Security Group vs NACL,
DynamoDB GSI/LSI/Streams/TTL, RDS encryption retrofit process
â
â
â
â
â Very common:
Route 53, CloudFront (incl. Signed URL/Cookie, OAC), SQS/SNS/EventBridge,
KMS (incl. CMK types, envelope encryption), CloudWatch/CloudTrail/Config,
VPN/Direct Connect/Transit Gateway, Gateway vs Interface Endpoint,
WAF/Shield/GuardDuty, Cognito, DR Strategies (RTO/RPO ladder), ElastiCache (Redis vs Memcached)
â
â
â
ââ Sometimes:
ECS/EKS/Fargate, GuardDuty/Inspector/Macie/Detective, AWS Backup/DRS, DMS/MGN/Snow Family,
Step Functions (Standard vs Express), Kinesis, Well-Architected Framework, Cost tools, API Gateway,
Placement Groups, EBS volume types, IAM Identity Center, Access Analyzer,
CloudFormation (StackSets/Nested Stacks), Elastic Beanstalk deployment policies
â
â
âââ Rare:
Redshift, Glue/Athena, Organizations/Control Tower/RAM, RDS Proxy, DAX,
Elastic Beanstalk, Lightsail, Lake Formation, WorkSpaces/AppStream, Directory Service,
Service Catalog, IPAM, Network Firewall, Firewall Manager, Reachability Analyzer
â
ââââ Very rare:
Outposts, Wavelength, Local Zones, QLDB, Neptune, Timestream, OpsWorks,
AppSync, License Manager, MSK, OpenSearch, AWS Artifact
3ď¸âŁ9ď¸âŁ PRACTICE QUESTION BANK (Full Reasoning)
Q1. Automatic failover during AZ outage, zero data loss, no app changes.
â
RDS Multi-AZ â Read Replica (async, manual)
Q2. Process orders in exact sequence, no duplicates.
â
SQS FIFO â SQS Standard/SNS
Q3. 50TB footage, accessed once every few years, lowest cost.
â
S3 Glacier Deep Archive â Glacier Flexible
Q4. DB tier must never be internet-reachable, but needs outbound patching access.
â
Private subnet + NAT Gateway â Public subnet + SG restriction
Q5. Prevent every account in an OU from disabling CloudTrail.
â
SCP deny â IAM Policy (overridable per-account)
Q6. SSH into private EC2 without opening port 22 or bastion.
â
SSM Session Manager â Bastion host
Q7. Cross-region active-active DynamoDB.
â
DynamoDB Global Tables â Cross-region snapshot restore
Q8. Ad-hoc SQL on JSON logs in S3, zero infra.
â
Athena â Redshift
Q9. Backup data immutable for 7 years, even from admins.
â
S3 Object Lock (Compliance mode) â Versioning alone
Q10. Static IP for UDP game server, fast cross-region failover.
â
Global Accelerator â CloudFront
Q11. 10% traffic to new version for validation.
â
Route 53 Weighted â Failover routing
Q12. Immutable, cryptographically verifiable transaction log.
â
QLDB â DynamoDB + versioning
Q13. Continuous block-level replication of on-prem VMware, minutes RPO, launch EC2 only during failover.
â
AWS DRS â AWS Backup/MGN
Q14. 60 accounts, employees log in once via existing Okta.
â
IAM Identity Center â Cognito
Q15. Self-service portal for pre-approved CloudFormation templates.
â
Service Catalog â Direct CloudFormation access
đ Q16. DynamoDB table throttles despite available overall provisioned capacity.
â
Redesign the partition key (hot partition problem) â Simply increase provisioned capacity
đ Q17. Need to query DynamoDB by a new attribute added after the table already has millions of items.
â
GSI (can be added anytime) â LSI (creation-time only)
đ Q18. Existing production RDS instance (unencrypted) must become encrypted with minimal downtime.
â
Snapshot â Copy with encryption â Restore new instance â Cutover â "Enable encryption" toggle (doesn't exist for existing instances)
đ Q19. Need a cache that supports pub/sub messaging and automatic Multi-AZ failover.
â
ElastiCache for Redis â Memcached (no persistence/replication)
đ Q20. GuardDuty flagged an EC2 instance â need to understand the full timeline and related resources involved.
â
Amazon Detective â GuardDuty alone (only shows the finding, not root cause)
đ Q21. Security team wants the same WAF rule automatically applied to every ALB in every account, including future ones, org-wide.
â
Firewall Manager â Manually configuring WAF per account
đ Q22. API behind Lambda has strict latency SLAs; cold starts are causing SLA violations during traffic spikes.
â
Provisioned Concurrency â Reserved Concurrency (only limits/guarantees max, doesn't pre-warm)
đ Q23. Need to deploy an identical security baseline CloudFormation stack to 80 accounts across 4 regions automatically.
â
CloudFormation StackSets â Nested Stacks (single account/region scope)
đ Q24. Need Lambda-based ALB target for simple internal HTTP-triggered serverless function without API Gateway overhead.
â
ALB with Lambda target type â API Gateway + Lambda (unnecessary here)
đ Q25. EC2 fleet must join existing on-premises Active Directory without duplicating user accounts in AWS.
â
AD Connector â AWS Managed Microsoft AD (creates a new directory) / Simple AD (standalone)
4ď¸âŁ0ď¸âŁ COMMON EXAM CALCULATIONS
RTO/RPO Interpretation
RTO = "How long can we be DOWN?" â drives DR strategy choice
RPO = "How much DATA can we LOSE?" â drives replication frequency/method
S3 Storage Cost Reasoning
Standard > Intelligent-Tiering â Standard-IA > One Zone-IA > Glacier IR > Glacier Flexible > Glacier Deep Archive
Read Replica Math
- Aurora â up to 15 read replicas | RDS (non-Aurora) â up to 5
- If question implies >5 read replicas needed on a relational engine â Aurora
Data Transfer Reasoning
- Same-AZ private IP = cheapest/free | Cross-AZ = costs money | Egress to internet = most expensive (use CloudFront)
Lambda Cost/Concurrency Reasoning
- More memory = more CPU = may finish faster = can be CHEAPER despite higher per-ms rate
Spot Savings vs Risk
- Spot â up to 90% cheaper, reclaimable with 2-min warning â fault-tolerant workloads only
đ Subnet CIDR Math
Usable IPs = 2^(32-prefix) - 5
/24 = 251 usable | /28 = 11 usable | /27 = 27 usable
đ DynamoDB Capacity Math (conceptual)
RCU: 1 strongly consistent read of 4KB = 1 RCU (eventually consistent = 0.5 RCU)
WCU: 1 write of 1KB = 1 WCU
đ "App does 100 strongly consistent reads/sec of 4KB items" â needs 100 RCU
4ď¸âŁ1ď¸âŁ CONTAINER DEEP DIVE (ECS vs EKS vs Fargate)
Launch Types
| EC2 Launch Type | Fargate Launch Type | |
|---|---|---|
| Who manages servers | You | AWS |
| Use case | GPU/custom AMI/cost control at scale | No ops overhead, variable workloads |
| Billing | Per EC2 instance | Per task (vCPU/memory-second) |
ECS vs EKS
| ECS | EKS | |
|---|---|---|
| Orchestrator | AWS proprietary | Kubernetes |
| Best for | AWS-only shops | Multi-cloud/k8s portability |
| Control plane cost | Free | Hourly charge per cluster |
Task Definitions & Services (ECS)
- Task Definition â blueprint (image, CPU/memory, ports, env vars)
- Task â running instance of a task definition
- Service â maintains desired count of tasks, integrates with ALB
4ď¸âŁ2ď¸âŁ EXAM DAY TIPS
Logistics
- Arrive/log in 30 min early (online proctoring needs ID + room scan)
- 130 minutes, ~65 questions â ~2 min/question budget
- Flag-and-review is available â don't get stuck, mark and move on
- Unanswered = wrong; ALWAYS select something before flagging
Mental Checklist Per Question
- What is the LAST sentence really asking?
- What's the non-negotiable constraint?
- Eliminate 2 answers immediately
- Between final 2 â which is MORE managed/secure/native?
- Trust the framework, not panic
Common Mistakes to Avoid
- Don't switch a confident answer without a strong reason
- Don't assume "cheapest" ignores compliance requirements
- Don't pick Lambda for anything >15 min or requiring persistent state
- Don't pick Multi-AZ when the question says "region" or "disaster"
- Don't forget SCPs/Permissions Boundaries never grant, only restrict
- đ Don't confuse GSI (flexible) with LSI (rigid, creation-time only)
- đ Don't forget RDS encryption retrofit requires snapshotâcopyârestore
- đ Read "choose TWO/THREE" instructions carefully â no partial credit
4ď¸âŁ3ď¸âŁ â° LAST 30 MINUTES BEFORE THE EXAM
15 Golden Rules
- Managed > Self-managed, always, when tied.
- Multi-AZ = HA. Read Replica = Reads. Never confuse them.
- Multi-AZ â DR. DR = Cross-Region.
- SCP restricts, never grants.
- Gateway Endpoint = S3/DynamoDB ONLY, free.
- VPC Peering is NOT transitive â use Transit Gateway.
- Lambda hard limit = 15 minutes.
- SQS Standard â ordered/exactly-once â need FIFO.
- Aurora Serverless v2 does NOT scale to zero (v1 did).
- Explicit DENY always wins in IAM policy evaluation.
- IAM Identity Center = employees; Cognito = customers.
- AWS DRS = continuous replication DR; AWS Backup = scheduled point-in-time.
- WorkSpaces = persistent desktop; AppStream = single streamed app.
- Redis persists/replicates; Memcached does not.
- GSI = add anytime; LSI = table-creation only.
25 Limits to Remember
Lambda 15min ¡ SQS 256KB/14days ¡ S3 5TB ¡ EBS 64TiB ¡ DynamoDB 400KB item ¡ Aurora 128TB ¡ RDS 5 replicas/Aurora 15 ¡ VPC 5/region ¡ SG 60 rules ¡ ALB 100 target groups ¡ CFN 500 resources ¡ IAM policy 6144 chars ¡ EBS Multi-Attach same-AZ only ¡ NACL lowest-number-first ¡ Route53 health check 10s/30s ¡ S3 multipart >100MB ¡ Aurora Serverless v2 min 0.5 ACU ¡ VPC CIDR /16-/28 ¡ S3 strong consistency ¡ Well-Architected = 6 pillars ¡ DynamoDB GSI max 20/LSI max 5 ¡ SQS visibility timeout max 12hrs ¡ RDS backup retention max 35 days ¡ DynamoDB PITR window 35 days ¡ API Gateway timeout 29s ¡ Lambda concurrency default 1000.
35+ Architectures to Recognize
Static site ¡ 3-tier ¡ Serverless ¡ Event-driven ¡ Microservices ¡ Data lake ¡ Streaming ¡ Hybrid ¡ Warm Standby DR ¡ Active/Active DR ¡ DRS continuous DR ¡ CI/CD pipeline ¡ IoT pipeline ¡ SaaS multi-tenant ¡ Secure VPC ¡ Multi-region DB ¡ Cross-account sharing (RAM) ¡ Centralized logging ¡ Landing zone (Control Tower) ¡ Bastion-less access (SSM) ¡ Blue/Green ¡ Canary ¡ Fan-out (SNS+SQS) ¡ Cache-aside (ElastiCache) ¡ DAX+DynamoDB ¡ Global delivery (CF+GA) ¡ VPC endpoint-secured ¡ Centralized backup ¡ WAF+Shield web app ¡ RDS Proxy+Lambda ¡ Cognito mobile backend ¡ VPC sharing ¡ Hybrid end-user computing ¡ Security investigation pipeline (GuardDutyâDetective) ¡ DB encryption retrofit ¡ Serverless API with DAX caching.
Traps â Section 33 (55 entries) + Section 32 Confusion Killers (34 groups)
Golden Rule Recap by Domain
Security (30%): Least privilege, encryption by default, Roles over Users, defense in depth.
Resilience (26%): Multi-AZ for HA, Cross-Region for DR, decouple with queues/events.
Performance (24%): Right service for workload pattern, caching, serverless for spiky loads.
Cost (20%): Match pricing model to usage pattern, lifecycle policies, right-size continuously.
đŻ Final Checklist
- [ ] Read the last sentence first
- [ ] Highlight the constraint keyword
- [ ] Scan the Service Selection Matrix mentally
- [ ] Watch for "NO SUCH THING" traps
- [ ] Run through Section 32 Confusion Killers if two answers feel similar
- [ ] Pick more managed/native/automated when tied
- [ ] DR â RTO/RPO ladder
- [ ] Networking â check direction + transitivity
- [ ] IAM â remember explicit deny always wins
- [ ] DynamoDB â GSI flexible, LSI rigid
- [ ] Cache â Redis persists, Memcached doesn't
- [ ] Trust your first instinct
đ PREP TIME ALLOCATION
70% âââââââ Practice exams
20% ââ Review wrong answers (esp. Section 32 & 33)
10% â Re-read this sheet
Go score 850+. đ
Top comments (0)