20% of the exam

Domain 4: Cost-Optimized Architectures

Storage, compute, database and network cost optimization.

Live · updated 22 Nov 2026, 1:20 pm~114 min read
On this page (59 sections)

Like I'm 5: Two families eat the same food, but one pays half because they buy in bulk, cook at home and don't waste. This chapter is about getting the same result on AWS for less money.

4.1 Cost-optimized storage

Topics to cover, in this order:

  1. S3 storage classes (Standard, Intelligent-Tiering, Standard-IA, One Zone-IA, Glacier Instant / Flexible / Deep Archive) with minimum durations
  2. S3 lifecycle rules
  3. EBS: SSD vs HDD cost, gp2 → gp3, deleting unused snapshots
  4. Requester Pays and data transfer costs
  5. Batch vs individual uploads; cheapest way to move data in
  6. Backup and archive strategies (AWS Backup, Glacier)
  7. Cost tools: Cost Explorer, Budgets, Cost and Usage Report, cost allocation tags

161. S3 storage classes and access patterns (Domain 4.1)

🧒 LIKE I'M 5
Daily clothes stay in the cupboard, winter clothes in a suitcase, and old papers in a locked store room. S3 classes match storage cost to how often data is used.

📖 EXPLAINED SIMPLY

  • S3 Standard suits frequently accessed objects. It has no minimum storage duration.
  • S3 Intelligent-Tiering suits unknown or changing access patterns. It moves eligible objects automatically and has no retrieval fees between its access tiers, but monitoring and automation fees apply.
  • S3 Standard-IA suits long-lived, infrequently accessed data. It stores data across multiple AZs. It has a 30-day minimum duration and retrieval fees.
  • S3 One Zone-IA costs less but stores data in one AZ. Use it only for recreatable data or when another copy exists. It has a 30-day minimum duration.
  • S3 Glacier Instant Retrieval suits rarely read archives needing milliseconds access. It has a 90-day minimum duration and retrieval fees.
  • S3 Glacier Flexible Retrieval suits archives restored in minutes to hours. It has a 90-day minimum duration. Restore the object before reading it.
  • S3 Glacier Deep Archive suits long-term preservation with very rare access. It has a 180-day minimum duration. Restore can take hours.
  • Standard-IA, One Zone-IA, and Glacier Instant Retrieval have a 128 KB minimum billable object size.
  • Early deletion or transition can create prorated charges for the remaining minimum duration.
  • Choose by access frequency, retrieval delay, resilience, object size, and retention. Do not compare only the storage price.

📚 JARGON BOX

  • IA → Infrequent Access.
  • Retrieval → Reading data back from storage.
  • Minimum duration → Period charged even if an object is deleted early.
  • Availability Zone → Separate data center location within a Region.
  • Billable object size → Minimum size used for storage billing.

⚖️ COMPARE WITH LOOKALIKES

ClassAccess patternAZ designMinimum duration
StandardFrequentMulti-AZNone
Intelligent-TieringUnknown/changingMulti-AZNone
Standard-IAInfrequentMulti-AZ30 days
One Zone-IAInfrequent, recreatableOne AZ30 days
Glacier InstantRare, instant readMulti-AZ90 days
Glacier FlexibleArchive, minutes/hoursMulti-AZ90 days
Glacier Deep ArchiveVery rare, hours to restoreMulti-AZ180 days

🎯 EXAM LENS

  • "Frequently accessed" → Standard.
  • "Unknown or changing access" → Intelligent-Tiering.
  • "Recreatable and infrequent" → One Zone-IA.
  • "Rare but millisecond retrieval" → Glacier Instant Retrieval.
  • "Minutes to hours retrieval" → Glacier Flexible.
  • "Lowest-cost long-term archive" → Deep Archive.

🪤 TRAPS

  • One Zone-IA is not resilient to loss of its AZ.
  • Flexible and Deep Archive require restore before access.
  • Early deletion can incur minimum-duration charges.
  • Retrieval and transition requests add cost.

📝 PRACTICE QUESTION
A company stores compliance records that are rarely read. It can wait many hours for retrieval and wants the lowest storage cost. Which class fits?
A. Glacier Deep Archive B. S3 Standard C. Standard-IA D. S3 Express One Zone

Answer: A. Deep Archive is designed for rare, long-term access. Standard is frequent. Standard-IA is faster but costs more. Express One Zone targets low-latency access.

🔁 ONE-LINE RECAP
Choose S3 classes by access frequency, retrieval time, resilience, object size, and minimum storage duration.


162. S3 Intelligent-Tiering and automatic tiering (Domain 4.1)

🧒 LIKE I'M 5
You do not know which toys children will use next month. Intelligent-Tiering watches usage and moves eligible objects to the right shelf.

📖 EXPLAINED SIMPLY

  • Intelligent-Tiering is built for data with unknown or changing access patterns.
  • S3 monitors eligible objects and moves them between access tiers based on access activity.
  • Frequent and Infrequent tiers keep millisecond access. Objects move to Infrequent after 30 consecutive days without access.
  • Archive Instant Access is for objects not accessed for 90 consecutive days. It still supports millisecond access.
  • Optional Archive Access and Deep Archive Access tiers can move colder objects into asynchronous archive storage.
  • Optional archive tiers must be enabled. Archived objects need a restore before reading.
  • There are no retrieval charges between Intelligent-Tiering tiers. Monitoring and automation fees still apply to eligible objects.
  • Objects smaller than 128 KB are not monitored and stay in Frequent Access.
  • Intelligent-Tiering has no minimum storage duration. It can beat manual guessing when access is unpredictable.
  • It is not automatically cheapest for every workload. Compare monitoring cost with the savings from tier movement.

📚 JARGON BOX

  • Tier → Storage level with different access and cost behavior.
  • Infrequent → Not accessed for a configured period.
  • Archive → Lower-cost storage with restore delay.
  • Monitoring fee → Charge for tracking eligible objects.
  • Restore → Make archived data available for reading.

⚖️ COMPARE WITH LOOKALIKES

OptionHow class is selectedBest use
Intelligent-TieringBased on accessUnknown or changing access
LifecycleRules you definePredictable aging
Standard-IAYou select itKnown infrequent access
Glacier classesYou select or transitionKnown archive needs

🎯 EXAM LENS

  • "Usage pattern unknown" → Intelligent-Tiering.
  • "Automatically move colder objects" → Intelligent-Tiering.
  • "No retrieval charge between its access tiers" → Intelligent-Tiering.
  • "Small object below 128 KB" → Not monitored; remains Frequent.

🪤 TRAPS

  • Monitoring fees still apply.
  • Archive tiers are optional.
  • Small objects are not automatically moved by the tiering engine.
  • Archive access still needs restore.

📝 PRACTICE QUESTION
A company cannot predict which documents will be accessed. It wants automatic tier movement and no retrieval fee between tiers. What should it choose?
A. Intelligent-Tiering B. One Zone-IA only C. Deep Archive for every object D. Standard only

Answer: A. Intelligent-Tiering responds to actual access. The other options require fixed assumptions or do not optimize changing patterns.

🔁 ONE-LINE RECAP
Use Intelligent-Tiering when access patterns are uncertain and the monitoring fee is justified.


163. S3 Lifecycle rules and early-transition costs (Domain 4.1)

🧒 LIKE I'M 5
A school moves old books from the front shelf to a back room and later to an archive. Lifecycle rules automate those moves as objects age.

📖 EXPLAINED SIMPLY

  • S3 Lifecycle automates storage-class transitions and object expiration.
  • A rule can apply to a bucket or filter by prefix, tags, or object size.
  • Example: keep new logs in Standard, move older logs to Standard-IA, then archive them in Glacier.
  • You can expire current objects and manage noncurrent versions in versioned buckets.
  • Transitions can reduce storage cost, but transition requests may add charges.
  • IA and archive classes have minimum storage durations. Early deletion or transition can create prorated charges.
  • Small objects may not save money because of minimum billable sizes and request costs.
  • Use Lifecycle for predictable aging, not for data with unpredictable access.
  • Check legal retention, Object Lock, versioning, and noncurrent-version settings before expiring data.
  • Test rules on a small prefix before applying them to a large bucket.

📚 JARGON BOX

  • Lifecycle rule → Automated transition or expiration.
  • Transition → Move an object to another storage class.
  • Expiration → Delete an object or version after a rule.
  • Noncurrent version → Older version in a versioned bucket.
  • Prefix → Beginning part of an object key.
  • Early deletion charge → Remaining minimum-duration billing.

⚖️ COMPARE WITH LOOKALIKES

FeatureLifecycle ruleManual class choice
TriggerAge/filter conditionUpload or explicit update
Best usePredictable data agingSpecial one-off objects
Cost riskRequest and minimum-duration chargesWrong class selected initially

🎯 EXAM LENS

  • "Move objects after 30 days" → Lifecycle transition.
  • "Delete expired logs after seven years" → Lifecycle expiration, subject to retention rules.
  • "Older versions should expire" → Noncurrent-version action.
  • "Deleted before minimum duration" → Early deletion charge.

🪤 TRAPS

  • Lifecycle does not override legal retention.
  • Transition requests may add cost.
  • Versioning creates noncurrent versions that need separate rules.
  • Glacier archive classes may require restore before access.

📝 PRACTICE QUESTION
A company wants to move log objects to a colder class after 90 days and delete them after seven years. What should it configure?
A. S3 Lifecycle rules B. CloudFront Functions C. RDS Proxy D. Route 53 geolocation

Answer: A. Lifecycle rules automate transitions and expiration. The other services do not manage object aging.

🔁 ONE-LINE RECAP
Use Lifecycle for predictable transitions and expiration while respecting minimum durations and retention rules.


164. EBS cost choices: SSD, HDD, gp2 to gp3, snapshots (Domain 4.1)

🧒 LIKE I'M 5
A family can buy a fast small notebook or a slower large storage box. EBS offers SSD and HDD volumes with different performance and cost profiles.

📖 EXPLAINED SIMPLY

  • EBS is persistent block storage for EC2 and supported services.
  • gp3 is a general-purpose SSD. You can configure IOPS and throughput separately from volume size within service limits.
  • gp2 is an older general-purpose SSD. Its baseline performance depends on volume size and burst credits.
  • Moving from gp2 to gp3 can reduce cost and make performance easier to tune. Test IOPS and throughput before changing.
  • io2 suits workloads needing high and consistent IOPS. It costs more and should be used when the workload needs it.
  • st1 and sc1 are HDD options for large sequential workloads. They are poor choices for small random database I/O.
  • EBS snapshots are incremental. They store changed blocks after the first snapshot, but retained snapshots still cost money.
  • Delete unused volumes and unnecessary snapshots only after checking backup and recovery requirements.
  • Use the smallest volume performance level that meets measured latency, IOPS, and throughput targets.

📚 JARGON BOX

  • gp2/gp3 → General-purpose SSD volume types.
  • io2 → Provisioned IOPS SSD.
  • st1/sc1 → Throughput or cold HDD volumes.
  • Snapshot → Point-in-time copy of EBS data.
  • Incremental → Stores changed blocks after the first snapshot.
  • Unattached volume → Volume not connected to an instance.

⚖️ COMPARE WITH LOOKALIKES

VolumeCost/performance use
gp3General-purpose SSD with tunable performance
gp2Older SSD tied to size and burst behavior
io2High IOPS workloads
st1Throughput-focused HDD
sc1Lower-cost, infrequent HDD

🎯 EXAM LENS

  • "Reduce general-purpose EBS cost" → Evaluate gp2 to gp3.
  • "High random IOPS database" → io2 or suitable SSD.
  • "Large sequential data" → st1.
  • "Find unnecessary spend" → Review unattached volumes and old snapshots.

🪤 TRAPS

  • HDD volumes are poor for random I/O.
  • gp3 performance does not scale with size like gp2.
  • Snapshots are incremental but not free.
  • Do not delete snapshots required for compliance or recovery.

📝 PRACTICE QUESTION
A company uses gp2 for general workloads. It wants predictable IOPS and lower cost without changing the application. What should it evaluate?
A. Move to gp3 and set required IOPS/throughput
B. Move every volume to maximum io2
C. Use instance store for persistent data
D. Create more snapshots

Answer: A. gp3 allows independent performance configuration and can reduce cost. io2 may be unnecessary. Instance store is temporary. Snapshots do not replace active volumes.

🔁 ONE-LINE RECAP
Use gp3 for general SSD, io2 for high IOPS, HDD for sequential work, and clean up unused storage safely.


165. S3 Requester Pays and storage-access costs (Domain 4.1)

🧒 LIKE I'M 5
A library can charge the person borrowing a rare book rather than the library owner. Requester Pays shifts eligible S3 access costs to the requester.

📖 EXPLAINED SIMPLY

  • Requester Pays is an S3 bucket setting that makes the requester pay eligible request and data-transfer charges.
  • The bucket owner still pays for storage and other owner-side charges.
  • The requester must identify itself and acknowledge the Requester Pays requirement.
  • Use it when sharing large public or partner datasets where the owner should not pay for every download.
  • It does not make the bucket public. IAM and bucket policies still control access.
  • Request, data transfer out, and retrieval charges depend on the storage class and access path.
  • Data entering AWS is generally free for common internet ingress, but service-specific exceptions can apply.
  • Model total cost: storage, requests, retrieval, transfer out, replication, and lifecycle transitions.
  • CloudFront caching can reduce repeated origin downloads when the content is cacheable.
  • Do not assume Requester Pays removes every cost for the bucket owner.

📚 JARGON BOX

  • Requester Pays → Requester pays eligible S3 request and transfer costs.
  • Ingress → Data entering AWS.
  • Egress → Data leaving AWS.
  • Retrieval charge → Fee for accessing certain colder storage classes.
  • Request charge → Fee for API operations.

⚖️ COMPARE WITH LOOKALIKES

Cost itemCommon behavior
S3 storageBucket owner pays
Eligible Requester Pays requestsRequester pays
Internet data transfer outCharged according to service and pricing rules
Glacier retrievalRetrieval charges apply
Data transfer inOften no charge, with service-specific exceptions

🎯 EXAM LENS

  • "Dataset owner should not pay for downloads" → Requester Pays.
  • "Users download infrequently accessed objects" → Include retrieval fees.
  • "High repeated outbound content" → Consider CloudFront caching.
  • "Requester Pays bucket" → Access permissions are still required.

🪤 TRAPS

  • Requester Pays does not shift storage costs.
  • It does not make objects public.
  • Data egress is not always free.
  • Frequent retrieval can erase savings from low storage rates.

📝 PRACTICE QUESTION
A research organization hosts a large dataset. It wants external users to pay eligible download request and transfer charges. Which setting should it use?
A. S3 Requester Pays B. S3 Versioning C. EBS Multi-Attach D. Route 53 weighted routing

Answer: A. Requester Pays shifts eligible request and transfer charges to the requester. The other features solve versioning, block storage, and DNS routing.

🔁 ONE-LINE RECAP
Use Requester Pays when downloaders should cover eligible access costs while the owner retains storage costs.


166. Batch uploads, multipart transfer, and choosing an ingest path (Domain 4.1)

🧒 LIKE I'M 5
Sending one large delivery can cost less than sending hundreds of tiny parcels. Data-ingest design should reduce repeated requests and choose the right transfer path.

📖 EXPLAINED SIMPLY

  • Group small records into sensible files before uploading when the workload allows it.
  • Many tiny objects can create more requests, metadata overhead, and query inefficiency.
  • Use multipart upload for large files. Failed parts can be retried without restarting the whole upload.
  • Use S3 Transfer Acceleration only when tests show a real long-distance upload benefit. It adds cost.
  • Use DataSync for recurring or large network transfers from storage systems.
  • Use Snow Family when network bandwidth is too limited or a remote site lacks reliable connectivity.
  • Use direct S3 upload for simple application files. Avoid a transfer service when it adds no value.
  • Data entering AWS is commonly free, but the source service, acceleration, transfer path, and destination requests may still cost money.
  • Compress or convert data before upload when savings exceed processing cost.
  • Choose by dataset size, network speed, frequency, protocol, and operational effort.

📚 JARGON BOX

  • Batch upload → Send a group of files or records together.
  • Multipart upload → Upload one large object as retryable parts.
  • Transfer Acceleration → S3 upload path using edge locations.
  • DataSync → Managed data transfer service.
  • Snow Family → Physical data-transfer and edge devices.
  • Ingress → Data entering AWS.

