Review sheet
Design High-Performing Architectures
The main points of this domain on a few screens, to reread before the exam.
3.1Choosing storage
- Object: S3. Shared Linux files: EFS. Windows SMB with Active Directory: FSx for Windows. HPC and ML: FSx for Lustre.
- EBS is block storage in one Availability Zone. gp3 includes 3,000 IOPS and 125 MiB/s. io2 Block Express reaches 256,000 IOPS.
- st1 and sc1 are HDD: throughput, not IOPS, and never boot volumes.
- Multi-Attach: io1 and io2 only, one Availability Zone, up to 16 Nitro instances.
- Instance store: fastest local disk. Data is lost when the instance stops or fails.
- EBS: root volume is deleted on termination by default, extra volumes are kept. Recycle Bin restores deleted snapshots and AMIs.
3.1Choosing storage
- EFS: Elastic throughput for unpredictable load. One mount target per Availability Zone. Linux only.
- Storage Gateway: S3 File Gateway (NFS, SMB), Volume Gateway (iSCSI), Tape Gateway. DataSync copies files online on a schedule.
Shared files for Linux in many zones
Windows SMB with Active Directory
HPC or ML fed from S3
One database, lowest latency, high IOPS
Unlimited objects, web access
On-premises apps that need S3 as files
Copy files to AWS on a schedule
| Need | Pick |
|---|---|
| Shared files for Linux in many zones | |
| Windows SMB with Active Directory | |
| HPC or ML fed from S3 | |
| One database, lowest latency, high IOPS | |
| Unlimited objects, web access | |
| On-premises apps that need S3 as files | |
| Copy files to AWS on a schedule |
2 / 2
Unlimited objects, web access
On-premises apps that need S3 as files
Copy files to AWS on a schedule
| Need | Pick |
|---|---|
| Unlimited objects, web access | |
| On-premises apps that need S3 as files | |
| Copy files to AWS on a schedule |
3.1S3 performance and features
- S3 request rates are per prefix: spread keys over more prefixes. Multipart upload above 100 MB, required above 5 GB.
- Faster uploads from far away: S3 Transfer Acceleration. Parallel or partial downloads: byte-range fetches.
- S3 Express One Zone: lowest latency, one Availability Zone.
- Multi-Region Access Point: one global S3 endpoint to the nearest bucket.
- Batch Operations: one job on billions of objects. Object Lambda is closed to new customers.
3.2Choosing compute
- Short, event-driven work: Lambda. Containers with no servers: Fargate. Many queued jobs: AWS Batch. Spark or Hadoop: EMR.
- EC2 for full control, licences and lift and shift. Containers that need GPUs run on EC2 under ECS or EKS.
- Families: C for CPU, R for memory, I for local disk IOPS, G and P for GPUs, M balanced, T burstable with credits.
- Graviton (arm64) often gives better price performance. To change the instance type, stop the instance first.
- Placement groups: cluster (lowest latency, one zone), spread (separate hardware, 7 per zone), partition (separate racks).
- EFA: OS-bypass networking for HPC and ML.
3.2Choosing compute
- Lambda memory 128 to 10,240 MB. CPU scales with memory. Default 1,000 concurrent executions per Region.
- Provisioned concurrency removes cold starts. Reserved concurrency guarantees and caps.
Short event-driven task, least operations
Containers, no servers
Containers that need GPUs
Thousands of queued jobs on Spot
Spark or Hadoop cluster
Full OS control, licences
Kubernetes skills and portability
| Need | Pick |
|---|---|
| Short event-driven task, least operations | |
| Containers, no servers | |
| Containers that need GPUs | |
| Thousands of queued jobs on Spot | |
| Spark or Hadoop cluster | |
| Full OS control, licences | |
| Kubernetes skills and portability |
1 / 2
Short event-driven task, least operations
Containers, no servers
Containers that need GPUs
Thousands of queued jobs on Spot
3.2Scaling and containers
- Auto Scaling: target tracking is the default. Scheduled for known peaks. Predictive for daily or weekly cycles.
- Queue workers scale on backlog per instance, not on CPU.
- Warm pools cut start time. Lifecycle hooks run steps at launch or termination. Instance refresh rolls out a new template.
- ECS task role: permissions for your code. Task execution role: pull images and write logs.
- EKS: pods use IAM roles for service accounts or EKS Pod Identity. Fargate profiles remove worker nodes.
- Fargate has no GPUs. Fargate Spot is cheaper for tasks that tolerate interruption.
3.2Scaling and containers
- Local Zone: low latency in one city. Wavelength: 5G. Outposts: AWS in your own data center.
3.3Choosing a database
- Joins and transactions: RDS or Aurora. Key-value at scale: DynamoDB. Microsecond reads: ElastiCache or DAX.
- Graph: Neptune. MongoDB: DocumentDB. Cassandra: Keyspaces. Reports over history: Redshift.
- Read-heavy: replicas or a cache. Write-heavy: spread the writes, so DynamoDB with a good partition key.
- RDS: gp3 by default, Provisioned IOPS for busy OLTP, storage autoscaling, automated backups 1 to 35 days.
- Read replicas: asynchronous, up to 15, cross-Region, promoted by hand. They are not high availability.
- Multi-AZ: synchronous standby, automatic failover. RDS Proxy: pools connections, helps Lambda, shortens failover.
3.3Choosing a database
- DynamoDB: 1 RCU is one 4 KB strongly consistent read per second (two eventually consistent). 1 WCU is one 1 KB write per second.
- Sizes round up. Items up to 400 KB. A hot partition is fixed with a better partition key.
- GSI: any time, up to 20. LSI: at table creation, up to 5. On-demand for unknown load, provisioned for steady load.
SQL, joins, transactions
Key-value at any scale, no servers
Microsecond reads of hot data
MongoDB application
Highly connected data
Cassandra application
Reports over years of data
| Need | Pick |
|---|---|
| SQL, joins, transactions | |
| Key-value at any scale, no servers | |
| Microsecond reads of hot data | |
| MongoDB application | |
| Highly connected data | |
| Cassandra application | |
| Reports over years of data |
1 / 2
SQL, joins, transactions
Key-value at any scale, no servers
Microsecond reads of hot data
MongoDB application
| Need | Pick |
|---|---|
| SQL, joins, transactions | |
| Key-value at any scale, no servers | |
| Microsecond reads of hot data | |
| MongoDB application |
3.3Aurora, caching and migration
- Aurora: six copies in three Availability Zones, up to 15 replicas, failover usually under a minute.
- Endpoints: cluster (writer), reader, custom. Global Database: cross-Region DR with lag usually under a second.
- Backtrack rewinds in place (MySQL-compatible). Cloning makes quick test copies. I/O-Optimized removes per-I/O charges.
- Aurora Serverless v2: capacity in ACUs (about 2 GiB each), steps of 0.5. Minimum 0 pauses when idle and resumes in about 15 seconds.
- ElastiCache for Valkey or Redis OSS: data types, replicas, failover. Memcached: simple, multithreaded, no persistence.
- DAX: cache for DynamoDB with the same API. ElastiCache fronts any other database.
3.3Aurora, caching and migration
- DMS: full load, then ongoing changes (CDC). Size the replication instance. DMS Serverless scales by itself.
- Different engines (Oracle to Aurora PostgreSQL): SCT converts the schema, then DMS moves the data.
3.4VPC and connecting networks
- VPC range /16 to /28. Each subnet loses 5 addresses. Ranges must not overlap for peering, VPN or Transit Gateway.
- Add secondary CIDR blocks when space runs out. The main range cannot change.
- Three tiers (public, application, data) in at least two Availability Zones. Egress-only internet gateway for private IPv6.
- Peering: one to one, not transitive, no hourly fee. Routes are needed on both sides.
- Transit Gateway: hub for many VPCs, VPN and Direct Connect. Several route tables isolate environments. Peer Regions, share with AWS RAM.
- ECMP over several VPN tunnels adds bandwidth (1.25 Gbps per tunnel). It needs BGP and a transit gateway.
3.4VPC and connecting networks
- VPN CloudHub: several branch sites joined through one virtual private gateway. Traffic Mirroring copies ENI traffic to an inspection appliance.
- PrivateLink: one service, one direction, through an NLB. Overlapping ranges are fine.
- Gateway endpoints for S3 and DynamoDB are free. Interface endpoints use PrivateLink and cost per hour and per GB.
Two VPCs, lowest cost
- VPC peering
Many VPCs and on premises
One service for other VPCs, ranges overlap
Encrypted link, ready quickly
Steady, high bandwidth link
Remote employees
| Need | Use |
|---|---|
| Two VPCs, lowest cost | VPC peering |
| Many VPCs and on premises | |
| One service for other VPCs, ranges overlap | |
| Encrypted link, ready quickly | |
| Steady, high bandwidth link | |
| Remote employees |
1 / 2
Two VPCs, lowest cost
- VPC peering
Many VPCs and on premises
One service for other VPCs, ranges overlap
Encrypted link, ready quickly
| Need | Use |
|---|---|
| Two VPCs, lowest cost | VPC peering |
| Many VPCs and on premises | |
| One service for other VPCs, ranges overlap | |
| Encrypted link, ready quickly |
2 / 2
Steady, high bandwidth link
Remote employees
| Need | Use |
|---|---|
| Steady, high bandwidth link | |
| Remote employees |
3.4Edge, load balancing and hybrid
- ALB: layer 7, path and host rules. NLB: layer 4, static or Elastic IP per zone, source IP kept for instance targets, extreme throughput.
- GWLB: layer 3, sends traffic through firewall appliances using GENEVE.
- Cross-zone balancing is on by default for ALB, off for NLB and GWLB.
- CloudFront: origin access control for private S3, origin groups for failover, signed cookies for many files, signed URLs for one.
- CloudFront Functions: tiny JavaScript, viewer events. Lambda@Edge: heavier, with network access.
- Global Accelerator: 2 static anycast IPs, TCP and UDP, traffic dials per Region, fast failover, no caching.
3.4Edge, load balancing and hybrid
- Direct Connect: dedicated 1 to 400 Gbps, hosted 50 Mbps to 25 Gbps. Private, public and transit VIFs. Not encrypted.
- Direct Connect resilience: two connections in each of two locations is the maximum. A VPN is the cheap backup.
- Placement order: residency, services, latency, price. Local Zone, Wavelength and Outposts go beyond a Region.
3.5Streaming and ingestion
- Batch: hours. Near real time: about a minute, Firehose. Real time: seconds, Data Streams or MSK.
- Kinesis shard: 1 MB/s or 1,000 records/s in, 2 MB/s out. Retention 24 hours to 365 days. On-demand or provisioned.
- Same partition key, same shard, in order. A skewed key makes a hot shard. Enhanced fan-out gives each consumer 2 MB/s.
- Firehose: no code, buffers, delivers to S3, Redshift, OpenSearch, Splunk. Converts JSON to Parquet. No replay.
- MSK: managed Apache Kafka, for existing Kafka applications. Managed Flink analyzes live streams.
- A 1 Gbps link moves at most about 10 TB a day.
- Secure ingestion: IAM roles, TLS, VPC endpoints, KMS encryption.
3.5Transform, analyze and move data
- Glue: crawlers fill the Data Catalog. Serverless Spark ETL. Job bookmarks skip processed data. CSV to Parquet.
- EMR beats Glue for Hive, HBase, Presto, tuning or an existing Hadoop. Task nodes on Spot. Data in S3 so clusters are transient.
- Athena: pay per TB scanned. Parquet, compression and partitions cut cost. Workgroups cap cost. Federated queries reach other sources.
- Redshift: columnar warehouse for repeated BI. RA3 splits compute and storage. Spectrum queries S3. Concurrency scaling for spikes.
- Lake Formation: column, row and cell permissions, LF-tags, cross-account sharing, for data in S3.
3.5Transform, analyze and move data
- OpenSearch: search and live log analytics. UltraWarm and cold tiers for older data. Quick: dashboards, SPICE for speed.
- DataSync: online file copy with schedule and checks. Transfer Family: SFTP, FTPS, FTP, AS2 into S3 or EFS.
- Snow Family: offline transfer for huge data on slow links. No longer sold to new customers.
- AppFlow: SaaS data into AWS, no code. Data Exchange: subscribe to third-party datasets.
Stream to S3, no code
Custom real-time consumers, replay
Existing Kafka applications
Serverless ETL, CSV to Parquet
Ad hoc SQL on S3
Heavy BI on a warehouse
Partners upload by SFTP
Sync NFS files to S3 or EFS
| Need | Pick |
|---|---|
| Stream to S3, no code | |
| Custom real-time consumers, replay | |
| Existing Kafka applications | |
| Serverless ETL, CSV to Parquet | |
| Ad hoc SQL on S3 | |
| Heavy BI on a warehouse | |
| Partners upload by SFTP | |
| Sync NFS files to S3 or EFS |
2 / 2
Ad hoc SQL on S3
Heavy BI on a warehouse
Partners upload by SFTP
Sync NFS files to S3 or EFS
| Need | Pick |
|---|---|
| Ad hoc SQL on S3 | |
| Heavy BI on a warehouse | |
| Partners upload by SFTP | |
| Sync NFS files to S3 or EFS |
Exam traps
- “Automatic failover” → Multi-AZ, not a read replica
- “Lambda opens too many database connections” → RDS Proxy, not a bigger instance
- “Throttled while capacity is spare” → a hot partition: choose a better partition key
- “Microsecond reads of DynamoDB, little code change” → DAX, not ElastiCache
- “Overlapping CIDR ranges, share one service” → PrivateLink, not peering
- “Static IPs on a load balancer” → NLB (or Global Accelerator), not ALB
- “Cache static content for users worldwide” → CloudFront. “UDP, static IPs, fast failover” → Global Accelerator
Exam traps
- “Encrypted and consistent hybrid link” → Direct Connect with a VPN on top, not Direct Connect alone
- “Stream to S3 with no code” → Firehose. “Replay or custom consumers” → Kinesis Data Streams
- “Migrate an existing Kafka application” → MSK, not Kinesis
- “SQL Server application moves with few code changes” → Aurora PostgreSQL with Babelfish
- “Branch offices must also reach each other over VPN” → VPN CloudHub, not separate VPCs
- “Column-level access to data in S3” → Lake Formation, not bucket policies
Exam traps
- “Partners send files by SFTP” → Transfer Family, not DataSync