Question 68:
You use a CloudFront distribution for a custom origin in EC2. To achieve high availability, you want to add a secondary origin in the same CloudFront distribution. If the primary origin is unavailable or returns certain HTTP error codes, CloudFront should automatically switch to the secondary origin. How would you configure it most appropriately?
Answer options:
A.In the CloudFront distribution, go to “settings > Error Pages” and configure a failover error page in the secondary origin. B.In the CloudFront distribution, go to the “Origins” settings and add different priorities such as “primary” and “secondary” in the origins. C.In the CloudFront distribution, create an origin group with these two origins that routes requests to the secondary origin for failover. D.Modify the origin to be a Route 53 record. Create a failover policy in the Route 53 record to route traffic to the custom origins.