⚖️ COMPARE WITH LOOKALIKES

MethodBest useMain trade-off
Direct S3 uploadSimple filesApp handles retries
MultipartLarge objectsPart management
DataSyncRecurring storage transferService/network cost
Transfer AccelerationLong-distance uploadAdditional charge
Snow FamilyOffline bulk dataShipping and import process

🎯 EXAM LENS

  • "Large file with retryable parts" → Multipart upload.
  • "Daily NAS-to-S3 sync" → DataSync.
  • "Hundreds of TB over slow internet" → Snow Family.
  • "Long-distance S3 upload is slow" → Test Transfer Acceleration.

🪤 TRAPS

  • Transfer Acceleration is not always faster or cheaper.
  • DataSync is not an SFTP endpoint.
  • Many tiny objects may increase request and analytics costs.
  • Compression also consumes compute.

📝 PRACTICE QUESTION
A company must move 200 TB from a remote site with limited bandwidth. Which option should it evaluate?
A. Snow Family B. API Gateway caching C. Route 53 latency routing D. RDS Proxy

Answer: A. Snow devices move large datasets physically when network transfer is impractical. The other services do not handle offline bulk transfer.

🔁 ONE-LINE RECAP
Choose direct upload, multipart, DataSync, Transfer Acceleration, or Snow by size, frequency, bandwidth, and cost.


167. AWS Backup and Glacier: cost-effective backup and archive design (Domain 4.1)

🧒 LIKE I'M 5
A family keeps recent photos nearby and old albums in a cheaper storage room. Backup design balances how quickly data must return against the cost of keeping it.

📖 EXPLAINED SIMPLY

  • AWS Backup centralizes supported backup schedules, retention, vaults, and cross-account or cross-Region copies.
  • Keep recovery points only as long as business, legal, and compliance requirements need them.
  • Reduce excessive retention only after confirming recovery requirements.
  • Use S3 Glacier classes for long-term object archives with rare access.
  • Flexible Retrieval and Deep Archive need restore time before objects can be read.
  • Consider minimum storage durations and retrieval fees. Early transitions can create charges.
  • Use lifecycle rules to transition S3 objects to appropriate archive classes.
  • Separate operational backups from immutable compliance copies when required.
  • Cross-Region and cross-account copies improve resilience but add storage and transfer costs.
  • Test restores. A backup that cannot be restored has little value.
  • Do not confuse live replication with backup. Replication can copy bad writes or deletions.

📚 JARGON BOX

  • Recovery point → Saved backup copy.
  • Retention → Time a backup is kept.
  • Vault → Container for backup recovery points.
  • Archive → Long-term storage with slower retrieval.
  • Restore → Recover a resource or object from backup.
  • Cross-account copy → Backup stored in another account.
  • Immutable backup → Backup protected against early deletion.

⚖️ COMPARE WITH LOOKALIKES

OptionBest use
AWS BackupCentral backup schedules and vaults
S3 GlacierLong-term object archive
S3 ReplicationCopy live object versions
EBS snapshotPoint-in-time block-storage copy
Multi-AZAvailability, not backup

🎯 EXAM LENS

  • "Central backup policy across services" → AWS Backup.
  • "Rarely retrieved long-term objects" → Glacier.
  • "Recover after accidental deletion" → Backup or PITR.
  • "Prevent early backup deletion" → Backup Vault Lock or Object Lock as appropriate.

🪤 TRAPS

  • Replication is not backup.
  • Glacier archive restore takes time.
  • Backup retention affects recurring storage spend.
  • Restore testing belongs in the backup plan.

📝 PRACTICE QUESTION
A company must keep monthly backups for seven years at low storage cost. Retrieval can take several hours. What should it evaluate?
A. AWS Backup with long-term archive options and appropriate vault retention
B. Keep every backup on high-performance EBS
C. Use CloudFront caching
D. Disable backups after one month

Answer: A. AWS Backup can centralize supported retention and archive policies. B is costly. C is a CDN. D violates retention needs.

🔁 ONE-LINE RECAP
Use AWS Backup for governed recovery points and Glacier for rarely accessed long-term archives.


168. AWS cost tools: Cost Explorer, Budgets, CUR, and tags (Domain 4.1)

🧒 LIKE I'M 5
A household needs a spending chart, an alarm when money runs low, and a detailed passbook. AWS has different tools for each cost question.

📖 EXPLAINED SIMPLY

  • Cost Explorer visualizes historical AWS spend, identifies trends, groups costs, and forecasts future usage.
  • AWS Budgets creates cost or usage thresholds and alerts when actual or forecast spend crosses them.
  • The Cost and Usage Report (CUR) provides detailed billing and usage records for deeper analysis.
  • Cost allocation tags label resources so costs can be grouped by team, project, product, or environment.
  • Activate user-defined cost allocation tags before relying on them in billing reports.
  • Cost categories group costs using business rules, such as mapping accounts to departments.
  • Organizations and consolidated billing provide a combined view of linked account spending.
  • Use Budgets for alerts, Cost Explorer for visual analysis, and CUR for detailed custom reporting.
  • Cost tools help visibility and control. They do not automatically redesign an expensive architecture.
  • Review costs regularly and assign owners for major cost groups.

📚 JARGON BOX

  • Cost Explorer → Visual cost and usage analysis.
  • Budget → Threshold and alert for spend or usage.
  • CUR → Detailed Cost and Usage Report.
  • Cost allocation tag → Label used to group costs.
  • Cost category → Rule-based business grouping.
  • Forecast → Estimate of future cost from usage patterns.

⚖️ COMPARE WITH LOOKALIKES

ToolBest question
Cost ExplorerWhere is spending going?
BudgetsAlert me when spend crosses a threshold
CURGive me detailed line-item data
TagsWhich team or project owns this cost?
Cost categoriesGroup spend by business rules

🎯 EXAM LENS

  • "Analyze and forecast monthly spend" → Cost Explorer.
  • "Alert at 80% of budget" → AWS Budgets.
  • "Most detailed billing data" → CUR.
  • "Allocate cost by project" → Cost allocation tags.
  • "Group accounts by department" → Cost categories and Organizations.

🪤 TRAPS

  • Cost Explorer is not the most detailed raw billing report.
  • Tags must be activated for cost allocation.
  • Budgets alert; they do not necessarily stop resources.
  • Cost visibility needs ownership and tagging discipline.

📝 PRACTICE QUESTION
Finance needs detailed line-item AWS usage data for a custom monthly chargeback report. Which tool should it use?
A. Cost and Usage Report B. CloudWatch dashboard C. Route 53 health check D. S3 Lifecycle

Answer: A. CUR provides detailed billing and usage records. CloudWatch monitors operations. Route 53 handles DNS health. Lifecycle manages objects.

🔁 ONE-LINE RECAP
Use Cost Explorer to analyze, Budgets to alert, CUR for detail, and tags/categories to allocate spend.


169. Allocating cloud costs across accounts and teams (Domain 4.1)

🧒 LIKE I'M 5
A family pays one bill but wants to know which room used the most electricity. Cost allocation connects the bill to the teams and workloads that caused it.

📖 EXPLAINED SIMPLY

  • Consolidated billing combines charges for accounts in an AWS Organization under a management account.
  • Linked accounts remain separate, but eligible pricing benefits and usage aggregation can apply under AWS rules.
  • Use separate accounts for production, development, security, and shared services when isolation is useful.
  • Add cost allocation tags such as Project, Environment, Owner, and CostCenter.
  • Activate tags in billing settings so they appear in cost reports.
  • Use cost categories to map accounts, tags, or services into business groups.
  • Shared services need an allocation method. NAT, Transit Gateway, logging, and support may serve many teams.
  • Choose a transparent rule, such as splitting by traffic, usage, or a documented fixed percentage.
  • Set budgets at account, service, or tag level so the right owner receives alerts.
  • Keep a small required tag set. Too many tags are hard to maintain.

📚 JARGON BOX

  • Consolidated billing → One billing view for linked accounts.
  • Management account → Account managing an AWS Organization.
  • Linked account → Member account in the organization.
  • Chargeback → Assign actual cost to the team.
  • Showback → Report cost without internal billing.
  • Shared-service cost → Spend benefiting multiple workloads.
  • Cost allocation → Assign spend to owners or groups.

⚖️ COMPARE WITH LOOKALIKES

MechanismWhat it provides
Separate accountsIsolation and account-level visibility
Cost allocation tagsResource-level owner labels
Cost categoriesBusiness grouping rules
ShowbackVisibility to teams
ChargebackInternal cost assignment

🎯 EXAM LENS

  • "One consolidated bill for many accounts" → Organizations.
  • "Break cost down by project" → Activated cost allocation tags.
  • "Shared network cost among teams" → Documented allocation rule.
  • "Department-level cost grouping" → Cost categories.

🪤 TRAPS

  • Consolidated billing does not merge accounts or resources.
  • Tags help only when applied consistently and activated.
  • Shared-service costs need allocation rules.
  • Cost allocation is a governance process, not just a billing feature.

📝 PRACTICE QUESTION
A company wants to assign development and production costs to different teams in one consolidated billing view. What should it combine?
A. Organizations, cost allocation tags, and cost categories
B. One shared root user
C. CloudFront and Route 53
D. EBS snapshots only

Answer: A. Organizations consolidates billing, tags identify resources, and cost categories group business spend. The other options do not allocate costs.

🔁 ONE-LINE RECAP
Use accounts, activated tags, categories, and shared-cost rules to make AWS spending accountable.

✅ Batch 9 — topics 161–169

Batch 9 review sheet

  • Frequently accessed S3 objects → Standard.
  • Unknown or changing S3 access → Intelligent-Tiering.
  • Single-AZ recreatable archive → One Zone-IA.
  • Millisecond archive retrieval → Glacier Instant Retrieval.
  • Minutes-to-hours archive retrieval → Glacier Flexible Retrieval.
  • Lowest-cost long-term archive → Glacier Deep Archive.
  • Move or delete objects as they age → S3 Lifecycle.
  • General-purpose EBS cost optimization → gp3.
  • High IOPS storage → io2.
  • Large sequential HDD workload → st1.
  • External users should pay eligible S3 access costs → Requester Pays.
  • Recurring storage migration → DataSync.
  • Offline large-scale transfer → Snow Family.
  • Central backups and retention → AWS Backup.
  • Visual cost trends and forecasts → Cost Explorer.
  • Alert on cost thresholds → Budgets.
  • Detailed billing usage records → CUR.
  • Assign spend to teams → Activated tags and cost categories.

4.2 Cost-optimized compute

Topics to cover, in this order:

  1. Purchasing options: On-Demand, Reserved Instances, Savings Plans, Spot, Dedicated Hosts / Instances
  2. Right-sizing and Compute Optimizer
  3. Lambda vs Fargate vs EC2 cost trade-offs
  4. Load balancer choice for cost (ALB vs NLB vs GWLB)
  5. Horizontal vs vertical scaling; Auto Scaling to avoid idle servers; hibernation
  6. Hybrid and edge (Outposts)

170. EC2 purchasing options: On-Demand, Reserved, and Savings Plans (Domain 4.2)

🧒 LIKE I'M 5
You can rent a taxi for one trip, reserve one for a year, or buy a travel pass for regular journeys. EC2 has similar ways to pay for compute.

📖 EXPLAINED SIMPLY

  • On-Demand charges for compute as you use it. There is no long-term commitment.
  • Use On-Demand for short projects, uncertain usage, development, or workloads that may change.
  • Reserved Instances (RIs) provide discounted pricing in exchange for a one- or three-year commitment to eligible usage.
  • Savings Plans provide discounted compute usage in exchange for a one- or three-year commitment measured in dollars per hour.
  • Compute Savings Plans are more flexible. They apply across eligible EC2 usage regardless of family, size, Region, OS, and tenancy, and can also apply to Fargate and Lambda.
  • EC2 Instance Savings Plans are less flexible. They apply to an instance family in a selected Region.
  • RIs can offer configuration-specific pricing. Regional RIs may have size flexibility within a family; zonal RIs can reserve capacity in an AZ.
  • Savings Plans do not reserve capacity. Use On-Demand Capacity Reservations when guaranteed capacity is required.
  • Commit only after reviewing stable historical usage. Unused commitments still cost money.
  • Use On-Demand for flexibility, Savings Plans for steady compute spend with flexibility, and RIs when the matching reservation model fits.

📚 JARGON BOX

  • On-Demand → Pay for usage without a long commitment.
  • RI → Reserved Instance.
  • Savings Plan → Commitment to a steady hourly compute spend.
  • Commitment → Agreed usage level for the term.
  • Capacity reservation → Keep compute capacity available in a specific AZ.

⚖️ COMPARE WITH LOOKALIKES

OptionCommitmentFlexibilityBest use
On-DemandNoneHighestUncertain or short-term
Compute Savings Plan$/hour for 1 or 3 yearsHighStable compute spend
EC2 Instance Savings Plan$/hour plus family and RegionMediumStable EC2 family
Reserved InstanceInstance configuration or usageDepends on typePredictable matching EC2 usage

🎯 EXAM LENS

  • "No commitment, variable workload" → On-Demand.
  • "Steady compute use across EC2, Fargate, Lambda" → Compute Savings Plan.
  • "Stay in one EC2 family and Region" → EC2 Instance Savings Plan.
  • "Need guaranteed AZ capacity" → Capacity Reservation; a Savings Plan alone does not reserve capacity.

🪤 TRAPS

  • Savings Plans are commitments, not free discounts.
  • Savings Plans do not guarantee capacity.
  • RIs and Savings Plans are pricing models; Capacity Reservations solve capacity availability.
  • Buying more commitment than steady usage wastes money.

📝 PRACTICE QUESTION
A company has steady compute usage but may change EC2 families and move workloads between Regions. It wants a discount without locking to one instance family. What fits best?
A. Compute Savings Plan
B. One fixed-size zonal reservation only
C. Spot Instances only
D. Dedicated Host

Answer: A. Compute Savings Plans provide broad flexibility across eligible EC2 use and supported Fargate/Lambda use. The other options are more restrictive or serve different needs.

🔁 ONE-LINE RECAP
Use On-Demand for flexibility and Savings Plans or Reserved Instances for measured, predictable usage.


171. Spot Instances and interruption-tolerant workloads (Domain 4.2)

🧒 LIKE I'M 5
A train offers cheaper seats when they are unused, but may ask passengers to leave when demand rises. Spot uses spare EC2 capacity at a discount, but AWS can interrupt it.

📖 EXPLAINED SIMPLY

  • Spot Instances use spare EC2 capacity. They can cost much less than On-Demand.
  • AWS can reclaim Spot capacity when it needs it. An interruption notice is typically provided before termination or stop.
  • Use Spot for fault-tolerant, flexible jobs such as batch processing, stateless workers, big-data tasks, and CI workloads.
  • Avoid Spot for a single critical database or a workload that cannot recover from interruption.
  • Use EC2 Auto Scaling mixed instances policies to combine Spot and On-Demand capacity.
  • Spread requests across instance types and AZs to improve the chance of capacity availability.
  • Use Spot allocation strategies such as price-capacity-optimized when appropriate.
  • Save progress frequently. Use queues and checkpoints so interrupted work can resume.
  • Spot prices vary by capacity and demand. Do not design around one fixed discount percentage.
  • Spot capacity is not guaranteed. Maintain enough On-Demand baseline capacity for critical service needs.

📚 JARGON BOX

  • Spot → Spare EC2 capacity offered at lower prices.
  • Interruption → AWS reclaims a Spot instance.
  • Checkpoint → Saved progress that allows work to resume.
  • Mixed instances policy → Use multiple instance types and purchasing options.
  • Fault tolerant → Workload can continue despite failures.

⚖️ COMPARE WITH LOOKALIKES

OptionCostInterruption riskBest use
On-DemandStandardNo Spot reclaimFlexible or critical
Savings PlansDiscounted commitmentNo Spot reclaimStable compute
SpotOften lowestCan be interruptedFlexible batch workers
Dedicated HostHigher, host-level modelNot Spot reclaimLicensing/isolation

🎯 EXAM LENS

  • "Lowest cost for flexible batch work" → Spot.
  • "Can be interrupted and retried" → Spot.
  • "Critical baseline must remain" → On-Demand plus Spot.
  • "Save progress before interruption" → Checkpointing and queue-based design.

🪤 TRAPS

  • Spot is not guaranteed capacity.
  • A fixed Spot price assumption is unsafe.
  • Do not run a single irreplaceable stateful server on Spot.
  • Spot savings require interruption handling.

