Let’s Get Certified
Module 13 / 22 · Cost-Optimized Architecture Design

Price the complete route for bytes and inference

Compare endpoint and transit charges, cache and origin behavior, selective replication and permitted inference paths.

Task 3.2 · Price the complete route for bytes and inference

An edge cache improves, but the network bill grows

Files are replicated to four Regions before a cache reads them. Private workers still send same-Region S3 traffic through NAT. Most model context is fetched from another Region. Which movements can a better hit ratio actually eliminate?

Compare your design with the worked answer

A hit avoids a request to the configured origin but does not undo pre-existing replication or application-side context transfers. Filter the required recovery object set, route eligible S3 traffic through gateway endpoints, and compare inference placement under allowed processing geography. Include fixed endpoint/attachment hours, regional bytes and real cache misses in the model.

If the write API also needs regional failover, design its consistency and routing separately. CloudFront origin failover supports specific request methods and cannot be assumed for every write.

3.2.1 · Count origin trips and test failover methods

Model edge hit ratio, request and viewer delivery costs, origin bytes and cache fragmentation. Origin Shield can consolidate misses from edge locations when the additional layer pays for itself. Define primary/secondary origins and verify eligible methods and failure conditions. A personalized cache key must preserve the access boundary.

3.2.2 · Price each hop in both directions

Draw routes for bulk flows, identify inter-AZ, inter-Region, NAT and endpoint usage, and reconcile actual billing usage types. Same-Region S3/DynamoDB gateway endpoints can avoid eligible NAT processing. An interface endpoint typically adds fixed and per-byte charges. Keep AZ redundancy where required while improving traffic locality.

3.2.3 · Replicate only what the recovery path reads

Classify writes by required destination, lag, ownership and retention. Filter S3 replication by prefix or tags when suitable. DynamoDB global tables maintain regional replicas and generate replicated write/storage costs. Include backfill, deletion behavior, encryption and restore tests. Compare with lower-cost backup copies where RPO permits.

3.2.4 · Compare a service endpoint with a transit network

Calculate the monthly fixed cost for endpoint AZs, transit attachments and gateways, then add bytes times processing and applicable transfer rates. Share fixed infrastructure only when routing, availability and isolation remain acceptable. PrivateLink exposes a service, while Transit Gateway provides network transit. Price only candidates that meet the topology requirement.

3.2.5 · Choose the inference location from the whole data path

Measure prompt, context, embedding and response sizes alongside model availability, regional price, throughput and residency. Keep bulky retrieval data near processing when feasible. Distinguish Bedrock's documented pricing for supported cross-Region inference profiles from ordinary application-controlled cross-Region transfers. Check all possible processing destinations before enabling a profile.

Apply the video example

The walkthrough includes query parameters in a cache policy. Compare the origin request count when a campaign parameter fragments otherwise identical public content. Keep parameters affecting authorization and the actual response appropriately isolated.

freeCodeCamp · 36:24:24 in CloudFront

Official SAP-C03 task 3.2 · Bedrock cross-Region inference

Return to the objective map

Knowledge check

Price the complete route for bytes and inference quiz

Answer 5 questions. Check each answer for an explanation.