An organization hosts a web application behind Application Load Balancers (ALBs) deployed in two AWS Regions: `us-west-2` and `eu-central-1`. A SysOps administrator must configure Amazon Route 53 to route traffic for the apex domain (`example.com`) to satisfy these requirements:
* All users located in Europe must be routed to the ALB in `eu-central-1` to comply with regional data privacy laws.
* Users outside of Europe must be routed to the ALB that provides the lowest network latency.
* The solution must support routing at the zone apex and minimize client-side DNS lookup overhead.
Which configuration should the SysOps administrator implement to meet these requirements?
- ACreate an active-passive Failover routing policy for `example.com` with the primary record pointing to the `eu-central-1` ALB and the secondary record pointing to the `us-west-2` ALB. Associate a Geolocation-based health check with the primary record to trigger a failover when non-European users request access.
- BCreate a Geolocation routing policy for `example.com`. Configure a rule for the Europe continent that points to the `eu-central-1` ALB using an Alias record. Configure the Default geolocation rule to point to `latency.example.com` using a CNAME record. In the same hosted zone, create Latency routing records for `latency.example.com` that point to the ALBs in both regions using Alias records.
- Create a Geolocation routing policy for `example.com`. Configure a rule for the Europe continent that points to the `eu-central-1` ALB using an Alias record. Configure the Default geolocation rule to point to `latency.example.com` using an Alias record. In the same hosted zone, create Latency routing records for `latency.example.com` that point to the ALBs in both regions using Alias records.Cevap
- DCreate Latency routing records for `example.com` pointing to the ALBs in both regions. For the `eu-central-1` Latency record, apply a Geoproximity routing policy as a nested configuration to restrict European users, and use a CNAME record at the apex to fall back for other users.
Cevap
Create a Geolocation routing policy for `example.com` with a rule for Europe pointing to the `eu-central-1` ALB and a Default rule pointing to `latency.example.com` using an Alias record, and then create Latency records for `latency.example.com` pointing to both ALBs using Alias records.
The correct configuration utilizes a Geolocation routing policy for the apex domain (`example.com`). A rule matching Europe continent traffic points directly to the `eu-central-1` ALB using an Alias record. The Default geolocation rule points to a subdomain (`latency.example.com`) using a nested Alias record. Within `latency.example.com`, Latency-based routing records point to both regional ALBs using Alias records. Because Route 53 resolves Alias records internally in a single step, the client browser receives the final IP address directly without any additional DNS queries or round-trips. This configuration fully supports the zone apex and respects the compliance and performance constraints.
Adım Adım Çözüm
Anahtar Kavram
Using nested Alias records in Amazon Route 53 allows the integration of different routing policies (such as Geolocation and Latency) while adhering to zone apex limitations and optimizing DNS resolution speed.