CloudFront origin failover uses an origin group with a primary and secondary origin; if the primary returns errors, CloudFront automatically serves from the secondary — improving availability of your content.
How origin failover works
Create a CloudFront origin group with a primary origin, a secondary origin, and the failover criteria. CloudFront sends the request to the primary first and switches to the secondary when the response matches a configured failover status code. This is origin-level failover within one distribution, not a DNS-based routing change.
Exam traps and design checks
- Origin group: the primary and secondary origins must be configured in the same CloudFront distribution.
- Failover criteria: configure the HTTP status codes that should trigger failover; do not assume every origin error automatically triggers it.
- Supported methods: origin failover is designed for cacheable request methods such as GET, HEAD, and OPTIONS; it does not provide general failover for every write request.
- Data availability: the secondary origin must contain or be able to serve the required content. Failover configuration does not replicate the content by itself.
- Decision clue: automatic fallback between two origins in one distribution points to a CloudFront origin group.
Test yourself
You want CloudFront to automatically serve content from a backup S3 bucket if the primary origin returns errors. What do you configure?
- A second CloudFront distribution
- A CloudFront origin group with failover
- Route 53 latency routing
- S3 Cross-Region Replication only
👉 Click to reveal the answer & explanation
Correct answer: B. A CloudFront origin group with a primary and secondary origin fails over automatically on primary errors. A second distribution (A) doesn’t auto-fail-over within one; Route 53 latency routing (C) optimizes speed, not origin failover; replication (D) copies data but doesn’t switch origins.
Related topics
Amazon CloudFront · CloudFront caching · S3 lifecycle & replication
Build your AWS certification readiness
Stop guessing whether you’re ready. Our full-length, exam-realistic practice exams put you through the exact question style you’ll face — with a detailed explanation behind every answer, so you learn why, not just what.
- ✓ 6 full-length practice exams
- ✓ A detailed explanation for every single question
- ✓ Realistic, scenario-based questions — not memory dumps
- ✓ 6 months of access to your selected certification pack
Explore the SAA-C03 Premium Practice Exams →or try the free SAA-C03 diagnostic first