Networking and Content Delivery

A CloudFront origin group has primary and secondary origins, with HTTP 503 configured to trigger failover. The primary returns 503 for both GET and POST requests; what will CloudFront do?

Show the answer

Correct answerC. Fail over GET requests but return the primary's error for POST requests

AWhy not this: GET supports origin failover; POST is not a supported failover method.

BWhy not this: A matching status code does not override the request-method restrictions on origin failover.

CWhy this is right: GET supports origin failover, whereas POST does not, even when its response status matches a configured failover status.

DWhy not this: An eligible GET request can fail over when the primary returns a configured 503 response.

CloudFront origin failover supports GET, HEAD, and OPTIONS requests, so eligible GET requests can use the secondary origin. Configuring 503 as a failover status does not enable failover for POST requests.