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

Test yourself

Practice question

You want CloudFront to automatically serve content from a backup S3 bucket if the primary origin returns errors. What do you configure?

  1. A second CloudFront distribution
  2. A CloudFront origin group with failover
  3. Route 53 latency routing
  4. 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

CloudExamPro Premium

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

Limited-time offer · ends in -- Days : -- Hrs : -- Min : -- Sec
Get Instant Access