# KoreMemo — Source-Verified AWS SAA-C03, System Design & AI Engineering Decision Guides > Exam Guide v1.1 (2026-10-29) · 60 Traps × 120 Form A/B Scenarios · Audited 2026-11-23 KoreMemo publishes concise, primary-source-verified architecture decision rules across Cloud/AWS, Distributed System Design, and AI Engineering. ## Core Routes - Home & 3-Track Diagnostic Workspace: https://korememo.com/ - All 30 AWS SAA-C03 Decision Guides: https://korememo.com/aws-saa/ - All 15 System Design Decision Guides: https://korememo.com/system-design/ - All 15 AI Engineering Decision Guides: https://korememo.com/ai-engineering/ - B2B 24h Postmortem Bootcamp: https://korememo.com/teams/ - Sample 10-Engineer Team Audit Brief PDF: https://korememo.com/teams/sample-audit-brief/ - Open-Source GitHub Action (`kore-pr-guard`): https://github.com/sudotty/kore - Local & Remote MCP Server (`@kore/mcp-server`): https://korememo.com/?ref=mcp ## Verified AWS SAA-C03 Decision Trade-Offs (30) - [IAM Role (Temporary Credentials) vs Long-Lived IAM Access Keys](https://korememo.com/aws-saa/iam-role-vs-access-keys/): When An EC2, Lambda, or ECS workload needs programmatic access to AWS APIs -> Attach a least-privilege IAM role using STS temporary credentials - [VPC Security Group vs Network ACL (NACL)](https://korememo.com/aws-saa/security-group-vs-network-acl/): When You must explicitly deny a specific malicious source IP block at the subnet boundary -> Network ACL with a lower-numbered DENY rule evaluated before broader ALLOW rules - [Gateway VPC Endpoint vs Interface VPC Endpoint (AWS PrivateLink)](https://korememo.com/aws-saa/gateway-endpoint-vs-interface-endpoint/): When Private subnets need private access to Amazon S3 or DynamoDB without NAT Gateway data charges -> Gateway VPC Endpoint (free, route-table based) for S3/DynamoDB; Interface Endpoint (ENI) for other AWS services or on-prem access - [KMS Customer Managed Key (CMK) vs AWS Managed Key](https://korememo.com/aws-saa/kms-aws-managed-vs-customer-managed-key/): When Compliance requires cross-account decryption, custom key policy, or manual key rotation control -> KMS Customer Managed Key (CMK) with explicit key policy and IAM grants - [AWS Secrets Manager vs Systems Manager Parameter Store](https://korememo.com/aws-saa/secrets-manager-vs-parameter-store/): When RDS database credentials require built-in automatic scheduled rotation with minimal custom code -> AWS Secrets Manager with native RDS rotation enabled - [S3 Block Public Access + CloudFront OAC vs Public Bucket Policy](https://korememo.com/aws-saa/s3-block-public-access-vs-bucket-policy/): When Private S3 static assets must only be served through Amazon CloudFront, never directly from S3 URLs -> Keep S3 Block Public Access enabled and restrict bucket policy to CloudFront Origin Access Control (OAC) - [RDS Multi-AZ DB Instance vs Read Replica](https://korememo.com/aws-saa/rds-multi-az-vs-read-replica/): When Database must survive an Availability Zone outage with automatic failover and zero read-scaling requirement -> RDS Multi-AZ DB instance deployment (synchronous standby) - [Amazon SQS Standard Queue vs FIFO Queue](https://korememo.com/aws-saa/sqs-standard-vs-fifo-queue/): When Decoupled order events must be processed strictly once in exact order per customer group -> SQS FIFO queue with MessageGroupId and deduplication; use Standard queue + idempotent consumer for maximum throughput - [Route 53 Failover Routing vs Latency-Based Routing](https://korememo.com/aws-saa/route53-failover-vs-latency-routing/): When Active-passive multi-Region architecture must send 100% of traffic to Primary and switch to Secondary only on health-check failure -> Route 53 Failover routing policy with active health checks - [Pilot Light vs Warm Standby Disaster Recovery](https://korememo.com/aws-saa/pilot-light-vs-warm-standby-dr/): When DR strategy needs continuous database replication with minimal idle compute cost, accepting minutes to spin up app servers -> Pilot Light (data replicated live, core compute off until failover); choose Warm Standby for faster RTO with scaled-down running app tier - [EC2 Auto Scaling Target Tracking vs Predictive Scaling](https://korememo.com/aws-saa/target-tracking-vs-predictive-scaling/): When Web fleet experiences predictable daily traffic spikes and slow instance warm-up times -> Predictive Scaling (pre-warms capacity ahead of forecasted spikes) combined with Target Tracking for unexpected bursts - [Amazon CloudFront vs S3 Transfer Acceleration](https://korememo.com/aws-saa/cloudfront-vs-s3-transfer-acceleration/): When Global users repeatedly download the same static images and videos with low latency -> Amazon CloudFront edge caching; choose S3 Transfer Acceleration for fast global uploads into a central S3 bucket - [Application Load Balancer (ALB) vs Network Load Balancer (NLB)](https://korememo.com/aws-saa/alb-vs-nlb-vs-gwlb/): When Workload needs millions of ultra-low-latency TCP/UDP requests per second and static IP addresses -> Network Load Balancer (Layer 4); choose ALB (Layer 7) for HTTP host/path routing and WAF integration - [Amazon EFS vs Amazon EBS](https://korememo.com/aws-saa/efs-vs-ebs-multi-attach/): When Hundreds of Linux EC2 instances across multiple Availability Zones need concurrent shared POSIX file access -> Amazon EFS (regional, elastic NFS shared across AZs) - [DynamoDB Accelerator (DAX) vs Amazon ElastiCache](https://korememo.com/aws-saa/dynamodb-dax-vs-elasticache/): When Read-heavy DynamoDB table needs microsecond response times with minimal application code changes -> DynamoDB Accelerator (DAX) write-through cache; choose ElastiCache for complex query caching, leaderboards, or non-DynamoDB stores - [AWS Global Accelerator vs Amazon CloudFront](https://korememo.com/aws-saa/global-accelerator-vs-cloudfront/): When Global non-HTTP (TCP/UDP) gaming or IoT app requires two static Anycast IPs and fast deterministic regional failover -> AWS Global Accelerator (Anycast edge ingress over AWS global network) - [S3 Intelligent-Tiering vs S3 Standard-IA](https://korememo.com/aws-saa/s3-intelligent-tiering-vs-standard-ia/): When Object access patterns are unknown or shift unpredictably over months -> S3 Intelligent-Tiering (automatic tiering with no retrieval fees; evaluate monitoring fee and 128 KB minimum eligible object size) - [S3 Glacier Instant Retrieval vs Flexible Retrieval vs Deep Archive](https://korememo.com/aws-saa/s3-glacier-instant-vs-flexible-vs-deep-archive/): When Archived compliance files are accessed once a year and can wait 12–48 hours for restoration at the lowest possible storage cost -> S3 Glacier Deep Archive via S3 Lifecycle rules (180-day minimum storage duration) - [Compute Savings Plans vs EC2 Spot Instances vs On-Demand](https://korememo.com/aws-saa/savings-plans-vs-spot-vs-on-demand/): When Fault-tolerant, stateless batch rendering job can checkpoint progress and tolerate 2-minute interruption notices -> EC2 Spot Instances (up to ~90% discount); choose Compute Savings Plans for steady-state 1–3 year baseline capacity across EC2/Fargate/Lambda - [NAT Gateway Data Processing vs Gateway VPC Endpoint](https://korememo.com/aws-saa/nat-gateway-vs-s3-gateway-endpoint-cost/): When Private EC2 analytics workers transfer terabytes daily to Amazon S3 in the same Region and NAT Gateway bills spike -> Create an S3 Gateway VPC Endpoint (no hourly or per-GB data processing fee) - [IAM Permissions Boundary vs AWS Organizations SCP](https://korememo.com/aws-saa/iam-permissions-boundary-vs-organizations-scp/): When Developers inside one account must create new IAM roles for microservices without escalating their own privileges to Admin -> IAM Permissions Boundary capping maximum permissions of delegated IAM entities; use Organizations SCP to set guardrails across entire AWS accounts/OUs - [AWS WAF vs AWS Shield Standard / Advanced](https://korememo.com/aws-saa/aws-waf-vs-shield-advanced/): When An e-commerce API on CloudFront/ALB faces SQL injection, XSS payloads, and abusive per-IP HTTP request spikes -> AWS WAF (Layer 7 HTTP inspection, managed SQLi/XSS rules, rate-based blocking); choose Shield Advanced for 24/7 SRT DDoS response and cost protection - [Amazon Cognito User Pools vs Identity Pools (Federated Identities)](https://korememo.com/aws-saa/cognito-user-pools-vs-identity-pools/): When Mobile app users sign in with email/OAuth AND must upload photos directly from the phone to a private S3 bucket using temporary AWS credentials -> Cognito User Pool for authentication (JWT tokens) paired with a Cognito Identity Pool to exchange tokens for temporary STS IAM credentials - [AWS Transit Gateway vs VPC Peering](https://korememo.com/aws-saa/transit-gateway-vs-vpc-peering/): When An enterprise must interconnect 40 VPCs across accounts plus on-premises Site-to-Site VPNs with transitive hub-and-spoke routing -> AWS Transit Gateway as a centralized regional router supporting transitive routing and centralized route tables - [Amazon Aurora Global Database vs Standard RDS Cross-Region Read Replica](https://korememo.com/aws-saa/aurora-global-database-vs-cross-region-replica/): When A mission-critical global financial app requires sub-1-second cross-Region storage replication (RPO ~1s) and disaster recovery promotion in under 1 minute -> Amazon Aurora Global Database using dedicated storage-layer replication with fast managed failover and local low-latency reads - [AWS Step Functions vs Chained SQS + Lambda Functions](https://korememo.com/aws-saa/step-functions-vs-sqs-lambda-choreography/): When An order fulfillment workflow requires multi-step branching, retries with exponential backoff, Saga rollback on payment failure, and visual audit state -> AWS Step Functions (Standard for long-running auditable workflows up to 1 year; Express for high-rate short event processing) - [Amazon ECS on AWS Fargate vs Amazon EKS (Kubernetes)](https://korememo.com/aws-saa/ecs-fargate-vs-eks-kubernetes/): When A lean AWS-native team wants zero control-plane fees, minimal operational overhead, and tight ALB/IAM integration without existing Kubernetes expertise -> Amazon ECS on AWS Fargate (serverless containers, zero cluster management fee); choose EKS when portability or Kubernetes ecosystem CRDs/Helm are required - [Amazon Kinesis Data Streams vs Amazon Data Firehose](https://korememo.com/aws-saa/kinesis-data-streams-vs-data-firehose/): When Clickstream events must be buffered, transformed to Parquet, and delivered near-real-time straight into S3/Redshift with zero shard management -> Amazon Data Firehose (fully managed delivery stream); choose Kinesis Data Streams for custom real-time consumers, strict ordering, and 1–365 day replay - [Lambda Provisioned Concurrency vs On-Demand Lambda (+ SnapStart)](https://korememo.com/aws-saa/lambda-provisioned-concurrency-vs-ondemand/): When A latency-sensitive customer checkout Lambda experiences 2-second cold starts during sudden morning traffic bursts -> Scheduled Provisioned Concurrency for predictable peak windows (or free SnapStart for Java/Python/.NET); keep On-Demand for bursty/background tasks - [DynamoDB On-Demand vs Provisioned Capacity with Auto Scaling](https://korememo.com/aws-saa/dynamodb-on-demand-vs-provisioned-autoscaling/): When A mature telemetry table sustains steady, predictable 24/7 throughput of 15,000 WCU/RCU and monthly DynamoDB spend must be minimized -> DynamoDB Provisioned Capacity with Auto Scaling (plus Reserved Capacity for 1–3 year steady baseline); choose On-Demand for spiky/unpredictable traffic ## Verified System Design & Distributed Systems Trade-Offs (15) - [Apache Kafka Event Log vs Amazon SQS Work Queue](https://korememo.com/system-design/kafka-log-vs-sqs-work-queue/): When Multiple independent downstream teams (billing, analytics, fraud) must consume and replay the exact same 7-day order event stream -> Append-only partitioned log (Kafka / Kinesis) with independent consumer groups and offset retention - [Redis (RDB/AOF) vs Durable ACID Primary Database](https://korememo.com/system-design/redis-aof-vs-acid-primary-db/): When Storing financial ledger balances where zero committed-transaction loss is required across sudden node crashes -> ACID relational database (PostgreSQL / Aurora) with synchronous WAL replication; use Redis strictly as a rebuildable cache - [Client Idempotency Key vs Blind HTTP Retry on Timeout](https://korememo.com/system-design/idempotency-key-vs-blind-retry/): When A mobile checkout client retries a POST /charge call after a 504 Gateway Timeout while the upstream payment processor may have already succeeded -> Client-generated Idempotency-Key persisted in a unique DB constraint storing the first committed response - [Keyset (Cursor) Pagination vs SQL OFFSET Pagination](https://korememo.com/system-design/cursor-pagination-vs-offset/): When Paginating a live 50M-row activity feed where new rows insert continuously and users scroll deeply -> Keyset / cursor pagination (`WHERE (created_at, id) < ($1, $2) ORDER BY created_at DESC, id DESC LIMIT 50`) - [Fencing Tokens vs Simple Redis TTL Distributed Lock](https://korememo.com/system-design/distributed-lock-fencing-token/): When Ensuring two workers cannot concurrently overwrite a shared storage object if Worker A pauses for a 15-second GC stop-the-world while its lock TTL expires -> Monotonically increasing fencing token issued by the lock service and validated by the storage layer on every write - [Transactional Outbox Pattern vs Direct Dual-Write (DB + Broker)](https://korememo.com/system-design/transactional-outbox-vs-dual-write/): When Updating an Orders table and publishing an OrderCreated event to Kafka without risking partial failures where one succeeds and the other crashes -> Write both the Order row and an Outbox event row in the same local ACID DB transaction, then relay asynchronously via CDC/poller - [Request Coalescing (Singleflight) + Jitter vs Uniform Cache TTL](https://korememo.com/system-design/cache-stampede-singleflight-vs-naive-ttl/): When A hot homepage key cached for 60s expires during peak traffic, causing 5,000 concurrent requests to miss cache simultaneously and crush the database -> Request coalescing (singleflight / lock-on-miss) combined with TTL jitter or stale-while-revalidate - [Read-Your-Writes Routing vs Always Reading Async Replicas](https://korememo.com/system-design/read-your-own-writes-vs-async-replica/): When Users edit their account settings and immediately reload the page, complaining their changes vanished due to 400ms replica lag -> Route a user’s reads to the primary (or track their write LSN/timestamp) for a short window after their own write - [Sliding Window / Token Bucket vs Fixed-Window Counter Rate Limiter](https://korememo.com/system-design/sliding-window-vs-fixed-window-rate-limit/): When Enforcing a strict 100 req/min API quota so a bursty client cannot push 200 requests through in 2 seconds across a minute boundary -> Token Bucket or Sliding Window Log/Counter - [Consistent Hashing (Virtual Nodes) vs `hash(key) % N` Sharding](https://korememo.com/system-design/consistent-hashing-vs-modulo-sharding/): When Scaling a 10-node distributed cache cluster to 11 nodes without triggering a near-100% cache miss storm -> Consistent hashing ring with virtual nodes so only ~1/N keys remap when adding or removing a node - [Saga Pattern (Compensating Transactions) vs Two-Phase Commit (2PC)](https://korememo.com/system-design/saga-pattern-vs-two-phase-commit/): When Coordinating a checkout flow across independent Order, Inventory, and Payment microservices with distinct databases and third-party APIs -> Saga pattern executing local ACID transactions with idempotent compensating rollback steps on downstream failure - [Write-Through Cache vs Write-Back (Write-Behind) Cache](https://korememo.com/system-design/write-through-vs-write-back-cache/): When High-value billing updates must never vanish if a cache node crashes 200ms after acknowledging HTTP 200 -> Write-Through (synchronous durable DB write before ack); reserve Write-Back strictly for high-churn, loss-tolerant counters/telemetry - [Priority Load Shedding & Backpressure vs Unbounded Retry Queues](https://korememo.com/system-design/backpressure-load-shedding-vs-unbounded-retries/): When Downstream database latency spikes 10x during a flash sale and upstream API threads exhaust memory while clients hammer retries -> Fail fast with priority load shedding (preserve checkout, shed low-priority analytics), bounded queues, and exponential backoff + jitter - [Log-Based CDC (Debezium WAL) vs Periodic SQL Table Polling](https://korememo.com/system-design/log-based-cdc-debezium-vs-sql-polling/): When Syncing millions of Postgres mutations—including hard `DELETE`s—to Elasticsearch and Kafka with sub-second latency and minimal DB CPU impact -> Log-based Change Data Capture (Debezium reading Postgres WAL / MySQL binlog) capturing inserts, updates, and hard deletes with near-zero query overhead - [Bloom Filter + Negative Caching vs Direct DB Lookup on Missing Keys](https://korememo.com/system-design/bloom-filter-cache-penetration-vs-direct-db/): When A malicious scraper sends 50,000 req/sec for random non-existent product IDs, bypassing Redis cache-aside and saturating PostgreSQL -> Front cache misses with an in-memory/Redis Bloom Filter (zero false negatives) plus short-TTL negative caching for absent keys ## Verified AI Engineering & Agent Production Trade-Offs (15) - [Deterministic Code Workflow vs Autonomous Multi-Agent Loop](https://korememo.com/ai-engineering/deterministic-workflow-vs-autonomous-agent/): When A production pipeline follows a predictable 3-step path (extract JSON → validate rules → save) where latency, cost, and reliability matter -> Simple composable Workflow orchestrated in deterministic code (prompt chaining + explicit gates) - [Just-in-Time Retrieval & Compaction vs Dumping 150k Tokens into Context](https://korememo.com/ai-engineering/context-rot-vs-just-in-time-retrieval/): When A long-horizon agent accumulates raw tool dumps and logs across 40 turns and begins missing instructions or contradicting earlier facts -> Treat context as a finite attention budget: use just-in-time retrieval, concise tool outputs, and structured compaction - [Least-Privilege Tool Guardrails vs Raw Untrusted Input in Agent Loop](https://korememo.com/ai-engineering/indirect-prompt-injection-vs-tool-guardrails/): When A support agent reads external customer emails and has direct access to refund and database-delete tools -> Enforce strict tool permission boundaries, deterministic parameter validation, and human approval for high-impact write actions - [Hybrid Search (BM25 + Dense Embeddings + Rerank) vs Vector-Only RAG](https://korememo.com/ai-engineering/hybrid-search-rag-vs-vector-only/): When Engineers search technical docs for exact error codes (`ERR_KMS_403`), part numbers, or API flags alongside conceptual queries -> Hybrid lexical (BM25) + dense vector retrieval combined with reranking - [Automated Regression + Capability Evals vs Manual "Vibe-Checking"](https://korememo.com/ai-engineering/regression-and-capability-evals-vs-vibe-checks/): When Updating system prompts, tools, or base models in a customer-facing AI workflow -> Run automated Regression Evals (built from past production bugs) plus Capability Evals on every change in CI - [Tenant-Scoped Cache Keys vs Global Semantic Caching](https://korememo.com/ai-engineering/tenant-scoped-cache-vs-global-semantic-cache/): When Adding semantic caching to reduce LLM latency for a multi-tenant SaaS assistant answering questions about private company docs -> Scope every cache key strictly by `tenant_id` and user RBAC permissions before similarity lookup - [Structured Output Schema + Deterministic Validator vs Fragile Regex Parsing](https://korememo.com/ai-engineering/schema-validated-output-vs-regex-parsing/): When Extracting financial totals or decision rules from LLM responses into downstream database writes -> Enforce strict JSON Schema structured outputs AND run deterministic domain validation before any state writeback - [Concise Namespaced Agent Tools (ACI) vs Exposing 50 Raw REST Endpoints](https://korememo.com/ai-engineering/atomic-aci-tools-vs-bloated-rest-wrappers/): When Designing MCP / function-calling tools for an AI agent operating over an internal platform -> Expose a small set of high-signal, clearly namespaced, token-efficient tools designed for agent workflows - [Calibrated Rubric + Order-Swapped Judge vs Naive Pairwise LLM-as-Judge](https://korememo.com/ai-engineering/calibrated-eval-rubric-vs-naive-llm-judge/): When Comparing Prompt A vs Prompt B quality across 200 real user tasks using an LLM evaluator -> Use explicit binary/anchored rubrics, swap A/B presentation order to cancel position bias, and spot-check against human labels - [Kinetic Action Guardrails + Human Sign-Off vs Unbounded Autonomous Writeback](https://korememo.com/ai-engineering/human-approval-gate-vs-autonomous-writeback/): When An AI agent proposes IAM policy changes, production DB migrations, or customer refunds -> Wrap state mutations in constrained Action Types with deterministic policy checks and explicit human sign-off for high-blast-radius actions - [Tiered Model Routing (Small Classifier → Escalation) vs Frontier Model for Every Request](https://korememo.com/ai-engineering/tiered-model-routing-vs-frontier-everything/): When 80% of customer support queries are simple FAQ/routing lookups while 20% require deep multi-step reasoning, and LLM spend is exploding -> Route easy requests to a fast small model (Haiku / Mini) via a calibrated classifier and escalate only hard/uncertain tasks to frontier models - [Stable Static Prefix Prompt Caching vs Injecting Dynamic Timestamps at Prompt Start](https://korememo.com/ai-engineering/stable-prefix-prompt-caching-vs-dynamic-header/): When Every agent turn shares a 12,000-token system prompt + tool schema, yet prompt caching hit rate is 0% and input bills stay high -> Keep static instructions, tool schemas, and shared docs byte-identical at the start of the prompt; place dynamic timestamps/user IDs at the end - [Hard Step-Count & Token-Budget Circuit Breakers vs Unbounded Agent Retry Loops](https://korememo.com/ai-engineering/agent-step-budget-circuit-breaker-vs-unbounded-loop/): When An autonomous coding or research agent gets stuck calling a failing search tool repeatedly in production -> Enforce deterministic `max_steps`, `max_tokens`, per-run USD ceiling, and duplicate-tool-call detection that cleanly escalates to a human or fallback - [Deterministic Pre-LLM PII Redaction & Vault Tokenization vs Asking LLM Not to Leak PII](https://korememo.com/ai-engineering/deterministic-pii-redaction-vs-prompt-redaction/): When Regulated healthcare or fintech text containing SSNs, credit cards, and IBANs must be summarized using an external LLM API -> Intercept and replace sensitive entities deterministically BEFORE the API call (``), then re-hydrate locally only for authorized viewers - [Structure-Aware Contextual Chunking + Pre-Retrieval ACLs vs Blind Fixed-Token Splits](https://korememo.com/ai-engineering/contextual-chunking-acl-filter-vs-naive-fixed-split/): When RAG retrieves isolated table fragments like "Revenue rose 3%" with no document title/quarter context, causing wrong answers across company reports -> Chunk along semantic/heading boundaries, prepend concise document/section context (Contextual Retrieval), and enforce ACL metadata filters before vector search