📝 PRACTICE QUESTION
A rendering farm runs independent jobs. Jobs can restart from checkpoints and may be delayed. Which purchasing option is most cost-effective?
A. Spot Instances
B. Dedicated Hosts only
C. On-Demand only
D. Reserved capacity for every peak

Answer: A. Spot suits interruptible, restartable jobs. The other choices are more expensive or over-commit capacity for flexible work.

🔁 ONE-LINE RECAP
Use Spot for flexible, checkpointed jobs that can tolerate interruption.


172. Dedicated Hosts, Dedicated Instances, and Capacity Reservations (Domain 4.2)

🧒 LIKE I'M 5
A company can rent a private building, use a private room in a shared hotel, or reserve a room for a date. AWS has similar options for hardware isolation and capacity.

📖 EXPLAINED SIMPLY

  • Dedicated Host gives you an entire physical server. You control instance placement on that host and can see sockets and cores.
  • Dedicated Hosts can help with software licensing tied to physical cores, sockets, or host placement.
  • Dedicated Instances run on single-tenant hardware dedicated to one customer, but you do not control the physical host in the same way.
  • On-Demand Capacity Reservation reserves EC2 capacity in a specific AZ for matching instances.
  • A Capacity Reservation helps guarantee capacity, but it is not itself a discount. You pay for reserved capacity whether or not you use it.
  • Dedicated Hosts can be more expensive. Use them only when licensing, compliance, or placement requirements justify the cost.
  • Dedicated Instances can meet hardware isolation requirements without host-level control.
  • Capacity Reservations are useful when a workload must launch in a particular AZ during demand spikes or recovery.
  • Savings Plans or eligible RIs may apply to matching usage, while a Capacity Reservation handles capacity availability.
  • Compare licensing savings with host cost and utilization. An underused dedicated host can be expensive.

📚 JARGON BOX

  • Dedicated Host → Entire physical server assigned to one customer.
  • Dedicated Instance → Instance on single-tenant hardware.
  • Single-tenant → Hardware dedicated to one customer.
  • Socket/core license → Software license measured by processor hardware.
  • Capacity Reservation → Reserved EC2 capacity in a specific AZ.

⚖️ COMPARE WITH LOOKALIKES

OptionHardware isolationHost controlMain purpose
Shared tenancyShared hardwareNoNormal default
Dedicated InstanceSingle tenantLimitedIsolation
Dedicated HostSingle tenantYesHost-based licensing and placement
Capacity ReservationReserves capacityNo dedicated host requirementLaunch assurance in an AZ

🎯 EXAM LENS

  • "License tied to physical sockets or cores" → Dedicated Host.
  • "Single-tenant hardware without host management" → Dedicated Instances.
  • "Need capacity available in a specific AZ" → Capacity Reservation.
  • "Discount commitment, not capacity" → Savings Plans.

🪤 TRAPS

  • Dedicated Host is not the same as a Capacity Reservation.
  • Dedicated Instances do not give the same host-level visibility.
  • Capacity Reservations can cost money even while unused.
  • Dedicated hardware may be wasteful without licensing or compliance reasons.

📝 PRACTICE QUESTION
A company has a database license charged per physical CPU socket. It needs visibility into the underlying host and instance placement. Which option should it choose?
A. Dedicated Host
B. Spot Instance
C. S3 One Zone-IA
D. Savings Plan only

Answer: A. Dedicated Hosts expose physical host information for licensing and placement. Spot is interruptible. S3 is storage. A Savings Plan only changes pricing.

🔁 ONE-LINE RECAP
Use Dedicated Hosts for host-level licensing/control, Dedicated Instances for isolation, and Capacity Reservations for AZ capacity assurance.


173. Right-sizing EC2 and using Compute Optimizer (Domain 4.2)

🧒 LIKE I'M 5
Buying a bus for two passengers wastes money. Right-sizing means choosing a server that is big enough for demand without paying for unused capacity.

📖 EXPLAINED SIMPLY

  • Right-sizing matches instance type and size to the real workload.
  • Over-provisioned instances have more CPU, memory, network, or storage performance than needed.
  • Under-provisioned instances can cause latency, errors, and poor performance.
  • Use CloudWatch metrics to review average and peak CPU, memory, network, and disk behavior.
  • EC2 CPU metrics are available by default. OS-level memory and file-system metrics need the CloudWatch Agent or another collection method.
  • AWS Compute Optimizer analyzes supported resource specifications and utilization data to recommend instance or configuration changes.
  • Recommendations are based on historical usage, not a guarantee of future demand. Check seasonal peaks and business events.
  • Test a smaller instance in a safe environment. Validate application latency, throughput, and failure rates.
  • Review family generation and architecture. Newer or different families may provide better price-performance, but test compatibility.
  • Right-size regularly after traffic changes and software optimization.
  • Do not downsize only because average CPU is low. Check memory, network, disk, and p95/p99 response times too.

📚 JARGON BOX

  • Right-sizing → Matching resource size to demand.
  • Over-provisioned → More capacity than needed.
  • Under-provisioned → Not enough capacity.
  • Utilization → How much of a resource is used.
  • Headroom → Spare capacity for spikes.
  • Recommendation → Suggested configuration from usage analysis.

⚖️ COMPARE WITH LOOKALIKES

ActionCost impactRisk
Downsize over-provisionedLowerMust keep enough headroom
Upsize under-provisionedHigherImproves performance
Newer familyMay improve price-performanceCompatibility checks
Auto ScalingMatches variable demandRequires scaling behavior

🎯 EXAM LENS

  • "CPU and memory mostly unused" → Right-size.
  • "Recommendations based on utilization" → Compute Optimizer.
  • "Do not break peak workload" → Review percentiles and headroom.
  • "Traffic changes often" → Combine right-sizing with Auto Scaling.

🪤 TRAPS

  • Low CPU alone does not prove over-provisioning.
  • Compute Optimizer needs enough supported metrics and resource history.
  • Recommendations are guidance; validate before applying.
  • Right-sizing is not the same as scaling horizontally.

📝 PRACTICE QUESTION
An EC2 fleet averages 8% CPU but has high network throughput during peak hours. The company wants to reduce cost without harming users. What should it do?
A. Review CPU, network, memory, and peak utilization with Compute Optimizer before changing sizes
B. Immediately use the smallest instance type
C. Turn off monitoring
D. Move all data to Glacier

Answer: A. Right-sizing must consider all important resources and peak demand. B risks under-provisioning. C removes evidence. D does not reduce EC2 compute needs.

🔁 ONE-LINE RECAP
Right-size from measured CPU, memory, network, and storage usage while preserving peak headroom.


174. Lambda, Fargate, and EC2 cost trade-offs (Domain 4.2)

🧒 LIKE I'M 5
A shop can pay per delivery, rent a team for the day, or own the whole building. Lambda, Fargate, and EC2 have different billing and management models.

📖 EXPLAINED SIMPLY

  • Lambda charges mainly for requests and execution duration with configured memory. It suits short event-driven tasks.
  • Lambda has no EC2 server to keep running, so idle time can be inexpensive. Long or constantly busy functions may cost more than a well-utilized container or instance.
  • Fargate charges for requested task or pod CPU and memory while the compute runs. It removes worker-node management.
  • Fargate suits containers with variable demand or teams that want less server administration.
  • EC2 charges for instance capacity while running, with purchasing choices such as On-Demand, Savings Plans, Reserved Instances, and Spot.
  • EC2 can be cost-effective for steady high utilization, specialized hardware, and workloads that can use commitments.
  • Consider operational labor too. A lower infrastructure bill may require more patching, scaling, and incident work.
  • Compare actual duty cycle, startup time, memory/CPU needs, networking, storage, and commitment discounts.
  • Use Lambda for short event tasks, Fargate for managed container compute, and EC2 for persistent or highly tuned workloads.
  • Benchmark with realistic traffic rather than comparing list prices alone.

📚 JARGON BOX

  • Duty cycle → Percentage of time a workload is active.
  • Execution duration → Time a function runs.
  • Requested CPU/memory → Capacity reserved for a container task.
  • Utilization → Share of provisioned capacity actually used.
  • Operational overhead → People and effort required to run infrastructure.

⚖️ COMPARE WITH LOOKALIKES

OptionBilling patternBest use
LambdaRequests and durationBursty short tasks
FargateTask CPU/memory while runningContainers without host management
EC2Instance while runningPersistent or tuned capacity

🎯 EXAM LENS

  • "Short, unpredictable events" → Lambda.
  • "Long-running container without server management" → Fargate.
  • "Steady high utilization and host control" → EC2.
  • "Many idle hours" → Serverless or scale-to-zero pattern may reduce cost.

🪤 TRAPS

  • Serverless is not always cheapest at high constant utilization.
  • Fargate charges for provisioned task resources, not just CPU used.
  • EC2 has operational costs beyond instance price.
  • Lambda's maximum invocation duration is 15 minutes.

📝 PRACTICE QUESTION
A small service runs short jobs only a few times per hour. The team wants no idle server charges or host maintenance. Which option is most suitable?
A. Lambda
B. One large EC2 instance running all day
C. Dedicated Host
D. An oversized Fargate service running continuously

Answer: A. Lambda suits short, intermittent events and removes server management. The other options keep capacity running or add dedicated infrastructure.

🔁 ONE-LINE RECAP
Compare duty cycle and operations: Lambda for short bursts, Fargate for containers, and EC2 for steady or specialized compute.


175. Load balancer selection and cost (Domain 4.2)

🧒 LIKE I'M 5
A bus, train, and security checkpoint all move people, but they are built for different jobs. Choose the load balancer that meets the protocol need without paying for features you do not use.

📖 EXPLAINED SIMPLY

  • ALB handles HTTP and HTTPS at Layer 7. It supports host/path routing, redirects, authentication integrations, and web-focused features.
  • NLB handles TCP, UDP, and TLS at Layer 4. It is designed for high performance and static IP needs.
  • GWLB distributes traffic through virtual network appliances such as firewalls.
  • Pricing differs by load balancer type and includes capacity or usage dimensions. Check the current regional price model before estimating.
  • Do not choose ALB solely because it is familiar if the application needs only a TCP endpoint.
  • Do not choose NLB for path-based HTTP routing that requires ALB features.
  • GWLB adds appliance fleet and endpoint costs. Use it only when inspection through virtual appliances is needed.
  • A load balancer can reduce the need for custom routing code, but it does not replace backend scaling.
  • Compare load balancer cost with target traffic, feature needs, cross-zone behavior, and availability requirements.

📚 JARGON BOX

  • Layer 7 → Application-layer routing such as HTTP.
  • Layer 4 → TCP/UDP transport traffic.
  • Load balancer capacity → Measured traffic/processing capacity for billing.
  • Appliance → Specialized security or network software.
  • Static IP → Address that remains fixed.

⚖️ COMPARE WITH LOOKALIKES

TypeTypical fitCost consideration
ALBWeb and API routingPay for HTTP features and usage
NLBTCP/UDP and static IPPay for network capacity/usage
GWLBSecurity appliance fleetsEndpoint, processing, and appliance costs

🎯 EXAM LENS

  • "HTTP path routing is required" → ALB even if another type might appear cheaper.
  • "Static IP and TCP" → NLB.
  • "Virtual firewall inspection" → GWLB.
  • "Select cheapest fit" → Do not pay for application features you do not need.

🪤 TRAPS

  • The lowest hourly price does not mean lowest total cost.
  • GWLB includes appliance costs too.
  • NLB is not a substitute for ALB content routing.
  • Health checks and multi-AZ requirements still matter.

📝 PRACTICE QUESTION
A private TCP service needs a fixed IP and does not need HTTP path routing. Which load balancer should it evaluate first?
A. NLB
B. ALB
C. GWLB
D. CloudFront

Answer: A. NLB supports TCP and static IPs. ALB targets HTTP. GWLB is for appliances. CloudFront is a content delivery service.

🔁 ONE-LINE RECAP
Choose ALB for HTTP features, NLB for Layer 4 endpoints, and GWLB only for appliance inspection.


176. Auto Scaling to reduce idle compute and horizontal scaling costs (Domain 4.2)

🧒 LIKE I'M 5
A shop hires more helpers during Diwali rush and sends extra helpers home when the crowd leaves. Auto Scaling reduces the cost of unused servers.

📖 EXPLAINED SIMPLY

  • Horizontal scaling adds or removes instances or tasks. It matches variable demand without keeping a large server running all day.
  • Vertical scaling changes the size of one instance. It can be simpler but may require a restart and has an upper limit.
  • Use EC2 Auto Scaling groups with minimum, desired, and maximum capacity.
  • Target tracking can maintain a metric such as CPU or requests per target.
  • Scheduled scaling suits predictable business hours. Predictive scaling can prepare capacity for recurring demand.
  • Set minimum capacity for baseline availability. Do not scale to zero if the app needs warm capacity.
  • Use health checks and multiple AZs so scale-in does not remove critical redundancy.
  • Queue depth can be a useful scaling metric for background consumers.
  • Scale-in protection, lifecycle hooks, and connection draining can reduce disruption during removal.
  • Do not over-scale on noisy metrics. Set warmup and cooldown behavior appropriate to startup time.
  • A smaller idle baseline plus fast scale-out often costs less than a permanently oversized fleet.

📚 JARGON BOX

  • Horizontal scaling → Add or remove servers.
  • Vertical scaling → Make one server bigger or smaller.
  • Scale-in → Remove capacity.
  • Scale-out → Add capacity.
  • Desired capacity → Target number of running instances.
  • Warmup → Time for new capacity to become ready.
  • Scale-in protection → Prevent an instance from being removed by scaling.

⚖️ COMPARE WITH LOOKALIKES

ApproachCost behaviorBest use
Oversized fixed fleetHigh idle costStable constant demand
Target trackingAdapts to live demandVariable demand
ScheduledScales at set timesPredictable schedule
PredictivePrepares for expected demandRepeating patterns
Vertical scalingChanges single instance sizeHard-to-distribute workloads

🎯 EXAM LENS

  • "Avoid paying for idle instances" → Auto Scaling.
  • "Known daily spike" → Scheduled scaling.
  • "Metric target such as CPU 50%" → Target tracking.
  • "Background queue backlog" → Scale consumers from queue depth.

🪤 TRAPS

  • Too-low minimum capacity can harm availability.
  • Scale-in can interrupt in-flight work if draining is missing.
  • Auto Scaling does not automatically optimize application queries.
  • Vertical scaling is not always downtime-free.

📝 PRACTICE QUESTION
A retail site has predictable traffic peaks and very low overnight traffic. It wants capacity before the peak but fewer idle servers overnight. Which design fits?
A. Scheduled scaling with a safe minimum and maximum
B. One oversized EC2 instance
C. Disable Auto Scaling
D. Dedicated Host for every application process

Answer: A. Scheduled scaling prepares capacity for predictable demand and reduces idle capacity later. The other choices leave resources oversized or remove flexibility.

🔁 ONE-LINE RECAP
Use Auto Scaling to match running capacity to demand while protecting the minimum needed for availability.


177. EC2 hibernation and cost trade-offs (Domain 4.2)

🧒 LIKE I'M 5
A laptop goes to sleep and remembers open work. EC2 hibernation saves RAM contents to an encrypted EBS root volume so processes can resume later.

📖 EXPLAINED SIMPLY

  • Hibernation suspends an EC2 instance and saves its RAM contents to the EBS root volume.
  • When restarted, the operating system reloads the saved memory and resumes processes.
  • The instance is stopped after hibernation. Compute charges stop while it is stopped, but EBS storage and related resources still cost money.
  • The root volume must be EBS-backed, encrypted, and large enough to store the memory contents.
  • Hibernation must be enabled at launch. You cannot enable it on an already launched instance.
  • Supported instance families, Regions, OS types, and memory sizes are limited. Check eligibility.
  • Instance store data is lost when the instance is hibernated.
  • Use hibernation for workloads needing to pause for hours and resume quickly with state preserved.
  • Use normal stop/start when the application can restart from disk or a checkpoint.
  • Hibernation is not a replacement for backups or high availability.

📚 JARGON BOX

  • Hibernate → Save memory state and stop the instance.
  • RAM → Temporary working memory.
  • Root volume → Main boot disk.
  • EBS → Persistent block storage.
  • Suspend-to-disk → Save memory to storage before shutdown.
  • Eligibility → Supported instance, OS, Region, and configuration requirements.

