Bird
0
0

Given a CloudFront distribution with an origin set to mybucket.s3.amazonaws.com and default cache behavior, what happens when a user requests a file not yet cached at the edge location?

medium📝 service behavior Q13 of 15
AWS - Cloud Computing Fundamentals
Given a CloudFront distribution with an origin set to mybucket.s3.amazonaws.com and default cache behavior, what happens when a user requests a file not yet cached at the edge location?
ACloudFront serves a stale cached version from another edge location
BCloudFront returns a 404 error immediately
CCloudFront redirects the user to the origin URL
DCloudFront fetches the file from the origin and caches it at the edge
Step-by-Step Solution
Solution:
  1. Step 1: Understand CloudFront cache miss behavior

    If a requested file is not in the edge cache, CloudFront retrieves it from the origin.
  2. Step 2: Confirm caching after retrieval

    After fetching, CloudFront caches the file at the edge location for future requests.
  3. Final Answer:

    CloudFront fetches the file from the origin and caches it at the edge -> Option D
  4. Quick Check:

    Cache miss triggers origin fetch and caching [OK]
Quick Trick: Cache miss = fetch from origin + cache [OK]
Common Mistakes:
MISTAKES
  • Assuming CloudFront returns error on cache miss
  • Thinking CloudFront redirects users to origin
  • Believing stale cache is served from other edges

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes