AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 205

A company needs to implement failover for its application. The application includes an Amazon CloudFront distribution and a public Application Load Balancer (ALB) in an AWS Region. The company has configured the ALB as the default origin for the distribution.

After some recent application outages, the company wants a zero-second RTO. The company deploys the application to a secondary Region in a warm standby configuration. A DevOps engineer needs to automate the failover of the application to the secondary Region so that HTTP GET requests meet the desired RTO.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because it effectively creates a failover mechanism by utilizing an origin group that can switch to the secondary ALB upon detecting HTTP 5xx errors, ensuring high availability. Option A is not suitable as it requires maintaining two separate CloudFront distributions, which complicates management. Option C is incorrect because while it suggests using Route 53 for failover, it does not address the need for handling HTTP 5xx errors specifically. Option D is also inadequate since it relies on a function to handle redirects instead of a reliable failover setup.