⚖️ COMPARE WITH LOOKALIKES

ActionMemory stateCompute cost while stopped
StopLostNo instance compute charge
HibernateSaved to EBSNo compute charge after stopped
RebootUsually preserved during restart processInstance remains running/billed
TerminateInstance removedNo instance compute charge; storage depends on settings

🎯 EXAM LENS

  • "Resume processes from prior RAM state" → Hibernation.
  • "Stop compute billing but preserve memory" → Hibernation, with EBS storage cost.
  • "Need quick restart but state can be rebuilt" → Normal stop/start may be enough.
  • "Instance store data must persist" → Hibernation will not preserve it.

🪤 TRAPS

  • Hibernation requires supported configuration and an encrypted EBS root volume.
  • RAM snapshot consumes EBS storage.
  • Instance-store contents are lost.
  • You cannot enable hibernation after launch.

📝 PRACTICE QUESTION
A worker instance is idle overnight but must resume long-running processes from memory in the morning. It uses an eligible encrypted EBS root volume. What should it use?
A. EC2 hibernation
B. Termination
C. Instance store only
D. S3 Lifecycle

Answer: A. Hibernation preserves memory to EBS for resume. Termination removes the instance. Instance store is not persistent. Lifecycle manages S3 objects.

🔁 ONE-LINE RECAP
Use hibernation when memory state must resume later, while accounting for EBS storage and eligibility limits.


178. AWS Outposts and edge infrastructure cost (Domain 4.2)

🧒 LIKE I'M 5
A company can rent cloud computers in AWS or install AWS equipment inside its own building. Outposts brings selected AWS infrastructure on-site, but the convenience has a cost.

📖 EXPLAINED SIMPLY

  • AWS Outposts provides AWS-managed infrastructure installed at a customer location.
  • It lets supported AWS services run locally for low latency, local data processing, or data residency needs.
  • The customer must provide suitable space, power, cooling, and network connectivity.
  • Outposts involves commitment and infrastructure costs. It is not usually the cheapest way to run ordinary cloud workloads.
  • Compare local requirements with a Regional AWS deployment, Direct Connect, and edge alternatives.
  • Use Outposts when local processing or data residency is worth the additional cost and operational planning.
  • Keep capacity planning in mind because local Outposts capacity is finite.
  • Some services and features are not available on Outposts. Check service support before selecting it.
  • A hybrid topology may still need network connectivity to a parent Region.
  • Consider support, equipment refresh, capacity utilization, and local facilities in total cost.

📚 JARGON BOX

  • Outposts → AWS infrastructure installed at a customer site.
  • Edge → Compute close to users or devices.
  • Data residency → Requirement to keep data in a location.
  • Capacity planning → Ensure local resources can handle workload growth.
  • Parent Region → AWS Region associated with an Outposts deployment.

⚖️ COMPARE WITH LOOKALIKES

OptionLocationCost driver
Regional AWSAWS RegionUsage-based cloud resources
OutpostsCustomer siteHardware/service commitment and utilization
WavelengthTelecom networkEdge workload and service usage
Local ZoneMetro area near a RegionSelected local compute resources

🎯 EXAM LENS

  • "Low latency to on-premises equipment" → Outposts.
  • "Keep workloads at customer site" → Outposts.
  • "Mobile 5G edge" → Wavelength.
  • "Ordinary cloud deployment with no locality requirement" → Regional AWS often simpler.

🪤 TRAPS

  • Outposts is not automatically cheaper than a Region.
  • Customer site must meet facility requirements.
  • Service availability differs from a full Region.
  • Outposts still needs connectivity to AWS Regional services.

📝 PRACTICE QUESTION
A factory must run selected AWS workloads on-site due to very low latency and local data processing needs. Which option should it evaluate?
A. AWS Outposts
B. S3 Glacier Deep Archive
C. CloudFront Functions
D. Route 53 geolocation

Answer: A. Outposts brings AWS infrastructure to the customer's facility. The other choices do not provide local compute infrastructure.

🔁 ONE-LINE RECAP
Use Outposts when local AWS infrastructure is required and its facility, capacity, and commitment costs are justified.


179. Avoiding idle capacity and choosing a cost-aware deployment design (Domain 4.2)

🧒 LIKE I'M 5
A shop should not keep twenty workers when only two customers are present. A cost-aware design keeps enough capacity for safety and scales the rest with demand.

📖 EXPLAINED SIMPLY

  • Start with a baseline demand estimate and required availability.
  • Use the smallest safe baseline capacity, then scale out as demand rises.
  • Use multiple AZs if uptime requires surviving an AZ failure. Do not remove required redundancy just to save money.
  • Use Spot for interruptible workers and On-Demand or commitments for critical baseline capacity.
  • Use scheduled scaling when demand follows a known timetable.
  • Stop or hibernate development and test instances outside working hours when appropriate.
  • Use container scale-to-zero patterns or Lambda for intermittent tasks when the service fits.
  • Apply lifecycle policies to clean up orphaned volumes, snapshots, logs, and temporary resources.
  • Measure cost per transaction, request, or workload rather than just monthly infrastructure totals.
  • Keep a limit on maximum capacity to avoid runaway scaling.
  • Cost optimization is a balance between performance, availability, security, and cost.

📚 JARGON BOX

  • Baseline capacity → Minimum capacity needed for normal operation.
  • Idle resource → Running resource doing little or no work.
  • Cost per transaction → Cost divided by completed business operations.
  • Scale-to-zero → Remove running compute when no work exists.
  • Orphaned resource → Resource left behind and no longer needed.

⚖️ COMPARE WITH LOOKALIKES

StrategySavings opportunityRisk to manage
Scheduled scalingRemove predictable idle capacityUnexpected traffic
Target trackingFollow demandMetric choice
Spot workersLower compute costInterruption
Scale to zeroNo idle computeStartup latency
Fixed oversized fleetSimple capacityHighest idle waste

🎯 EXAM LENS

  • "Dev environment idle at night" → Stop or schedule it.
  • "Background jobs tolerate interruption" → Spot.
  • "Very sporadic execution" → Lambda or scale-to-zero.
  • "Production must survive AZ failure" → Keep multi-AZ baseline.

🪤 TRAPS

  • Do not remove redundancy required by the SLA.
  • Scale-to-zero may introduce cold-start delay.
  • Spot is not appropriate for irreplaceable stateful work.
  • Cleanup should respect backup and retention policies.

📝 PRACTICE QUESTION
A development environment is used only during office hours. It has no requirement to run overnight. What is a simple cost-saving design?
A. Schedule instances to stop outside working hours
B. Keep them running at maximum size
C. Use Dedicated Hosts
D. Replicate all instances to another Region

Answer: A. Scheduling removes predictable idle compute. The other options increase cost without meeting a need.

🔁 ONE-LINE RECAP
Reduce idle spend with scheduling and right-sizing while preserving the baseline reliability the workload needs.


180. Cost optimization as a repeatable architecture decision (Domain 4.2)

🧒 LIKE I'M 5
Before buying a car, compare fuel, maintenance, seats, and how often you drive. AWS cost optimization also compares total cost rather than one price tag.

📖 EXPLAINED SIMPLY

  • Begin with business requirements: latency, availability, security, data location, traffic, and recovery targets.
  • Estimate total cost of ownership. Include compute, storage, requests, transfer, backups, observability, licenses, and operations.
  • Compare realistic usage patterns: average, peak, seasonality, and idle time.
  • Use pricing models that match demand. On-Demand provides flexibility; Savings Plans and RIs reward stable commitments; Spot suits interruption-tolerant tasks.
  • Use managed services when reduced operations effort offsets their price.
  • Use caches and CDNs when they reduce repeated database and origin work.
  • Use storage classes and lifecycle rules based on access patterns and retention.
  • Use Cost Explorer, Budgets, CUR, and tags to measure real spending.
  • Revisit architecture after usage changes. A cheaper design at launch may be expensive at scale.
  • Document trade-offs. The lowest direct infrastructure cost may harm reliability or increase engineering effort.
  • Optimize the cost per useful business result, not simply the bill.

📚 JARGON BOX

  • TCO → Total Cost of Ownership.
  • Utilization → How much provisioned capacity is used.
  • Trade-off → Benefit gained versus cost or risk accepted.
  • Unit economics → Cost per transaction, user, or workload.
  • Cost baseline → Reference spend for comparison.

⚖️ COMPARE WITH LOOKALIKES

QuestionMeasure
Is it fast enough?Latency and throughput
Is it reliable enough?Availability and recovery
Is it affordable?Total cost and unit cost
Is it secure?Access, data protection, controls
Is it operationally manageable?Maintenance and failure response

🎯 EXAM LENS

  • "Cheapest solution that meets all requirements" → Compare total cost and constraints.
  • "Stable usage over years" → Consider commitments.
  • "Unpredictable or interruptible" → On-Demand, Spot, or serverless based on workload.
  • "Reduce repeated data access" → Cache or CDN.
  • "Avoid over-provisioned resources" → Right-size and autoscale.

🪤 TRAPS

  • The lowest storage price may have high retrieval costs.
  • The cheapest compute choice may increase operations work.
  • Committed discounts can waste money if usage falls.
  • Removing redundancy may violate the availability requirement.

📝 PRACTICE QUESTION
A company wants to reduce AWS spend but must keep the same availability and latency targets. What should the architect do first?
A. Measure utilization and full cost drivers, then right-size and optimize usage patterns
B. Remove all standby resources
C. Turn off monitoring and backups
D. Pick the cheapest option for every service

Answer: A. Cost optimization begins with evidence and requirements. B and C can damage reliability. D ignores workload fit and hidden costs.

🔁 ONE-LINE RECAP
Optimize total cost against real workload requirements, not by choosing the lowest sticker price.

✅ Batch 9 — topics 161–180

Batch 9 review sheet

  • Frequently accessed S3 objects → Standard.
  • Unknown or changing S3 access → Intelligent-Tiering.
  • Single-AZ recreatable archive → One Zone-IA.
  • Millisecond archive retrieval → Glacier Instant Retrieval.
  • Minutes-to-hours archive retrieval → Glacier Flexible Retrieval.
  • Lowest-cost long-term archive → Glacier Deep Archive.
  • Move or delete objects as they age → S3 Lifecycle.
  • General-purpose EBS cost optimization → gp3.
  • High IOPS storage → io2.
  • Large sequential HDD workload → st1.
  • External users should pay eligible S3 access costs → Requester Pays.
  • Recurring storage migration → DataSync.
  • Offline large-scale transfer → Snow Family.
  • Central backups and retention → AWS Backup.
  • Visual cost trends and forecasts → Cost Explorer.
  • Alert on cost thresholds → Budgets.
  • Detailed billing usage records → CUR.
  • Assign spend to teams → Activated tags and cost categories.
  • Stable compute commitment → Savings Plans or Reserved Instances.
  • Interruptible batch compute → Spot.
  • Physical CPU/socket licensing → Dedicated Host.
  • Guaranteed AZ capacity → Capacity Reservation.
  • Identify over-provisioned EC2 → Compute Optimizer and utilization metrics.
  • Short sporadic compute → Lambda.
  • Containers without host management → Fargate.
  • Predictable idle periods → Scheduled scaling or stop/start.
  • Resume RAM state after stop → EC2 hibernation.
  • On-site AWS infrastructure → Outposts.
  • Cost per business result → Total-cost and unit-economics comparison.

4.3 Cost-optimized databases

Topics to cover, in this order:

  1. DynamoDB on-demand vs provisioned; RDS vs DynamoDB on cost
  2. Aurora Serverless and other serverless options
  3. Caching to reduce database cost
  4. Backup retention policies and snapshot costs
  5. Right data format: columnar (Redshift, Parquet), time series
  6. Migrating schemas and data cheaply (DMS, SCT)

181. DynamoDB on-demand vs provisioned capacity cost (Domain 4.3)

🧒 LIKE I'M 5
One shop pays for the groceries it uses. Another rents a fixed-size kitchen every day. DynamoDB offers pay-per-request and provisioned capacity models.

📖 EXPLAINED SIMPLY

  • On-demand capacity bills for read and write request units consumed. DynamoDB manages capacity automatically.
  • On-demand suits unpredictable, spiky, low-volume, or newly launched workloads where traffic is hard to forecast.
  • There is no need to pay for idle provisioned throughput. High sustained request volume may cost more than a well-sized provisioned table.
  • Provisioned capacity sets read capacity units (RCUs) and write capacity units (WCUs). You pay for the configured capacity over time, even if it is underused.
  • Provisioned mode can be combined with auto scaling, which adjusts capacity based on utilization within configured minimum and maximum values.
  • Stable and predictable workloads can often be more cost-effective with provisioned capacity.
  • Item size, read consistency, transactions, indexes, and global tables affect capacity consumption and cost.
  • Writes to secondary indexes consume additional write capacity. Keep only useful indexes.
  • Monitor consumed capacity, throttled requests, traffic shape, and peak-to-average ratio.
  • Use on-demand for uncertain demand; evaluate provisioned plus auto scaling for stable patterns.
  • Do not pick a mode only from today's bill. Consider future traffic, burst behavior, and throttling risk.

📚 JARGON BOX

  • RCU → Read Capacity Unit.
  • WCU → Write Capacity Unit.
  • On-demand → Pay for actual request units.
  • Provisioned → Pay for configured capacity.
  • Auto scaling → Adjust provisioned capacity based on utilization.
  • Throttle → Slow or reject requests that exceed available capacity.

⚖️ COMPARE WITH LOOKALIKES

ModeCost modelGood fit
On-demandPay per requestUnpredictable or spiky
ProvisionedPay for capacity per timeStable, known traffic
Provisioned + auto scalingCapacity changes within boundsPredictable but variable traffic

🎯 EXAM LENS

  • "Unpredictable workload, avoid capacity planning" → On-demand.
  • "Steady request rate and cost control" → Provisioned.
  • "Provisioned throughput adjusts with demand" → Auto scaling.
  • "Large idle periods" → On-demand may avoid paying for unused provisioned capacity.

🪤 TRAPS

  • Provisioned capacity costs money even when unused.
  • On-demand is not always cheapest for constant high traffic.
  • Auto scaling can lag sudden spikes and has limits.
  • Item size and indexes affect consumption.

📝 PRACTICE QUESTION
A new app has highly unpredictable traffic and often drops close to zero between bursts. The team wants to avoid estimating RCUs and WCUs. Which mode fits?
A. On-demand
B. Fixed provisioned capacity sized for peak
C. Dedicated Host
D. EBS gp3

Answer: A. On-demand charges for consumed requests and avoids paying for a large idle capacity setting. B can waste money. C and D are unrelated infrastructure choices.

🔁 ONE-LINE RECAP
Use on-demand for uncertain request patterns and provisioned capacity for predictable traffic that can be sized efficiently.


182. RDS vs DynamoDB: cost follows the workload (Domain 4.3)

🧒 LIKE I'M 5
A carpenter chooses a toolbox for detailed furniture work and a fast storage rack for simple item lookup. Relational and NoSQL databases charge for different resources and solve different data problems.

📖 EXPLAINED SIMPLY

  • RDS/Aurora is a relational database. Costs can include DB compute, storage, I/O, backups, data transfer, and licensing for some engines.
  • RDS is a good fit for SQL joins, relational constraints, and transactional workloads with known schemas.
  • RDS pricing is affected by instance size and running time. Reserved DB Instances can lower cost for stable usage.
  • DynamoDB is a managed key-value/document database. On-demand cost follows request volume; provisioned mode charges for configured throughput.
  • DynamoDB also has storage, backup, restore, stream, global table, and data-transfer costs depending on features used.
  • DynamoDB can be economical for very high-scale key-based access when the data model and access patterns fit.
  • RDS can be more cost-effective for relational queries that would otherwise need complex application-side joins or duplicated data.
  • Compare the total workload: reads, writes, item size, query complexity, consistency, backup needs, and operational effort.
  • Do not force a relational workload into DynamoDB just because it scales automatically.
  • Do not run a high-volume key-value workload on a large relational instance without evaluating its cost.

📚 JARGON BOX

  • Relational → Data in related tables with SQL.
  • Key-value → Retrieve a record by its key.
  • OLTP → Online Transaction Processing.
  • Instance hour → Time a database compute instance runs.
  • Request unit → DynamoDB capacity consumed by reads/writes.
  • Data model → How application data is structured and accessed.

⚖️ COMPARE WITH LOOKALIKES

DimensionRDS/AuroraDynamoDB
Data modelRelational tablesKey-value/document
Cost driverCompute, storage, I/O, licensingRequests, storage, optional features
Query styleSQL and joinsKey-based queries and indexes
Best fitRelational transactionsScalable predictable access patterns

🎯 EXAM LENS

  • "Complex joins and existing SQL schema" → RDS/Aurora.
  • "High-scale key lookups" → DynamoDB.
  • "Unpredictable request volume" → DynamoDB on-demand may fit.
  • "Stable relational usage" → Compare RDS reserved pricing and right-sizing.

🪤 TRAPS

  • DynamoDB is not automatically cheaper.
  • RDS costs include more than the instance price.
  • Global tables and indexes add cost.
  • Compare operational complexity and data-model changes, not only hourly rates.

📝 PRACTICE QUESTION
An app performs simple key lookups with unpredictable traffic and needs automatic scaling. It does not need joins. Which database should be evaluated first?
A. DynamoDB on-demand
B. Large RDS instance
C. Redshift
D. OpenSearch only

Answer: A. DynamoDB on-demand fits key-based access with unpredictable request volume. RDS may add relational overhead. Redshift is a warehouse. OpenSearch is search.

🔁 ONE-LINE RECAP
Choose RDS for relational SQL workloads and DynamoDB for suitable key-value/document access patterns; compare total cost, not labels.


183. Aurora Serverless and serverless database cost models (Domain 4.3)

🧒 LIKE I'M 5
A restaurant opens extra tables when customers arrive and reduces them when it gets quiet. Aurora Serverless adjusts database compute capacity as demand changes.

📖 EXPLAINED SIMPLY

  • Aurora Serverless v2 adjusts Aurora compute capacity in Aurora Capacity Units (ACUs).
  • It can reduce the need to provision for peak demand when workloads vary substantially.
  • Capacity has configured minimum and maximum settings. Higher minimum capacity provides more ready performance but costs more.
  • Some supported versions and configurations can auto-pause after inactivity. Check current engine and feature requirements before relying on zero-capacity behavior.
  • For steady high utilization, provisioned Aurora may cost less than a serverless capacity that remains high all the time.
  • DynamoDB on-demand is another serverless-style option for key-value/document workloads, billed by request usage.
  • Serverless database compute does not remove storage, backup, I/O, data transfer, and monitoring costs.
  • Use Aurora Serverless for variable relational SQL workloads. Use provisioned Aurora for stable demand when it is more economical.
  • Compare minimum capacity, scale-up behavior, pause requirements, database connections, and total usage.
  • RDS Proxy can help connection management when supported, but it is a separate cost component.

📚 JARGON BOX

  • ACU → Aurora Capacity Unit.
  • Serverless database → Database compute managed by the service.
  • Auto-pause → Suspend capacity after inactivity when supported.
  • Provisioned → Explicitly sized database compute.
  • Minimum capacity → Lowest capacity the service keeps ready.
  • Scale-up → Increase resources for higher demand.

⚖️ COMPARE WITH LOOKALIKES

OptionCost fit
Aurora Serverless v2Variable relational demand
Provisioned AuroraStable, predictable high usage
DynamoDB on-demandVariable key-value/document requests
RDS ProxyConnection pooling, not database compute scaling

🎯 EXAM LENS

  • "Aurora demand changes frequently" → Evaluate Aurora Serverless v2.
  • "Stable high utilization" → Compare provisioned Aurora.
  • "Cost follows each key-value request" → DynamoDB on-demand.
  • "Too many DB connections" → RDS Proxy, not serverless compute alone.

🪤 TRAPS

  • Serverless does not mean unlimited or free when idle.
  • Minimum capacity still costs money.
  • Auto-pause availability is configuration- and engine-dependent.
  • Serverless does not optimize slow SQL queries.

📝 PRACTICE QUESTION
A relational database has unpredictable demand and long quiet periods. The application is Aurora-compatible. Which option should the architect evaluate?
A. Aurora Serverless v2
B. One fixed oversized DB instance
C. EBS snapshots only
D. S3 Glacier

Answer: A. Aurora Serverless can adjust compute as demand changes. A fixed instance may be underused. Snapshots and Glacier are storage/recovery options, not live databases.

🔁 ONE-LINE RECAP
Use Aurora Serverless for variable relational demand and provisioned Aurora when steady capacity is more economical.


184. Caching to reduce database cost (Domain 4.3)

🧒 LIKE I'M 5
If customers ask for the same menu every minute, a waiter can keep a copy nearby instead of asking the kitchen every time. Caching reduces repeated database work.

📖 EXPLAINED SIMPLY

  • A cache stores frequently requested values in memory, reducing calls to the database.
  • Cache-aside checks the cache first. On a miss, the application reads the database and fills the cache.
  • Write-through updates the cache as the application writes to the database.
  • A TTL expires entries after a chosen time. Invalidation removes entries when the source changes.
  • ElastiCache can cache results for applications using RDS, Aurora, or other data sources.
  • DAX is specific to DynamoDB and can provide microsecond reads for workloads that accept eventual consistency.
  • Caching reduces database CPU, read I/O, and sometimes the need to scale a database instance or add read replicas.
  • The cache itself costs money. Size it based on working-set size, hit ratio, and data freshness requirements.
  • Cache only data with reuse. One-time queries may not benefit.
  • Never treat the cache as the only durable source for important business records.
  • Monitor hit ratio, evictions, latency, database load, and stale-data incidents.

📚 JARGON BOX

  • Cache hit → Requested value found in cache.
  • Cache miss → Value must be loaded from the source.
  • Hit ratio → Share of requests served from cache.
  • TTL → Time before a cached item expires.
  • Invalidation → Remove stale cached data.
  • Working set → Data frequently accessed by users.

⚖️ COMPARE WITH LOOKALIKES

OptionDatabase-cost benefitMain trade-off
ElastiCacheReduce repeated readsCache cluster or serverless cost
DAXCache DynamoDB readsEventual consistency
Read replicaOffload readsSeparate database capacity cost
Better query/indexReduce work per queryRequires query/schema changes

🎯 EXAM LENS

  • "Repeated same reads cause high DB cost" → Cache.
  • "DynamoDB microsecond cached reads" → DAX.
  • "Relational app needs shared in-memory cache" → ElastiCache.
  • "Freshness must be immediate" → Read from the primary or design strong invalidation.

🪤 TRAPS

  • A cache is not always cheaper than a read replica.
  • Stale data can cause correctness issues.
  • Cache misses still hit the database.
  • Poor key design or low hit ratio wastes cache spend.

📝 PRACTICE QUESTION
A product catalog receives millions of repeated reads for a small set of popular items. Database read capacity is expensive. What should the architect evaluate?
A. ElastiCache with a suitable cache-aside policy
B. Increase database storage only
C. Disable caching and add more writes
D. Move the database to Glacier

Answer: A. A cache can serve repeated hot reads and reduce database load. The other choices do not solve repeated read pressure.

🔁 ONE-LINE RECAP
Use caching when repeated reads justify the cache cost and freshness can be managed safely.


185. Database backup retention and snapshot cost (Domain 4.3)

🧒 LIKE I'M 5
Keeping every school notebook forever fills the cupboard. Keep enough copies to recover, but do not keep unnecessary copies without a reason.

📖 EXPLAINED SIMPLY

  • Database backups and snapshots protect against data loss, but storage and copy operations can cost money.
  • RDS automated backups support point-in-time recovery within the configured retention window.
  • Manual snapshots remain until deleted. Long-lived snapshots can continue to incur storage charges.
  • EBS and RDS snapshots are incremental in supported workflows, but retaining many snapshots still adds cost for changed blocks and metadata.
  • Set retention from recovery objectives, regulations, and business needs.
  • Delete old manual snapshots only after confirming that newer restore points and compliance copies exist.
  • Cross-Region and cross-account copies increase resilience but add storage and data transfer costs.
  • Use AWS Backup to centralize retention and lifecycle policies across supported services.
  • Test restore processes. A backup is useful only if the database can be recovered and the application can reconnect.
  • Distinguish backups from replicas. Replicas keep data available but may replicate accidental deletes or corrupt writes.
  • Avoid both extremes: excessive retention increases cost, while too-short retention increases recovery risk.

📚 JARGON BOX

  • Automated backup → Scheduled database recovery copy.
  • Manual snapshot → User-created recovery point retained until deleted.
  • PITR → Point-in-time recovery.
  • Retention window → Time backup history is kept.
  • Incremental snapshot → Stores changed data blocks.
  • Restore test → Verify backup can recreate a usable database.

⚖️ COMPARE WITH LOOKALIKES

OptionPurposeCost consideration
Automated backupsRecovery within retention windowBackup storage and configured limits
Manual snapshotsLong-term restore pointsRetained until deleted
Read replicaRead scalingOngoing replica compute/storage
Cross-Region copyDisaster recoveryAdditional storage and transfer
AWS BackupCentral policy managementBackup storage and feature charges

🎯 EXAM LENS

  • "Restore database to a recent point" → PITR.
  • "Keep a manual copy for years" → Snapshot with lifecycle review.
  • "Central retention across accounts" → AWS Backup.
  • "Keep reads available" → Replica, not backup.

🪤 TRAPS

  • Replication is not backup.
  • Manual snapshots do not automatically expire unless managed.
  • More retention means more stored data and cost.
  • Never delete required compliance restore points.

📝 PRACTICE QUESTION
A company keeps monthly manual database snapshots forever, even though policy requires only seven years. What should it do?
A. Apply a retention policy and delete snapshots older than the approved period
B. Keep them forever by default
C. Disable all backups
D. Replace snapshots with a read replica

Answer: A. Retention should meet recovery and compliance requirements without unnecessary storage. B wastes money. C removes protection. D is not a backup.

🔁 ONE-LINE RECAP
Set backup retention to the recovery and compliance need, and regularly clean up obsolete snapshots safely.


186. Columnar formats, Parquet, and Redshift cost optimization (Domain 4.3)

🧒 LIKE I'M 5
A teacher wants to review only test scores, not every student's full record. Columnar files let analytics read only the columns it needs.

📖 EXPLAINED SIMPLY

  • CSV and JSON are convenient raw interchange formats but may require scanning and parsing many bytes.
  • Parquet and ORC are columnar formats. They store values by column and support compression and column pruning.
  • Athena charges based on data scanned for many query patterns. Reading fewer bytes can reduce scan cost.
  • Partition data on common filters such as date, region, or tenant. Queries can skip partitions they do not need.
  • Avoid excessive tiny files and over-partitioning. Too many small objects can increase request and metadata overhead.
  • Use Glue ETL to convert raw CSV/JSON into curated Parquet or ORC when analytics is repeated.
  • Redshift is a managed data warehouse for repeated complex analytics and BI.
  • Redshift Spectrum can query data in S3 without loading every file into local warehouse tables.
  • Athena is often useful for ad hoc S3 queries. Redshift can suit recurring warehouse workloads with concurrency and BI needs.
  • Keep raw source files for replay and audit; write optimized curated data separately.

📚 JARGON BOX

  • Columnar → Stores values by column.
  • Parquet → Columnar file format for analytics.
  • ORC → Optimized Row Columnar format.
  • Column pruning → Read only selected columns.
  • Partition pruning → Skip partitions not matching query filters.
  • Data scan → Bytes read by an analytical query.

⚖️ COMPARE WITH LOOKALIKES

OptionBest useCost advantage
CSV/JSONRaw interchangeSimple to create
Parquet/ORCAnalyticsCompression and column pruning
AthenaAd hoc SQL on S3No cluster to keep running
RedshiftRepeated warehouse queriesManaged analytical compute

🎯 EXAM LENS

  • "Reduce Athena data scanned" → Parquet/ORC and partitioning.
  • "Repeated BI analytics" → Redshift.
  • "Query S3 without loading data" → Athena or Redshift Spectrum.
  • "Convert raw files to columnar" → Glue ETL.

🪤 TRAPS

  • Parquet is a file format, not a database service.
  • Too many tiny partitions can hurt performance.
  • Redshift compute still costs money while running or provisioned.
  • Keep raw data if reprocessing may be needed.

📝 PRACTICE QUESTION
Athena queries repeatedly scan large CSV files but use only a few columns. What change can reduce scanning and cost?
A. Convert curated data to Parquet and partition by frequent filters
B. Store everything as uncompressed JSON
C. Run all queries on an EC2 instance store
D. Remove the table metadata

Answer: A. Parquet supports column pruning and compression, and partitions reduce unnecessary reads. The other options increase work or remove useful metadata.

🔁 ONE-LINE RECAP
Use Parquet/ORC and useful partitions to reduce analytical scans; use Redshift when recurring warehouse needs justify it.


187. Time-series workloads and cost-aware storage design (Domain 4.3)

🧒 LIKE I'M 5
A fitness tracker writes a new heart-rate measurement every few seconds. Time-series systems organize data around time so old measurements can be stored and queried efficiently.

📖 EXPLAINED SIMPLY

  • Time-series data contains timestamped measurements such as sensor readings, metrics, events, and device telemetry.
  • A purpose-built time-series database can optimize ingestion, time-window queries, retention, and aggregation.
  • Amazon Timestream is a purpose-built time-series service for supported workloads. Validate current service and Region availability before choosing it.
  • DynamoDB can work for timestamped records when access patterns are known and partition keys distribute load.
  • S3 with Parquet can be cost-effective for long-term historical analysis where immediate millisecond access is not required.
  • Use retention tiers to keep recent high-resolution data readily accessible and older aggregates in cheaper storage.
  • Downsample old data. For example, retain per-second measurements briefly, then store per-minute or hourly summaries.
  • Compress and partition by time to reduce query cost.
  • Keep only the data resolution required for business and regulatory use.
  • Choose storage by ingestion rate, query freshness, retention, cardinality, and cost.

📚 JARGON BOX

  • Time-series → Data indexed by time.
  • Timestamp → Time a measurement was recorded.
  • Downsampling → Combine detailed records into fewer summary records.
  • Retention → How long data is kept.
  • Cardinality → Number of distinct series or dimensions.
  • Aggregation → Calculate summaries such as average or maximum.

⚖️ COMPARE WITH LOOKALIKES

OptionBest use
TimestreamPurpose-built time-series querying
DynamoDBKnown key-based time-series access
S3 + ParquetLow-cost historical analytics
RedshiftBroader analytical warehouse

🎯 EXAM LENS

  • "High-volume timestamped device metrics" → Time-series data store.
  • "Recent detailed metrics plus old summaries" → Retention tiers and downsampling.
  • "Historical analytics over years" → S3 columnar data or warehouse.
  • "Known key lookup by device and time" → DynamoDB may fit.

🪤 TRAPS

  • Do not keep every high-resolution point online forever without a need.
  • A generic relational database can become costly for very high ingest rates.
  • Time-series service choice depends on Region and service availability.
  • Downsampling must preserve the resolution needed by the business.

📝 PRACTICE QUESTION
An IoT company stores millions of timestamped sensor readings per day. It needs time-window queries and automatic retention. Which design should it evaluate first?
A. A purpose-built time-series database such as Timestream, with retention policies
B. CloudFront only
C. S3 Object Lock only
D. RDS Proxy

Answer: A. Time-series databases are designed for timestamped ingestion and time-window queries. The other services do not provide that database model.

🔁 ONE-LINE RECAP
Use time-series storage for recent measurements and downsample/archive older data to control long-term cost.


188. Cost-effective database migration: DMS and schema conversion (Domain 4.3)

🧒 LIKE I'M 5
A moving company should not move every cupboard if the new house already has some furniture. A migration plan saves cost by moving only required data and minimizing duplicate work.

📖 EXPLAINED SIMPLY

  • Start with a migration assessment. Identify source size, change rate, downtime window, network bandwidth, and target compatibility.
  • For a same-engine migration, native backup/restore may be cheapest when downtime is acceptable.
  • For low downtime, AWS DMS can perform an initial full load and then capture ongoing changes (CDC).
  • For a different database engine, use DMS Schema Conversion or the applicable schema conversion workflow to identify unsupported objects and conversion effort.
  • Data migration and schema conversion are separate tasks. A DMS data replication task does not automatically rewrite every stored procedure or application query.
  • Remove obsolete tables, indexes, and data only after business approval. Migrating unused data increases time and storage costs.
  • Use a temporary DMS replication instance or serverless migration option that matches workload size. Scale it down or delete it after migration.
  • Cross-Region transfer and replication can incur data-transfer and temporary storage charges.
  • Run validation, compare row counts and business totals, and cut over after replication lag is low.
  • Avoid keeping source and target compute running longer than required after a successful migration.

