Exams / SAP-C03 / Study guide / Content delivery and replication costs (CloudFront, Origin Shield, CRR)
Content delivery and replication costs (CloudFront, Origin Shield, CRR): SAP-C03 study notes and practice questions
What to know about Content delivery and replication costs (CloudFront, Origin Shield, CRR) for the SAP-C03 exam, from the Cost-Optimized Architecture Design domain (15% of the exam guide), then 1 free question to test it. Part of the SAP-C03 study guide.
SAP-C03 asks how to serve a global audience cheaply and how to keep copies in other Regions without doubling the bill. The right answer raises the cache hit ratio and replicates only what a requirement needs.
CloudFront and cost
Data transfer from AWS origins (S3, ALB, EC2, API Gateway and others) to CloudFront is free. You pay CloudFront’s edge transfer and request prices, which are lower than direct internet egress from most Regions at volume.
Every cache miss is an origin request: more load, more origin compute and sometimes more transfer. The cache hit ratio is the main cost lever.
Cache policies decide the cache key. Include only the headers, cookies and query strings that change the response; forward the rest with an origin request policy so they don’t split the cache.
Set long TTLs with versioned file names for static assets, and compress with gzip or Brotli.
Origin Shield adds a central caching layer in one Region in front of the origin. All edge locations fetch through it, so the origin sees far fewer requests. It has its own per-request charge, so it pays off for origins with many edge locations missing on the same objects, live or on-demand video, or costly on-premises or cross-Region origins. Choose the Origin Shield Region closest to the origin.
Origin access control (OAC) keeps S3 private behind CloudFront so users cannot bypass the cache.
Price classes limit which edge locations serve you, trading some latency in distant areas for lower cost.
Origin failover
An origin group with a primary and secondary origin retries a request on the secondary when the primary returns a configured error code or times out. Pair it with an S3 bucket replicated to a second Region for a low-cost static DR site. This covers GET, HEAD and OPTIONS requests only.
Cost-aware replication
S3 Cross-Region Replication (CRR) copies new objects asynchronously. You pay inter-Region transfer, replication requests and storage in the destination. Cut cost by:
Filtering on prefix or tag so only required data replicates.
Writing replicas straight to a cheaper storage class (such as Standard-IA or Glacier classes) in the destination.
Using S3 Replication Time Control only when a requirement needs predictable replication time (it adds a charge).
Using S3 Batch Replication for existing objects, once.
Same-Region Replication avoids inter-Region transfer when the requirement is a second account, not a second Region.
DynamoDB global tables charge replicated writes in every replica Region plus storage in each. Add replicas only in Regions that serve traffic or DR needs, and remember every write is paid for in every Region.
How to choose
Scenario wording
Pick
“Origin overloaded by requests from many edge locations”
Origin Shield
“Low cache hit ratio, cache key includes all headers”
Tighten the cache policy
“Static site must survive a Regional S3 outage”
CloudFront origin group plus S3 CRR
“Compliance copy in another Region, rarely read”
CRR to a Glacier or IA class with a prefix filter
“Replicated objects within 15 minutes, auditable”
S3 Replication Time Control
“Global low-latency writes”
DynamoDB global tables, limited replica Regions
Common traps
Forwarding all headers and cookies, which turns the cache into a pass-through.
Origin Shield for a small site with a single nearby origin.
Replicating whole buckets to Standard in another Region when a cheap class or a filter would do.
Expecting CRR to copy existing objects without Batch Replication.
Adding global table replicas in Regions with no users.
A car maker publishes high-resolution vehicle images from an Amazon S3 bucket in a single Region. Dealers and owners around the world view them through Amazon CloudFront, and the team sees many cache misses reaching the bucket from edge locations on every continent. Most viewers are in Europe, Asia and North America.
The team wants to cut the origin requests and the cost of the transfers from the bucket, without changing the image URLs or the bucket's Region.
Which change meets these requirements?
Choose one answer.
AA. Remove CloudFront and let viewers download the images directly from the S3 bucket, with S3 Transfer Acceleration turned on for faster downloads in distant countries.
BB. Lower the CloudFront price class so that fewer edge locations serve the images, which reduces the number of misses that reach the bucket.
CC. Copy the bucket to a new bucket in every Region with Cross-Region Replication, and point each viewer's CloudFront origin at the closest copy.
DD. Turn on CloudFront Origin Shield in the Region where the bucket is located, so that edge locations fetch from one shielded cache layer before they go to the bucket.
Show the answer and explanation
Answer: D
A. Wrong: Without CloudFront, every view is served from the bucket, so origin requests and transfer costs rise, and Transfer Acceleration adds its own per-gigabyte charge. The option also changes the image URLs, which the team wants to keep.
B. Wrong: A smaller price class removes edge locations, which raises latency for viewers in the excluded regions. It does not reduce the requests that the edge locations still make to the bucket.
C. Wrong: Replicas in every Region multiply storage and replication charges, and they do not reduce the cache misses that reach the origin. The option also changes the origin the team manages.
D. Right: Correct. Origin Shield adds a central cache layer in the origin's Region, so many edge misses collapse into fewer requests to the bucket. The image URLs and the bucket's Region stay the same.
Explanation
Origin Shield collapses cache misses from many edge locations into one layer in the origin's Region, which cuts origin requests without changing URLs or the bucket. Removing CloudFront, replicating everywhere or cutting the price class each raise cost or latency.
Want more on Content delivery and replication costs (CloudFront, Origin Shield, CRR)? The 5 full-length practice sets have 5 more Content delivery and replication costs (CloudFront, Origin Shield, CRR) questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →
Study Content delivery and replication costs (CloudFront, Origin Shield, CRR)