This chapter covers Amazon Route 53 routing policies, a core topic for the SOA-C02 exam's Networking domain (Objective 5.2: 'Implement Route 53 routing policies'). You will learn the eight routing policies—simple, weighted, latency-based, geolocation, geoproximity, failover, multi-value answer, and IP-based—their use cases, configuration, and how they affect DNS resolution. Approximately 10–15% of exam questions touch on Route 53, with routing policies being the most frequently tested sub-topic, often in scenario-based questions that require selecting the correct policy for a given requirement.
Jump to a section
Think of Route 53's routing policies as a GPS navigation system for a delivery fleet. Simple routing is like a GPS that always sends a driver to the same fixed address—no matter traffic or road closures. Weighted routing is like a dispatcher who splits deliveries among drivers based on their capacity: Driver A gets 70% of packages, Driver B gets 30%. Latency-based routing is like a GPS that monitors real-time traffic and sends the driver to the destination via the fastest route, even if it's longer in miles. Geolocation routing is like a GPS that restricts deliveries to specific zip codes based on the driver's current location—useful for compliance. Failover routing is like a primary driver with a backup: if the primary gets stuck in traffic, the GPS automatically reroutes to the backup driver. Multi-value answer routing is like a GPS that returns multiple nearby gas stations with their ratings, so the driver can choose. Geoproximity routing is like a GPS that sends a driver to the nearest warehouse to pick up a package, but you can also bias the route toward a specific warehouse by increasing its attraction factor. Each policy is a different algorithm the GPS uses to decide which address to return to the driver's query.
What Are Route 53 Routing Policies and Why Do They Exist?
Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service. DNS's primary function is to translate human-readable domain names (e.g., www.example.com) into IP addresses (e.g., 192.0.2.1). However, when you have multiple resources serving the same domain—such as multiple web servers, load balancers, or AWS regions—you need a way to decide which IP address to return to each DNS query. Routing policies are the set of rules that Route 53 uses to select a record from a record set when a query arrives.
Route 53 supports eight routing policies:
Simple
Weighted
Latency-based
Geolocation
Geoproximity (traffic flow only)
Failover
Multi-value answer
IP-based
Each policy addresses a different operational requirement, such as load distribution, performance optimization, geographic restriction, or high availability.
How Routing Policies Work Internally
When a DNS resolver queries Route 53 for a domain name, the following steps occur: 1. The resolver sends a DNS query to a Route 53 name server. 2. Route 53 receives the query and examines the requested record name and type (e.g., A record for www.example.com). 3. Route 53 checks the routing policy configured on that record set. 4. Based on the policy, Route 53 selects one or more records from the record set. 5. Route 53 returns the selected record(s) in a DNS response, which may include a TTL (time-to-live) value.
The routing policy logic is executed on the Route 53 server side at the time of the query. The DNS resolver caches the response according to the TTL, so subsequent queries within the TTL period will receive the cached answer without contacting Route 53 again.
Key Components, Values, Defaults, and Timers
Record Name and Type: Each record set has a name (e.g., www.example.com) and a type (A, AAAA, CNAME, MX, etc.). The routing policy is configured on the record set, not on individual records.
Set Identifier: For weighted, latency, geolocation, geoproximity, failover, multi-value, and IP-based policies, you must assign a unique set identifier to each record within the record set. This differentiates records when the policy selects one.
TTL (Time-to-Live): Default is 300 seconds (5 minutes) for most policies, but you can set it from 0 to 2,147,483,647 seconds (about 68 years). Lower TTLs allow faster propagation of changes but increase DNS query load. For failover routing, a low TTL (e.g., 10 seconds) is common to enable quick failover.
Health Checks: Route 53 can associate health checks with records. If a health check fails, Route 53 may exclude that record from responses (depending on the policy). For failover routing, health checks are mandatory for primary and secondary records.
Weighted Routing Policy: Each record is assigned a weight (integer between 0 and 255). The probability of selecting a record is its weight divided by the sum of all weights in the record set. A weight of 0 means the record is never returned unless all records have weight 0, in which case all are returned. Default weight is 1 if not specified.
Latency Routing Policy: Route 53 measures network latency between the user's DNS resolver and the AWS region where the resource is located. It maintains a latency table updated periodically. When a query arrives, Route 53 returns the record with the lowest latency for the user's resolver region. If multiple records have similar latency, one is chosen arbitrarily.
Geolocation Routing Policy: Route 53 uses the source IP address of the DNS resolver to determine the user's geographic location (country or US state). It then returns the record that matches that location. If no record matches the exact location, Route 53 returns the record for the default location (if configured) or returns no answer (NXDOMAIN). You can also create a record for "Other Continent" or "Other Country" to catch unmatched locations.
Geoproximity Routing Policy: Available only through Route 53 Traffic Flow (not simple record sets). You specify a location (latitude and longitude) for each resource and a bias value (+/- 99). The bias shifts traffic toward or away from the resource. Route 53 calculates a "proximity score" based on the user's location and the resource's location, adjusted by bias, and selects the resource with the best score.
Failover Routing Policy: You configure a primary and a secondary record (or more with Traffic Flow). Route 53 returns the primary record if its associated health check is healthy. If the primary health check fails, Route 53 returns the secondary record. Only one record is returned per query. You can have multiple secondary records for disaster recovery.
Multi-value Answer Routing Policy: Similar to simple routing but allows up to 8 healthy records to be returned in a single response. If fewer than 8 records are healthy, only those are returned. If no records are healthy, all are returned. Health checks are optional but recommended.
IP-based Routing Policy: You define CIDR blocks (e.g., 203.0.113.0/24) and associate them with records. Route 53 matches the querying resolver's IP address against the CIDR blocks and returns the corresponding record. This is useful for routing traffic from specific ISPs or corporate networks.
Configuration and Verification Commands
You configure routing policies using the AWS Management Console, AWS CLI, SDKs, or CloudFormation. For example, using the AWS CLI to create a weighted A record:
aws route53 change-resource-record-sets --hosted-zone-id Z3A1B2C3D4E5F6 --change-batch '{
"Changes": [
{
"Action": "CREATE",
"ResourceRecordSet": {
"Name": "www.example.com",
"Type": "A",
"SetIdentifier": "WebServer1",
"Weight": 70,
"TTL": 300,
"ResourceRecords": [{"Value": "192.0.2.1"}]
}
}
]
}'To verify, use dig or nslookup to query the Route 53 name servers directly:
dig www.example.com @ns-123.awsdns-45.netCheck the response to see which IP address is returned. Repeat multiple times to confirm weight distribution.
Interaction with Related Technologies
AWS Global Accelerator: Use Global Accelerator to route traffic to optimal endpoints using Anycast IPs, then use Route 53 to point your domain to the Global Accelerator DNS name. This combines low-latency routing with DNS-level policies.
Elastic Load Balancing (ELB): You can create an alias record that points to an ELB DNS name. Route 53 automatically resolves the ELB's IP addresses. Routing policies like weighted or latency can be applied to alias records pointing to different ELBs.
CloudFront: Similar to ELB, you can create alias records pointing to CloudFront distributions. Route 53 routing policies can distribute traffic across multiple CloudFront distributions or between CloudFront and other origins.
Health Checks: Route 53 health checks can monitor endpoints (IP/port), CloudWatch alarms, or other health checks (calculated health checks). They are essential for failover and multi-value routing to ensure traffic is sent only to healthy resources.
Detailed Breakdown of Each Policy
#### Simple Routing Policy - Use case: Single resource (e.g., one web server). - Behavior: Returns all values in the record set in a random order. If multiple values are present, the resolver may cache one or all. - Limitations: No health checks, no load balancing. If the single resource fails, DNS still returns its IP. - Configuration: No set identifier required. Just create a record with one or more values.
#### Weighted Routing Policy - Use case: Load balancing across multiple resources with controlled proportions (e.g., 70% traffic to region A, 30% to region B). - Behavior: Route 53 selects a record based on weight distribution. The selection is deterministic based on a hash of the query source IP and other factors, so the same user tends to hit the same resource (sticky). - Configuration: Each record must have a unique set identifier and a weight. The sum of weights can be any number; weights are normalized. - Exam tip: If you set all weights to 0, all records are returned (like simple). If you set some to 0, those are never returned unless all are 0.
#### Latency Routing Policy - Use case: Direct users to the AWS region with the lowest latency for better performance. - Behavior: Route 53 maintains a latency database based on traffic between resolvers and AWS regions. It returns the record with the lowest latency for the user's resolver. - Configuration: Each record must have a set identifier and a region (the AWS region where the resource is located). Route 53 uses the region to estimate latency. - Exam tip: Latency routing does not consider actual endpoint health; use health checks to exclude unhealthy records.
#### Geolocation Routing Policy - Use case: Restrict content based on user location (e.g., serve EU users from EU region for GDPR compliance). - Behavior: Route 53 maps the resolver's IP to a geographic location (country, continent, or US state). It returns the record that matches that location. If no match, it returns the default record (if configured) or no answer. - Configuration: Each record must have a set identifier and a location (country code, continent code, or US state). You can also create a record for "Other Continent" or "Other Country" to catch unspecified locations. - Exam tip: If you have overlapping geolocations (e.g., a record for the US and a record for North America), Route 53 uses the most specific match (US over North America).
#### Geoproximity Routing Policy (Traffic Flow only) - Use case: Route traffic based on geographic distance with optional bias to shift traffic. - Behavior: Route 53 calculates a proximity score for each resource based on user location and resource location, adjusted by bias. The resource with the best score is selected. - Configuration: Requires Traffic Flow policy record. You specify latitude, longitude, and bias for each resource. Bias can be positive (attract traffic) or negative (repel traffic). - Exam tip: Geoproximity is not available in simple record sets; you must use Traffic Flow.
#### Failover Routing Policy - Use case: Active-passive failover between two resources. - Behavior: Route 53 returns the primary record if its health check is healthy; otherwise, it returns the secondary record. Only one record is returned per query. - Configuration: You need a primary and secondary record, each with a set identifier and a failover role (PRIMARY or SECONDARY). Health checks are required for primary and recommended for secondary. - Exam tip: You can have multiple secondary records (e.g., multiple regions) but only one primary. If the primary fails, Route 53 selects one secondary based on routing policy (e.g., weighted among secondaries).
#### Multi-value Answer Routing Policy - Use case: Return multiple healthy IP addresses to a client for client-side load balancing (up to 8). - Behavior: Route 53 returns up to 8 healthy records. If fewer than 8 are healthy, only those are returned. If none are healthy, all are returned. - Configuration: Each record must have a set identifier. Health checks are optional but recommended. - Exam tip: Multi-value is not a replacement for a load balancer; it simply returns multiple A records. The client chooses which to use.
#### IP-based Routing Policy - Use case: Route traffic based on the CIDR block of the user's resolver IP (e.g., send traffic from a corporate VPN to a specific endpoint). - Behavior: Route 53 matches the resolver IP against defined CIDR blocks and returns the corresponding record. - Configuration: You create a CIDR collection (set of CIDR blocks) and associate it with a record set. Each record is mapped to a CIDR location. - Exam tip: IP-based routing is relatively new and may appear in scenario questions about routing traffic from specific ISPs.
Common Exam Scenarios and Pitfalls
Weighted routing with health checks: If a record fails health check, Route 53 does NOT remove it from the pool; it simply continues to be selected but returns unhealthy. To exclude unhealthy records, you must use a routing policy that supports health checks (failover, multi-value, latency with health checks). Actually, Route 53 can be configured to evaluate target health and return only healthy records for weighted and latency policies if you enable "Evaluate Target Health" on an alias record or use a non-alias record with a health check. For non-alias records, you can associate a health check; if the health check fails, Route 53 will not return that record (for weighted, latency, and geolocation policies) only if the record is non-alias and has a health check. For alias records, you set "Evaluate Target Health" to true.
Latency routing without health checks: If a region goes down, latency routing will still direct traffic to it because latency is low (the region is down but network latency is still low). Always use health checks.
Geolocation routing without default: If a user's location does not match any record and no default is configured, they receive no answer (NXDOMAIN). This can cause a complete outage for those users.
Failover routing with multiple secondaries: If you have multiple secondaries, Route 53 selects one using a simple algorithm (random). To control which secondary is used, use Traffic Flow.
Multi-value answer with health checks: Only healthy records are returned, up to 8. If all are unhealthy, all are returned (including unhealthy). This can be a problem; use a separate health check that always passes to ensure some records are always returned.
Conclusion
Mastering Route 53 routing policies requires understanding the mechanism behind each policy, the configuration options, and how they interact with health checks and other AWS services. For the SOA-C02 exam, focus on scenario-based questions that ask which policy to use given requirements like performance, geographic restrictions, load distribution, or failover. Remember the key differences: simple returns all records, weighted uses probability, latency uses network latency, geolocation uses location, geoproximity uses distance with bias, failover uses health checks, multi-value returns up to 8 healthy records, and IP-based uses CIDR matching.
Create a Hosted Zone
First, create a hosted zone for your domain (e.g., example.com) in Route 53. This zone will contain the DNS records. In the AWS Management Console, navigate to Route 53, click 'Hosted zones', then 'Create hosted zone'. Enter your domain name and choose either a public or private hosted zone. Public hosted zones are for internet-facing resources; private hosted zones are for internal VPC resources. After creation, note the four name servers assigned to the zone; you must update your domain registrar's NS records to these values to delegate the domain to Route 53.
Create Records with Appropriate Routing Policy
Within the hosted zone, create a record set for your desired name (e.g., www.example.com). Choose the record type (A, AAAA, CNAME, etc.). Then select the routing policy: Simple, Weighted, Latency, Geolocation, Failover, Multi-value, or IP-based. For policies requiring a set identifier, provide a unique name (e.g., 'WebServer1'). Configure the policy-specific parameters: for weighted, set the weight; for latency, specify the AWS region; for geolocation, specify the location; for failover, designate PRIMARY or SECONDARY; for multi-value, no extra parameters; for IP-based, select the CIDR collection. Enter the value (IP address or DNS name) and set the TTL. Optionally, associate a health check.
Associate Health Checks (if needed)
For failover routing, health checks are mandatory. For weighted, latency, geolocation, multi-value, and IP-based routing, health checks are optional but recommended to avoid routing traffic to unhealthy resources. Create a health check in Route 53 specifying the endpoint (IP address or domain name), protocol (HTTP, HTTPS, TCP), and port. You can also use CloudWatch alarms or calculated health checks. Once created, associate the health check with the record by editing the record and selecting the health check from the dropdown. Route 53 will then evaluate the health check before returning the record in DNS responses.
Test DNS Resolution
Use DNS tools like `dig`, `nslookup`, or online DNS checkers to verify that Route 53 returns the expected records. Query the Route 53 name servers directly to bypass resolver caching. For example: `dig www.example.com @ns-123.awsdns-45.net`. For weighted routing, run multiple queries to see if the distribution matches the configured weights. For latency routing, test from different geographic locations (using a VPN or different resolvers). For failover routing, simulate a failure by stopping the primary resource or disabling the health check, then verify that the secondary record is returned.
Monitor and Adjust
After deployment, monitor DNS query logs (if enabled) and CloudWatch metrics for Route 53. Check the number of queries, health check status, and latency. If the traffic distribution is not as expected, adjust weights, biases, or health check thresholds. For example, if one region receives too much traffic in latency routing, you might add more resources in that region or adjust the routing policy. For weighted routing, you can change weights dynamically and changes take effect within the TTL period. Always test changes in a non-production environment first.
Enterprise Scenario 1: Global E-Commerce Platform with Latency-Based Routing
A multinational e-commerce company deploys web servers in three AWS regions: us-east-1 (N. Virginia), eu-west-1 (Ireland), and ap-southeast-1 (Singapore). Their goal is to minimize page load times for users worldwide. They configure latency-based routing for www.shop.com with three A records, each pointing to an Application Load Balancer (ALB) in its respective region. They associate health checks with each ALB to detect regional outages. When a user in Brazil queries the domain, Route 53 measures latency from the user's resolver to each region and returns the record with the lowest latency, typically us-east-1. If the us-east-1 ALB fails, the health check fails, and Route 53 excludes that record, returning the next best region. The TTL is set to 60 seconds to allow quick adaptation to changes. The company monitors CloudWatch metrics and notices that users in Australia occasionally get routed to us-east-1 due to similar latency to ap-southeast-1; they consider adding a region in Australia or using geoproximity with bias to fine-tune.
Enterprise Scenario 2: Content Delivery with Geographic Restrictions
A media streaming service must comply with licensing agreements that restrict content to specific countries. They use geolocation routing to serve different content based on the user's country. For example, users in the US get an A record pointing to a CloudFront distribution with US-licensed content; users in the UK get a different CloudFront distribution. They create records for each country and a default record for all other countries that returns a 'content not available' page. They also create a record for 'North America' to catch Canada and Mexico. The routing works by mapping the user's DNS resolver IP to a country. However, they encounter a problem: users using public DNS resolvers (like Google 8.8.8.8) may be mapped to the resolver's location, not the user's actual location. To mitigate this, they encourage users to use EDNS0 client subnet (ECS) if supported, but Route 53 does not currently support ECS for geolocation. They accept the limitation and monitor for discrepancies.
Enterprise Scenario 3: Active-Passive Failover with Weighted Secondary
A financial services company requires high availability for its trading platform. They deploy primary infrastructure in us-east-1 and a secondary in us-west-2. They use failover routing with a primary record pointing to the us-east-1 ALB and a secondary record pointing to the us-west-2 ALB. Health checks monitor the primary ALB's /health endpoint. If the primary fails, Route 53 returns the secondary within the TTL period (set to 10 seconds). However, they also want to distribute traffic across multiple secondary regions during a failover to avoid overloading one region. They use Traffic Flow to create a policy that includes a primary and multiple weighted secondary records. This allows them to control the distribution of traffic among secondaries. They also implement a 'gradual failback' by reducing the weight of the secondary records after the primary recovers, to avoid a thundering herd problem. Common pitfalls: forgetting to set a low TTL on the failover records, which delays failover; and not monitoring health check status, leading to false positives or negatives.
What SOA-C02 Tests on Route 53 Routing Policies
The SOA-C02 exam (Objective 5.2: 'Implement Route 53 routing policies') focuses on your ability to select the correct routing policy for a given scenario. Questions often present a business requirement (e.g., 'reduce latency for global users,' 'comply with data sovereignty laws,' 'distribute traffic evenly across multiple endpoints') and ask which routing policy to use. You must also understand the limitations and default behaviors.
Common Wrong Answers and Why Candidates Choose Them
Choosing 'Latency' when 'Geolocation' is needed: Candidates see 'latency' and think 'fast,' but the requirement might be geographic restriction (e.g., GDPR). Latency routing does not restrict by location; it routes based on network performance. The wrong answer is appealing because it also improves performance, but it doesn't enforce compliance.
Choosing 'Weighted' for active-passive failover: Candidates think weights can simulate failover (e.g., set primary weight 100, secondary 0, then change on failure). But weighted routing does not automatically fail over; you must manually change weights or use health checks (which exclude unhealthy records only if health checks are associated). The exam expects you to use 'Failover' routing for automatic failover.
Choosing 'Multi-value' as a load balancer replacement: Multi-value returns up to 8 records, but it does not provide load balancing or health checking at the DNS level. Candidates think it's a simple way to distribute traffic, but the client chooses which IP to use, leading to uneven load. The correct answer for load balancing is 'Weighted' with health checks or an actual load balancer.
Assuming 'Simple' routing supports health checks: Simple routing does not support health checks. If a record fails, Route 53 still returns it. Candidates might think health checks are universal, but they are only available for certain policies.
Specific Numbers, Values, and Terms That Appear on the Exam
Weight range: 0 to 255.
TTL default: 300 seconds (5 minutes) for most policies; for failover, a low TTL (e.g., 10-60 seconds) is recommended.
Maximum records in a multi-value response: 8.
Geoproximity bias range: -99 to +99.
Failover roles: PRIMARY and SECONDARY (case-sensitive).
Health check types: HTTP, HTTPS, TCP, CloudWatch alarm, calculated.
Set identifier: Required for weighted, latency, geolocation, geoproximity, failover, multi-value, and IP-based.
Edge Cases and Exceptions
Weighted routing with all weights set to 0: All records are returned (like simple). This is a trick question on the exam.
Geolocation routing with overlapping locations: The most specific match wins. For example, a record for 'US' takes precedence over a record for 'North America' for users in the US.
Failover routing with multiple secondaries: Only one secondary is returned; Route 53 picks one arbitrarily. To control which secondary, use Traffic Flow.
Multi-value answer with all records unhealthy: All records are returned (including unhealthy). This can cause outages; a workaround is to have a 'always healthy' dummy record.
Latency routing without health checks: If a region is down, it still receives traffic because latency is low. Always use health checks.
How to Eliminate Wrong Answers
Identify the core requirement: Is it performance, geographic restriction, load distribution, or high availability? Match to the policy's primary use case.
Check for health check support: If automatic failover is needed, the policy must support health checks (failover, multi-value, weighted/latency/geolocation with health check association).
Consider TTL implications: Low TTL for quick changes, high TTL to reduce query load.
Watch for 'all of the above' or 'none of the above' traps: Often, one policy clearly fits, and others have subtle mismatches.
Remember default behavior: Simple returns all records; weighted with all zeros returns all; geolocation without default returns NXDOMAIN.
Route 53 supports eight routing policies: Simple, Weighted, Latency, Geolocation, Geoproximity, Failover, Multi-value, and IP-based.
Simple routing returns all values; no health checks; no load balancing.
Weighted routing uses weights (0-255) to control traffic proportion; all zeros returns all records.
Latency routing uses network latency from the user's resolver to AWS regions; requires region specification.
Geolocation routing uses resolver IP location; supports country, continent, US state; default record required to avoid NXDOMAIN.
Geoproximity routing is only available via Traffic Flow; uses distance and bias (-99 to +99) to route traffic.
Failover routing requires health checks; returns primary if healthy, else secondary; only one primary per record set.
Multi-value answer returns up to 8 healthy records; if all unhealthy, all are returned.
IP-based routing matches resolver IP against CIDR blocks; requires a CIDR collection.
Set identifiers are required for all policies except Simple and Multi-value (though for Multi-value it is technically required).
TTL default is 300 seconds; lower TTL for faster failover, higher TTL to reduce query load.
Health checks can be associated with records to exclude unhealthy ones for weighted, latency, geolocation, and multi-value policies.
Failover routing is the only policy that automatically switches between primary and secondary based on health check status.
Geolocation routing does not support EDNS0 client subnet; uses resolver IP only.
Multi-value answer routing does not provide load balancing; client chooses which IP to use.
These come up on the exam all the time. Here's how to tell them apart.
Weighted Routing
Distributes traffic based on configured weights (proportional control).
Does not consider network performance; purely based on weight ratios.
Useful for A/B testing, gradual rollouts, or load balancing across resources with known capacity.
Requires unique set identifiers and weights for each record.
Health checks can be associated to exclude unhealthy records.
Latency Routing
Distributes traffic based on lowest network latency for each user.
Automatically adapts to changing network conditions (latency table updated periodically).
Useful for global applications where user performance is critical.
Requires unique set identifiers and specifying the AWS region for each record.
Health checks are strongly recommended to avoid routing to down regions.
Failover Routing
Active-passive: returns primary if healthy, else secondary.
Only one record returned per query (primary or secondary).
Requires health checks on primary (mandatory) and secondary (recommended).
Useful for disaster recovery with automatic failover.
Can have multiple secondaries but only one primary.
Multi-value Answer Routing
Returns up to 8 healthy records per query (or all if none healthy).
Client receives multiple IPs and chooses which to use.
Health checks are optional but recommended.
Useful for client-side load balancing with simple failover.
Not a replacement for a load balancer; no server-side load distribution.
Mistake
Latency routing routes based on the user's geographic distance to the AWS region.
Correct
Latency routing routes based on actual network latency measured from the user's DNS resolver to the AWS region, not geographic distance. Two users at the same location can have different latency due to ISP routing. Geographic distance is only an approximation.
Mistake
Weighted routing distributes traffic evenly across records with the same weight.
Correct
Weighted routing distributes traffic proportionally based on the weight relative to the sum of all weights. If two records both have weight 1, each gets 50% of queries. But if a third record has weight 2, the distribution becomes 25%, 25%, 50%. The sum of weights normalizes the probabilities.
Mistake
Geolocation routing uses the user's actual IP address to determine location.
Correct
Geolocation routing uses the IP address of the user's DNS resolver, not the user's actual device IP. If a user uses a public resolver like Google (8.8.8.8), the location is based on the resolver's location, which may be different. This can lead to incorrect routing for some users.
Mistake
Failover routing can have multiple primary records.
Correct
Failover routing supports only one primary record per record set. You can have multiple secondary records, but only one primary. If you need multiple active records, use weighted or latency routing instead.
Mistake
Multi-value answer routing provides load balancing across the returned records.
Correct
Multi-value answer routing returns up to 8 records, but the client (browser, application) chooses which IP to use. There is no server-side load balancing. The client may pick the first record or round-robin, leading to uneven load. For true load balancing, use a load balancer or weighted routing.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
Latency-based routing directs traffic to the AWS region that provides the lowest network latency for the user's DNS resolver. It measures actual performance and updates periodically. Geolocation routing directs traffic based on the geographic location of the user's resolver (country or US state). Latency is about performance; geolocation is about location-based rules (e.g., compliance). For the exam, if the requirement is 'lowest latency,' choose latency; if it's 'serve content based on user location,' choose geolocation.
Yes, you can associate a health check with each weighted record. If the health check fails, Route 53 will not include that record in the response, effectively removing it from the weighted pool. This is a common pattern for active-active failover with weighted distribution. However, note that if all records fail health checks, Route 53 returns all records (including unhealthy ones) to prevent a complete outage.
If all records in a weighted record set have a weight of 0, Route 53 returns all records as if it were simple routing. This is a common exam trick. Typically, a weight of 0 means the record is never returned, but if all are 0, the special case applies. To exclude a record from the pool, set its weight to 0 and ensure at least one other record has a non-zero weight.
Failover routing supports only one primary record. You can have multiple secondary records, but Route 53 selects one of them arbitrarily when the primary fails. If you need more control over which secondary is used (e.g., based on geography or capacity), you should use Route 53 Traffic Flow to create a failover policy with weighted secondaries. The exam may test that only one secondary is returned, not all.
Multi-value answer routing returns up to 8 healthy records in the DNS response. The client (e.g., web browser) then chooses one IP to connect to. Most clients use a simple round-robin or pick the first IP, which can lead to uneven traffic distribution. For true load balancing, use an Application Load Balancer or Network Load Balancer in front of your instances, and point a simple or weighted record to the load balancer.
No, geoproximity routing is only available through Route 53 Traffic Flow policy records. You cannot configure it directly on a simple record set. You must create a Traffic Flow policy and then create a policy record that references it. The exam may ask which routing policy requires Traffic Flow; geoproximity is the answer.
The default TTL is 300 seconds (5 minutes). TTL determines how long DNS resolvers cache the response. A low TTL (e.g., 10 seconds) ensures changes propagate quickly, which is critical for failover scenarios. A high TTL reduces DNS query load but delays updates. For the exam, remember that failover records should have a low TTL to minimize downtime during failover.
You've just covered Route 53 Routing Policies — now see how well it sticks with free SOA-C02 practice questions. Full explanations included, no account needed.
Done with this chapter?