📚 JARGON BOX

  • DMS → Database Migration Service.
  • Full load → Initial copy of existing data.
  • CDC → Change Data Capture for ongoing changes.
  • Schema conversion → Adapt tables and database code to another engine.
  • Cutover → Switch application traffic to the target.
  • Migration assessment → Review compatibility and effort before moving.

⚖️ COMPARE WITH LOOKALIKES

MethodCost/time fit
Native backup/restoreCheapest for simple same-engine move with downtime
DMS full loadInitial copy
DMS full load + CDCLow-downtime migration
Schema conversionHeterogeneous engine changes
Export only required dataAvoid transfer of obsolete data

🎯 EXAM LENS

  • "Same engine, maintenance window is acceptable" → Native backup/restore may be simplest.
  • "Large DB, low downtime" → DMS full load + CDC.
  • "Oracle to PostgreSQL" → Schema conversion plus DMS data migration.
  • "Reduce migration duration and cost" → Assess and avoid moving unnecessary data.

🪤 TRAPS

  • DMS does not automatically convert all database code.
  • CDC requires source logging and permissions.
  • Temporary replication resources still cost money.
  • Do not cut over before data validation.

📝 PRACTICE QUESTION
A company moves a large MySQL database to a newer MySQL environment. It has a short outage window and needs the target to stay current during copying. What is the best approach?
A. DMS full load plus CDC, followed by controlled cutover
B. Export one CSV and ignore later changes
C. CloudFront invalidation
D. S3 Lifecycle

Answer: A. Full load copies existing data, CDC applies ongoing changes, and cutover happens after validation. The other options do not maintain database consistency.

🔁 ONE-LINE RECAP
Use the simplest migration that meets downtime needs: native restore for simple moves, DMS/CDC for live changes, and schema conversion for engine changes.

✅ Batch 10 — topics 181–188

4.4 Cost-optimized networks

Topics to cover, in this order:

  1. Data transfer pricing basics (in vs out, AZ-to-AZ, Region-to-Region, internet)
  2. NAT gateway costs: one shared vs one per AZ; using VPC endpoints instead
  3. Direct Connect vs VPN vs internet on cost; bandwidth sizing
  4. VPC peering vs Transit Gateway on cost
  5. CloudFront to reduce origin data transfer
  6. Throttling strategies (API Gateway)

189. AWS data transfer pricing: ingress, egress, and internet (Domain 4.4)

🧒 LIKE I'M 5
A delivery company may charge differently when parcels enter the warehouse, leave the warehouse, or travel between cities. AWS network costs also depend on where data moves.

📖 EXPLAINED SIMPLY

  • Data ingress means data entering AWS. Common public internet ingress to AWS services is generally free, but check service-specific exceptions.
  • Data egress means data leaving AWS. Internet data transfer out is commonly chargeable and varies by Region, service, destination, and usage tier.
  • Data moving between AWS Regions can incur transfer charges on the sending side and may have service-specific pricing.
  • Data moving between Availability Zones can also incur charges depending on the service and architecture.
  • Some AWS services include or bundle data transfer differently. Do not assume all network traffic follows one universal price rule.
  • Cross-AZ traffic can happen when an application in one AZ calls a database, NAT gateway, or load balancer target in another AZ.
  • Cross-Region traffic happens when applications, databases, backups, or replicas communicate across Regions.
  • Keep chatty application components close together where architecture permits.
  • Use CloudFront for cacheable internet content and VPC endpoints for supported private AWS service access.
  • Estimate cost from data volume, direction, path, and frequency—not simply the instance count.

📚 JARGON BOX

  • Ingress → Data entering AWS.
  • Egress → Data leaving AWS.
  • Inter-AZ → Data transferred between Availability Zones.
  • Inter-Region → Data transferred between AWS Regions.
  • Data processing → Charge based on data handled by a network service.
  • Data locality → Place compute close to the data it uses.

⚖️ COMPARE WITH LOOKALIKES

Traffic pathCost consideration
Internet into AWSCommonly no data ingress charge
AWS to internetEgress charges commonly apply
AZ to AZInter-AZ transfer may apply
Region to RegionInter-Region transfer may apply
Service through endpointEndpoint costs and service-specific transfer rules

🎯 EXAM LENS

  • "Move large data out to internet" → Estimate egress.
  • "Chatty app and DB in different AZs" → Review inter-AZ data transfer.
  • "Copy data to another Region" → Include inter-Region transfer.
  • "Reduce public internet transfer" → CloudFront or a private service path when appropriate.

🪤 TRAPS

  • Ingress is not the same as egress.
  • Not every service bills network transfer identically.
  • Data transfer and NAT processing are separate cost categories.
  • Moving compute to another AZ can create new transfer charges.

📝 PRACTICE QUESTION
A company moves large amounts of data from an AWS Region to users on the public internet. Which cost should it explicitly estimate?
A. Data transfer out to the internet
B. Only incoming data transfer
C. Only EBS snapshot storage
D. Only IAM policy evaluation

Answer: A. Internet egress is a key network cost. Ingress, snapshots, and IAM policy evaluation do not represent the main outbound transfer charge.

🔁 ONE-LINE RECAP
Track where data enters, exits, and crosses AZ or Region boundaries because each path can have different charges.


190. Inter-AZ and inter-Region traffic cost (Domain 4.4)

🧒 LIKE I'M 5
If a warehouse and shop are in the same neighborhood, deliveries are easier. If they are across the country, every trip may cost more. Data locality helps reduce transfer cost.

📖 EXPLAINED SIMPLY

  • Inter-AZ traffic moves between Availability Zones in the same Region. Some architectures incur charges for this traffic.
  • Inter-Region traffic moves between Regions and generally has separate transfer costs.
  • A common hidden source of inter-AZ traffic is an application in one AZ sending many requests to a database or cache in another AZ.
  • Load balancers can distribute traffic across AZs. Understand cross-zone behavior and data paths before assuming it is free.
  • A NAT Gateway in another AZ can cause cross-AZ transfer as well as NAT processing charges.
  • Keep high-volume application and data components close when safe, but do not sacrifice multi-AZ resilience just to remove all cross-AZ communication.
  • Cross-Region replication improves resilience and locality but adds transfer and storage cost.
  • CloudFront and regional caching can reduce repeated cross-Region or origin fetches for cacheable content.
  • Use VPC Flow Logs, CloudWatch metrics, billing data, and architecture diagrams to identify expensive paths.
  • Include transfer costs in the design review before selecting active/active or multi-Region patterns.

📚 JARGON BOX

  • Inter-AZ → Traffic between AZs in one Region.
  • Inter-Region → Traffic between Regions.
  • Cross-zone load balancing → Distribute requests across targets in different AZs.
  • Data locality → Keep compute near the data it accesses.
  • Replication → Copy changes to another location.

⚖️ COMPARE WITH LOOKALIKES

PatternAvailabilityCost consideration
Same-AZ pathLess cross-AZ trafficCan create AZ dependency
Multi-AZHigher AZ resilienceCross-AZ data transfer may apply
Multi-RegionRegional resilienceInter-Region transfer and duplicate resources
CDN cachingReduces repeat origin fetchesCDN request and delivery charges

🎯 EXAM LENS

  • "Many app-to-database calls cross AZs" → Review placement and transfer charges.
  • "Need AZ resilience" → Keep multi-AZ even when some transfer cost exists.
  • "Large cross-Region replication" → Include transfer and destination storage.
  • "Static content accessed globally" → CloudFront can reduce repeated origin transfer.

🪤 TRAPS

  • Same-AZ placement may lower transfer but reduce resilience.
  • Multi-AZ is not free of network costs.
  • Multi-Region architecture duplicates compute, storage, and transfer.
  • Do not assume every cross-zone load balancer flow has identical billing behavior.

📝 PRACTICE QUESTION
A web tier makes frequent calls to a database in another AZ. The company wants to reduce network cost but must retain multi-AZ availability. What should it do?
A. Review data locality and connection patterns while keeping resilient database design
B. Put the only database in one AZ
C. Disable backups
D. Route all database calls through CloudFront

Answer: A. The design can reduce unnecessary cross-AZ chatter without removing the availability requirement. B sacrifices resilience. C affects recovery. D is not for database connections.

🔁 ONE-LINE RECAP
Review cross-AZ and cross-Region data paths, but do not remove resilience solely to avoid transfer cost.


191. NAT Gateway costs: shared vs per-AZ and private egress (Domain 4.4)

🧒 LIKE I'M 5
A building can share one exit gate or build a gate for each wing. One gate costs less upfront but creates queues and a dependency. NAT design has the same trade-off.

📖 EXPLAINED SIMPLY

  • A NAT Gateway is billed for each hour it is available and for each GB it processes.
  • Data sent through a NAT Gateway can also incur the underlying data-transfer charges for the path.
  • One shared NAT Gateway can reduce hourly gateway count. But private subnets in other AZs may send traffic across AZs, adding transfer cost and creating an AZ dependency.
  • One NAT Gateway per AZ costs more in gateway-hour charges, but keeps each AZ's outbound path local and improves resilience.
  • Choose based on volume, AZ count, availability target, and cost of cross-AZ traffic.
  • Use VPC endpoints for supported AWS services so requests do not go through NAT unnecessarily.
  • S3 and DynamoDB gateway endpoints have no hourly endpoint charge. Interface endpoints have hourly and data-processing charges.
  • Avoid sending private AWS service traffic through NAT if an endpoint is suitable and economical.
  • Monitor NAT bytes processed and CloudWatch metrics to find expensive traffic.
  • A NAT Gateway allows private IPv4 resources to initiate outbound connections. It is not an inbound application gateway.

📚 JARGON BOX

  • NAT Gateway → Managed IPv4 translation for private subnet egress.
  • Gateway endpoint → Route-table endpoint for S3 or DynamoDB.
  • Interface endpoint → Private network interface for an AWS service.
  • Cross-AZ → Traffic crossing Availability Zones.
  • Data processing → NAT charge based on data processed.

⚖️ COMPARE WITH LOOKALIKES

DesignGateway costResilience / transfer
One shared NATFewer hourly gatewaysCan create cross-AZ dependency and transfer
NAT per AZMore hourly gatewaysLocal egress path per AZ
S3/DynamoDB gateway endpointNo hourly endpoint chargeAvoids NAT for supported service traffic
Interface endpointHourly + data processingPrivate path to supported services

🎯 EXAM LENS

  • "Private subnets across AZs need resilient egress" → Consider NAT per AZ.
  • "Reduce NAT cost for S3" → S3 gateway endpoint.
  • "NAT processing cost is high for AWS APIs" → Evaluate VPC endpoints.
  • "One NAT in another AZ" → Consider cross-AZ transfer and availability risk.

🪤 TRAPS

  • A shared NAT gateway can create a single-AZ dependency.
  • Per-AZ NAT costs more hourly but can avoid cross-AZ traffic.
  • Interface endpoints are not free.
  • Gateway endpoints only support S3 and DynamoDB.

📝 PRACTICE QUESTION
Private workloads send most of their traffic to S3. NAT data-processing cost is high. Which change should the architect consider first?
A. S3 gateway endpoint
B. Another NAT Gateway
C. Public IPs for all instances
D. CloudFront Functions

Answer: A. A gateway endpoint routes S3 traffic privately without hourly endpoint charges or NAT processing. The other options do not solve private S3 egress cost.

🔁 ONE-LINE RECAP
Use NAT per AZ when resilience warrants the cost, and use gateway endpoints to avoid NAT for S3 and DynamoDB traffic.


🧒 LIKE I'M 5
A private road to the post office can be cheaper than sending every parcel through a toll bridge. VPC endpoints create direct private paths to supported AWS services.

📖 EXPLAINED SIMPLY

  • A gateway endpoint for S3 or DynamoDB has no hourly endpoint charge.
  • A gateway endpoint adds routes to selected subnet route tables and avoids NAT processing for that service traffic.
  • An interface endpoint creates private IP network interfaces and uses AWS PrivateLink.
  • Interface endpoints are billed by endpoint-hours and data processed. Multiple AZ endpoints improve availability but increase endpoint count.
  • Compare the endpoint price against NAT Gateway hourly and data-processing charges, cross-AZ transfer, and internet path costs.
  • Use interface endpoints for supported services such as Systems Manager, Secrets Manager, and many other AWS APIs.
  • Use private DNS so standard service hostnames resolve to the interface endpoint when supported.
  • Endpoint policies can restrict what can be accessed through the endpoint, but IAM and resource policies still apply.
  • For a third-party or internal service, PrivateLink may reduce the need for full VPC peering and limit network exposure.
  • Not every service or Region supports every endpoint type. Verify availability and pricing.
  • Do not create endpoints for every service automatically. Use traffic volume and access requirements to justify them.

📚 JARGON BOX

  • VPC endpoint → Private path from a VPC to a supported service.
  • Gateway endpoint → Route-table endpoint for S3 or DynamoDB.
  • Interface endpoint → ENI-based endpoint using PrivateLink.
  • Endpoint-hour → Time an endpoint is provisioned.
  • Private DNS → Resolve normal service hostname to private endpoint addresses.
  • Endpoint policy → Restrict requests made through an endpoint.

⚖️ COMPARE WITH LOOKALIKES

OptionCost modelTypical use
Gateway endpointNo hourly endpoint chargeS3/DynamoDB
Interface endpointEndpoint hours + data processingOther AWS APIs
NAT GatewayHourly + processed GBGeneral private IPv4 egress
PrivateLink serviceInterface endpoint pricing and provider-side costsPrivate service sharing

🎯 EXAM LENS

  • "High S3 traffic through NAT" → Gateway endpoint.
  • "Private Systems Manager API access" → Interface endpoint.
  • "Avoid full VPC peering for one service" → PrivateLink.
  • "Low endpoint traffic" → Compare interface endpoint fixed cost with NAT before deciding.

🪤 TRAPS

  • Interface endpoints may cost more than NAT for very low traffic.
  • Gateway endpoints do not support every AWS service.
  • Endpoint policies do not grant IAM permissions by themselves.
  • Endpoint and cross-AZ placement affect total cost.

📝 PRACTICE QUESTION
A private application calls Secrets Manager frequently and must avoid public internet routing. Which solution should be cost-compared against NAT egress?
A. Interface VPC endpoint for Secrets Manager
B. S3 gateway endpoint
C. Public internet gateway
D. S3 Lifecycle

Answer: A. Secrets Manager uses an interface endpoint. S3 gateway endpoints do not provide Secrets Manager connectivity.

🔁 ONE-LINE RECAP
Use gateway endpoints for S3/DynamoDB and compare interface endpoint costs against NAT for other private service traffic.


193. Direct Connect vs VPN vs internet: cost selection (Domain 4.4)

🧒 LIKE I'M 5
A company can use public roads, a locked tunnel, or a dedicated highway. The best choice depends on traffic volume, consistency, security, and connection cost.

📖 EXPLAINED SIMPLY

  • Internet connectivity can be the cheapest starting point for low-volume public workloads, but outbound transfer and security design matter.
  • Site-to-Site VPN provides encrypted IPsec tunnels over the internet. It has connection-hour and data-transfer considerations.
  • VPN is quick to provision and can be a lower-cost option for modest traffic or backup connectivity.
  • Direct Connect uses a dedicated network connection. Costs can include port hours, capacity, partner cross-connect charges, and data transfer out.
  • Direct Connect can provide more consistent performance and can be cost-effective for high-volume predictable hybrid traffic, depending on location and transfer rates.
  • Direct Connect does not encrypt traffic by default. Add IPsec VPN over DX or supported MACsec when encryption is required.
  • Do not purchase dedicated connectivity solely because an application is important. Compare total bandwidth, traffic pattern, redundancy, local provider charges, and operational cost.
  • Many architectures use Direct Connect as the primary path and VPN as backup.
  • Ensure the connection is used enough to justify fixed costs.
  • Use the AWS Pricing Calculator and provider quotes for the exact Region, location, port, and traffic pattern.

📚 JARGON BOX

  • Direct Connect → Dedicated network connection to AWS.
  • Site-to-Site VPN → Encrypted network tunnel over internet.
  • Port hours → Time a Direct Connect port is provisioned.
  • Data transfer out → Data leaving AWS.
  • Cross-connect → Local provider connection between customer and AWS network.
  • MACsec → Link-layer encryption supported on eligible connections.

⚖️ COMPARE WITH LOOKALIKES

OptionFixed costVariable costBest fit
InternetLow entry costEgress/transferPublic or modest use
VPNConnection hoursTransferQuick encrypted hybrid path
Direct ConnectPort/capacity/partnerData transfer outPredictable high-volume hybrid use

🎯 EXAM LENS

  • "Quick encrypted link" → Site-to-Site VPN.
  • "Dedicated high-volume path" → Direct Connect.
  • "Low traffic and minimal setup" → Internet or VPN depending on security.
  • "Encrypt Direct Connect" → Add IPsec or supported MACsec.

🪤 TRAPS

  • Direct Connect has fixed and variable costs.
  • VPN also has connection and transfer costs.
  • Dedicated connectivity is not encrypted by default.
  • Include redundancy and provider fees in the comparison.

📝 PRACTICE QUESTION
A company transfers a few GB each week from one office to AWS and wants encrypted connectivity with minimal fixed cost. What should it evaluate first?
A. Site-to-Site VPN
B. Multiple dedicated Direct Connect links
C. Transit Gateway in every Region
D. Snow Family devices every week

Answer: A. VPN is quicker and generally avoids the larger fixed commitment of dedicated connections. B, C, and D add unnecessary complexity or cost for low-volume traffic.

🔁 ONE-LINE RECAP
Choose internet, VPN, or Direct Connect by traffic volume, fixed cost, performance, encryption, and redundancy needs.


194. Bandwidth sizing and cost-aware network paths (Domain 4.4)

🧒 LIKE I'M 5
A road needs enough lanes for rush hour, but building ten lanes for a quiet street wastes money. Network capacity should match realistic traffic and growth.

📖 EXPLAINED SIMPLY

  • Estimate average, peak, and burst traffic before selecting bandwidth.
  • Measure bytes transferred, connections, request rate, latency, packet loss, and time-of-day patterns.
  • Use compression for compressible payloads where CPU cost and latency are acceptable.
  • Keep chatty services close to the database or data source to reduce repeated cross-AZ and cross-Region transfer.
  • Cache reusable content near users with CloudFront or application caches.
  • For hybrid links, compare VPN throughput and tunnel limits with Direct Connect capacity and resilience.
  • Avoid buying far more bandwidth than the workload can use. Also avoid running near saturation because queues and retransmissions can hurt performance.
  • Use CloudWatch metrics, VPC Flow Logs, and cost reports to identify high-volume paths.
  • Estimate the total: capacity or port charges, data transfer, endpoint processing, NAT, and any third-party network provider.
  • Add headroom for bursts, failover traffic, and recovery operations.

📚 JARGON BOX

  • Bandwidth → Maximum data transfer rate.
  • Throughput → Actual data moved per second.
  • Burst → Short spike above normal demand.
  • Saturation → Resource operating near its limit.
  • Packet loss → Packets that fail to reach their destination.
  • Headroom → Spare capacity for unexpected demand.

⚖️ COMPARE WITH LOOKALIKES

SymptomPotential action
Link saturated at peakIncrease bandwidth or smooth traffic
Repeated identical downloadsAdd cache/CDN
Large cross-Region callsMove processing closer or batch data
Large payloadsCompress or reduce payload
NAT processing highUse endpoints for supported AWS services

🎯 EXAM LENS

  • "Predictable large hybrid transfer" → Size Direct Connect to measured peak and failover needs.
  • "Repeated content to users globally" → CloudFront.
  • "High burst but low average" → Buffer or shape traffic rather than permanently over-provisioning.
  • "Network spend rising" → Find top data paths from billing and flow metrics.

🪤 TRAPS

  • Bandwidth and latency are not the same.
  • Compression adds CPU and may not help already compressed data.
  • Too little bandwidth can increase retries and cost.
  • Do not remove redundancy to save a small amount of network spend.

📝 PRACTICE QUESTION
A company has low average traffic but large predictable peaks. It wants to avoid paying for a huge dedicated link all day. What should it evaluate?
A. Buffering or scheduling bulk transfers and sizing the link for measured requirements
B. Buy maximum bandwidth without measurement
C. Remove all redundant paths
D. Put the database in a public subnet

Answer: A. Scheduling and buffering can smooth peaks and reduce required sustained capacity. B over-provisions. C reduces resilience. D is unsafe and unrelated.

🔁 ONE-LINE RECAP
Measure peaks and traffic paths, then size bandwidth and caching to workload needs with enough failover headroom.


195. VPC peering vs Transit Gateway cost (Domain 4.4)

🧒 LIKE I'M 5
Two houses can build one private road between them. A city can build a central station for many neighborhoods. The simpler road may cost less for two houses, while the station is easier to manage at scale.

📖 EXPLAINED SIMPLY

  • VPC peering provides a direct private connection between two VPCs.
  • It avoids Transit Gateway attachment and processing charges, making it a candidate for a small number of direct links.
  • Peering is non-transitive. A full mesh across many VPCs needs many connections and route relationships.
  • Transit Gateway (TGW) centralizes routing for many VPCs and on-premises networks.
  • TGW can charge for attachments and data processing. Regional and inter-Region designs can add more costs.
  • For a small network, peering may be cheaper. For many networks, TGW can reduce operational complexity and repeated mesh management.
  • Inter-AZ, inter-Region, and internet transfer charges may still apply with either design.
  • PrivateLink can be cheaper or safer when a consumer needs one service rather than broad network access.
  • Calculate connections, traffic volumes, AZ patterns, and operations before choosing.
  • Do not choose TGW solely because it is more scalable, or peering solely because it appears to have fewer direct service charges.

📚 JARGON BOX

  • Peering → Direct connection between two VPCs.
  • Non-transitive → Cannot route through one peer to another peer.
  • Transit Gateway → Central network hub.
  • Attachment → Network connected to TGW.
  • Data processing fee → Charge based on traffic handled by a service.
  • Full mesh → Direct links between many network pairs.

⚖️ COMPARE WITH LOOKALIKES

FactorVPC peeringTransit Gateway
Small number of VPCsOften simpler/cheaperMay add unnecessary cost
Many VPCsMany pairwise linksCentralized routing
Transitive routingNoSupported through routes
Billing patternTransfer charges; no TGW attachment chargeAttachment and data-processing charges
OperationsMore links to manage at scaleCentral policy and routing

🎯 EXAM LENS

  • "Two VPCs with direct traffic" → Peering may be cheapest.
  • "Dozens of VPCs and hybrid networks" → TGW.
  • "Only one private service needed" → PrivateLink.
  • "Cost choice" → Count connections and data volume, not just service names.

🪤 TRAPS

  • Peering is not transitive.
  • TGW cost includes more than a single hourly fee.
  • CIDR overlap still requires planning.
  • Peering data transfer can still incur charges.

📝 PRACTICE QUESTION
Two VPCs need direct private connectivity and have no growth plan for more VPCs. The company wants to avoid hub charges. Which option should it evaluate first?
A. VPC peering
B. Transit Gateway
C. CloudFront
D. NAT Gateway

Answer: A. Peering is a straightforward pairwise link. Transit Gateway adds hub capabilities that may not be needed for two VPCs.

🔁 ONE-LINE RECAP
Use peering for a few direct links and Transit Gateway when central routing justifies its recurring and processing costs.


196. CloudFront to reduce origin and data-transfer costs (Domain 4.4)

🧒 LIKE I'M 5
A shop keeps popular snacks close to customers so it does not need to ship them from the factory each time. CloudFront caches content at edge locations and reduces repeated origin requests.

📖 EXPLAINED SIMPLY

  • CloudFront caches eligible content near viewers around the world.
  • A cache hit serves the object at the edge. A cache miss fetches it from the origin.
  • Good cache policies increase hit ratio by keeping unnecessary headers, cookies, and query strings out of the cache key.
  • Use long TTLs for versioned static assets that rarely change.
  • Use shorter TTLs or invalidations for content requiring faster updates.
  • CloudFront can reduce origin load and some origin data transfer, especially for repeated static content.
  • CloudFront itself has request, data-transfer, and optional feature charges. Compare the total distribution cost with the savings.
  • Dynamic personalized responses may not cache safely. Avoid sharing user-specific content through a common cache key.
  • Use OAC for private S3 origins. Keep the bucket private.
  • CloudFront is often effective for media, downloads, static websites, and repeated public API responses.

📚 JARGON BOX

  • Cache hit → Content served from edge cache.
  • Cache miss → Fetch from origin.
  • Origin → Source server or bucket.
  • Cache key → Request values that define a cached response.
  • TTL → Cache lifetime.
  • Invalidation → Remove cached content before expiration.

⚖️ COMPARE WITH LOOKALIKES

PatternOrigin impactCost consideration
Direct origin for every requestHighest repeated origin trafficOrigin egress/request cost
CloudFront high hit ratioLower origin fetch volumeCDN requests and delivery cost
CloudFront low hit ratioMany origin fetches remainCDN overhead may not pay off

🎯 EXAM LENS

  • "Global repeated static downloads" → CloudFront.
  • "Reduce origin requests" → Improve cache hit ratio.
  • "Private S3 origin" → CloudFront OAC.
  • "Unique dynamic data per user" → Do not cache without a safe cache key.

🪤 TRAPS

  • CloudFront is not always cheaper for uncached dynamic traffic.
  • Forwarding every cookie/header can lower hit ratio.
  • Long TTL can serve stale content.
  • The CDN adds its own usage charges.

📝 PRACTICE QUESTION
A website serves the same images to millions of users. Origin transfer is expensive. What should it evaluate?
A. CloudFront with an optimized cache policy
B. One NAT Gateway per user
C. RDS Proxy
D. Increase database backups

Answer: A. CloudFront can serve cached images near users and reduce repeated origin requests. The other options do not optimize content delivery.

🔁 ONE-LINE RECAP
Use CloudFront when cacheable content has enough repeat access to offset CDN delivery costs.


197. API Gateway throttling to control backend and request costs (Domain 4.4)

🧒 LIKE I'M 5
A busy shop limits how many customers enter at once so the kitchen does not become overwhelmed. API Gateway throttling limits request rates before they reach the backend.

📖 EXPLAINED SIMPLY

  • API Gateway supports throttling limits at account, API, stage, route, and usage-plan levels, depending on API type.
  • Throttling controls request rate and burst. Excess requests can receive HTTP 429 responses.
  • Use throttling to protect Lambda, databases, and downstream services from accidental or malicious request spikes.
  • Usage plans and API keys can help meter or limit selected clients for supported REST APIs.
  • API keys are not strong user authentication. Use JWT, IAM, Cognito, or a suitable authorizer for identity.
  • Throttling can control unexpected request cost by limiting how fast expensive backend operations are invoked.
  • Apply limits based on real capacity and service quotas. Too-low limits can block legitimate traffic.
  • Use caching for repeated GET responses when data freshness and authorization allow.
  • Monitor request count, 4xx/5xx responses, latency, and backend invocations.
  • Throttling does not replace WAF, DDoS protection, or application-level rate limiting where needed.

📚 JARGON BOX

  • Throttling → Limit requests per time period.
  • Burst → Short spike allowed above steady rate.
  • 429 → Too Many Requests response.
  • Usage plan → API key-associated quota and throttling configuration.
  • Authorizer → Component deciding whether a caller is authorized.

⚖️ COMPARE WITH LOOKALIKES

ControlMain purpose
API Gateway throttlingProtect API and backend request rate
AWS WAF rate-based ruleFilter excessive web requests
Lambda reserved concurrencyCap function concurrency
Service QuotasLimit allowed AWS service usage

🎯 EXAM LENS

  • "Prevent a client from flooding backend" → API Gateway throttling.
  • "Return 429 over request-rate limit" → Throttling.
  • "Per-client quota on REST API" → Usage plan and API key.
  • "Authenticate users" → Authorizer, not API key alone.

🪤 TRAPS

  • Throttling can reject valid requests if thresholds are too low.
  • API keys are not authentication by themselves.
  • Throttling does not stop all DDoS attacks.
  • Usage plans do not apply identically to every API Gateway API type.

📝 PRACTICE QUESTION
A public API invokes an expensive Lambda function. A client accidentally sends thousands of requests per second. What should the architect configure?
A. API Gateway throttling with appropriate rate and burst limits
B. Increase the Lambda timeout only
C. Disable logging
D. Add S3 Versioning

Answer: A. Throttling limits incoming request volume before backend invocation. The other options do not control API request rate.

🔁 ONE-LINE RECAP
Use API Gateway throttling to cap request rates and protect backend capacity and cost.


198. API Gateway caching and reducing repeated backend work (Domain 4.4)

🧒 LIKE I'M 5
A shop writes today's price list once and lets many customers read the same copy. API caching stores repeated responses so every request does not call the backend.

📖 EXPLAINED SIMPLY

  • API Gateway REST APIs can enable a dedicated cache for a stage.
  • Cached responses can reduce repeated Lambda or HTTP backend calls and improve response latency.
  • Choose cache capacity carefully. Larger cache capacity costs more.
  • Use cache keys that include values that genuinely change the response, such as selected query strings or headers.
  • Do not cache personalized responses unless the cache key safely separates users and authorization.
  • Use TTL to control freshness. Short TTL gives fresher data but lowers cache reuse.
  • Invalidate or flush the cache when an urgent update is required.
  • API Gateway cache capacity has a recurring charge. Compare it with backend savings and expected hit ratio.
  • HTTP APIs do not support the same API Gateway stage caching feature as REST APIs.
  • Use caching for repeated, mostly read-only responses. Avoid it for rapidly changing, user-specific, or highly sensitive responses without a safe design.

📚 JARGON BOX

  • API cache → Stored response reused for matching requests.
  • Cache key → Request fields used to identify a cached response.
  • TTL → Time before cached response expires.
  • Cache hit ratio → Share of requests served from cache.
  • Invalidation → Clear cached response before expiry.

⚖️ COMPARE WITH LOOKALIKES

StrategyBackend callsCost consideration
No API cacheEvery request reaches backendBackend invocation/load
REST API cacheRepeated responses reusedCache capacity charge
CloudFront cacheEdge caching for eligible HTTP contentCDN request/delivery cost
Application cacheCustom cache behaviorCache infrastructure and operations

🎯 EXAM LENS

  • "Repeated identical GET requests" → API cache if using REST API.
  • "Reduce Lambda invocations for common responses" → API Gateway caching.
  • "Global content caching" → CloudFront.
  • "Fresh personalized data" → Avoid shared caching or use a safe per-user key.

🪤 TRAPS

  • API caching is a REST API feature, not a universal API Gateway feature.
  • Cache capacity costs money.
  • A cache key that omits relevant user-specific inputs can leak data.
  • Cached responses can be stale until TTL or invalidation.

📝 PRACTICE QUESTION
A REST API returns the same public reference data to thousands of users. The data changes once per hour. Which feature can reduce backend calls?
A. API Gateway stage caching with a suitable TTL
B. Increase NAT Gateway size
C. Disable all cache headers
D. Use a Dedicated Host

Answer: A. Stage caching reuses repeated responses until TTL expiry. The other choices do not reduce repeated API backend work.

🔁 ONE-LINE RECAP
Use API Gateway REST caching when repeatable responses and freshness needs justify the cache cost.


199. Measuring network cost and assigning cost ownership (Domain 4.4)

🧒 LIKE I'M 5
A family cannot reduce its electricity bill until it knows which appliances use the most power. Network cost optimization starts by measuring traffic paths and assigning ownership.

📖 EXPLAINED SIMPLY

  • Use Cost Explorer and CUR to review NAT, data transfer, load balancer, endpoint, Direct Connect, and CloudFront spending.
  • Use cost allocation tags and cost categories to identify the account, application, or team responsible.
  • Use VPC Flow Logs to inspect traffic volume, source, destination, and accepted/rejected flows.
  • Use CloudWatch metrics for NAT bytes, load balancer traffic, endpoint metrics where available, and application request rates.
  • Identify the largest traffic paths before changing architecture.
  • Look for repeated calls to public AWS endpoints through NAT, cross-AZ chatty calls, large origin downloads, and unnecessary cross-Region replication.
  • Apply budgets or alerts for network cost categories and shared services.
  • Track cost per transaction, per GB, or per active user to compare changes fairly.
  • Re-check after implementing endpoints, caching, compression, or routing changes.
  • Do not optimize only for lower data transfer if it increases latency or weakens availability.

