Q46 — AWS SAA-C03 Ch.16

Question 46 of 100 | ← Chapter 16

Q1246. A company hosts a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The company uses Amazon Route 53 to route traffic.The company also has a static website that is configured in an Amazon S3 bucket.A solutions architect must use the static website as a backup to the web application.The failover to the static website must be fully automated.Which combination of actions will meet these requirements? (Select TWO.)

Correct Answer: C. Create a primary failover routing policy record. Configure the value to be the ALB. Associate the record with a Route 53 health check., E. Create a secondary failover routing policy record. Configure the value to be the static website.

Explanation

The company needs to automatically fail over from a primary web application (hosted on EC2 behind an ALB) to a static website in S3 when the primary becomes unavailable. The solution must use Route 53 failover routing for automation.Key Requirements:Primary (ALB-backed) and secondary (S3 static) endpoints.Automated failover (no manual intervention).Health checks to detect primary failure.Route 53 failover routing to manage traffic.Route 53 Failover Routing Basics:Primary record: Used when healthy.Secondary record: Used when the primary fails health checks. Health checks: Must be associated with the primary record to trigger failover.Analysis of Options:Option A: Create a primary failover routing policy record. Configure the value to be the ALB.Incomplete:Missing health check association, so failover won't work automatically.Not sufficient on its own.Option B: Create an AWS Lambda function to switch from the primary website to the secondary website when the health check fails.Incorrect:Not needed--Route 53 failover routing handles this automatically.Adds unnecessary complexity.Option C: Create a primary failover routing policy record. Configure the value to be the ALB. Associate the record with a Route 53 health check.Correct:Defines the primary endpoint (ALB).Health check ensures Route 53 monitors the ALB's availability.If the ALB fails, Route 53 stops routing traffic to it.Option D: Create a secondary failover routing policy record. Configure the value to be the static website.Associate the record with a Route 53 health check.Incorrect:The secondary record (S3 static site) should not have a health check (it's always available).Health checks are only for the primary.Option E: Create a secondary failover routing policy record. Configure the value to be the static website.Correct:Defines the secondary endpoint (S3 static site).No health check needed (S3 is assumed always healthy).Route 53 will use this when the primary fails.Correct Combination:C (Primary + Health Check) + E (Secondary, no Health Check).This ensures:Traffic goes to the ALB when healthy (C).If the ALB fails, traffic automatically routes to the S3 static site (E).Why Not Other Combinations?A + D: Missing health check on the primary (A), and secondary (D) incorrectly has a health check.A + E: Missing health check on the primary (A).B + Any: Lambda is unnecessary.C + D: Secondary (D) incorrectly has a health check.Final Answer:C and EStep-by-Step Solution:Create a Route 53 health check for the ALB (to monitor its availability).Create a primary failover record (C):Type: A or ALIAS (pointing to ALB).Routing Policy: Failover.Failover Record Type: PRIMARY.Associate the health check (from Step 1).Create a secondary failover record (E):Type: A or ALIAS (pointing to S3 bucket endpoint).Routing Policy: Failover.Failover Record Type: SECONDARY.No health check (S3 is always available).Test failover by disabling the ALB or simulating a failure. This setup ensures fully automated failover with no downtime for users.