SAP-C02 Lambda@Edge Practice Question
A media company delivers video content to a global audience using Amazon CloudFront, AWS Lambda@Edge, and Amazon S3. The origin is an S3 bucket that stores video files. Recently, users in Asia-Pacific report slow load times. The operations team checks CloudFront metrics and sees a high cache miss rate for content popular in that region. The team wants to improve performance for all users without significantly increasing costs. The application uses a single CloudFront distribution with a default cache behavior. The S3 bucket is in us-east-1. Which solution should the team implement?
⚠ Common exam trap
The trap is that origin groups are often mistakenly thought to support geographic routing, but they only provide failover between origins. Right answer uses Lambda@Edge for location-based redirection.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use Lambda@Edge to redirect requests to the nearest S3 bucket based on the viewer's location.
Using Lambda@Edge to redirect requests to the nearest S3 bucket based on viewer location reduces latency for global users by serving content from a regional S3 bucket. This approach improves performance for all users without significantly increasing costs, as it leverages existing Lambda@Edge and S3 infrastructure. Option D is incorrect because CloudFront origin groups are designed for failover, not geographic routing, and using geographic headers for origin selection is not a native feature.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable S3 Transfer Acceleration on the S3 bucket and update CloudFront to use the accelerated endpoint.
Why it's wrong here
S3 Transfer Acceleration is for faster uploads, not downloads, and does not address cache miss rates on CloudFront.
- ✗
Create separate CloudFront distributions for each geographic region and use Route 53 latency-based routing.
Why it's wrong here
Creating separate distributions per region increases management overhead and cost, and does not leverage the existing distribution.
- ✓
Use Lambda@Edge to redirect requests to the nearest S3 bucket based on the viewer's location.
Why this is correct
Lambda@Edge can redirect requests to the nearest regional S3 bucket based on viewer location, reducing latency and cache misses efficiently.
- ✗
Set up multiple origin groups in the existing CloudFront distribution with one S3 bucket per region, and configure cache behaviors based on geographic headers.
Why it's wrong here
Origin groups are for failover, not geographic routing; this solution is not feasible as described.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
Courseiva writes every SAP-C02 question from scratch — 1,660 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.