📚 JARGON BOX

  • Cost allocation → Assign spend to a team or workload.
  • CUR → Detailed billing and usage records.
  • Flow Log → Network traffic metadata.
  • Cost per request → Network spend divided by completed requests.
  • Egress path → Route by which data leaves an environment.
  • Cost anomaly → Unexpected spend change.

⚖️ COMPARE WITH LOOKALIKES

ToolWhat it tells you
Cost Explorer/CURWhat network costs money
VPC Flow LogsWhich network flows exist
CloudWatchHow network resources perform
BudgetsWhether spend crosses thresholds

🎯 EXAM LENS

  • "Identify which account caused transfer cost" → CUR plus tags/categories.
  • "Find high-volume source and destination" → VPC Flow Logs.
  • "Alert on NAT cost budget" → Budgets.
  • "Measure savings after architecture change" → Compare usage and cost over a consistent period.

🪤 TRAPS

  • Flow Logs do not directly provide the bill.
  • Cost reports need correct tags and account mapping.
  • Do not assume all data transfer comes from internet egress.
  • Cost optimization needs before/after measurement.

📝 PRACTICE QUESTION
A company sees an unexpected rise in network transfer charges. It needs to find which VPC flows created the traffic and which team owns the spend. What should it combine?
A. VPC Flow Logs, CUR, and cost allocation tags
B. Route 53 health checks only
C. S3 Versioning and Glacier
D. IAM Access Analyzer only

Answer: A. Flow Logs help identify traffic paths, CUR gives detailed costs, and tags help assign ownership.

🔁 ONE-LINE RECAP
Measure flows and billing together, then use tags and budgets to keep network costs visible and accountable.


200. Choosing a cost-optimized network architecture (Domain 4.4)

🧒 LIKE I'M 5
A city should not build the most expensive road for every street. Build the road that safely carries the real traffic and can grow when needed.

📖 EXPLAINED SIMPLY

  • Start with the requirements: throughput, latency, availability, encryption, user geography, and data volume.
  • Use public internet or VPN for modest hybrid connectivity when performance and security needs fit.
  • Use Direct Connect for predictable high-volume hybrid traffic when dedicated connectivity justifies port, provider, and transfer costs.
  • Use peering for a small number of direct VPC connections. Use Transit Gateway when many networks need hub routing and segmentation.
  • Use PrivateLink when consumers need one service privately rather than broad VPC access.
  • Use NAT only for the traffic that needs it. Use S3/DynamoDB gateway endpoints and suitable interface endpoints for private AWS service paths.
  • Use CloudFront when repeatable content can be cached near users. Use Global Accelerator when static anycast IPs and global network routing matter.
  • Use API Gateway throttling to cap request bursts and REST caching for repeated responses where safe.
  • Keep network paths resilient. Avoid a single NAT, VPN, firewall, or gateway as an unplanned failure point.
  • Estimate fixed charges, data processing, data transfer, endpoint hours, bandwidth, and provider costs.
  • Revisit the design after traffic grows or changes. The cost-optimal architecture changes with scale and usage.

📚 JARGON BOX

  • Cost-optimized → Lowest sustainable cost while meeting requirements.
  • Anycast → Same IP advertised from multiple network locations.
  • Segmentation → Separate network access domains.
  • Endpoint → Private or public service entry point.
  • Total cost → Fixed, variable, transfer, and operations charges.
  • Resilience → Ability to keep operating through failures.

⚖️ COMPARE WITH LOOKALIKES

RequirementCandidate
Small direct VPC pairPeering
Many VPCs and on-premises networksTransit Gateway
One private servicePrivateLink
Private S3/DynamoDB trafficGateway endpoint
General private IPv4 egressNAT Gateway
Cacheable global contentCloudFront
Static IP and global network failoverGlobal Accelerator
Modest encrypted hybrid linkSite-to-Site VPN
High-volume dedicated hybrid linkDirect Connect

🎯 EXAM LENS

  • "Lowest cost with two VPCs" → Compare peering first.
  • "Dozens of VPCs and offices" → Transit Gateway.
  • "S3 traffic should bypass NAT" → Gateway endpoint.
  • "Repeated global images" → CloudFront.
  • "Expensive API bursts" → Throttling.
  • "Cost optimization without reducing required availability" → Measure and redesign data paths, not remove essential redundancy.

🪤 TRAPS

  • A lower hourly cost can increase cross-AZ or data-processing cost.
  • Direct Connect has fixed and variable components.
  • CloudFront adds charges and may not help uncached dynamic requests.
  • A shared NAT can reduce gateway hours but add cross-AZ costs and dependency.
  • Cheap design that fails the availability or security requirement is not the correct answer.

📝 PRACTICE QUESTION
A company has two VPCs, private S3 traffic, and a global public website. It wants to reduce network cost without lowering availability. Which combination is most suitable?
A. VPC peering for the two VPCs, S3 gateway endpoint, and CloudFront for cacheable website content
B. Transit Gateway for every connection, NAT for all S3 calls, and direct origin downloads
C. Public IPs for database servers and no backups
D. One shared NAT in a single AZ for every workload

Answer: A. Peering can be simple for two VPCs, gateway endpoints avoid NAT processing for S3, and CloudFront reduces repeated origin fetches. B adds unnecessary network charges. C and D weaken security or resilience.

🔁 ONE-LINE RECAP
Choose network services by the traffic path and scale, then measure fixed, variable, transfer, and resilience costs together.

✅ Batch 10 — topics 181–200

Batch 10 review sheet

  • Unpredictable DynamoDB requests → On-demand capacity.
  • Predictable DynamoDB workload → Provisioned capacity with auto scaling.
  • Relational SQL joins → RDS/Aurora.
  • Variable relational compute → Aurora Serverless v2.
  • Repeated hot database reads → ElastiCache or DAX.
  • Long-term database recovery → Retention-aware backups and snapshots.
  • Lower analytics scan cost → Parquet/ORC plus partitioning.
  • Timestamped metrics → Time-series database or S3 analytics, based on access needs.
  • Same-engine low-downtime migration → DMS full load + CDC.
  • Different database engines → Schema conversion plus data migration.
  • Internet egress → Estimate outbound transfer.
  • Cross-AZ and cross-Region calls → Include transfer charges.
  • NAT cost has hourly and data-processing components.
  • Private S3/DynamoDB path without NAT → Gateway endpoint.
  • Private APIs → Interface endpoint/PrivateLink.
  • Dedicated high-volume hybrid network → Direct Connect.
  • Small pair of VPCs → Peering may be cheaper.
  • Many networks → Transit Gateway can simplify routing.
  • Cacheable global content → CloudFront.
  • Expensive repeated API calls → REST API caching.
  • Unwanted request spikes → API Gateway throttling.
  • Assign network spend → CUR, tags, budgets, and flow analysis.
  • Best architecture → Lowest total cost that still meets security, performance, and availability.

📌 Domain 4 cheat sheet

  • Unknown S3 access pattern → Intelligent-Tiering.
  • Frequent S3 access → Standard.
  • Infrequent S3 with multi-AZ resilience → Standard-IA.
  • Infrequent, recreatable data in one AZ → One Zone-IA.
  • Instant archive retrieval → Glacier Instant Retrieval.
  • Minutes or hours archive retrieval → Glacier Flexible Retrieval.
  • Very rare long-term archive → Glacier Deep Archive.
  • Age-based transitions and deletion → S3 Lifecycle.
  • General-purpose SSD cost optimization → EBS gp2 to gp3 evaluation.
  • Very high IOPS → io2 only when measured performance requires it.
  • Large sequential HDD workload → st1.
  • External users should pay eligible S3 access → Requester Pays.
  • Central backup schedules and vaults → AWS Backup.
  • Visual cost trends and forecasts → Cost Explorer.
  • Threshold alerts → AWS Budgets.
  • Detailed line-item billing → Cost and Usage Report.
  • Cost ownership → Activated tags and cost categories.
  • Stable compute usage → Savings Plans or Reserved Instances.
  • Variable compute demand → On-Demand.
  • Interruptible background jobs → Spot.
  • Physical socket/core software licensing → Dedicated Host.
  • Guarantee EC2 capacity in an AZ → Capacity Reservation.
  • Identify over-provisioned instances → Compute Optimizer plus CloudWatch metrics.
  • Short intermittent compute → Lambda.
  • Containers without EC2 host management → Fargate.
  • Steady high-utilization containers/servers → Compare EC2 total cost.
  • Remove predictable idle capacity → Scheduled Auto Scaling or stop/start.
  • Resume processes from saved RAM → EC2 hibernation when supported.
  • Local AWS infrastructure requirement → Outposts.
  • Unpredictable DynamoDB traffic → On-demand capacity.
  • Predictable DynamoDB traffic → Provisioned capacity and auto scaling.
  • Complex SQL relationships → RDS/Aurora.
  • Variable relational database capacity → Aurora Serverless v2.
  • Repeated hot reads → ElastiCache or DAX.
  • Control backup spend → Set retention and delete obsolete snapshots safely.
  • Reduce analytics scan cost → Parquet/ORC and partitions.
  • High-volume timestamped measurements → Time-series design with retention/downsampling.
  • Same-engine low-downtime migration → DMS full load + CDC.
  • Different database engine → Schema conversion plus data migration.
  • Large internet data downloads → Estimate egress and consider cacheable delivery.
  • Many app/database calls across AZs → Review placement and inter-AZ transfer.
  • Private S3/DynamoDB traffic avoiding NAT → Gateway VPC endpoint.
  • Private access to other AWS APIs → Compare interface endpoint against NAT.
  • Small direct VPC pair → VPC peering.
  • Many VPCs and offices → Transit Gateway.
  • Dedicated predictable hybrid bandwidth → Direct Connect.
  • Quick encrypted hybrid connectivity → Site-to-Site VPN.
  • Reduce repeated origin fetches → CloudFront cache policy and high hit ratio.
  • Control request bursts → API Gateway throttling.
  • Reuse repeated API responses → REST API caching when freshness permits.
  • Cost optimization principle → Lowest total cost that still meets performance, security, and availability requirements.

🔎 Official exam guide audit supplements — v1.1

The following details make the storage-sizing, workload-availability, NAT, DNS, bandwidth, and existing-network-review skills in the official guide explicit. They supplement topics 161–200 without changing their numbering.

A1. Storage sizing and storage auto scaling

  • Choose storage by capacity, performance, access pattern, growth, and recovery needs. Do not select it by price per GB alone.
  • Amazon S3 grows with the number of objects. You do not provision a disk size in advance.
  • Amazon EFS grows as files are added. Choose an appropriate throughput and storage class because performance and access still affect cost.
  • Amazon EBS is provisioned block capacity. Remove unused volumes and snapshots, and increase or modify volumes when measured demand requires it.
  • Amazon RDS storage auto scaling can add storage when a supported database approaches its allocated capacity. Set a sensible maximum and monitor growth so an unexpected data increase does not create an uncontrolled bill.
  • Use auto scaling when growth is variable or difficult to predict. For stable workloads, right-size known capacity and review it regularly.
  • Monitor free storage, growth rate, IOPS, throughput, and latency. Keep enough headroom for expected peaks.

Exam clue: “Storage grows unpredictably” → consider storage auto scaling or an automatically expanding service. “Avoid paying for unused provisioned space” → right-size and clean up safely.

Trap: S3, EFS, EBS, and RDS do not scale in the same way. Do not assume every storage service needs manual capacity provisioning.

A2. Required availability: production versus non-production compute

Availability is a business requirement. A production system may need multiple AZs, health checks, load balancing, and automatic recovery. A development environment that is used only during office hours may not need the same always-on design.

WorkloadCost-aware approachImportant caution
Critical productionMulti-AZ design, health checks, suitable load balancing, enough capacity for failoverDo not remove redundancy just to lower the bill
Ordinary productionMatch redundancy and scaling to the service's agreed availability targetAvoid paying for capacity the workload never needs
Development/testSchedule start/stop, scale down outside working hours, use smaller instances where testing allowsKeep required test data and backups
Batch or fault-tolerant jobsConsider Spot capacity and retry/queue designsDo not use interruptible capacity for work that cannot tolerate interruption
  • Use Savings Plans or suitable Reserved Instance models for a stable baseline. Use On-Demand for uncertain demand.
  • Use Spot for flexible, interruption-tolerant work, not as the only capacity for a critical service.
  • Scale non-production environments down when idle. Do not assume every non-production system can safely be single-AZ; follow its recovery requirements.

Exam clue: “Production must survive an AZ failure” → preserve Multi-AZ resilience. “Development runs only on weekdays” → schedule it to stop when idle. “Interruptions are acceptable” → consider Spot.

A3. NAT instance versus NAT Gateway: total-cost decision

ChoiceCost componentsOperational workWhen it can fit
NAT GatewayHourly charge plus data processing and applicable transfer chargesAWS manages the service; design one per AZ when AZ-level resilience is requiredManaged, scalable private-subnet internet egress
NAT instanceEC2 instance, storage, data transfer, and any supporting resourcesYou patch, monitor, scale, secure, and build failoverSmall or specialized setups where EC2 cost savings justify extra operations
  • A single shared NAT Gateway can reduce fixed gateway charges, but private subnets in other AZs may incur cross-AZ traffic and depend on that AZ.
  • One NAT Gateway per AZ usually improves availability and avoids cross-AZ dependency, but adds hourly charges.
  • A NAT instance may look cheaper for a small workload. Include engineering time, patching, scaling, monitoring, and failover in its real cost.
  • Compare traffic volume as well as hourly cost. NAT data processing can dominate for high-throughput workloads.

Exam clue: “Least operational overhead and managed egress” → NAT Gateway. “Very small workload, willing to manage the instance” → evaluate NAT instance. “High availability across AZs” → avoid relying on one shared NAT path.

A4. DNS services and cost-aware routing

  • Amazon Route 53 provides DNS hosting and routing policies. It can route using simple, weighted, latency-based, geolocation, geoproximity, and failover policies.
  • Include hosted-zone, DNS-query, health-check, and related service charges when estimating total cost. Check current pricing for the actual routing pattern.
  • Use sensible TTL (time to live) values. A very low TTL can increase repeated DNS queries; a very high TTL can slow the movement of clients after a change.
  • DNS routing chooses where a client should connect. It does not cache website images or files. Use CloudFront for content caching.
  • Use health checks and failover routing only when the application needs that behavior. DNS failover also depends on client and resolver caching.

Exam clue: “Route users based on latency or health” → Route 53 routing policies. “Cache static content near users” → CloudFront, not DNS.

A5. VPN count, bandwidth, and Direct Connect sizing

  • Estimate average and peak traffic, growth, encryption overhead, and the throughput needed during failover.
  • A Site-to-Site VPN connection provides redundant tunnels. Additional connections or tunnels may be needed for higher aggregate throughput or separate failure paths.
  • Where the selected gateway and routing design support it, ECMP (equal-cost multi-path routing) can distribute traffic across eligible paths. Do not assume every VPN gateway supports every aggregation pattern.
  • Choose Direct Connect port capacity to fit measured peak traffic plus reasonable headroom. A link sized only for average traffic can become a bottleneck.
  • A Link Aggregation Group (LAG) can combine supported Direct Connect links into one logical connection. Confirm supported speeds and port combinations before designing it.
  • Compare VPN, Direct Connect, provider charges, data transfer, redundancy, and encryption needs. Direct Connect is not automatically the cheapest choice for every workload.

Exam clue: “Quick encrypted connection over the internet” → Site-to-Site VPN. “Predictable, dedicated hybrid connectivity” → Direct Connect. “One link cannot handle peak traffic” → assess higher bandwidth or supported multiple-path design.

A6. Reviewing an existing network for cost improvements

Use evidence before changing routes:

  1. Use Cost Explorer and the Cost and Usage Report to find high network charges.
  2. Use VPC Flow Logs and service metrics to identify large or unexpected traffic paths.
  3. Check NAT processing, inter-AZ traffic, inter-Region transfer, internet egress, and unused network resources.
  4. Use S3 and DynamoDB gateway endpoints where appropriate so eligible service traffic does not need to pass through NAT.
  5. Use CloudFront when content is cacheable and repeatedly requested.
  6. Review resource placement and routes. Reduce unnecessary cross-AZ or cross-Region traffic without breaking availability requirements.
  7. Recheck latency, availability, and cost after the change.

Trap: The cheapest route is not automatically the best architecture. Keep the required security, latency, and failure protection while reducing avoidable traffic.