Bird
0
0

A CloudFront distribution is set up with an origin at example-bucket.s3.amazonaws.com. When a user requests a file, what happens first?

medium📝 service behavior Q4 of 15
AWS - Cloud Computing Fundamentals
A CloudFront distribution is set up with an origin at example-bucket.s3.amazonaws.com. When a user requests a file, what happens first?
AThe user is redirected to the S3 bucket URL
BCloudFront retrieves the file directly from the S3 bucket every time
CCloudFront sends the request to the AWS region hosting the bucket
DCloudFront checks the nearest edge location cache for the file
Step-by-Step Solution
Solution:
  1. Step 1: Understand CloudFront caching behavior

    CloudFront first checks its edge location cache near the user for the requested file.
  2. Step 2: Explain fallback if cache miss

    If the file is not cached, CloudFront fetches it from the origin (S3 bucket) and caches it for future requests.
  3. Final Answer:

    CloudFront checks the nearest edge location cache for the file -> Option D
  4. Quick Check:

    CloudFront cache checked first = True [OK]
Quick Trick: CloudFront tries edge cache before origin fetch [OK]
Common Mistakes:
MISTAKES
  • Assuming CloudFront always fetches from S3
  • Thinking user is redirected to S3
  • Confusing AWS region with edge location

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes