AWS Certified Solutions Architect - Associate SAA-C03 Cheatsheet
AWS Certified Solutions Architect - Associate
Download free PDFDesign Secure Architectures (30%)
IAM roles and least privilege
- **IAM roles** provide temporary credentials through AWS STS. Grant each workload only the actions and resource ARNs it needs; avoid embedding access keys in code, templates or container images.
- An EC2 **instance profile** carries a role to an instance. A Lambda **execution role** authorizes the function's AWS calls. An ECS **task role** authorizes application code; its task execution role supports operations such as image pulls and log delivery.
- **Identity-based policies** attach to users, groups or roles. Supported **resource-based policies** attach to resources and specify principals. IAM groups collect users within an account; a group is not an assumable identity.
- A role's **trust policy** controls who may assume it. Its permissions policies control what it may do. For cross-account access, authorize the caller and configure the destination role's trust.
Policy evaluation and access boundaries
- Requests begin with **implicit deny**. An applicable explicit **Deny** overrides an Allow. Evaluate action, resource, principal and conditions together; statement order does not decide precedence.
- **Permissions boundaries** and **service control policies (SCPs)** limit available permissions; they do not grant access. The principal still needs authorization for the requested operation.
- Use **aws:PrincipalOrgID** to restrict eligible principals to an organization. Use resource and request tags for supported attribute-based controls; distinguish existing tags from tags supplied during creation.
- For S3, **s3:ListBucket** targets a bucket ARN; object operations target object ARNs, often scoped to a prefix. An allow for the bucket alone does not authorize its objects.
- A third-party role trust can require an **external ID** to reduce confused-deputy risk. Trust a specific role with narrow permissions instead of distributing permanent IAM user keys.
Workforce identity and account security
- **IAM Identity Center** centralizes workforce sign-in across accounts. Connect an identity source, assign users to groups, and assign **permission sets** to those groups for the relevant accounts.
- **SAML federation** lets an existing identity provider authenticate employees who assume AWS roles. Directory integration preserves the existing employee lifecycle instead of creating a second password for every account.
- Protect the **root user** with strong credentials and MFA. Maintain recovery options and additional supported MFA devices; use delegated identities for everyday work and avoid root access keys.
- Use maintained account email addresses and **alternate contacts** for billing, security and operations. Team distribution lists reduce dependence on one employee for important notifications.
- **IAM Roles Anywhere** lets eligible workloads outside AWS exchange trusted X.509 certificates for temporary role credentials. It serves machine access; workforce single sign-on serves people.
Customer authentication and API authorization
- **Cognito user pools** manage application users, sign-in and tokens. **Identity pools** exchange supported identities for temporary AWS credentials through IAM roles, such as scoped S3 access.
- Use an API Gateway **Cognito authorizer**, supported JWT authorizer or **Lambda authorizer** to validate callers. Verify issuer, audience and claims; enforce paid entitlements through trusted application authorization.
- **API keys and usage plans** identify usage and apply quotas or throttling. They do not replace authentication or prove that a customer has a paid subscription.
- **AWS_IAM** authorization uses signed requests. A Lambda **function URL** provides a simple HTTPS endpoint with supported IAM or public access modes; API Gateway supplies richer API management.
- Use API resource policies where supported to restrict principals, source IPs or endpoints. A private backend integration and a private API endpoint solve different access requirements.
Organization governance and provisioning
- **AWS Organizations** groups accounts into OUs. Attach SCPs to the appropriate OU or account to restrict services, Regions, instance types or dangerous configuration changes across member accounts.
- **Control Tower** establishes a landing zone and governed accounts. Preventive controls restrict actions, detective controls report noncompliance, and proactive controls check supported resources before CloudFormation deployment.
- **Tag policies** standardize supported tag keys and values. Use appropriate IAM or SCP conditions to require tags during creation or prohibit tag deletion; standardization alone is not a universal creation guard.
- **Service Catalog** exposes approved infrastructure products for self-service. **CloudFormation** describes repeatable stacks; a scoped service role separates deployment permissions from direct resource permissions.
- **AWS RAM** shares supported resources such as subnets or customer-managed prefix lists across accounts. It does not replace every resource-specific policy or share every resource type.
Network isolation and traffic rules
- Place internet-facing load balancers in **public subnets** and application or database instances in **private subnets**. Direct internet access also requires suitable addresses, an internet-gateway route and security rules.
- **Security groups** are stateful allow rules on supported network interfaces. Restrict each tier to the upstream tier's group and required port; return traffic for an allowed connection is tracked automatically.
- **Network ACLs** are stateless subnet controls with allow and deny rules evaluated by rule number. Permit response traffic, including the appropriate ephemeral ports, in the reverse direction.
- Allow application traffic and **health checks** separately when their ports differ. A healthy process, a reachable port and a successful application response are distinct checks.
- Use **customer-managed prefix lists** to reuse approved CIDRs across rules. Security groups use addresses or supported group references, not arbitrary internet domain names.
Private service connectivity
- **Gateway VPC endpoints** provide route-table access to S3 and DynamoDB without NAT or an internet gateway. Apply endpoint and resource policies as well as workload IAM permissions.
- **Interface VPC endpoints** use PrivateLink network interfaces with private IPs. Configure endpoint security groups, DNS and supported policies; these suit services such as SQS and private service APIs.
- For S3 access from on-premises networks over private connectivity, use an appropriate **S3 interface endpoint** and DNS design. Gateway endpoints are not directly reachable through an on-premises VPN or Direct Connect connection.
- **PrivateLink** exposes a specific provider service without full network peering. The consumer initiates connections to its endpoint; the provider publishes a service through a supported load balancer.
- **VPC Lattice** provides application-level service networking, discovery, routing and access policies across associated VPCs and accounts. Choose it for service communication rather than general IP routing.
Encryption keys and data protection
- **KMS** manages cryptographic keys and integrates with AWS services. Control use through key policies, IAM policies and grants as applicable; data access can require both service authorization and key-use permission.
- **Customer-managed keys** provide policy, rotation and disabling controls. AWS-managed and AWS-owned keys have different ownership and control models. Rotating a KMS key does not rotate a database password.
- **Envelope encryption** encrypts data with a data key and protects that key with a KMS key. Preserve old key material for existing ciphertext; disabling a required key can make data unreadable.
- **Multi-Region KMS keys** provide related keys in separate Regions for supported cryptographic use. Regional policies remain separate; replicating keys does not replicate application data.
- **CloudHSM** provides dedicated HSM capacity. A KMS **external key store** retains key material in an external manager, adding dependencies on its connectivity, availability and latency.
Storage encryption and secure transport
- **SSE-S3** uses S3-managed encryption. **SSE-KMS** adds KMS policy and audit integration. **SSE-C** uses a customer-supplied key per request; the customer must preserve and supply that key.
- **Client-side encryption** encrypts content before it reaches storage. Use it when plaintext must remain hidden from the storage service or database administrators; protect decryption keys separately from the data.
- Enforce **HTTPS** with a bucket policy denying insecure transport. At-rest encryption does not protect traffic in transit, and a private network path does not replace TLS.
- S3 default encryption governs new writes. To change existing objects' encryption, rewrite or copy them with the desired settings, often using **S3 Inventory** and **Batch Operations** at scale.
- Enable **EBS encryption by default** per account and Region for new volumes. Existing unencrypted disks need an encrypted-copy and replacement workflow; changing a default does not rewrite them.
Secrets and database authentication
- **Secrets Manager** stores sensitive values and supports scheduled rotation with supported integrations or rotation functions. Let workload roles retrieve the required secret instead of distributing credential files.
- **Parameter Store SecureString** holds KMS-encrypted parameters. Choose Secrets Manager for managed credential rotation; **AppConfig** distributes and validates application configuration and feature settings.
- **IAM database authentication** uses short-lived tokens for supported RDS and Aurora engines. It requires a configured database user, role permissions, TLS and network access; it does not grant database privileges automatically.
- Separate **key administration**, secret retrieval and database access duties. Encrypting a credential does not help if every developer can also retrieve its plaintext or use the decryption key.
TLS certificates and custom domains
- **ACM** provisions and manages supported TLS certificates. DNS validation supports managed renewal for eligible ACM-issued certificates. Imported third-party certificates need their own renewal and reimport process.
- An ALB or Regional API custom domain uses a certificate in its Region. A CloudFront viewer certificate from **ACM in us-east-1** secures an alternate domain name.
- Include the **apex domain** explicitly when a wildcard covers only its subdomains. Validate ownership, configure DNS and ensure the certificate names match the endpoint clients request.
- For database connections, enable **TLS** and validate the server using the appropriate trusted CA bundle. Storage encryption and IAM authentication do not automatically encrypt every client connection.
Threat protection and security evidence
- **WAF** filters HTTP(S) requests on supported services using managed rules, IP sets, geography and rate-based rules. It helps mitigate SQL injection, cross-site scripting and abusive request rates.
- **Shield** protects against DDoS attacks. Shield Advanced adds enhanced protection and response capabilities for protected resources; **Firewall Manager** centrally manages supported security policies across an organization.
- **Network Firewall** inspects routed traffic and supports stateful policies, including appropriate domain filtering. **Gateway Load Balancer** inserts compatible virtual appliances into traffic paths; preserve routing symmetry.
- **GuardDuty** detects suspicious activity. **Inspector** identifies software vulnerabilities. **Macie** discovers sensitive data in S3. Detection is distinct from automatically blocking application traffic.
- **Security Hub** aggregates findings and supported standards checks. **Security Lake** centralizes security data. EventBridge and authorized remediation can turn relevant findings into a response.
Audit trails and safe administration
- **CloudTrail** records supported API activity and caller identity. Enable required **data events** for object-level audit needs; management-event history alone does not record every S3 object read or write.
- **Config** records supported resource configuration history and evaluates rules. Combine it with Systems Manager Automation or other remediation when noncompliance must trigger correction.
- **IAM Access Analyzer** helps inspect external access, validate policies and identify supported unused access. Use findings to narrow policies; a resource inventory is not an authorization audit.
- **Session Manager** provides controlled remote administration without shared SSH keys or inbound SSH ports. Managed instances need the agent, permissions and network reachability to service endpoints.
- **Run Command** executes fleet commands; **Patch Manager** applies supported patch baselines; **Maintenance Windows** schedules work. Drain traffic and retain healthy capacity during patching.
Design Resilient Architectures (26%)
Availability boundaries and surviving capacity
- A **Region** contains multiple Availability Zones. A subnet belongs to one AZ. Use redundant application instances across AZs and a separate regional deployment when regional disaster recovery is required.
- Use an **Auto Scaling group** across AZs behind a suitable load balancer. Configure application health checks and replacement; manually launching two servers does not automatically replace a failed server.
- Keep enough **surviving capacity** after an AZ fails. A minimum of two instances does not guarantee that two remain when one of two AZs is lost.
- Externalize **session state**, files and durable records so replacement instances remain interchangeable. Sticky sessions provide affinity but do not preserve instance-local state after a server disappears.
Durable decoupling with SQS
- **SQS** buffers work durably so producers and consumers scale independently. A queue absorbs bursts and lets workers catch up without making producers wait for every downstream operation.
- **Standard queues** provide at-least-once delivery and best-effort ordering. Make consumers **idempotent** with stable request IDs and durable conditional or transactional state.
- The **visibility timeout** hides received messages while consumers work. Delete only after success; extend visibility for long jobs and account for function execution, batching and retries.
- A **dead-letter queue** isolates messages after configured receive attempts. Monitor and diagnose failed messages before redriving them; retain messages long enough for investigation and recovery.
Ordering, retries and fan-out
- **SQS FIFO** preserves order within a message group and supports deduplication. Use a business key such as payment ID as the **message group ID** to retain per-entity ordering while allowing parallel groups.
- FIFO deduplication does not make external side effects universally exactly-once. Persist an **idempotency key** so retries cannot charge a customer or create an order twice.
- **SNS** publishes one message to multiple subscribers. Combine a topic with one SQS queue per consumer for independent durable **fan-out**; filter subscriptions using supported message attributes or body fields.
- Use an SNS subscription **DLQ** for eligible delivery failures. Consumer processing failures and publisher delivery failures are separate paths that need separate controls.
Events and orchestrated workflows
- **EventBridge** routes events through rules to targets. **Input transformers** shape payloads; filtering selects events rather than automatically redacting their fields.
- **EventBridge Scheduler** starts work at a time or recurring schedule. **API destinations** invoke supported external HTTPS APIs with configured connections; monitor delivery failures and configure retries or a DLQ.
- **Step Functions** coordinates states, branches, parallel tasks, retries, timeouts and error handling. Callback task tokens can support external or human approvals without a continuously running worker.
- A **Distributed Map** runs many child workflows for supported datasets. Separate orchestration from task compute; a long workflow does not extend a Lambda invocation's runtime limit.
Serverless events and persistence
- **S3 notifications** start object processing through supported destinations. Add SQS for durable buffering and controlled consumer concurrency; use EventBridge for broader rule-based integration.
- Treat object events as potentially duplicated or out of order. Track object identity, version and processing state durably when required; one function's memory is not a processing ledger.
- Use separate **input and output prefixes or buckets** to prevent output writes from recursively triggering the same transformation.
- Lambda **ephemeral storage** is temporary execution-environment storage. Persist durable files in S3 or a supported mounted filesystem; environment reuse is not a durability guarantee.
Managed relational high availability
- An RDS **Multi-AZ DB instance deployment** synchronously replicates to a standby for failover. That standby is not a read-scaling endpoint.
- A supported RDS **Multi-AZ DB cluster deployment** has a writer and readable instances across three AZs. Distinguish this topology from a primary with a non-readable standby.
- **Read replicas** offload reads through asynchronous replication. Account for lag and route writes to the writer; replica availability and promotion depend on the engine and topology.
- **Aurora** separates compute from distributed regional storage. Place Aurora Replicas in other AZs for read capacity and failover candidates; resilient storage alone does not create a running replacement writer.
Endpoints and connection resilience
- The Aurora **cluster endpoint** follows the writer. Its **reader endpoint** distributes new read connections among eligible readers; it does not rebalance every query within a long-lived connection.
- An Aurora **custom endpoint** selects a subset of instances, useful when reporting replicas have different sizes. An **instance endpoint** targets one specific instance.
- **RDS Proxy** pools and reuses connections, controls connection surges and improves supported failover behavior. It does not replace durable buffering, query optimization or database compute capacity.
- Configure client **retries and timeouts**. Highly available databases still require applications to reconnect correctly when failover or maintenance interrupts connections.
Recovery objectives and disaster strategies
- **RPO** is acceptable data loss measured in time. **RTO** is acceptable recovery time. Include detection, provisioning, data restoration, endpoint changes and application validation in measured recovery time.
- **Backup and restore** minimizes standing infrastructure but requires reconstruction. A **pilot light** keeps core data services ready and provisions the remaining stack during recovery.
- **Warm standby** keeps a smaller running deployment that scales up during failover. **Multi-site active-active** serves traffic from multiple deployments, adding operational and consistency complexity.
- Use **infrastructure as code**, replicated artifacts, suitable capacity reservations and tested procedures. Replicated data needs available networking, keys, configuration and dependencies to become a working service.
Regional replication and data recovery
- **Aurora Global Database** replicates to secondary Regions for local reads and regional recovery. Plan promotion or managed failover, endpoint changes and possible lag against the required RPO.
- **DynamoDB global tables** replicate across Regions. Select the required consistency model and supported configuration; replication is not a substitute for historical recovery from corruption.
- **S3 replication** copies eligible versions within or across Regions. Configure versioning, permissions and encryption-key access; use **Batch Replication** when eligible existing objects also need copying.
- **EFS replication** and **FSx for ONTAP SnapMirror** provide service-specific file recovery paths. Scheduled cross-Region backups supply historical recovery points with a different RPO and restore process.
Backup retention and deletion protection
- RDS **automated backups** support point-in-time recovery within the configured retention window. Restore creates a new database resource; manual snapshots have a separate lifecycle and can outlive the original instance.
- DynamoDB **point-in-time recovery** restores a table to a selected point in its recovery window. Use on-demand backups or **AWS Backup** for longer retention instead of treating a change stream as permanent backup.
- **AWS Backup** centralizes schedules, retention, resource selection and supported cross-account or cross-Region copies. Verify selection includes required resources and copied recovery points are restorable.
- **Backup Vault Lock** protects retention settings and recovery points under the selected mode. Database **deletion protection** prevents accidental resource deletion; it does not stop authorized edits to rows.
- Use **Recycle Bin** retention rules for eligible deleted EBS snapshots or deregistered EBS-backed AMIs. Set retention deliberately instead of preserving every snapshot indefinitely.
Immutable records and object versions
- **S3 Versioning** preserves versions; a simple delete normally adds a delete marker. Recover earlier versions when appropriate and manage noncurrent versions separately from current objects.
- **Object Lock** protects specific versions with WORM controls. **Compliance mode** prevents protected-version deletion during retention; **governance mode** permits bypass only with the required authorization.
- A **legal hold** has no fixed expiration and remains until an authorized operation removes it. Retention periods and legal holds can apply together; overwriting creates a new version rather than altering a protected version.
- **MFA Delete** adds protection for selected versioning and deletion operations. Encryption, lifecycle expiration, access control and immutability address different requirements and must be designed together.
Legacy recovery and safe release
- For a single-server application, **EC2 automatic recovery** addresses supported infrastructure failures. An Auto Scaling group with desired capacity one can replace an instance, but neither automatically recovers local mutable data.
- **Elastic Disaster Recovery** continuously replicates eligible server disks to a staging area for recovery in AWS. Test failover and measure recovery against business targets.
- **Application Migration Service** supports rehosting through replication, test launches and cutover. Validate workloads before the final write stop and production cutover.
- **Blue/green deployments** separate existing and candidate environments. **Canary releases** send a limited traffic share to a new version; monitor errors and retain a rollback path before shifting all traffic.
Design High-Performing Architectures (24%)
Choose the compute model
- **EC2** supplies OS control, custom kernels and broad instance choices. Select compute-optimized, memory-optimized, storage-optimized or accelerated instances according to the measured bottleneck.
- **Lambda** runs event-driven code with automatic scaling. Each invocation has a maximum runtime of **15 minutes**; use containers or Batch for long-running jobs that cannot be split safely.
- **ECS** orchestrates containers; **EKS** provides managed Kubernetes. **Fargate** supplies supported serverless container compute so teams do not manage EC2 worker hosts.
- **Elastic Beanstalk** deploys supported application platforms with managed environment orchestration. It preserves familiar runtimes while provisioning resources such as EC2, load balancers and Auto Scaling groups.
Scaling signals and startup readiness
- **Target tracking** maintains a selected utilization target. **Step scaling** changes capacity by alarm severity. Use a metric reflecting work per capacity unit, such as CPU, requests per target or backlog per worker.
- **Scheduled scaling** adds capacity before known events. **Predictive scaling** forecasts recurring demand from history; combine it with dynamic scaling for unexpected live changes.
- Use **preconfigured AMIs**, suitable instance warmup and **warm pools** to reduce scale-out delay. Lifecycle hooks pause launch or termination for custom preparation, audit or cleanup.
- **Backlog per instance** relates queued work to available workers and acceptable delay. Scaling only the web tier will not clear an overloaded processing queue.
Lambda latency, concurrency and networking
- Increasing Lambda **memory** also allocates more CPU; benchmark duration and total cost. Less memory can lengthen execution and increase both latency and cost for CPU-heavy functions.
- **Reserved concurrency** reserves and caps concurrency. **Provisioned concurrency** prepares environments for predictable startup latency; schedule it before known traffic when appropriate.
- **SnapStart** reduces initialization overhead for supported runtimes and configurations through snapshots. Validate support and initialization behavior instead of assuming every function can use it.
- Attach a function to suitable **VPC subnets and security groups** for private resources. VPC attachment does not provide internet access automatically; use appropriate routes, NAT or endpoints.
Containers and Kubernetes operations
- Scale ECS service **task count** with Application Auto Scaling. EC2-backed clusters also need sufficient host capacity; Fargate tasks need suitable CPU, memory, networking and storage settings.
- Kubernetes **Horizontal Pod Autoscaler** changes replica count from metrics. **Cluster Autoscaler** or suitable node provisioning supplies nodes; increasing pods alone cannot create missing node capacity.
- For **IRSA**, associate an IAM role with a Kubernetes service account through the cluster's OIDC trust. Give UI and data-service pods separate scoped roles instead of relying on broad node credentials.
- Use **ECR** to store images and supported basic or enhanced scanning to identify vulnerabilities. Scanning reports findings; it does not patch libraries automatically.
- Use **VPC CNI** custom networking for supported pod subnet requirements. Pod placement, network policies and IAM permissions control different aspects of the workload.
Object, block and temporary storage
- **S3** stores objects through APIs and suits media, backups and data lakes. Keep large payloads in S3 and searchable metadata or object references in a database when object semantics meet the access pattern.
- **EBS** provides persistent block storage attached within an AZ. Match IOPS and throughput to both the volume's capability and the EC2 instance's EBS bandwidth limits.
- **Instance store** provides fast local temporary storage. Treat its contents as disposable or externally replicated; it is unsuitable as the only durable copy of user documents or database records.
- **EBS Multi-Attach** supports eligible Provisioned IOPS volumes and instances within one AZ. Applications need concurrency coordination and a compatible clustered filesystem; this is not a general Multi-AZ shared disk.
Block performance and snapshots
- **gp3** provisions storage capacity, IOPS and throughput independently. **gp2** performance is linked to size and burst behavior; compare performance requirements before overprovisioning capacity.
- **io2** targets demanding consistent I/O. Throughput-oriented HDD options suit eligible sequential workloads; they are a poor fit for latency-sensitive random database I/O.
- Restored EBS volumes can incur first-read initialization latency. **Fast Snapshot Restore** provides initialized volumes from enabled snapshots in selected AZs; include its cost in the design.
- Standard-tier EBS snapshots are **incremental**. **Snapshot Archive** suits infrequently accessed, long-retained snapshots with a restore delay and different charging characteristics.
Shared file storage selection
- **Regional EFS** provides elastic NFS storage for concurrent Linux and supported container clients across AZs. Create reachable mount targets and permit NFS traffic; access points provide application-specific paths and identities.
- **FSx for Windows File Server** provides SMB shares, Windows ACLs and Active Directory integration. Select an appropriate **Multi-AZ deployment** for AZ-level availability.
- **FSx for NetApp ONTAP** supports NFS, SMB and iSCSI with enterprise data-management features. It suits multiprotocol access, supported block workloads and service-specific replication.
- **FSx for Lustre** provides parallel file access for HPC and processing with S3 integration. Choose persistent storage for retained data and scratch storage for reproducible temporary processing.
- **FSx for OpenZFS** supplies managed ZFS-compatible NFS storage. Select a filesystem by required protocol and semantics; S3 APIs, SMB shares and POSIX filesystems are not interchangeable.
Hybrid storage and data transfer
- **S3 File Gateway** exposes NFS or SMB access backed by S3 with a local cache. It preserves suitable file-based access while storing objects in AWS.
- **Volume Gateway cached volumes** keep primary data in AWS and frequently used data locally. **Stored volumes** keep the complete primary dataset locally and back up snapshots to AWS; both expose iSCSI block access.
- **Tape Gateway** presents a virtual tape library to compatible backup software. It preserves tape-style workflows while moving durable tape storage to AWS.
- **DataSync** automates supported transfers, incremental changes, integrity verification, scheduling and bandwidth limits. Preserve required metadata and permissions through a supported source and target configuration.
- **Transfer Family** provides managed protocols such as SFTP to supported storage. **AppFlow** moves data between supported SaaS systems and AWS services; neither is a generic block-storage gateway.
Network topology and hybrid routing
- **VPC peering** connects non-overlapping VPCs, including supported cross-account or inter-Region designs. Add routes and security permissions on both sides; peering is not transitive.
- **Transit Gateway** provides a hub for many VPC and hybrid attachments. Segment traffic with suitable route tables; inter-Region transit-gateway peering extends the topology across Regions.
- **Site-to-Site VPN** provides IPsec tunnels over the internet. **Direct Connect** provides dedicated private connectivity with more consistent network behavior; it does not encrypt all traffic automatically.
- Direct Connect **private VIFs** serve eligible private VPC connectivity, **public VIFs** reach public AWS services, and **transit VIFs** connect through a Direct Connect gateway to transit gateways.
- Use redundant customer devices, connections and locations when required. A VPN backup can reduce cost when slower failover connectivity is acceptable; test BGP routing and failover.
Internet egress, addressing and DNS
- A **public NAT gateway** in a public subnet lets private IPv4 workloads initiate internet connections through an internet gateway. Route egress to it; NAT does not publish an inbound web service.
- For zonal NAT designs, place a gateway in each required AZ and route workloads locally to reduce cross-AZ dependency and transfer. NAT instances add host maintenance and capacity management.
- An **egress-only internet gateway** supports outbound IPv6 internet connections while blocking internet-initiated inbound connections. IPv4 NAT and IPv6 egress-only routing are distinct designs.
- Plan non-overlapping **CIDRs**, subnet capacity and address reservations. Add a supported secondary VPC CIDR and new subnets for expansion; a subnet cannot span AZs.
- **Route 53 Resolver inbound endpoints** accept on-premises DNS queries into AWS. **Outbound endpoints and rules** forward selected AWS queries to external DNS; private hosted zones supply private authoritative records.
Load balancing and global traffic
- An **Application Load Balancer** handles HTTP(S) with host, path and other request-based routing. Configure listeners, target groups, TLS certificates and meaningful health checks.
- A **Network Load Balancer** handles TCP, TLS and UDP use cases with low latency and static per-AZ addresses. It suits non-HTTP traffic and IP allowlisting; HTTP path routing needs an application-aware layer.
- **Global Accelerator** supplies static anycast IPs and routes TCP or UDP to healthy supported endpoints over the AWS network. It improves global routing without caching application objects.
- **CloudFront** distributes HTTP(S) content from origins such as S3, ALB or on-premises servers. It caches eligible responses near users and can accelerate dynamic requests while retaining the origin.
DNS routing and edge content controls
- **Route 53 latency routing** uses measured latency. **Geolocation** uses user geography; **geoproximity** considers geographic distance and supported bias. Geography alone does not guarantee minimum network latency.
- **Weighted routing** distributes DNS responses by relative weights. **Failover routing** selects primary or secondary by health. **Multivalue answer routing** returns multiple healthy records; DNS caching still affects changes.
- Keep S3 origins private using CloudFront **origin access control (OAC)** and a scoped bucket policy. **Signed URLs** or **signed cookies** authorize viewers; origin protection does not itself validate a paid user.
- Set cache keys for necessary variations such as language or device. Include required headers, cookies and query strings without excessive fragmentation or sharing personalized responses across users.
- Use **TTL**, versioned asset names and invalidations for freshness. CloudFront geographic restrictions control country access; **field-level encryption** protects selected sensitive request fields for designated applications.
Database and cache performance
- Use **Aurora Auto Scaling** for eligible reader capacity and **Aurora Serverless v2** for supported variable compute. RDS storage autoscaling grows storage; it does not automatically scale every database's CPU or writes.
- **ElastiCache for Redis** supports rich structures, replication and supported persistence features for sessions, leaderboards and hot data. **Memcached** is a simpler distributed cache with different data-loss characteristics.
- **Lazy loading** fills a cache after a miss. **Write-through** updates cache alongside writes. Plan invalidation, TTLs and failure behavior; a cache does not inherently remain identical to its database.
- **DynamoDB Accelerator (DAX)** caches eligible DynamoDB reads with microsecond responses. It serves DynamoDB rather than arbitrary relational databases; strongly consistent reads still go to DynamoDB.
DynamoDB data and throughput design
- **DynamoDB** stores key-value and document data. Design partition and sort keys around queries and even traffic distribution; a hot key can bottleneck a table despite high total capacity.
- **On-demand capacity** suits uncertain or variable demand. **Provisioned capacity** with suitable auto scaling suits planned workloads; retain spike headroom and account for index capacity.
- Use **strongly consistent reads** where supported when a read must reflect a completed write. Eventually consistent reads may briefly return older values; support differs by index and global-table configuration.
- A DynamoDB item has a **400 KB** maximum size. Store larger payloads in S3 and retain references, with application logic for permissions and consistency between stores.
- **TTL** asynchronously removes expired items by timestamp. **Streams** records item changes for event processing; neither is exact-time archival deletion or a permanent backup.
Analytics and governed data lakes
- **Athena** runs serverless SQL on supported S3 data. Use the **Glue Data Catalog**, partitions, compressed columnar formats such as **Parquet**, and appropriate key access to reduce scanned data and query cost.
- **Glue** crawlers discover schemas; ETL jobs transform data. **Job bookmarks** track eligible processed inputs. **DataBrew recipes** provide visual preparation; a crawler does not perform the entire transformation.
- **Redshift** is an analytical warehouse with massively parallel processing. **Spectrum** queries supported S3 data; Serverless supplies managed capacity. Keep heavy analytics separate from operational transactions.
- **EMR** runs frameworks such as Spark and Hadoop. **Lake Formation** governs supported table, column, row and cell access; object permissions alone do not express every SQL data permission.
- **QuickSight** creates business dashboards shared with appropriate users or groups. **OpenSearch Service** supports search and log analytics; **Managed Grafana** visualizes supported operational data sources.
Streams, batch and specialized services
- **Kinesis Data Streams** provides retained, replayable partitioned streams and independent consumers. Preserve per-entity order with an appropriate partition key and set retention for expected consumer delays.
- **Amazon Data Firehose** delivers buffered streams to destinations such as S3 with supported transformation and format conversion. **Managed Service for Apache Flink** performs stateful stream processing; **MSK** supports Apache Kafka workloads.
- **AWS Batch** schedules containerized jobs and manages eligible compute. Select Fargate or EC2 based on job size, platform and accelerator needs; checkpoints help interruption-tolerant jobs recover.
- **Amazon MQ** preserves supported broker protocols such as AMQP. **Neptune** serves graph data; **DocumentDB** provides MongoDB-compatible document capabilities that require application compatibility assessment.
- **Textract** extracts document text and structure; **Comprehend** analyzes text and sentiment; **Transcribe** converts speech to text; **Translate** translates text; **Rekognition** analyzes images or video. **SageMaker** supports custom ML development.
Observe bottlenecks before changing capacity
- **CloudWatch** supplies metrics, logs, dashboards and alarms. EC2 **detailed monitoring** increases standard metric frequency; guest memory and filesystem metrics require an agent or another collection path.
- **Composite alarms** combine conditions to reduce noisy alerts. **Container Insights** collects container telemetry; **X-Ray** traces requests and dependencies across instrumented services.
- **VPC Flow Logs** describe flows rather than packet contents. **ALB access logs** expose request-level traffic; use Athena for large log collections instead of opening each file manually.
- **CloudWatch Logs subscriptions** stream new events to supported destinations. Use **cross-account observability** when a monitoring account needs shared telemetry across accounts.
- Measure CPU, memory, IOPS, throughput, connections, queue age and application latency together. More capacity will not repair a wrong endpoint, missing permission, connection surge or stale cache logic.
Design Cost-Optimized Architectures (20%)
Commitments and interruption tolerance
- **On-Demand** avoids a long commitment and suits short, unpredictable workloads that cannot accept interruption. **Spot** discounts suit recoverable work; diversify pools and checkpoint jobs.
- **Reserved Instances** and **Savings Plans** exchange a term commitment for discounts. Commit only to a measured baseline; rightsize and remove idle capacity before making a long commitment.
- **Compute Savings Plans** cover eligible EC2, Fargate and Lambda usage with broad flexibility. **EC2 Instance Savings Plans** apply within a selected family and Region; SageMaker has a separate savings plan model.
- An **On-Demand Capacity Reservation** reserves matching EC2 capacity in a specific AZ. Discount commitments are not automatically capacity guarantees; regional Reserved Instances differ from zonal reservations.
- **Dedicated Hosts** provide physical host visibility and control for eligible licensing or isolation. Check licensing terms and required tenancy instead of assuming dedicated capacity is the cheapest general-purpose choice.
Match object tiers to retrieval needs
- **S3 Standard** suits frequent access. **Standard-IA** reduces storage cost with retrieval charges for infrequent immediate access. **One Zone-IA** trades AZ resilience for lower cost and suits replaceable or separately protected data.
- **Intelligent-Tiering** automatically moves eligible objects among access tiers for uncertain patterns. Consider monitoring charges, object size and optional archive-tier retrieval behavior.
- **Glacier Instant Retrieval** supports millisecond access to infrequent archives. **Glacier Flexible Retrieval** requires restore with retrieval options; **Deep Archive** favors long retention when hours of delay are acceptable.
- Calculate storage, requests, retrieval, minimum billable sizes, minimum durations and transition charges together. Many small objects can make a nominally cheaper tier less economical.
- Use **S3 Lifecycle** transitions and expiration for predictable aging. Configure current versions, noncurrent versions, delete markers and incomplete uploads separately; retention locks can prevent deletion.
Reduce storage waste and transfer charges
- **S3 Storage Lens** provides storage and activity insights. **Inventory** lists objects and metadata for analysis or Batch Operations; neither automatically supplies an application search index.
- Abort **incomplete multipart uploads** with lifecycle rules so abandoned parts do not accumulate charges. In versioned buckets, expire eligible **noncurrent versions** as well as current objects when retention permits.
- **S3 Bucket Keys** reduce KMS request traffic and cost for supported SSE-KMS encryption. Preserve required encryption and audit controls when evaluating savings.
- Use **S3 gateway endpoints** for suitable in-VPC access to avoid NAT processing charges. Keep chatty compute and data nearby; compare cross-AZ savings against required failure tolerance.
- **Requester Pays** shifts eligible request and transfer charges to the requester; it does not eliminate them. CloudFront caching can reduce origin requests and improve global delivery economics.
Right-size databases and shared storage
- Use metrics and queries to distinguish a need for **more memory**, **more IOPS**, replicas, caching or query improvement. Scale reporting readers independently when demand differs from the writer.
- Assess **RDS Reserved Instances** for steady eligible usage. For intermittent work, evaluate stop/start, snapshot-and-restore or suitable serverless capacity, including resume time and retained-storage charges.
- RDS stop/start has service limits and supported configurations, including automatic restart after the allowed stop interval. Month-long inactivity differs from stopping a database overnight.
- Compare Aurora **Standard** and **I/O-Optimized** pricing using measured I/O. Evaluate total compute, storage and I/O cost instead of assuming one mode always improves performance.
- Use **EFS lifecycle management** for eligible infrequent access. Select shared file storage when filesystem semantics are necessary; S3 can be more economical when the application supports object APIs.
Elastic operations and batch economics
- Stop eligible **development and test resources** outside working hours using schedules, tags and authorized automation. Stopped resources may still incur storage, address or related charges.
- Use **Lambda** for short, infrequent events and scheduled work. Use scheduled **Fargate tasks** for longer container jobs; avoid an always-running host that executes only seconds of work each hour.
- Scale each service or worker tier to its own demand. Keep reliable baseline capacity for essential services and use interruptible capacity only where business requirements permit it.
- For episodic EMR jobs, assess **transient clusters** or appropriate serverless options. Keep durable data outside temporary compute; apply Spot only to roles and jobs that tolerate loss.
- Manage EBS snapshot schedules and retention with **Data Lifecycle Manager** or AWS Backup as appropriate. Remove unused artifacts only after confirming retention and restore requirements.
Migration economics and transfer performance
- Estimate time from **data size divided by usable bandwidth**, allowing for shared links, overhead, retries and validation. Acceleration cannot exceed the source's practical read or data-production speed.
- **Multipart upload** improves large-object parallelism and retry efficiency. **Parallel byte-range GETs** improve eligible downloads. **Transfer Acceleration** uses edge locations for suitable long-distance S3 transfers; benchmark its benefit against extra charges.
- Compare online transfer with **offline bulk transfer**, represented by Snowball Edge in migration scenarios, when bandwidth cannot meet the deadline. Include copy, shipping, import and final incremental synchronization.
- Use **DMS full load plus CDC** for supported database moves that must capture ongoing changes. Use **schema conversion** for heterogeneous engines; copying rows does not resolve every application compatibility issue.
- Place computation near large datasets and move smaller results where possible. Compare VPN, hosted Direct Connect and dedicated circuits against actual throughput, latency and resilience requirements.
Cost visibility and financial guardrails
- **Cost Explorer** analyzes spending and usage through filters, grouping and forecasts. **Cost and Usage Reports** supply detailed billing records for pipelines such as S3, Athena and QuickSight.
- Activate **cost allocation tags** with consistent application, department and owner values. Central billing administration can activate and analyze eligible tags across organization accounts.
- **Budgets** alerts on actual or forecast thresholds. Supported **budget actions** can apply controls through an authorized role; an alert alone does not stop spending or delete resources.
- **Cost Anomaly Detection** identifies unusual spending. Savings Plans **coverage** measures usage receiving discounts; **utilization** measures how much purchased commitment is used.
- **Compute Optimizer** recommends supported resource sizing from usage evidence. **Trusted Advisor** provides supported optimization checks. Validate recommendations against representative demand, performance targets and operational constraints.
Whole-system cost and architecture fit
- **Consolidated billing** provides combined organization reporting and supported discount sharing. Configure sharing centrally and monitor unused commitments rather than moving workloads solely to consume a discount.
- A static site can use **S3 and CloudFront** without web servers. Keep dynamic APIs on suitable compute; static hosting does not execute PHP or database logic.
- Balance **operational overhead** with infrastructure cost. Managed databases, queues, transfer services and container platforms remove maintenance tasks while adding service charges to the total estimate.
- Use **cluster placement groups**, enhanced networking and **EFA** for suitable tightly coupled HPC. Choose spread or partition placement for failure isolation; low latency and broad separation have different placement goals.
- **Outposts** places supported AWS infrastructure on premises; customers supply site power, connectivity and physical security. **Local Zones** put selected capacity near metro areas; neither supplies every regional service everywhere.